/* ==========================================================================
   Project: Rongo Artist Residency & BAABFest
   Description: Main Stylesheet
   Version: 1.1
   ========================================================================== */

/* Core Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

footer {
    scroll-margin-bottom: 20px;
}

/* Global Variables (Brand Palette) */
:root {
    --bg-color: #F9F7F2;
    --text-color: #1A1A1A;
    --accent-color:#3B5254;
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Typography Headers */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.center { 
    text-align: center; 
    display: block; 
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Reduced opacity and increased blur for a premium glassmorphism effect */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo img {
    height: 30px; /* Adjust this to make the header slimmer or taller */
    width: auto;
    display: block;
}

/* Ensure the nav links align with the center of the logo */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { 
    margin-left: 3rem; 
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

/* Modern underline animation on hover instead of jarring borders */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}
/* CTA: Sign Up Button Styling */
.signup a {
    border: 1px solid var(--accent-color);
    background-color: var(--accent-color);
    padding: 10px 24px;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Override the underline animation specifically for the Sign Up button */
.signup a::after {
    display: none;
}

.signup a:hover {
    background-color: white;
    color: var(--accent-color);
}

/* --- Dropdown System --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    /* Smooth fade and slide up animation instead of abrupt display: block */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dropdown link overrides */
.dropdown-content li {
    margin: 0 !important; 
    width: 100%;
}

.dropdown-content li a {
    padding: 10px 24px;
    text-align: left;
    display: block;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Remove underline strictly for dropdown links */
.dropdown-content li a::after {
    display: none;
}

.dropdown-content li a:hover {
    background-color: rgba(59, 82, 84, 0.05);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    top: 100%;
}

/* ==========================================================================
   HERO & BRAND ASSETS
   ========================================================================== */

/* Container stays as the "anchor" for your text */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center; 
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden; /* Important to hide slides moving outside */
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
/* Background Slider Container */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the text */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Your specific Gradient Overlay now sits on top of ALL slides */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 2; /* Between images and text */
}

/* Your existing Content remains untouched */
.hero-content {
    position: relative;
    z-index: 3; /* On very top */
    max-width: 750px;
    padding: 0 40px;
}

/* Keep your exact Subtitle, H1, and Description styles here... */
.hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: white; 
    font-weight: 600;
}
/* Button Variants */
.btn-primary {
    background: var(--text-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: 0.3s;
}

.btn-secondary {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/* Background/Placeholder Assets */
.image-placeholder {
    width: 100%;
    height: 600px;
    background: #e0ddd7; 
    border-radius: 2px;
}


/* --- Modern Rongo Footer Branding --- */
.rongo-footer {
    background-color: #F9F7F2; /* Cream Base */
    padding: 80px 10%;
    color: #3B5254; /* Slate Green from Logo */
}

.rongo-form .input-line {
    border-bottom: 1px solid #3B5254; /* Slate Green Line */
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
}

.rongo-form input {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    width: 100%;
    font-size: 1rem;
    color: #3B5254;
}

.rongo-form button {
    background: transparent;
    border: none;
    color: #3B5254;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding-left: 15px;
}

.rongo-form button:hover {
    color: #567476; /* Muted Slate Hover */
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    color: #3B5254;
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #567476;
}

/* ==========================================================================
   HOMEPAGE GALLERY SECTION
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}
.gallery-lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}
.gallery-section {
    background-color: var(--white);
    padding: 120px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-overlay { opacity: 1; }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   OUR TEAM SECTION
   ========================================================================== */
.team-section {
    background-color: var(--bg-color); /* Matches hero intro flow */
    padding: 120px 0;
}
.team-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 40px;
}
.team-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 30px 40px;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;    /* Firefox */
}
.team-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.team-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
}
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #eee;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ccc;
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
}
.team-card p {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
}
.team-btn {
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: 0.3s;
}
.team-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

