/* --- Global Utilities & Variables --- */
:root {
    --primary: #4AB7AC;
    --dark: #348B83;
    --dark-bg: #4AB7AC;
    --light-bg: #E6FFFC;
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
}

.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }

/* Buttons */
.btn-dark, .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}
.btn-dark { background-color: #333333; color: #ffffff; }
.btn-dark:hover { background-color: var(--primary); }
.btn-primary { background-color: var(--primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--dark); }

/* ==========================================================================
   1. HERO SLIDER (Updated Heights, Overlays, & Card Sizes)
   ========================================================================== */
.hero-slider-section { 
    position: relative; 
    width: 100%; 
    height: 550px; /* Fixed standard height for desktop */
    overflow: hidden; 
    background-color: #f5f5f5; 
}

.slider-track { width: 100%; height: 100%; position: relative; }

.slide { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    opacity: 0; 
    visibility: hidden;
    z-index: 0; 
    transition: opacity 0.8s ease-in-out, visibility 0.8s; 
    display: flex; 
    align-items: center; 
}

.slide.active { 
    opacity: 1; 
    visibility: visible;
    z-index: 1; 
}

/* Background Image with Ken Burns Zoom Effect */
.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease-out; /* Slow zoom */
    z-index: -2;
}
.slide.active .slide-bg { transform: scale(1.05); }

/* REMOVED: Blackish Overlay effect. Hiding the overlay divs */
.slide-overlay { display: none; }

/* Layout & Typography */
.container-1200 { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.slide-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; gap: 40px; }

