/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Framer-inspired color palette */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #0066ff;
    --accent-blue-glow: #0066ff40;
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --border-color: #2a2a2a;
    --hover-bg: #2a2a2a;
    --gradient-blue: linear-gradient(135deg, #0066ff, #00d4ff);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #0066ff);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(0, 102, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Fireworks Entrance Animation */
.entrance-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: entranceFadeOut 0.5s ease-in-out 6s forwards;
}

.entrance-animation.hidden {
    display: none;
}

@keyframes entranceFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Mini Fireworks - Shooting Lines */
.mini-firework {
    position: absolute;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background: linear-gradient(to top, var(--accent-blue), transparent);
    border-radius: 1px;
    opacity: 0;
    animation: miniFireworkLaunch 1.2s ease-out forwards;
    z-index: 10;
    transform-origin: bottom center;
}

.mini-firework-1 { left: 30%; animation-delay: 0s; --rotation: -30deg; }
.mini-firework-2 { left: 70%; animation-delay: 0s; --rotation: 30deg; }
.mini-firework-3 { left: 25%; animation-delay: 0.6s; --rotation: -20deg; }
.mini-firework-4 { left: 75%; animation-delay: 0.6s; --rotation: 25deg; }
.mini-firework-5 { left: 50%; animation-delay: 1.2s; --rotation: 0deg; }