@media (max-width: 992px) {
    .team-card { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 576px) {
    .team-card { flex: 0 0 100%; }
    .prev-btn, .next-btn { display: none; } /* Enforce native swipe on touch screens */
}

/* ==========================================================================
   PARTNERS MARQUEE SECTION
   ========================================================================== */
.partners-section {
    background-color: var(--white);
    padding: 60px 0 80px 0;
    overflow: hidden;
}
.partners-section .container {
    padding-bottom: 0;
    padding-top: 20px;
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-track {
    display: inline-flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px;
    vertical-align: middle;
}
.marquee-placeholder {
    width: 150px;
    height: 70px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s ease;
}
.marquee-placeholder:hover {
    background-color: #e5e5e5;
    color: var(--accent-color);
    border-color: var(--accent-color);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ==========================================================================
   MOBILE RESPONSIVE ADAPTATIONS (Breakpoint: 992px)
   ========================================================================== */

@media (max-width: 992px) {
    
    /* Layout  for Tablet/Mobile */
    .navbar, .hero, .philosophy, .disciplines {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
  
    /* 1. Mobile Side-Nav drawer */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%; /* Changed back to side drawer (75%) */
        background: rgba(249, 247, 242, 0.85); /* Beautiful cream frosted glass */
        box-shadow: -10px 0 30px rgba(0,0,0,0.15); /* Soft drawer shadow */
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        display: flex; /* EXPLICIT flex */
        flex-direction: column;
        justify-content: flex-start; /* Move links upwards */
        padding-top: 15vh; /* Add spacing so it sits slightly above center */
        align-items: center;
        margin: 0;
        transition: right 0.4s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active { 
        right: 0; 
    }
    
    .nav-links li { 
        margin: 8px 0 !important; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links li a {
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.95rem; /* Font reduced per request */
        color: var(--text-color) !important; /* Reverted back to dark slate text for the cream background */
    }

    /* Shrink the Sign Up button on mobile so it doesn't stretch across the screen */
    .nav-links li.signup a {
        display: inline-block !important;
        width: auto !important;
        padding: 10px 40px !important;
        border-radius: 30px !important; /* Make it a nice pill shape */
        margin-top: 10px;
        color: white !important;
    }

    /* FORCE HIDE all hover borders/lines on mobile */
    .nav-links a::after, .nav-links a:hover::after, .dropdown-content li a::after {
        display: none !important;
    }
    
    .nav-links a:hover {
        background: none !important;
        border: none !important;
        color: var(--accent-color) !important;
    }

    /* 2. Dropdown UI for Touch Devices */
    .dropdown {
        position: static !important;
        width: 100% !important;
    }

    .dropdown-content {
        visibility: hidden;
        opacity: 0;
        max-height: 0; 
        position: static !important; /* Must be static to push elements down */
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content.open {
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 500px !important; /* Enough height to show all links */
        padding: 10px 0 !important;
    }

    /* Force mobile dropdown text to center */
    .dropdown-content li {
        margin: 5px 0 !important;
    }

    .dropdown-content li a {
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 1rem !important; /* Slightly smaller than main links */
        color: #555 !important;
    }

    /* Hamburger Menu Icon */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2000;
        padding: 10px;
    }

    .bar {
        width: 30px;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger Active State Animations */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Hero & Slider Scaling */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }


    .hero h1 { 
        font-size: 2.3rem; 
    }

    .hero-btns { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }

    .btn-primary { 
        width: 100%; 
        max-width: 320px; 
        margin: 0 auto; 
    }

    .carousel-container {
        width: calc(100% + 40px); 
        margin-left: -20px;
        height: 350px;
        overflow: hidden;
        position: relative;
        margin-top: 30px;
    }

    .carousel-slide {
        display: flex;
        width: 300%;
        height: 100%;
        transition: transform 0.8s ease-in-out;
    }

    .slide-img {
        width: 33.333%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }
}

/* ==========================================================================
   ABOUT US CONSOLIDATED STYLES
   ========================================================================== */

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes float-subtle {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* Intro Section */
.about-intro-section {
    background-color: var(--white);
    padding: 120px 0;
}
.intro-lead {
    font-size: 1.6rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: center;
    font-style: italic;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.intro-body {
    column-count: 2;
    column-gap: 50px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}
.intro-body p {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    text-align: justify;
}

@media (max-width: 768px) {
    .intro-body {
        column-count: 1;
    }
    .intro-body p {
        text-align: left;
    }
}

/* Mission & Vision Section */
.mission-vision-section {
    background-color: var(--bg-color); /* F9F7F2 */
    padding: 120px 0;
}
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.mv-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}
.mv-card:hover {
    transform: translateY(-5px);
}
.mv-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}
.mv-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.mv-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}
.vision-mantra {
    font-weight: 600;
    margin-top: 20px;
    color: var(--accent-color);
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .mv-grid { grid-template-columns: 1fr; }
    .mv-card p { text-align: left; }
}

/* Our Work Section */
.our-work-section {
    background-color: var(--white);
    padding: 120px 0;
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.work-card {
    background: var(--bg-color);
    padding: 35px 30px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}
.work-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.work-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    line-height: 1.4;
}
.work-card p {
    color: #555;
    line-height: 1.6;
    text-align: justify;
}
.work-list {
    list-style: none;
    margin: 15px 0;
}
.work-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}
.work-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.8rem;
}
.work-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgba(60, 83, 85, 0.15); /* Subtle accent color */
    margin-bottom: 10px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .work-card p { text-align: left; }
}

/* Flagship Platforms */
.platforms-section {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 120px 0;
}
.platforms-section .section-title {
    color: var(--white);
}
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.platform-card {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    color: var(--white);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    transition: 0.3s;
}
.platform-card:hover {
    transform: scale(1.02);
}
.platform-content {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}
.platform-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}
.platform-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    text-align: justify;
}
@media (max-width: 992px) {
    .platform-grid { grid-template-columns: 1fr; }
    .platform-content p { text-align: left; }
}

/* Impact Section */
.impact-section {
    background-color: var(--bg-color);
    padding: 120px 0;
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.impact-stat {
    padding: 30px 15px;
}
.impact-number {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.impact-number i {
    font-size: 3.5rem;
    display: inline-block;
    animation: float-subtle 4s ease-in-out infinite alternate;
}
.impact-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    line-height: 1.4;
    display: block;
}
@media (max-width: 992px) {
    .impact-grid { grid-template-columns: 1fr 1fr; gap: 40px;}
}
@media (max-width: 576px) {
    .impact-grid { grid-template-columns: 1fr; }
    .impact-number { font-size: 3.5rem; }
}

/* ==========================================================================
   SCROLL REVEAL (Float In Up)
   ========================================================================== */
@keyframes floatInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-start {
    opacity: 0; /* Keep them invisible until they intersect */
}

.floating-in {
    animation: floatInUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Success Page */
.success-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF9F6; /* var(--bg-color) fallback */
    text-align: center;
    padding: 20px;
}
.success-content {
    max-width: 600px;
}
.success-icon {
    font-size: 5rem;
    color: #3C5355; /* var(--accent-color) fallback */
    margin-bottom: 2rem;
    display: block;
    animation: success-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3C5355;
}
.success-content p {
    font-size: 1.1rem;
    color: rgba(60, 83, 85, 0.7);
    margin-bottom: 2.5rem;
}
.btn-home {
    background-color: #3C5355;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(60, 83, 85, 0.3);
}

@keyframes success-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}