/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Modern vibrant color palette */
    --primary: #00D9A3;
    --primary-dark: #00B386;
    --primary-light: #E0FFF9;
    --secondary: #FF6B6B;
    --secondary-dark: #EE5A52;
    --accent: #4ECDC4;
    --accent-purple: #9B59B6;
    --accent-blue: #3498DB;
    
    /* Neutral colors */
    --dark: #1A202C;
    --gray-900: #2D3748;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-100: #EDF2F7;
    --white: #FFFFFF;
    --bg: #F7FAFC;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px 0 rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 30px 60px 0 rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9A3 0%, #4ECDC4 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B6B 0%, #FFB88C 100%);
    --gradient-dark: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    
    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
    font-size: 1.0625rem;
    line-height: 1.75;
}

section {
    padding: 6rem 0;
    margin: 0 auto;
    max-width: 1320px;
    padding: 6rem 2rem;
}

/* --- Utility Classes --- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-700);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: var(--dark);
    color: var(--white) !important;
    padding: 1.125rem 2.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white) !important;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button.primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgba(0, 217, 163, 0.35);
}

.cta-button.primary::before {
    background: var(--dark);
}

.cta-button.primary:hover {
    box-shadow: 0 8px 30px rgba(0, 217, 163, 0.45);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--dark) !important;
    border: 2px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.cta-button.secondary::before {
    background: var(--dark);
}

.cta-button.secondary:hover {
    border-color: var(--dark);
    color: var(--white) !important;
    box-shadow: var(--shadow-lg);
}

.cta-button.outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 217, 163, 0.3);
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    color: var(--dark);
    padding: 1.25rem 2rem;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gray-100);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: transform var(--transition-base);
}

nav .logo a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

nav .logo:hover {
    transform: scale(1.03);
}

nav .logo img {
    height: 55px;
    width: auto;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

nav .logo span {
    font-size: 1.625rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    position: relative;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--dark);
    background: var(--gray-100);
}

.nav-links a.active {
    color: var(--white);
    background: var(--dark);
    font-weight: 600;
}

.nav-links a.active:hover {
    background: var(--gray-900);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: var(--primary-green-light);
    border: none;
    color: var(--primary-green);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--primary-green);
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        gap: 0.25rem;
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }
}


/* --- Hero Section --- */
.hero {
    background: var(--white);
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 1.75rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1875rem, 2.5vw, 1.5rem);
    margin-bottom: 3rem;
    color: var(--gray-700);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* --- Impact Stats Section --- */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 6rem 2rem;
    background: var(--bg);
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
}

.impact-stats h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border: none;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.stat-card:hover::before {
    opacity: 0.03;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-family: var(--font-heading);
    transition: transform var(--transition-base);
    position: relative;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
}

/* --- How It Works Section --- */
.how-it-works {
    background: var(--white);
}

.how-it-works .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.step-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    border: 2px solid var(--gray-100);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.step-card .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.step-card:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.08);
}

.step-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card p {
    color: var(--gray-700);
    line-height: 1.75;
    font-size: 1.0625rem;
}

/* --- About Us Page - New Sections from Proposal --- */
.about-intro-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.about-intro-section .container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
}

.about-intro-image img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.about-intro-image img:hover {
    transform: scale(1.01);
}

.about-intro-text h2 {
    color: var(--dark);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--gray-700);
}

.about-intro-text .tagline {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: var(--primary-light);
    border-left: 6px solid var(--primary);
    border-radius: var(--radius-lg);
}

.about-intro-text .tagline p {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--dark);
    font-weight: 500;
}

.about-intro-text .tagline p:last-child {
    margin-bottom: 0;
}

.about-statement-section {
    background-color: var(--primary-green);
    color: white;
    padding: 3rem 20px;
}

.about-statement-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.4;
}

.what-we-do-section {
    padding: 6rem 2rem;
    background: var(--bg);
}

.what-we-do-section h2 {
    color: var(--dark);
    margin-bottom: 3rem;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.what-we-do-item {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-100);
}

.what-we-do-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.what-we-do-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.75rem;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--white);
    transition: all var(--transition-base);
}

.what-we-do-item:hover .icon {
    transform: scale(1.08) rotate(-5deg);
    background: var(--secondary-dark);
}

.what-we-do-item h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0;
    font-weight: 700;
}

.past-initiatives-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.past-initiatives-section h2 {
    color: var(--dark);
    margin-bottom: 3rem;
}

.past-initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.initiative-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-100);
}

.initiative-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.initiative-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform var(--transition-slow);
    background: var(--gray-50);
    padding: 0.5rem;
}

.initiative-card:hover img {
    transform: scale(1.03);
}

.initiative-card p {
    padding: 1.75rem;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-weight: 500;
}

