/* ========================================= */
/* CINEMATIC HERO SECTION                    */
/* ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Push content to the left */
    overflow: hidden;
}

.hero-bg-layers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

/* 1. Video Layer */
.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 2. Image Slide Layer */
.hero-images {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth cinematic crossfade */
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate var(--ease-out);
}

/* 3. Gradient Layer (Updated for left-aligned text legibility) */
.hero-gradient-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(31, 31, 27, 0.95) 0%, rgba(31, 31, 27, 0.7) 40%, rgba(31, 31, 27, 0.2) 100%);
    z-index: 3;
}

/* 4. Texture Layer */
.hero-texture-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    z-index: 4;
    pointer-events: none;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Left-Aligned Content & Medium Typography */
.hero-content {
    position: relative;
    z-index: 5;
    color: var(--color-white);
    max-width: 1000px; /* Constrain width for left alignment */
    margin-left: 5%; /* Add slight margin from the edge */
    margin-top: 10vh; /* Slightly raise the content for better vertical balance */
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-md);
}

/* Medium sized font instead of massive cinematic */
.hero-title .line {
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(100%);
    animation: revealLine 1.2s var(--ease-premium) forwards;
}

.hero-title .delay-1 { animation-delay: 0.15s; }
.hero-title .delay-2 { animation-delay: 0.3s; }

.hero-subtitle {
    max-width: 500px; /* Keep lines readable */
    margin-bottom: var(--space-lg);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-premium) 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-premium) 0.9s forwards;
    display: flex;
    gap: var(--space-sm);
}

@keyframes revealLine {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator (Move to bottom right so it doesn't overlap left text) */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg); 
    left: auto; /* Override default center */
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
}

/* ... rest of home.css remains the same ... */

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ========================================= */
/* COMMUNITY IMPACT SECTION                  */
/* ========================================= */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.counter {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--color-forest);
    line-height: 1;
}

.counter-suffix {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    color: var(--color-leaf);
}

.impact-label {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-clay);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================= */
/* PROGRAMS PREVIEW                          */
/* ========================================= */
.program-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.program-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-mid), background var(--transition-fast);
}

.program-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
}

.card-image-wrap {
    height: 250px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--space-md);
    margin-bottom: 2rem;
}

.card-content .heading-3 {
    margin-bottom: var(--space-xs);
}

.card-content .body-text {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

/* ========================================= */
/* IMMERSIVE GALLERY SHOWCASE                */
/* ========================================= */
.immersive-grid {
    position: relative;
    height: 80vh;
    max-height: 800px;
    margin-top: var(--space-lg);
    perspective: 1000px;
}

.gallery-card {
    position: absolute;
    width: 30%;
    min-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid), filter var(--transition-mid);
    transform-style: preserve-3d;
    cursor: pointer;
}

.gallery-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card-1 { top: 5%; left: 5%; z-index: 4; height: 60%; }
.card-2 { top: 15%; right: 5%; z-index: 3; height: 55%; }
.card-3 { bottom: 5%; left: 25%; z-index: 2; height: 50%; }
.card-4 { bottom: 10%; right: 25%; z-index: 1; height: 45%; }

.gallery-card:hover {
    z-index: 10 !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.immersive-grid.has-hover .gallery-card:not(:hover) {
    filter: brightness(0.6) blur(2px);
    transform: scale(0.98) !important;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 184, 75, 0.4) 0%, transparent 60%);
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.gallery-card:hover .card-glow {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gallery-card:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================= */
/* STRICT 50/50 SPLIT FOR FUTURE LEADERS     */
/* ========================================= */
.future-leaders .grid-2-col {
    grid-template-columns: 1fr 1fr; /* Force exact 50/50 split */
    gap: 4rem; /* Premium spacious gap */
}

.future-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text next to image */
}

.future-slideshow {
    width: 100%; /* Force image container to take full 50% width */
    height: 100%; /* Force it to match the height of the text column */
    min-height: 500px; /* Ensure a good minimum height so it doesn't collapse */
    aspect-ratio: auto; /* Override the previous 4/5 ratio so it stretches to fit */
}

.future-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container without squishing */
    object-position: center 20%; /* Slightly raises the focus point for portraits */
}

/* ========================================= */
/* FUTURE LEADERS AUTO-ROTATING SLIDESHOW    */
/* ========================================= */
.future-slideshow {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* Elegant portrait ratio */
}

.future-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Smooth cinematic crossfade */
    z-index: 1;
}

.future-slide.active {
    opacity: 1;
    z-index: 2;
}

.future-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Subtle Ken Burns zoom effect on the active slide */
    transform: scale(1);
    transition: transform 6s ease-out;
}

.future-slide.active img {
    transform: scale(1.05); 
}



/* ========================================= */
/* PERFECT VERTICAL RHYTHM FOR FUTURE TEXT   */
/* ========================================= */

.future-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Overline: Tight connection to the headline below it */
.future-text .overline {
    margin-bottom: 1.25rem; 
}

/* Headline: Good breathing room before the paragraph */
.future-text .heading-2 {
    margin-bottom: 2rem;
    color: bisque; 
}

/* Body Text: Generous cinematic space before the button */
.future-text .body-text {
    margin-bottom: 3rem; 
    max-width: 480px; /* Keeps the line length readable and elegant */
}

/* Align button to the left edge of the text block */
.future-text .btn {
    align-self: flex-start; 
}

/* Add to the bottom of your /css/home.css file */

/* Premium touch-friendly caption backdrop */
@media (hover: none) {
    .gallery-caption {
        background: rgba(31, 31, 27, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        border-radius: 6px;
        bottom: var(--space-sm) !important;
        left: var(--space-sm) !important;
    }
}

/* ========================================= */
/* MISSION & VISION - PERFECT VERTICAL RHYTHM */
/* ========================================= */

.mission-vision .reveal-up {
    display: flex;
    flex-direction: column;
    align-items: center; /* Forces centered layout for the flex column */
}

/* Space between Overline and Heading */
.mission-vision .overline {
    margin-bottom: 1.5rem; 
}

/* Generous cinematic space between Heading and Paragraph */
.mission-vision .heading-1 {
    margin-bottom: 3rem; 
}

/* Tighter paragraph width for elegant reading and better center balance */
.mission-vision .body-text {
    max-width: 650px; /* Reduced from 800px for a more premium, concise look */
    text-align: center; 
    margin-left: auto;
    margin-right: auto;
}
