/* ================================================================
   SHE CAN FOUNDATION — STYLESHEET
   ---------------------------------------------------------------
   Table of Contents
   1.  Design Tokens (CSS Custom Properties) — Light & Dark themes
   2.  Modern CSS Reset
   3.  Base Typography & Utilities
   4.  Buttons & Reusable Components
   5.  Layout: Container & Section
   6.  Navbar
   7.  Hero Section
   8.  About Section
   9.  Impact Section (stats)
   10. Initiatives Section
   11. Gallery Section
   12. Call To Action Section
   13. Footer
   14. Back To Top Button
   15. Scroll Reveal Animations
   16. Responsive Breakpoints (Tablet & Mobile)
   17. Reduced Motion & Accessibility
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
    /* Brand palette */
    --pink-500: #e84a7f;       /* Primary brand */
    --pink-600: #d62b6a;
    --pink-50:  #fdeaf1;
    --purple-500: #7c4dff;
    --purple-600: #6a35f0;
    --purple-50:  #efe9ff;
    --amber-400: #ffb547;
    --teal-400:  #2dd4bf;

    /* Light theme surfaces */
    --bg: #ffffff;
    --bg-soft: #faf7fb;
    --bg-alt: #f4f0f8;
    --surface: #ffffff;
    --surface-2: #f8f5fb;

    /* Text */
    --text: #1c1230;
    --text-muted: #5b5570;
    --text-faint: #8a8499;
    --heading: #150b2a;

    /* Borders & shadows */
    --border: #ece6f1;
    --border-strong: #ddd4e8;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(28, 18, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(28, 18, 48, 0.08);
    --shadow-lg: 0 20px 50px rgba(28, 18, 48, 0.12);
    --shadow-pink: 0 12px 30px rgba(232, 74, 127, 0.28);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e84a7f 0%, #7c4dff 100%);
    --gradient-soft: linear-gradient(135deg, #fdeaf1 0%, #efe9ff 100%);
    --gradient-hero: linear-gradient(160deg, #fdeaf1 0%, #f4ecff 45%, #eaf7ff 100%);

    /* Typography */
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing & layout */
    --container: 1200px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.3s var(--ease);
}

/* Dark theme overrides */
[data-theme="dark"] {
    --bg: #0f0a1e;
    --bg-soft: #15102a;
    --bg-alt: #1a1333;
    --surface: #1a1333;
    --surface-2: #221a3f;

    --text: #e8e2f5;
    --text-muted: #b0a8c8;
    --text-faint: #7e7699;
    --heading: #ffffff;

    --border: #2a2148;
    --border-strong: #3a2f5c;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);

    --gradient-soft: linear-gradient(135deg, #2a1840 0%, #1f1840 100%);
    --gradient-hero: linear-gradient(160deg, #1a1333 0%, #1f1840 45%, #15102a 100%);
}


/* ================================================================
   2. MODERN CSS RESET
   ================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* offset for sticky navbar */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

svg {
    flex-shrink: 0;
}

:focus-visible {
    outline: 3px solid var(--purple-500);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ================================================================
   3. BASE TYPOGRAPHY & UTILITIES
   ================================================================ */
h1, h2, h3, h4 {
    color: var(--heading);
    line-height: 1.2;
    font-weight: 700;
}

/* Container: centers content and caps width */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Reusable section wrapper */
.section {
    padding: 96px 0;
    position: relative;
}

/* Section heading block */
.section-head {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Eyebrow: small label above headings */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink-600);
    background: var(--pink-50);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

[data-theme="dark"] .eyebrow {
    color: #ff8bb0;
    background: rgba(232, 74, 127, 0.14);
}

.eyebrow-light {
    color: #ffe4ee;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

/* Gradient text utility */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-light {
    background: linear-gradient(135deg, #ffe4ee 0%, #d9c8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* ================================================================
   4. BUTTONS & REUSABLE COMPONENTS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background-color 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
    border: 2px solid transparent;
    will-change: transform;
}

.btn svg {
    transition: transform 0.25s var(--ease);
}

/* Primary: gradient fill */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(232, 74, 127, 0.38);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Secondary: subtle surface */
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--pink-500);
    color: var(--pink-600);
    box-shadow: var(--shadow-md);
}

/* Small variant */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* White button (on dark CTA) */
.btn-white {
    background: #fff;
    color: var(--pink-600);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.btn-white:hover svg {
    transform: scale(1.15);
}

/* Outline on dark */
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-3px);
}


/* ================================================================
   5. NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s var(--ease), background-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 10, 30, 0.7);
}

/* Shrink + shadow when scrolled */
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 10, 30, 0.92);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-pink);
    transition: transform 0.3s var(--ease);
}

.nav-logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.05);
}

.logo-text {
    color: var(--heading);
}

.logo-accent {
    color: var(--pink-500);
    margin-left: 6px;
}

/* Nav list */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.25s var(--ease);
}

/* Animated underline */
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Nav actions cluster */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s var(--ease);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--pink-500);
    color: var(--pink-600);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--heading);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    margin-inline: auto;
}

/* Hamburger becomes an X when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ================================================================
   6. HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    padding: 160px 0 140px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Decorative animated blobs */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 14s ease-in-out infinite;
}

.blob-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #ffb3cd, transparent 70%);
    top: -80px; right: -60px;
}
.blob-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #c4b5fd, transparent 70%);
    bottom: -100px; left: -80px;
    animation-delay: -4s;
}
.blob-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #a5f3fc, transparent 70%);
    top: 40%; left: 45%;
    animation-delay: -8s;
}