/* Responsive adjustments for new About Us sections */
@media (min-width: 768px) {
    .about-intro-section .container {
        flex-direction: row;
        align-items: flex-start; /* Align items to the top */
    }
    .about-intro-image {
        flex: 0 0 40%; /* Image takes about 40% width */
    }
    .about-intro-text {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .about-intro-text h2 {
        font-size: 2.2rem;
    }
    .about-statement-section h2 {
        font-size: 1.6rem;
    }
    .what-we-do-section h2,
    .past-initiatives-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .what-we-do-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Allow smaller items */
    }
    .what-we-do-item .icon {
        font-size: 2.5rem;
    }
    .what-we-do-item h3 {
        font-size: 1.1rem;
    }
    .past-initiatives-grid {
        grid-template-columns: 1fr; /* Stack initiative cards */
    }
}

/* --- Donation Page Specifics --- */
.donation-section {
    text-align: center;
    background: linear-gradient(to bottom right, var(--primary-green) 0%, #66bb6a 100%);
    color: white;
    padding: 6rem 20px;
    border-radius: 10px;
    margin: 4rem auto;
    max-width: 800px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.donation-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.donation-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.donation-section img {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    border: 5px solid white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.donation-section .cta-button {
    background: var(--secondary-orange);
    font-size: 1.2rem;
    padding: 15px 40px;
}
.donation-section .cta-button:hover {
    background: #e64a19;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer-section a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    color: var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 1.125rem;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 217, 163, 0.4);
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

footer .container {
    max-width: 1320px;
    margin: 0 auto;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

footer .social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

footer .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 217, 163, 0.4);
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
    .about-section {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .about-image {
        order: -1; /* Image appears first on mobile */
        margin-bottom: 2rem;
    }
    .mission-cards .card {
        flex-basis: calc(50% - 15px); /* 2 cards per row */
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        min-height: calc(100vh - 80px);
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 4rem 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .how-it-works .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .department-header {
        padding: 1.5rem;
    }
    
    .department-info {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .department-icon {
        font-size: 2rem;
    }
    
    .department-info h3 {
        font-size: 1.25rem;
    }
    
    .member-count {
        margin-left: 0;
    }
    
    .department-content {
        padding: 0 1.5rem;
    }
    
    .past-initiatives-grid,
    .mission-cards,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .what-we-do-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .ai-scan-section {
        padding: 3rem 2rem;
        margin: 2rem 1rem;
    }
    
    .physical-donation-fallback {
        padding: 3.5rem 2rem;
        margin-top: 3rem;
    }
    
    nav .logo span {
        font-size: 1.375rem;
    }
    
    nav .logo img {
        height: 42px;
    }
    
    header {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    nav .logo span {
        font-size: 1.25rem;
    }
    
    nav .logo img {
        height: 38px;
    }
    
    header {
        padding: 0.875rem 1rem;
    }
    
    .hero {
        min-height: calc(100vh - 70px);
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.15;
    }
    
    .hero p {
        font-size: 1.0625rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 2.5rem 2rem;
    }
    
    .cta-button {
        padding: 0.9375rem 1.875rem;
        font-size: 1rem;
    }
    
    .what-we-do-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card .icon,
    .value-item .icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .what-we-do-item .icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    section {
        padding: 3.5rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.0625rem;
    }
    
    .ai-scan-section {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0.5rem;
    }
    
    .physical-donation-fallback {
        padding: 3rem 1.5rem;
    }
    
    footer {
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    footer .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}
/* --- AI Scan Feature Styles (New Additions) --- */
.ai-scan-section {
    text-align: center;
    padding: 4rem 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    margin: 3rem auto;
    max-width: 950px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
}

.ai-scan-section h2 {
    color: var(--dark);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.ai-scan-section > p {
    font-size: 1.0625rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-700);
    line-height: 1.75;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px; /* Standard webcam width */
    margin: 2rem auto;
    border: 3px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
    background-color: #000; /* Black background when camera is off */
    display: none; /* Hidden by default, shown when camera is active */
}

.video-container.active {
    display: block;
}

#camera-feed {
    width: 100%;
    height: auto;
    display: block; /* Ensure video takes up space */
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px dashed var(--secondary-orange);
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-orange);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

#scan-result {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    min-height: 30px; /* Reserve space for result */
}

/* Responsive adjustments for AI Scan section */
@media (max-width: 768px) {
    .ai-scan-section h2 {
        font-size: 2rem;
    }
    .ai-scan-section p {
        font-size: 1rem;
    }
}

/* --- Team Section --- */
.team-section {
    padding: 6rem 2rem;
    background: var(--bg);
}

.team-section h2 {
    color: var(--dark);
}

.team-section > p {
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-700);
}

.departments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.department-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.department-card:hover {
    box-shadow: var(--shadow-xl);
}

.department-header {
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
}

.department-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.department-icon {
    display: none;
}

.department-info h3 {
    font-size: 1.75rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.member-count {
    display: none;
}

.toggle-icon {
    display: none;
}

.department-content {
    padding: 0 2.5rem;
}

.department-content .team-grid {
    padding: 2rem 0;
}

.founder-grid {
    max-width: 500px;
    margin: 0 auto;
}

.key-persons-grid {
    max-width: 900px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-100);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.team-member-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-light);
    transition: all var(--transition-base);
    background: var(--gray-50);
    padding: 0.25rem;
}

.team-member-card img.team-photo--cover {
    object-fit: cover;
    object-position: 50% 30%;
    padding: 0;
    transform: scale(1.22);
}

.team-member-card:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.team-member-card:hover img.team-photo--cover {
    transform: scale(1.28);
}

.team-member-card h3 {
    color: var(--dark);
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-member-card .member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.team-member-card .member-bio {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.team-member-card .social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-member-card .social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.team-member-card .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive adjustments for Team Section */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr; /* Tumpuk kartu di layar kecil */
    }
}
/* =================================== */
/* == CSS UNTUK HALAMAN DONASI V2 == */
/* =================================== */

.donation-section-v2 {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9; /* Sedikit warna latar belakang */
}

.donation-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.donation-title p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.live-classifier {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden; /* Agar video tidak keluar dari border-radius */
    margin-bottom: 20px;
    background-color: #000;
}

#video-feed {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1); /* Efek cermin, lebih intuitif untuk pengguna */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Agar tidak bisa diklik saat tersembunyi */
}

.overlay-content .overlay-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.classifier-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.classifier-controls .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-card-default,
.result-card-good,
.result-card-bad,
.result-card-neutral {
    border-radius: 10px;
    padding: 20px;
    transition: all 0.4s ease;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 5px solid;
}

.result-card-default {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #555;
}

/* Style untuk hasil "Bagus" */
.result-card-good {
    background-color: #e8f5e9; /* Hijau muda */
    border-color: #4CAF50; /* Hijau tua */
    color: #2e7d32;
}

/* Style untuk hasil "Jelek" */
.result-card-bad {
    background-color: #ffebee; /* Merah muda */
    border-color: #f44336; /* Merah tua */
    color: #c62828;
}

/* Style untuk status netral/menganalisis */
.result-card-neutral {
    background-color: #e3f2fd; /* Biru muda */
    border-color: #2196F3; /* Biru tua */
    color: #1565c0;
}

#result-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

#result-content p {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

#result-content small {
    font-size: 0.9rem;
    color: #666;
}

/* Animasi Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f; /* Warna spinner */
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- Modern Mission Cards --- */
.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mission-cards .card {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid var(--gray-100);
    text-align: center;
    overflow: hidden;
}

.mission-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.mission-cards .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
}

.mission-cards .card h3 {
    font-size: 1.375rem;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
    padding: 0 1.5rem;
    font-weight: 700;
}

.mission-cards .card p {
    color: var(--gray-700);
    line-height: 1.7;
    padding: 0 1.5rem 1.75rem;
    margin: 0;
}

/* --- Values Section --- */
.values-section {
    background: var(--bg);
    padding: 6rem 2rem;
}

.values-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.values-section > p {
    color: var(--gray-700);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid var(--gray-100);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.value-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.75rem;
    background: var(--accent-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--white);
    transition: all var(--transition-base);
}

.value-item:hover .icon {
    transform: scale(1.08);
    background: #2980B9;
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.value-item p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* --- About Statement Section --- */
.about-statement-section {
    background: var(--dark);
    color: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-statement-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 163, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-statement-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* --- Physical Donation Fallback --- */
.physical-donation-fallback {
    background: var(--bg);
    padding: 5rem 2rem;
    border-radius: var(--radius-xl);
    margin-top: 4rem;
}

.physical-donation-fallback h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.physical-donation-fallback p {
    font-size: 1.0625rem;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto 1.25rem;
    line-height: 1.75;
}

/* --- Smooth Scroll Bar --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* --- Selection Styling --- */
::selection {
    background: var(--primary-green);
    color: white;
}

::-moz-selection {
    background: var(--primary-green);
    color: white;
}

/* --- Focus Visible for Accessibility --- */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* --- Loading States --- */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* --- Badge Component --- */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.secondary {
    background: #fef3c7;
    color: var(--secondary-orange);
}

/* --- AI Mode Toggle & Camera Styles --- */
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-body);
}

.mode-btn:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.mode-btn.active:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.scan-mode {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Camera Container */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 480px;
    margin: 0 auto 2rem;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

#videoFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#cameraCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 32, 44, 0.8);
    color: var(--white);
    text-align: center;
    transition: all var(--transition-base);
    z-index: 1;
}

.camera-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.camera-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.camera-overlay p {
    font-size: 1.125rem;
    color: var(--gray-300);
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Detection Status */
.detection-status {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    background: var(--bg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.detection-status p {
    margin: 0;
    font-weight: 500;
    color: var(--gray-700);
}

#statusText {
    font-weight: 600;
    color: var(--primary);
}

/* Responsive Camera */
@media (max-width: 768px) {
    .camera-container {
        height: 320px;
        margin-bottom: 1.5rem;
    }
    
    .mode-toggle {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mode-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
    }
}

