/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #2D3E50; /* Dark Blue */
    --accent-color: #4A5B6D; 
    --text-color: #555555;
    --bg-light: #F4F8FA; /* Light Blue BG */
    --btn-dark: #333333;
    --font-main: 'Poppins', sans-serif;
    --hero-blob: #D9EFF4; /* The light teal shape color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--btn-dark);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    color: var(--btn-dark);
    margin-left: 15px;
    font-weight: 600;
}

/* --- NAVBAR --- */
.navbar {
    padding: 20px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;           /* Forces image and text into a single row */
    align-items: center;     /* Vertically centers the text with the logo */
    gap: 12px;               /* Controls the space between logo and text */
    scale: 1.2;              /* Adjusted scale */
    transform-origin: left;  
    grid-column: 2;
    grid-row: 1;
    justify-self: flex-start;
}

.logo img {
    height: 40px;
    margin: 10px; 
}

#name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
    position: relative;
    left: -10px;

}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    padding: 10px;
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* --- HERO SECTION (DESKTOP) --- */
.hero-section {
    padding: 80px 0;
    background-color: #FFFCF8; /* Warm off-white */
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 0 0 45%; /* Text takes 45% width */
}

.hero-content h1 {
    font-family: 'Playfair Display', serif; 
    font-size: 3.8rem;
    color: #333;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 35px;
    max-width: 450px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.stat-item span {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Images (Split Layout) */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    gap: 20px; 
    height: 550px;
    position: relative;
}

/* Common Column Styles */
.hero-img-col {
    position: relative;
    display: flex;
    align-items: flex-end; 
}

/* Left Column (Pointing Man) */
.left-img-col {
    flex: 0 0 35%;
}

.img-pointing {
    position: relative;
    z-index: 2;
    width: 130%; 
    max-width: none;
    scale: 2;
    bottom: 50px;
}

/* Right Column (Thumbs Up Man) */
.right-img-col {
    flex: 0 0 60%; 
}

.img-thumbs {
    position: relative;
    z-index: 2;
    width: 100%;
    bottom: 40px;
    margin-left: 100px;
}

/* The Floating Service Card Image */
.img-service-card {
    position: absolute;
    bottom: 0px;
    left: 40px; 
    z-index: 3;
    width: 240px; 
    height: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    border-radius: 8px;
}

.brands-section {
    padding: 50px 0;
    background-color: #FAFAFA;
    text-align: center;
    overflow: hidden;
}

.brand-title {
    font-size: 0.8rem;
    color: #AAA;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
}

.brands-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    /* Fades the edges so logos don't disappear abruptly */
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}

.brands-track {
    display: flex;
    align-items: center;
    /* Width = (Slide Width 200px) * (Total Logos 20) */
    width: calc(200px * 20); 
    animation: scroll 35s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-slide {
    width: 200px; /* Fixed container width */
    height: 80px; /* Fixed container height */
    padding: 0 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center; /* Center Horizontal */
    align-items: center;     /* Center Vertical */
}

/* THE FIX: Use max-width AND max-height */
.brand-slide img {
    max-width: 140px;  /* Stops wide logos from getting too huge */
    max-height: 55px;  /* Stops tall/square logos from getting too huge */
    width: auto;
    height: auto;
    object-fit: contain; /* Keeps aspect ratio perfect */
    
    /* Styling */
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1); /* Slight pop effect */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by half (10 logos * 200px width) */
        transform: translateX(calc(-200px * 10)); 
    }
}
   

/* --- BRANDS SECTION (CAROUSEL) --- */
.brands-section {
    padding: 50px 0;
    background-color: #FAFAFA;
    text-align: center;
    overflow: hidden;
}

.brand-title {
    font-size: 0.8rem;
    color: #AAA;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
}

.brands-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}

.brands-track {
    display: flex;
    align-items: center;
    width: calc(200px * 20); /* 200px width * 20 logos */
    animation: scroll 35s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-slide {
    width: 200px;
    height: 80px; 
    padding: 0 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center; 
    align-items: center;     
}

.brand-slide img {
    max-width: 140px;
    max-height: 55px; 
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 10)); }
}

/* --- HOW IT WORKS --- */
.how-it-works {
    padding: 100px 0;
    background: #fff;
}