.slide-content-box { 
    width: 45%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* Added text shadows to ensure readability without the dark background */
.slide-title { 
    font-size: 40px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin: 0 0 10px 0; 
    color: #ffffff; 
    text-shadow: 2px 2px 7px rgba(0,0,0,0.8);
}
.slide-subtitle { 
    font-size: 18px; 
    font-weight: 800; 
    letter-spacing: 3px; 
     color: #ffffff; 
    margin: 0 0 20px 0;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.slide-desc { 
    font-size: 21px; 
    font-weight: 600; 
    line-height: 1.6; 
    color: #ffffff; 
    margin-bottom: 35px; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.slide-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.slide-buttons .btn-primary, .slide-buttons .btn-dark {
    border-radius: 4px;
    padding: 14px 32px;
    letter-spacing: 1px;
}

/* Collage Images */
.slide-images-collage { 
    display: flex; 
    width: 50%; 
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}
.slide-images-collage img { 
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.slide-images-collage:not(.dual-collage) img:nth-child(1) { width: 30%; height: 200px; }
.slide-images-collage:not(.dual-collage) img:nth-child(2) { width: 30%; height: 260px; margin-top: -40px; }
.slide-images-collage:not(.dual-collage) img:nth-child(3) { width: 40%; height: 320px; margin-top: 40px; }

.slide-images-collage.dual-collage img { width: 45%; height: 280px; }
.slide-images-collage.dual-collage img:nth-child(1) { margin-top: -50px; }
.slide-images-collage.dual-collage img:nth-child(2) { margin-top: 50px; }

/* Slide Animations */
.slide .slide-title, .slide .slide-subtitle, .slide .slide-desc, .slide .slide-buttons { 
    transform: translateY(30px); 
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}
.slide .slide-images-collage img { 
    transform: translateY(40px) scale(0.95); 
    opacity: 0; 
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.slide.active .slide-title { transform: translateY(0); opacity: 1; transition-delay: 0.3s; }
.slide.active .slide-subtitle { transform: translateY(0); opacity: 1; transition-delay: 0.4s; }
.slide.active .slide-desc { transform: translateY(0); opacity: 1; transition-delay: 0.5s; }
.slide.active .slide-buttons { transform: translateY(0); opacity: 1; transition-delay: 0.6s; }

.slide.active .slide-images-collage img { transform: translateY(0) scale(1); opacity: 1; }
.slide.active .slide-images-collage img:nth-child(1) { transition-delay: 0.5s; }
.slide.active .slide-images-collage img:nth-child(2) { transition-delay: 0.7s; }
.slide.active .slide-images-collage img:nth-child(3) { transition-delay: 0.9s; }

/* Slide 3 - Center Grid */
.center-content { flex-direction: column; align-items: center; justify-content: center; }
.slide.active .center-content .slide-title { transition-delay: 0.2s; margin-bottom: 30px; font-size: 52px; }
.popular-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: 100%; max-width: 900px; }

.service-card { 
    position: relative; 
    height: 160px; /* Reduced base desktop height */
    overflow: hidden; 
    display: block; 
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
    opacity: 0; 
    border: 2px solid rgba(255,255,255,0.2);
}
.service-card::after { 
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 0.6; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.1); }
.service-label { 
    position: absolute; bottom: 15px; left: 0; width: 100%; 
    color: var(--white); text-align: center; font-size: 15px; 
    font-weight: 600; z-index: 2; transition: color 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.service-card:hover .service-label { color: var(--primary); }

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.slide.active .service-card { animation: cardEntrance 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.slide.active .service-card:nth-child(1) { animation-delay: 0.4s; }
.slide.active .service-card:nth-child(2) { animation-delay: 0.5s; }
.slide.active .service-card:nth-child(3) { animation-delay: 0.6s; }
.slide.active .service-card:nth-child(4) { animation-delay: 0.7s; }
.slide.active .service-card:nth-child(5) { animation-delay: 0.8s; }
.slide.active .service-card:nth-child(6) { animation-delay: 0.9s; }

/* Arrows & Dots */
.slider-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.1); backdrop-filter: blur(3px);
    color: white; border: 1px solid rgba(255,255,255,0.3); 
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; 
    z-index: 10; display: flex; align-items: center; justify-content: center; 
    transition: all 0.3s ease; 
}
.slider-arrow svg { width: 24px; height: 24px; }
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.dot.active { width: 30px; background: var(--primary); }

/* ==========================================================================
   2. WHY CHOOSE US (Redesigned Professional Box)
   ========================================================================== */
.why-choose-us-section { background-color: var(--primary); padding: 80px 0; }
.process-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }

/* Connective Lines (Desktop) */
.process-grid::before { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; height: 2px; background-color: rgba(255,255,255,0.3); z-index: 1; transform: translateY(-50%); }

.process-col { display: flex; flex-direction: column; justify-content: center; gap: 20px; width: 22%; position: relative; z-index: 2; }
.process-step { background-color: var(--white); padding: 25px 15px; border-radius: 6px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; }
.process-step:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.process-step.active-step { border-color: var(--white); background-color: #f0fdfb; transform: scale(1.05); }
.process-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.process-text { font-size: 14px; font-weight: 700; color: var(--text-color); }

/* Center Box Redesign: Sleek White Card */
.process-center-box { 
    width: 45%; 
    background-color: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
    border-radius: 8px; 
    position: relative; 
    z-index: 2; 
    padding: 20px;
}
.center-box-content { 
    padding: 0px; 
    width: 100%; 
    text-align: center; 
    color: var(--text-color); 
    transition: opacity 0.3s ease; 
}
.wcu-dynamic-icon { font-size: 60px; margin-bottom: 10px; color: var(--primary); display: block; }
.center-box-content h4 { font-size: 26px; font-weight: 800; margin: 0 0 15px 0; color: var(--dark); text-transform: uppercase; }
.center-box-content p { font-size: 16px; line-height: 1.7; color: #000000; margin: 0 0 25px 0; }


/* ==========================================================================
   3. OFFERS SECTION
   ========================================================================== */
.home-offers-section { padding: 80px 0; background-color: #fafafa; }
.offers-layout { display: flex; align-items: center; gap: 50px; }
.offers-left { width: 35%; }
.offers-left p { font-size: 15px; color: #000000; line-height: 1.6; margin-bottom: 25px; }

.offers-right { width: 65%; overflow: hidden; }
.wow-slider-track { display: flex; transition: transform 0.5s ease; }
.wow-card-wrapper { min-width: 100%; padding-right: 20px; box-sizing: border-box; }
.modern-offer-card { display: flex; background: var(--white); box-shadow: 0 5px 25px rgba(0,0,0,0.08); border: 1px solid #eee; height: 220px; }
.offer-card-left { width: 45%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.offer-discount { margin-bottom: 10px; }
.offer-discount span { font-size: 12px; color: #000000; letter-spacing: 1px; }
.offer-discount strong { display: block; font-size: 32px; color: var(--primary); font-weight: 300; line-height: 1; }
.offer-title { font-size: 18px; font-weight: 300; color: #000000; margin: 0; }
.offer-card-right { width: 80%; height: 100%; }
.offer-card-right img { width: 100%; height: 100%; object-fit: cover; }

.offers-nav { display: flex; gap: 15px; justify-content: flex-end; margin-top: 15px; padding-right: 20px; }
.offers-nav button { background: transparent; border: none; font-size: 14px; color: #888; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.offers-nav button:hover { color: var(--primary); }

/* ==========================================================================
   4. CTA STRIP
   ========================================================================== */
.cta-strip { background-color: var(--primary); padding: 25px 0; }
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; }
.cta-text { color: var(--white); font-size: 20px; font-weight: 500; margin: 0; }
.cta-btn { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: var(--white); padding: 10px 30px; font-size: 20px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.cta-btn:hover { border-color: var(--white); background: var(--white); color: var(--primary); }

/* ==========================================================================
   5. MODERN STATS SECTION (Redesigned)
   ========================================================================== */
.stats-modern-section { padding: 80px 0; background-color: var(--white); }
.stats-modern-grid { display: grid; grid-template-columns: 35% 65%; gap: 40px; align-items: center; }

.stats-header { text-align: left; }
.stats-subheading { color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 15px; }
.stats-header h2 { font-size: 36px; line-height: 1.2; font-weight: 750; color: var(--text-color); margin-bottom: 15px; margin-top: 0; }
.stats-header p { font-size: 15px; color: #000000; line-height: 1.6; }

.stats-cards-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modern-stat-card { background: #f9f9f9; padding: 40px 20px; text-align: center; border-radius: 6px; transition: transform 0.3s ease, box-shadow 0.3s ease; border-bottom: 3px solid transparent; }
.modern-stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-bottom-color: var(--primary); background: var(--white); }
.modern-stat-card .stat-icon { font-size: 45px; display: block; margin-bottom: 20px; }
.modern-stat-card h3 { font-size: 32px; font-weight: 300; color: var(--primary); margin: 0 0 10px 0; }
.modern-stat-card p { font-size: 14px; font-weight: 600; color: #000000; margin: 0; }

/* ==========================================================================
   6. CLIENTS MARQUEE (Redesigned)
   ========================================================================== */
.clients-marquee-section { padding: 20px 0 80px 0; overflow: hidden; background-color: var(--white); }
.marquee-heading { font-size: 30px; color: #000000; font-weight: 700; letter-spacing: 2px; margin-bottom: 30px; text-transform: uppercase; }

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
    align-items: center;
}
.marquee-track:hover { animation-play-state: paused; } /* Pauses on hover */
.marquee-track img { height: 60px; width: auto; margin: 0 40px; opacity: 1; transition: all 0.3s ease; cursor: pointer; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0%); }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the total width (since logos are duplicated) */
}


/* ==========================================================================
   7. SERVICES GRID
   ========================================================================== */
.sp-services-grid-wrapper { background-color: var(--white); padding: 80px 0; }
.grid-heading { font-size: 36px; font-weight: 800; color: var(--text-color); margin: 0 0 5px 0; }
.grid-subheading { color: #000000; font-size: 15px; margin-bottom: 40px; }

.sp-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.sp-card { text-decoration: none; display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.sp-card.hidden-card { display: none; }
.sp-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--primary); }

.sp-card-img { height: 200px; overflow: hidden; }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sp-card:hover .sp-card-img img { transform: scale(1.08); }

.sp-card-content { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.sp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sp-card-header h3 { font-size: 20px; color: var(--text-color); font-weight: 700; margin: 0; transition: color 0.3s; }
.sp-card:hover .sp-card-header h3 { color: var(--primary); }
.card-arrow { color: var(--primary); font-size: 20px; font-weight: 800; transition: transform 0.3s; }
.sp-card:hover .card-arrow { transform: translateX(5px); }

.sp-card-content p { font-size: 14px; color: #000000; line-height: 1.6; margin: 0; }

.view-all-text-link { color: var(--text-color); font-weight: 700; font-size: 15px; text-decoration: none; transition: color 0.3s; display: inline-block; border-bottom: 1px solid transparent; }
.view-all-text-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
/* Hero - Tablet Updates */
    .hero-slider-section { height: 500px; } /* Slightly shorter for tablet */
    .slide-inner { gap: 20px; }
    .slide-content-box { width: 50%; }
    .slide-images-collage { width: 50%; }
    .slide-title { font-size: 44px; }
    .popular-services-grid { grid-template-columns: repeat(3, 1fr); max-width: 700px; gap: 10px; }
    .service-card { height: 120px; } /* Smaller cards on tablet */
    .service-label { font-size: 13px; bottom: 10px; }
    
    /* Why Choose Us */
    .process-center-box { width: 50%; }
    
    /* Offers */
    .offers-layout { flex-direction: column; text-align: center; }
    .offers-left, .offers-right { width: 100%; }
    .offers-nav { justify-content: center; padding-right: 0; }
    
    /* Stats */
    .stats-modern-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .stats-header { text-align: center; }

    /* Services Grid */
    .sp-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
/* Hero - Mobile Updates */
    .hero-slider-section { height: 550px; min-height: auto; } /* Fixed predictable height, removed 100vh */
    
    .slide-inner { flex-direction: column; justify-content: center; text-align: center; padding: 60px 15px 40px 15px; }
    .slide-content-box { width: 100%; align-items: center; margin-bottom: 25px; padding: 0; }
    
    .slide-title { font-size: 34px; margin-bottom: 5px; }
    .slide-subtitle { font-size: 13px; margin-bottom: 10px; }
    .slide-desc { font-size: 15px; margin-bottom: 20px; }
/* Buttons adjusted to sit neatly side-by-side and scaled down for mobile */
    .slide-buttons { 
        justify-content: center; 
        flex-direction: row; 
        width: 100%; 
        gap: 10px; 
    }
    .slide-buttons .btn-primary, 
    .slide-buttons .btn-dark { 
        width: auto; 
        text-align: center; 
        padding: 10px 18px; /* Smaller padding */
        font-size: 12px; /* Scaled down font */
        letter-spacing: 0.5px;
        white-space: nowrap; /* Prevents button text from breaking into two lines */
    }

    /* Compact collage for mobile so it fits nicely in the 550px height */
    .slide-images-collage { width: 100%; justify-content: center; height: 120px; }
    .slide-images-collage:not(.dual-collage) img:nth-child(n),
    .slide-images-collage.dual-collage img:nth-child(n) { 
        width: 30%; height: 100%; margin: 0; 
    }
    
    /* Slide 3 fixes - Tiny cards for mobile */
    .slide.active .center-content .slide-title { font-size: 28px; margin-bottom: 15px; }
    .popular-services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .service-card { height: 90px; } /* Drastically smaller height */
    
    /* Modify label to look like a solid bar at the bottom for readability on tiny cards */
    .service-label { 
        font-size: 11px; 
        bottom: 0; 
        padding: 5px 0; 
        background: rgba(255,255,255,0.9); 
        color: var(--primary); 
        text-shadow: none; 
    }
    .service-card::after { display: none; } /* Remove gradient overlay on tiny mobile cards */

    /* Hide arrows on mobile */
    /* .slider-arrow { display: none; } */
    .slider-dots { bottom: 15px; }
    
/* =======================================================
       Why Choose Us - Mobile App/Tab Style Layout 
       ======================================================= */
    .why-choose-us-section { padding: 40px 0; }
    .process-grid { 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
    }
    .process-grid::before { display: none; }
    
    /* Reorder: Put both step rows on top, the info box on the bottom */
    .process-grid > .process-col:nth-child(1) { order: 1; }
    .process-grid > .process-col:nth-child(3) { order: 2; }
    .process-grid > .process-center-box { order: 3; margin-top: 15px; }

    /* Make the steps a perfect 3-column grid */
    .process-col { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px; /* Slightly tighter gap to give text more room */
        width: 100%; 
        align-items: stretch; /* Forces all items in a row to be the exact same height */
    }

    /* Style steps like app buttons */
    .process-step { 
        width: 100%; 
        height: 100%; /* Take up the full height of the stretched grid cell */
        padding: 12px 4px; 
        display: flex; 
        flex-direction: column; 
        justify-content: flex-start; /* Pushes everything to the top so icons align perfectly */
        align-items: center; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .process-icon { 
        font-size: 20px; /* Scaled down slightly */
        margin-bottom: 8px; 
    }
    
    .process-text { 
        font-size: 10px; /* Scaled down slightly to fit words better */
        text-align: center; 
        line-height: 1.3; 
    }

    /* Style the center box to look like a clean result card */
    .process-center-box { 
        width: 100%; 
        max-width: 100%; 
        padding: 0; 
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .center-box-content { padding: 30px 20px; }
    .wcu-dynamic-icon { font-size: 40px; margin-bottom: 10px; }
    .center-box-content h4 { font-size: 22px; margin-bottom: 10px; }
    .center-box-content p { font-size: 14px; margin-bottom: 20px; }
    
    /* Offers */
    .modern-offer-card { flex-direction: column; height: auto; }
    .offer-card-left, .offer-card-right { width: 100%; }
    .offer-card-right { height: 200px; }
    
    /* CTA Strip */
    .cta-strip-inner { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Stats */
    .stats-cards-wrapper { grid-template-columns: 1fr; }

    /* Services Grid */
    .sp-services-grid-wrapper { padding: 50px 0; }
    .grid-heading { font-size: 30px; }
    .sp-photo-grid { grid-template-columns: 1fr; gap: 20px; }
}