@keyframes miniFireworkLaunch {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0) rotate(var(--rotation, 0deg));
    }
    10% {
        opacity: 1;
        transform: translateY(-40px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    20% {
        opacity: 1;
        transform: translateY(-80px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    30% {
        opacity: 1;
        transform: translateY(-120px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    40% {
        opacity: 1;
        transform: translateY(-160px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    50% {
        opacity: 1;
        transform: translateY(-200px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    60% {
        opacity: 1;
        transform: translateY(-240px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    70% {
        opacity: 1;
        transform: translateY(-280px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    80% {
        opacity: 1;
        transform: translateY(-320px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    90% {
        opacity: 1;
        transform: translateY(-360px) scaleY(1) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scaleY(0) rotate(var(--rotation, 0deg));
    }
}

/* Burst effect - multiple small dots */
.mini-firework::after {
    content: '';
    position: absolute;
    top: -400px; /* Position where the line ends at very top */
    left: 50%;
    width: 0;
    height: 0;
    opacity: 0;
    animation: miniFireworkBurst 1s ease-out 0.8s forwards; /* Burst after launch */
}

@keyframes miniFireworkBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
        box-shadow: 
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue),
            0 0 0 0 var(--accent-blue);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 4px 4px var(--accent-blue),
            15px -15px 4px 4px var(--accent-blue),
            -15px -15px 4px 4px var(--accent-blue),
            25px -10px 4px 4px var(--accent-blue),
            -25px -10px 4px 4px var(--accent-blue),
            10px -25px 4px 4px var(--accent-blue),
            -10px -25px 4px 4px var(--accent-blue),
            30px 0px 4px 4px var(--accent-blue),
            -30px 0px 4px 4px var(--accent-blue),
            15px -30px 4px 4px var(--accent-blue),
            -15px -30px 4px 4px var(--accent-blue),
            0px -35px 4px 4px var(--accent-blue),
            35px -15px 4px 4px var(--accent-blue),
            -35px -15px 4px 4px var(--accent-blue),
            20px -35px 4px 4px var(--accent-blue),
            -20px -35px 4px 4px var(--accent-blue);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
        box-shadow: 
            0 0 2px 2px var(--accent-blue),
            20px -20px 2px 2px var(--accent-blue),
            -20px -20px 2px 2px var(--accent-blue),
            35px -15px 2px 2px var(--accent-blue),
            -35px -15px 2px 2px var(--accent-blue),
            15px -40px 2px 2px var(--accent-blue),
            -15px -40px 2px 2px var(--accent-blue),
            40px 0px 2px 2px var(--accent-blue),
            -40px 0px 2px 2px var(--accent-blue),
            20px -45px 2px 2px var(--accent-blue),
            -20px -45px 2px 2px var(--accent-blue),
            0px -50px 2px 2px var(--accent-blue),
            45px -20px 2px 2px var(--accent-blue),
            -45px -20px 2px 2px var(--accent-blue),
            25px -50px 2px 2px var(--accent-blue),
            -25px -50px 2px 2px var(--accent-blue);
    }
}

/* Static Small Dots (Non-glowing) */
.static-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 5;
}

.static-dot-1 { bottom: 5%; left: 10%; }
.static-dot-2 { bottom: 8%; left: 25%; }
.static-dot-3 { bottom: 12%; left: 40%; }
.static-dot-4 { bottom: 6%; left: 55%; }
.static-dot-5 { bottom: 15%; left: 70%; }
.static-dot-6 { bottom: 10%; left: 85%; }
.static-dot-7 { bottom: 18%; left: 15%; }
.static-dot-8 { bottom: 14%; left: 30%; }
.static-dot-9 { bottom: 9%; left: 45%; }
.static-dot-10 { bottom: 16%; left: 60%; }

/* Revealed text */
.revealed-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    opacity: 0;
    animation: textReveal 1s ease-out 1.2s forwards; /* Reduced from 3s to 1.2s */
    z-index: 20;
    white-space: nowrap; /* Prevent word breaking */
    max-width: 90vw; /* Ensure it fits on screen */
    overflow: hidden;

    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: none !important; /* Prevent unwanted shifts */
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.revealed-text .revealed-char {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.1s ease-out forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        text-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue);
    }
}

/* Text glow effect */
.text-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 100px;
    background: radial-gradient(ellipse, var(--accent-blue-glow), transparent);
    opacity: 0;
    animation: glowPulse 2s ease-in-out 2.2s infinite; /* Reduced from 4s to 2.2s */
    z-index: 15;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    opacity: 1; /* Always visible */
    visibility: visible; /* Always visible */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-strong);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-blue);
    background: var(--accent-blue-glow);
}

.nav-link i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    opacity: 0;
    animation: mainContentFadeIn 0.5s ease-out 3.5s forwards; /* Extended from 2.5s to 3.5s to add 1s pause */
}

/* For non-home pages, show content immediately */
.main-content[style*="opacity: 1"] {
    animation: none;
    opacity: 1 !important;
}

@keyframes mainContentFadeIn {
    to {
        opacity: 1;
    }
}

.page-section {
    display: block; /* Show all sections instead of hiding them */
    animation: fadeIn 0.5s ease-in-out;
    padding: 4rem 0; /* Add padding between sections */
}

.page-section:first-child {
    padding-top: 0; /* Remove top padding from first section */
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure body and html allow scrolling */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
}

.section-cta .btn-primary {
    max-width: 300px; /* Shorter width */
    margin: 0 auto; /* Center the button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    opacity: 0;
    transform: translateY(30px);
    /* Removed automatic animation - now controlled by JavaScript */
}

/* Removed the animation delays since they're now handled by JavaScript */
/* .title-line:nth-child(1) { animation-delay: 2.7s; } */
/* .title-line:nth-child(2) { animation-delay: 2.9s; } */
/* .title-line:nth-child(3) { animation-delay: 3.1s; } */

.title-line.highlight {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    /* Removed automatic animation - now controlled by JavaScript */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    /* Removed automatic animation - now controlled by JavaScript */
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-strong);
}

/* Fixed positioning for perfect diamond alignment */
.floating-icon:nth-child(1) { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-name: floatTop;
}

.floating-icon:nth-child(2) { 
    top: 50%; 
    right: 0; 
    transform: translateY(-50%); 
    animation-name: floatRight;
}

.floating-icon:nth-child(3) { 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-name: floatBottom;
}

.floating-icon:nth-child(4) { 
    top: 50%; 
    left: 0; 
    transform: translateY(-50%); 
    animation-name: floatLeft;
}

@keyframes floatTop {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

@keyframes floatBottom {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-20px);
    }
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-paragraph {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card, .vision-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.mission-card h3, .vision-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.image-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.image-placeholder span {
    font-size: 1rem;
    margin-top: 1rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.program-card:hover::before {
    left: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.program-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Impact Section */
.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.impact-stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.impact-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.impact-stories h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.story-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.story-content h4 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Get Involved Section */
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.involvement-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif; /* Ensure consistent font */
    font-weight: 400; /* Consistent font weight */
    line-height: 1.5; /* Consistent line height */
    transition: all 0.3s ease;
    resize: vertical; /* Allow vertical resizing for textareas */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif; /* Consistent placeholder font */
    font-weight: 400;
}

.form-success {
    text-align: center;
    padding: 2rem;
    color: var(--accent-blue);
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif; /* Ensure consistent font */
    font-weight: 400; /* Consistent font weight */
    line-height: 1.5; /* Consistent line height */
    transition: all 0.3s ease;
    resize: vertical; /* Allow vertical resizing for textareas */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif; /* Consistent placeholder font */
    font-weight: 400;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Added spacing */
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Added spacing for newsletter description */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif; /* Consistent font */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-blue);
}

/* Spark Effects */
.sparks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.spark {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: sparkle 2s linear infinite;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Fireworks Container */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 3s ease-out infinite;
}

@keyframes firework {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .revealed-text {
        font-size: 2rem;
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-elements {
        width: 300px;
        height: 300px;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-content,
    .impact-content,
    .contact-content,
    .forms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .revealed-text {
        font-size: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-container {
        padding: 2rem 1rem;
    }
} 

/* Newsletter Form in Footer */
/* Newsletter Section within Connect With Us */
.footer-section .newsletter-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-section .newsletter-section h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}

.footer-section .newsletter-section p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-section .newsletter-form {
    display: flex;
    gap: 10px;
}

.footer-section .newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section .newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.footer-section .newsletter-form button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.footer-section .newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.footer-section .newsletter-form button i {
    font-size: 0.8rem;
}

/* Responsive Footer Newsletter */
@media (max-width: 768px) {
    .footer-section .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-section .newsletter-form input[type="email"] {
        width: 100%;
    }
    
    .footer-section .newsletter-form button {
        width: 100%;
    }
} 