/* assets/css/style.css */

:root {
    --navy-dark: #0b1329;       /* Deepest Navy */
    --navy-medium: #1c2541;     /* Rich Navy */
    --navy-light: #3a506b;      /* Slate Blue */
    --emerald-green: #10b981;   /* Primary Emerald Accent */
    --emerald-hover: #059669;   /* Emerald Hover State */
    --emerald-light: #d1fae5;   /* Soft Green for alerts */
    --pure-white: #ffffff;
    --off-white: #f8fafc;       /* Slate 50 */
    --text-dark: #1e293b;       /* Slate 800 */
    --text-muted: #64748b;      /* Slate 500 */
    --text-light: #f8fafc;      /* Slate 50 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px -2px rgba(11, 19, 41, 0.08);
    --shadow-lg: 0 10px 30px -5px rgba(11, 19, 41, 0.12);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Custom Selection */
::selection {
    background-color: var(--emerald-green);
    color: var(--pure-white);
}

/* Premium Buttons */
.btn-navy {
    background-color: var(--navy-medium);
    color: var(--pure-white);
    border: 1px solid var(--navy-medium);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.btn-navy:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-emerald {
    background-color: var(--emerald-green);
    color: var(--pure-white);
    border: 1px solid var(--emerald-green);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
    background-color: var(--emerald-hover);
    border-color: var(--emerald-hover);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline-navy {
    background-color: transparent;
    color: var(--navy-medium);
    border: 2px solid var(--navy-medium);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.btn-outline-navy:hover {
    background-color: var(--navy-medium);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Navbar Custom Styling */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.navbar-custom .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
}
.navbar-custom .navbar-brand span {
    color: var(--emerald-green);
}
.navbar-custom .nav-link {
    color: var(--navy-medium);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--emerald-green);
}

/* Hero Slider Section */
.hero-slider-container {
    position: relative;
    background-color: var(--pure-white);
    color: var(--text-dark);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.slider-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    right: -10%;
    pointer-events: none;
    z-index: 1;
}

.hero-slide {
    display: none;
    animation: fadeEffect 1s ease-in-out;
    position: relative;
    z-index: 2;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-indicator.active {
    background-color: var(--emerald-green);
    width: 32px;
    border-radius: 20px;
}

/* Hero Swiper Banner Styles */
.hero-swiper-section {
    position: relative;
    background-color: var(--pure-white);
    color: var(--text-dark);
    overflow: hidden;
    padding: 1.5rem 0 1rem;
}

.hero-swiper {
    width: 100%;
    max-width: 900px; /* Limits scaling so the 546x191 poster does not get blurry on desktop */
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(16, 185, 129, 0.02);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.hero-swiper .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-swiper .banner-link:hover {
    transform: scale(1.01);
}

.hero-swiper .banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 336 / 161; /* Matches user's exact 336x161 banner size */
    object-fit: cover;
    border-radius: 16px;
}

/* Custom Swiper Navigation & Pagination */
.hero-swiper .swiper-pagination-bullet {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: var(--transition-fast);
}

.hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--emerald-green);
    width: 28px;
    border-radius: 10px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--navy-dark);
    background-color: rgba(255, 255, 255, 0.9);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 1.15rem;
    font-weight: 800;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background-color: var(--emerald-green);
    color: var(--pure-white);
    border-color: var(--emerald-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .hero-swiper-section {
        padding: 1rem 0;
    }
    .hero-swiper {
        border-radius: 12px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
    }
    .hero-swiper .banner-img {
        border-radius: 12px;
    }
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none; /* Hide arrows on small devices for cleaner layout */
    }
}

.badge-custom {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--emerald-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* Service Dynamic Poster Styles */
.service-poster-container {
    width: 100%;
    max-width: 546px; /* Matches user's exact poster width */
    aspect-ratio: 546 / 191; /* Matches user's exact poster aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--pure-white);
}

.service-poster-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
}

.service-poster-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.service-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents distortion */
    display: block;
    border-radius: 12px;
}

/* Service Options Cards */
.card-service {
    border: 1px solid rgba(11, 19, 41, 0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    background-color: var(--pure-white);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--navy-medium);
    transition: var(--transition-smooth);
}

.card-service:hover::before {
    background-color: var(--emerald-green);
}

.card-service .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: rgba(11, 19, 41, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-medium);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.card-service:hover .icon-box {
    background-color: var(--emerald-green);
    color: var(--pure-white);
}

/* Section Header Styling */
.section-title {
    position: relative;
    margin-bottom: 2rem;
}
.section-title h2 {
    font-size: 2.25rem;
    color: var(--navy-dark);
    margin-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--emerald-green);
    border-radius: 2px;
}
.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}