.works-section-header {
    position: relative;
    bottom: -150px;
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.process-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

.step-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.step-number {
    position: absolute;
    font-size: 8rem;
    font-weight: 700;
    color: #F0F0F0;
    z-index: -1;
    top: -40px;
    left: 20px;
}

.step-right {
    flex-direction: row-reverse;
}

/* --- WHY CHOOSE US (DESKTOP) --- */
.why-choose-us {
    padding: 80px 0;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    text-align: left;
    margin-left: 5%;
}

.features-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.feature-col {
    flex: 1;
}

.feature-col.center img {
    margin: 0 auto;
    max-height: 500px;
}

.feature-item {
    text-align: left;
    margin-bottom: 40px;
    padding: 0 20px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #777;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 0;
    background: #F8FBFD;
    text-align: center;
}

.sub-head {
    color: #e6b325;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.testimonials h2 {
    font-size: 2.2rem;
    color: #2D0C3C;
    margin-bottom: 50px;
}

.testimonial-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    scrollbar-width: none; 
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 300px;
    flex: 1;
    background: #fff;
    padding: 30px;
    border: 1px solid #FFD700;
    border-radius: 10px;
    text-align: center;
    scroll-snap-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.testimonial-card h4 {
    color: #2D0C3C;
    margin-bottom: 5px;
}

.stars {
    color: #FF9900;
    margin-bottom: 15px;
}

.slider-btn {
    display: none;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background: #fff;
}

.cta-container {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.cta-text {
    flex: 1;
    padding: 60px;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.cta-text p {
    margin-bottom: 30px;
    color: #666;
}

.cta-image {
    flex: 1;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- FOOTER --- */
footer {
    background: #DDE4EB;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-bottom h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #888;
}
/* =========================================
   MOBILE RESPONSIVENESS (Max-Width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* --- GLOBAL ADJUSTMENTS --- */
    .container {
        width: 90%; 
        padding: 0 10px;
    }

    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.8rem !important; margin-bottom: 30px !important; }
    p { font-size: 0.85rem !important; }

    /* --- LOGO ADJUSTMENTS --- */
    .logo img {
        position: relative;
        left: -25px;
    }
    #name {
        scale: 0.8;
        position: absolute;
        top: 16px;
        left: 12px;
    }

    /* --- NAVBAR --- */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: #fff;
        height: 90vh;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav-links.active { right: 0; }
    
    .hamburger { 
        display: flex; 
        position: relative;
        left: 30px; 
    }

    /* --- HERO SECTION (Side-by-Side Mobile) --- */
    .hero-container {
        flex-direction: row; 
        align-items: flex-start;
        padding-top: 20px;
        gap: 10px;
        overflow: visible;
    }

    .hero-content {
        flex: 0 0 60%; 
        padding-right: 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .btn-secondary { margin-left: 0; }

    .hero-stats {
        margin-top: 20px;
        gap: 20px;
    }

    .stat-item h3 { font-size: 1.5rem; }

    /* Mobile Image Wrapper: Use the Left Column only */
    .hero-image-wrapper {
        flex: 0 0 40%;
        display: block; 
        height: auto;
        min-height: 300px;
    }

    .right-img-col { display: none; }
    .img-service-card { position: absolute; z-index: 3; }

    .left-img-col {
        width: 100%;
        flex: none;
    }

    .img-pointing {
        width: 160%; 
        left: -30px;
        bottom: 0;
        scale: 1.5;
        padding: 20px;
        position: relative;
        top: 50px;
    }
    /* --- BRANDS SECTION (Mobile Fix) --- */
    .brands-section {
        padding: 30px 0; /* Reduce vertical padding */
    }

    .brand-title {
        font-size: 0.6rem; /* Smaller title text */
        margin-bottom: 20px;
    }

    .brands-track {
        /* 1. Recalculate Width: 120px per slide * 20 logos */
        width: calc(120px * 20); 
        
        /* 2. Update Animation: Use the new mobile keyframes defined below */
        animation: scroll-mobile 20s linear infinite;
    }

    .brand-slide {
        width: 120px; /* Reduce width from 200px to 120px */
        height: 60px; /* Reduce height */
        padding: 0 10px;
    }

    .brand-slide img {
        max-width: 80px;  /* Make logos much smaller */
        max-height: 40px;
        opacity: 0.7;     /* Slight transparency looks cleaner on mobile */
    }

    /* 3. New Animation Keyframes for Mobile Widths */
    @keyframes scroll-mobile {
        0% { transform: translateX(0); }
        100% { 
            /* Move by half total width: 10 logos * 120px */
            transform: translateX(calc(-120px * 10)); 
        }
    }

    /* --- HOW IT WORKS (Stacked Center) --- */
    /* --- OPTION 2: HORIZONTAL SWIPE CAROUSEL --- */
    .how-it-works .container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 30px; /* Space for scrollbar/dots */
        width: 100%;
        /* Hide scrollbar for clean look */
        scrollbar-width: none; 
    }
    .how-it-works .container::-webkit-scrollbar { display: none; }

    .process-step {
        flex: 0 0 85%; /* Shows 85% of the card, hinting to scroll */
        scroll-snap-align: center;
        flex-direction: column !important;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 0; /* Remove vertical gap */
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .step-image img {
        max-height: 180px; /* Constrain height */
        margin: 0 auto 20px;
    }

    .step-number {
        font-size: 1.2rem;
        color: #ddd;
        position: absolute;
        top: 15px;
        right: 20px;
        font-weight: 700;
    }
    
    /* Hide the Section Header to save more space, or keep it */
    .section-header { margin-bottom: 30px; }
    .process-step {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        margin-bottom: 50px;
    }

    .step-left .step-image { order: 1; }
    .step-left .step-content { order: 2; }
    
    .step-right .step-content { order: 1; }
    .step-right .step-image { order: 2; }

    .step-number {
        font-size: 5rem;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* --- WHY CHOOSE US (Zigzag Timeline Layout) --- */
    .why-choose-us {
        padding: 40px 0;
        background: #fff; /* Clean white background */
    }

    .why-choose-us h2 {
        text-align: center;
        margin-left: 0;
        margin-bottom: 40px !important;
    }

    .why-choose-us .features-grid {
        display: flex;
        flex-direction: column;
        position: relative;
        /* 1. Remove BG Image */
        background: none; 
        padding: 0;
        margin: 0;
    }

    /* 2. Center Timeline Path */
    .why-choose-us .features-grid::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Perfectly center the line */
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #E0E0E0; /* Light grey timeline */
        z-index: 1;
    }

    /* Hide Desktop Elements */
    .feature-col.center { display: none; }
    .feature-col::before { display: none; } /* Clear old borders */

    /* Reset Columns */
    .feature-col {
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
    }

    /* Order: Right Column First, then Left Column */
    .feature-col.right { order: 1; }
    .feature-col.left { order: 2; }

    /* Common Item Styles */
    .feature-item {
        width: 50%; /* Each item takes half width */
        position: relative;
        padding-bottom: 40px;
        z-index: 2;
    }
    
    /* Clear old lines */
    .feature-item::after { display: none; }

    /* --- 3. ALTERNATING ZIGZAG LOGIC --- */

    /* LEFT SIDE ITEMS (1st item of Right Col, 1st item of Left Col) */
    .feature-col.right .feature-item:nth-child(1),
    .feature-col.left .feature-item:nth-child(1) {
        margin-right: auto; /* Push to Left */
        text-align: right;  /* Align text towards center */
        padding-right: 25px; /* Space for dot */
        padding-left: 5px;
    }

    /* RIGHT SIDE ITEMS (2nd item of Right Col, 2nd item of Left Col) */
    .feature-col.right .feature-item:nth-child(2),
    .feature-col.left .feature-item:nth-child(2) {
        margin-left: auto; /* Push to Right */
        text-align: left;  /* Align text away from center */
        padding-left: 25px; /* Space for dot */
        padding-right: 5px;
    }

    /* --- DOT STYLING --- */
    .feature-item h4::before {
        content: '';
        position: absolute;
        top: 0px;
        width: 12px;
        height: 12px;
        background-color: #2D3E50; /* Dark Blue Dot */
        border: 2px solid #fff;    /* White border to separate from line */
        box-shadow: 0 0 0 2px #2D3E50; /* Outer ring */
        border-radius: 50%;
        z-index: 3;
    }

    /* Position Dot for LEFT Items */
    .feature-col.right .feature-item:nth-child(1) h4::before,
    .feature-col.left .feature-item:nth-child(1) h4::before {
        right: -33px; /* Position exactly on center line */
        left: auto;
    }

    /* Position Dot for RIGHT Items */
    .feature-col.right .feature-item:nth-child(2) h4::before,
    .feature-col.left .feature-item:nth-child(2) h4::before {
        left: -33px; /* Position exactly on center line */
    }

    /* --- 4. TEXT COLOR FIXES --- */
    .feature-item h4 {
        color: #2D3E50 !important; /* Visible Dark Blue */
        font-size: 0.95rem !important;
        font-weight: 600;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .feature-item p {
        color: #666 !important; /* Visible Grey */
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    /* --- TESTIMONIALS --- */
    .testimonial-card {
        min-width: 90%;
        margin: 0;
    }
    
    .testimonial-track {
        gap: 20px;
        padding-bottom: 30px;
    }

    /* --- CTA / FOOTER --- */
    .cta-container {
        flex-direction: row;
        padding: 0;
        align-items: stretch;
    }

    .cta-text {
        flex: 0 0 60%;
        padding: 30px 20px;
    }

    .cta-text h2 { font-size: 1.5rem !important; }

    
    footer { padding: 40px 0; }
    .footer-bottom { padding: 0 20px; }
}