/* assets/css/home.css (v2 - Improved Responsiveness) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&family=K2D:wght@400&display=swap');

/* --- HERO CAROUSEL --- */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: white;
}

/* Background slides */
.slides-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.slide {
    position: absolute; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active { opacity: 1; }
.slide::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0) 100%);
}

/* Alignment Container */
.hero-container {
    position: relative; z-index: 2;
    max-width: 1300px; margin: 0 auto;
    padding: 0 2rem; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center;
}

/* Content block */
.hero-content {
    max-width: 600px;
}
.text-container {
    position: relative;
}
.text-slide {
    position: absolute;
    opacity: 0; visibility: hidden;
}
.text-slide.active {
    position: relative;
    opacity: 1; visibility: visible;
}
.text-slide h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 4.5rem; /* 72px */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.text-slide p {
    font-family: 'K2D', sans-serif;
    font-size: 1.1rem; /* 17.6px */
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Button styles */
.hero-button {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: 'Inter', sans-serif; font-weight: 700;
    color: white; text-decoration: none;
    background-color: transparent; border: 2px solid #E2B726;
    padding: 0.8rem 1.8rem; border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.hero-button span { transition: transform 0.3s ease; }
.hero-button:hover { background-color: #E2B726; color: #333; }
.hero-button:hover span { transform: translateX(5px); }

/* Progress Bars */
.carousel-progress {
    position: absolute; bottom: 40px; left: 2rem;
    z-index: 3; display: flex; gap: 15px;
}
.progress-bar {
    width: 150px; height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px; cursor: pointer; overflow: hidden;
}
.progress-bar-inner {
    height: 100%; width: 0%;
    background-color: white; border-radius: 2px;
}


/* --- FULLY REVISED RESPONSIVE DESIGN --- */

/* For Tablets and smaller */
@media (max-width: 992px) {
    .text-slide h1 {
        font-size: 3.5rem; /* 56px */
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .hero-container {
        padding: 0 1.5rem; /* Reduce side padding on mobile */
        align-items: center; /* Center the content block horizontally */
        text-align: center;
    }
    .slide::after {
        background: rgba(0,0,0,0.6); /* Make overlay darker on all sides for mobile readability */
    }

    .hero-content {
        max-width: 100%; /* Allow content to use the full width */
    }

    .text-slide h1 {
        font-size: 2.5rem; /* 40px - Much better for small screens */
        line-height: 1.2;
    }

    .text-slide p {
        font-size: 1rem; /* 16px */
        margin-bottom: 2.5rem; /* More space before button */
    }

    .hero-button {
        /* Make the button smaller and more touch-friendly */
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem; /* 14.4px */
    }

    .carousel-progress {
        width: calc(100% - 3rem); /* Full container width */
        left: 1.5rem;
        justify-content: center;
        bottom: 30px; /* Bring it up a little */
    }
    .progress-bar {
        flex-grow: 1; /* Make bars stretch to fill the space */
        max-width: 150px; /* But don't let them get too wide */
    }
}




/* ================================================= */
/*             2. INTRO SECTION ("PURPOSE")          */
/*         (Corrected with right-alignment)          */
/* ================================================= */

.intro-section {
    padding: 7rem 0;
    overflow: hidden; /* Prevents content from appearing before animation */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

/* --- Left Column: Bold Headings --- */
.intro-heading {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between the bold words */
    /* --- ALIGNMENT FIX --- */
    align-items: flex-end; /* Aligns the h2 blocks to the right */
    text-align: right;     /* Aligns the text inside the h2 to the right */
}

.intro-heading h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: #1a1a1a;
    line-height: 1.1;
    text-transform: uppercase;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
}

/* --- Right Column: Descriptive Text --- */
.intro-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.intro-text p {
    font-family: 'K2D', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    max-width: 500px;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
}

.intro-text p strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* --- INTRO SECTION RESPONSIVENESS --- */
@media (max-width: 992px) {
    .intro-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-heading {
        /* On mobile, we override the right-alignment for a centered look */
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .intro-text {
        text-align: center;
        gap: 1.5rem;
    }

    .intro-text p {
        margin: 0 auto;
    }
}




/* REPLACE your entire "What We Do" CSS block with this */


/* REPLACE your entire "What We Do" CSS block in home.css with this */


/* --- 3. "WHAT WE DO" SLIDER (REFINED MOBILE DESIGN) --- */

/* ================================================= */
/*             3. "WHAT WE DO" SLIDER                */
/*         (Rewritten for a unified card design)     */
/* ================================================= */

.what-we-do-section {
    padding: 7rem 0;
    overflow-x: clip; /* Prevents horizontal scrollbars */
}

.section-header {
    margin-bottom: 3rem;
}
.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: #333;
}

.slider-viewport {
    width: 100%;
    /* overflow: hidden; is not needed here, overflow-x: clip on parent handles it */
}

.slider-track {
    display: flex;
    /* This calculation aligns the first slide with the start of the .container */
    padding-left: calc((100% - 1300px) / 2 + 2rem);
    padding-right: 2rem; /* Give some space at the end */
    gap: 5rem;
}

/* --- THE NEW UNIFIED CARD DESIGN --- */
.slider-group {
    display: flex;
    flex-shrink: 0; /* Prevents the group from shrinking */

    /* The group now acts as the card */
    gap: 0; /* REMOVED THE GAP */
    border-radius: 16px;
    overflow: hidden; /* This makes the corner rounding work */
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}

/* Generic styles for items inside the group */
.slider-item {
    /* Reset individual item styles */
    border-radius: 0;
    overflow: visible;
}

.text-card {
    width: 380px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none; /* Shadow is now on the parent .slider-group */
}

.text-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.text-card p {
    font-family: 'K2D', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.card-learn-more {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    color: inherit;
}
.card-learn-more:hover {
    opacity: 1;
}

/* Color classes remain the same */
.color-yellow { background-color: #E2B726; color: #333; }
.color-red    { background-color: #C04A49; color: #fff; }
.color-blue   { background-color: #3182CE; color: #fff; }
.color-green  { background-color: #38A169; color: #fff; }

.image-card {
    width: 450px;
    height: 380px;
    box-shadow: none; /* Shadow is now on the parent .slider-group */
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Controls remain the same --- */
.slider-controls-bottom {
    display: flex;
    gap: 0.5rem;
    margin-top: 3rem;
}
.slider-btn {
    width: 50px; height: 50px;
    border-radius: 50%; background-color: transparent;
    border: 2px solid #ccc; color: #333;
    display: grid; place-items: center;
    cursor: pointer; transition: all 0.3s ease;
}
.slider-btn:hover { background-color: #e9e2d8; border-color: #333; }
.slider-btn:disabled { opacity: 0.4; cursor: not-allowed; border-color: #ccc; background-color: transparent; }

/* --- SLIDER RESPONSIVENESS --- */
@media (max-width: 1400px) {
    .slider-track {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    .slider-track {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 1.5rem;
    }

    /* The existing mobile design already works perfectly with the "one card" philosophy */
    .slider-group {
        flex-direction: column;
        width: 85vw;
        /* box-shadow was already here, which is great */
    }

    .image-card {
        width: 100%;
        height: 65vw;
    }

    .text-card {
        width: 100%;
        padding: 2rem;
    }

    .section-header h2 {
        text-align: center;
    }
    .slider-controls-bottom {
        justify-content: center;
    }
}




/* REPLACE your entire previous portfolio CSS block with this */


/* ================================================= */
/*       4. PORTFOLIO SNAPSHOT SECTION (REVISED)     */
/*       (Rewritten for WFP-style card layout)       */
/* ================================================= */

.pf-snapshot-section {
    padding: 7rem 0;
}

.pf-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* The main card link element */
.pf-snapshot-card {
    display: flex; /* Use flexbox to stack image and content */
    flex-direction: column;

    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pf-snapshot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* The image part of the card */
.pf-snapshot-card-image {
    width: 100%;
    height: 280px; /* A fixed height for consistency */
    object-fit: cover;
}

/* The yellow content block */
.pf-snapshot-card-content {
    background-color: #E2B726; /* The requested yellow accent color */
    padding: 2rem;
    flex-grow: 1; /* Ensures all yellow boxes are the same height */
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    text-align: center;
}

.pf-snapshot-card-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .pf-snapshot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pf-snapshot-grid { grid-template-columns: 1fr; }
    .pf-snapshot-section { padding: 5rem 0; }
}









/* Add this new code to the END of assets/css/home.css */


/* ================================================= */
/*             5. TRUST SECTION                      */
/*         (Rewritten with alignment & font size)    */
/* ================================================= */

.trust-section {
    padding: 8rem 0;
    overflow: hidden; /* For animations */
}

.trust-grid {
    display: grid;
    /* This grid creates the core structure */
    grid-template-columns: 2fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

/* --- Column 1: Main Heading --- */
.trust-heading h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    /* --- FONT SIZE INCREASED --- */
    font-size: clamp(3rem, 7vw, 5rem); /* Increased the font size for more impact */
    color: #1a1a1a;
    line-height: 1.2;
    text-transform: uppercase;
    /* --- ALIGNMENT FIX --- */
    text-align: right; /* Aligns the text to the right, against the divider */
}

/* --- Column 2: Vertical Divider --- */
.trust-divider {
    background-color: #FFD100; /* Vibrant Yellow */
    width: 120px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 0;
}

.divider-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    /* This creates the vertical text effect */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* --- Column 3: Logo Galleries --- */
.trust-logos {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.logo-gallery {
    display: grid;
    /* Create a 2-column grid for the logos */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.logo-placeholder {
    background-color: #d1d1d1;
    aspect-ratio: 1 / 1; /* Makes it a perfect square */
    width: 100%;
}

/* --- TRUST SECTION RESPONSIVENESS --- */
@media (max-width: 992px) {
    .trust-grid {
        gap: 2rem;
        grid-template-columns: 1.5fr auto 1fr; /* Adjust ratios */
    }
    .trust-divider {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .trust-section {
        padding: 5rem 0;
    }

    .trust-grid {
        grid-template-columns: 1fr; /* Stack everything into a single column */
        gap: 3rem;
    }

    .trust-heading h2 {
        /* On mobile, we override the right-alignment for a centered look */
        text-align: center;
    }

    .trust-divider {
        display: none; /* Hide the vertical divider on mobile for simplicity */
    }

    /* We need titles for mobile since the divider is hidden */
    .trust-logos::before,
    .recognition-gallery::before {
        content: 'Partners'; /* Default content */
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 1rem;
        display: block;
    }
    .recognition-gallery::before {
        content: 'Recognitions'; /* Specific content for the second gallery */
    }
}