/* Pricing Section CSS */
.table-pricing-container {
    background: var(--pure-white);
    border-radius: 20px;
    border: 1px solid rgba(11, 19, 41, 0.06);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.pricing-header {
    background-color: var(--off-white);
    color: var(--navy-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    text-align: center;
}
.pricing-header h3 {
    color: var(--navy-dark) !important;
}
.pricing-header span, .pricing-header .text-white-50 {
    color: var(--text-muted) !important;
}

.pricing-card-col {
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(11, 19, 41, 0.06);
    transition: var(--transition-smooth);
}

.pricing-card-col:last-child {
    border-right: none;
}

.pricing-card-col.featured {
    background-color: rgba(16, 185, 129, 0.03);
    position: relative;
}

.pricing-card-col.featured::after {
    content: 'Paling Populer';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--emerald-green);
    color: var(--pure-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.price-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin: 1rem 0;
}

.price-tag span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Why Choose Us Cards */
.card-why {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(11, 19, 41, 0.03);
    height: 100%;
    transition: var(--transition-smooth);
}
.card-why:hover {
    background: var(--pure-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.15);
}
.card-why .icon {
    font-size: 1.5rem;
    color: var(--emerald-green);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Testimonial slider / grid */
.testi-card {
    background-color: var(--off-white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(11, 19, 41, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.testi-card:hover {
    background-color: var(--pure-white);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.15);
}
.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(16, 185, 129, 0.2);
}
.rating-stars {
    color: #f59e0b; /* Amber 500 */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Testimonial Marquee Styles */
.testimonial-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
}

.testimonial-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

.testimonial-marquee-track:hover {
    animation-play-state: paused;
}

.testi-card-wrapper {
    width: 320px;
    padding: 0 12px;
    flex-shrink: 0;
    box-sizing: border-box;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* WhatsApp Channel Promo Card */
.card-wa-channel {
    background-color: var(--pure-white);
    border: 1.5px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.06);
    transition: var(--transition-smooth);
}

.card-wa-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.12);
    border-color: var(--emerald-green);
}

.card-wa-channel .btn-emerald {
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    padding: 0.6rem 1.75rem !important;
}

@media (max-width: 767.98px) {
    .card-wa-channel {
        text-align: center;
    }
    .card-wa-channel .btn-emerald {
        width: 100%;
    }
}

/* Accordion FAQs */
.accordion-custom .accordion-item {
    border: 1px solid rgba(11, 19, 41, 0.06);
    margin-bottom: 0.75rem;
    border-radius: 10px !important;
    overflow: hidden;
}
.accordion-custom .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--navy-medium);
    background-color: var(--pure-white);
    padding: 1.25rem 1.5rem;
}
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--emerald-hover);
    box-shadow: none;
}
.accordion-custom .accordion-button::after {
    filter: sepia(100%) hue-rotate(90deg) saturate(300%);
}

/* Footer Section */
.footer-section {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 5rem 0 2rem;
}
.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--pure-white) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.footer-logo span {
    color: var(--emerald-green);
}
.footer-section h5 {
    color: var(--pure-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--emerald-green);
    padding-left: 5px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--pure-white);
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}
.social-icons a:hover {
    background-color: var(--emerald-green);
    transform: scale(1.1);
}

/* Multi-step Order Flow Styles */
.order-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    position: relative;
}
.order-steps-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 5%;
    right: 5%;
    height: 3px;
    background-color: #e2e8f0;
    z-index: 1;
}
.step-nav-progress {
    position: absolute;
    top: 24px;
    left: 5%;
    height: 3px;
    background-color: var(--emerald-green);
    z-index: 2;
    transition: var(--transition-smooth);
    width: 0%; /* Dynamic width based on current step */
}
.order-step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: 4px solid var(--pure-white);
}
.order-step-item.active .step-number {
    background-color: var(--navy-medium);
    color: var(--pure-white);
    box-shadow: 0 0 0 4px rgba(28, 37, 65, 0.15);
}
.order-step-item.completed .step-number {
    background-color: var(--emerald-green);
    color: var(--pure-white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.step-title {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-fast);
}
.order-step-item.active .step-title {
    color: var(--navy-medium);
}
.order-step-item.completed .step-title {
    color: var(--emerald-green);
}

.order-card {
    background-color: var(--pure-white);
    border-radius: 16px;
    border: 1px solid rgba(11, 19, 41, 0.05);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.order-step-panel {
    display: none;
}
.order-step-panel.active {
    display: block;
    animation: slideUpFade 0.5s ease;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload Area Stylings */
.upload-drag-area {
    border: 2px dashed #cbd5e1;
    background-color: var(--off-white);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.upload-drag-area:hover, .upload-drag-area.dragover {
    border-color: var(--emerald-green);
    background-color: rgba(16, 185, 129, 0.02);
}
.upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}
.upload-drag-area:hover .upload-icon {
    color: var(--emerald-green);
    transform: scale(1.1);
}

/* Processing Page Indicator */
.spinner-processing {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(16, 185, 129, 0.1);
    border-left-color: var(--emerald-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color Utility Classes */
.text-navy-dark { color: var(--navy-dark) !important; }
.text-navy-medium { color: var(--navy-medium) !important; }
.text-navy-light { color: var(--navy-light) !important; }
.text-emerald { color: var(--emerald-green) !important; }
.text-emerald-green { color: var(--emerald-green) !important; }
.bg-navy-medium { background-color: var(--navy-medium) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }

/* Ordering Guide / Tutorial Styling */
.tutorial-card {
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
    transition: var(--transition-smooth);
}
.tutorial-card .card-header {
    background-color: var(--navy-medium) !important;
    transition: var(--transition-fast);
}
.tutorial-card .card-header:hover {
    background-color: var(--navy-dark) !important;
}
.icon-box-tutorial {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--emerald-green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}
.tutorial-step-card {
    background: var(--off-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    height: 100%;
    transition: var(--transition-smooth);
}
.tutorial-step-card:hover {
    background: var(--pure-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.2);
}
.tutorial-step-card:hover .icon-box-tutorial {
    background-color: var(--emerald-green);
    color: var(--pure-white);
    transform: scale(1.1);
}

/* Horizontal scroll on mobile for tutorial steps */
.tutorial-steps-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.tutorial-steps-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.tutorial-step-col {
    flex: 0 0 78%;
    scroll-snap-align: start;
}
@media (min-width: 576px) {
    .tutorial-step-col {
        flex: 0 0 45%;
    }
}
@media (min-width: 992px) {
    .tutorial-steps-row {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .tutorial-step-col {
        flex: 1 0 0%;
    }
}