[data-theme="dark"] .blob { opacity: 0.35; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 34px;
    line-height: 1.75;
}

.hero-subtitle strong {
    color: var(--pink-600);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* Trust stats under hero */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 6px;
    font-weight: 500;
}

/* Hero media */
.hero-media {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--surface);
    aspect-ratio: 4 / 5;
    transform: rotate(1.5deg);
    transition: transform 0.4s var(--ease);
}

.hero-image-wrap:hover {
    transform: rotate(0) scale(1.01);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating badge on hero image */
.hero-badge {
    position: absolute;
    bottom: 24px;
    left: -28px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.hero-badge-emoji {
    font-size: 1.5rem;
}

.hero-badge strong {
    display: block;
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-badge small {
    color: var(--text-faint);
    font-size: 0.78rem;
}

/* Wave divider at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 90px;
    fill: var(--bg);
}


/* ================================================================
   7. ABOUT SECTION
   ================================================================ */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
                border-color 0.35s var(--ease);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.about-intro {
    background: var(--gradient-soft);
    border-color: transparent;
}

.about-card-title {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.97rem;
    line-height: 1.7;
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-pink);
    margin-bottom: 20px;
}

.check-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.check-list li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* ================================================================
   8. IMPACT SECTION (statistics)
   ================================================================ */
.impact {
    background: var(--bg-soft);
    position: relative;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

/* Decorative top gradient bar that slides in on hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-soft);
    color: var(--pink-600);
    margin-bottom: 18px;
    transition: transform 0.4s var(--ease);
}

[data-theme="dark"] .stat-icon {
    color: #ff8bb0;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-6deg);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-faint);
}


/* ================================================================
   9. INITIATIVES SECTION
   ================================================================ */
.initiatives {
    background: var(--bg);
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.initiative-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    overflow: hidden;
}

/* Gradient glow that appears on hover */
.initiative-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(50px);
    transition: opacity 0.5s var(--ease);
}

.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.initiative-card:hover::after {
    opacity: 0.15;
}

.initiative-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--gradient-soft);
    color: var(--pink-600);
    margin-bottom: 24px;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease),
                color 0.4s var(--ease);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .initiative-icon {
    color: #ff8bb0;
}

.initiative-card:hover .initiative-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-4px) rotate(-8deg);
    box-shadow: var(--shadow-pink);
}

.initiative-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.initiative-card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.initiative-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--pink-600);
    position: relative;
    z-index: 1;
    transition: gap 0.3s var(--ease);
}

[data-theme="dark"] .initiative-link {
    color: #ff8bb0;
}

.initiative-link:hover {
    gap: 12px;
}

.initiative-link svg {
    transition: transform 0.3s var(--ease);
}


/* ================================================================
   10. GALLERY SECTION
   ================================================================ */
.gallery {
    background: var(--bg-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

/* Gradient overlay that fades in */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124, 77, 255, 0.85) 0%, rgba(232, 74, 127, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 1;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 20px;
    left: 22px;
    right: 22px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================================
   11. CALL TO ACTION SECTION
   ================================================================ */
.cta-section {
    padding: 80px 0;
    background: var(--bg);
}

.cta-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 72px 48px;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

/* Gradient background layer */
.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -2;
}

/* Decorative pattern overlay */
.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
    z-index: -1;
}

.cta-content {
    max-width: 720px;
    margin: 0 auto;
    color: #fff;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 18px;
}

.cta-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 34px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ================================================================
   12. FOOTER
   ================================================================ */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 18px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 320px;
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 18px;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 11px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.94rem;
    transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--pink-600);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-contact svg {
    color: var(--pink-500);
    margin-top: 3px;
}

.footer-contact a:hover {
    color: var(--pink-600);
}

/* Social links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-pink);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.88rem;
}

.footer-credits {
    margin-top: 4px;
    font-size: 0.8rem;
    opacity: 0.7;
}


/* ================================================================
   13. BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                visibility 0.3s var(--ease);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
}


/* ================================================================
   14. SCROLL REVEAL ANIMATIONS
   ================================================================ */
/* Elements start hidden + offset; .visible triggers entrance */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================================
   15. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ---- Tablet (≤ 992px) ---- */
@media (max-width: 992px) {
    .section {
        padding: 72px 0;
    }

    /* Hide desktop nav; show hamburger */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 28px 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--surface-2);
        color: var(--pink-600);
    }

    .hamburger {
        display: flex;
    }

    .nav-donate {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 130px 0 120px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-media {
        order: 1;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-badge {
        left: 0;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro {
        grid-column: 1 / -1;
    }

    /* Impact */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Initiatives */
    .initiatives-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---- Mobile (≤ 600px) ---- */
@media (max-width: 600px) {
    .container {
        padding-inline: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 44px;
    }

    .hero {
        padding: 120px 0 100px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    /* Buttons stack full-width on mobile hero */
    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-card {
        padding: 52px 22px;
    }

    .cta-actions .btn {
        flex: 1 1 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Back to top smaller / closer to edge */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 18px;
        right: 18px;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* ---- Small mobile (≤ 380px) ---- */
@media (max-width: 380px) {
    .nav-logo .logo-mark {
        width: 36px;
        height: 36px;
    }
}


/* ================================================================
   16. REDUCED MOTION & ACCESSIBILITY
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .blob {
        animation: none;
    }
}

/* Overlay to dim background when mobile menu is open */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
