:root {
    /* Theme Colors */
    --color-primary: #22C55E;
    --color-background: #1e3a8a;
    --color-surface: #ffffff;
    --color-accent: #F97316;
    --color-text-primary: #1F2937;
    --color-text-secondary: rgba(0, 0, 0, 0.8);
    --color-text-tertiary: rgba(0, 0, 0, 0.7);
    --color-white-primary: #ffffff;
    --color-white-secondary: rgba(255, 255, 255, 0.9);
    --color-white-tertiary: rgba(255, 255, 255, 0.8);
    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-border-white: rgba(255, 255, 255, 0.1);
    --color-border-white-light: rgba(255, 255, 255, 0.2);
    --color-border-white-lighter: rgba(255, 255, 255, 0.3);

    /* Theme Spacing */
    --spacing-section: 6rem;
    --spacing-section-sm: 4rem;
    --spacing-heading: 3rem;
    --spacing-heading-sm: 1.5rem;
    --spacing-card: 2rem;
    --spacing-card-sm: 1rem;

    /* Theme Opacity */
    --opacity-heading: 0.8;
    --opacity-text-secondary: 0.8;
    --opacity-text-tertiary: 0.7;

    /* Theme Shadows */
    --shadow-neon: 0 0 15px rgba(34, 197, 94, 0.4);
    --shadow-neon-pulse: 0 0 0 0 rgba(34, 197, 94, 0.7);
    --shadow-neon-pulse-end: 0 0 0 10px rgba(34, 197, 94, 0);
    --shadow-nav: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Theme Transitions */
    --transition-default: 300ms;

    /* Theme Max Widths */
    --max-width-container: 1400px;
    --max-width-content: 64rem;
    --max-width-text: 42rem;
}

/* Base Styles */
html, body {
    background-color: var(--color-background);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}
* {
    box-sizing: border-box;
}
/* Hide scrollbars but keep functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
    background: transparent;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hero-serif { font-family: 'Poppins', sans-serif; }
.neon-glow:hover {
    box-shadow: var(--shadow-neon);
}
.rounded-pill {
    border-radius: 9999px;
}
nav a {
    transition: color 0.3s ease;
}
nav a:hover {
    color: var(--color-primary);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: var(--shadow-neon-pulse);
    }
    50% {
        opacity: 0.9;
        box-shadow: var(--shadow-neon-pulse-end);
    }
}
.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}
.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}
.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}
.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}
.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}
.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger delays for multiple elements */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Scroll-triggered animation initial state */
.scroll-animate {
    opacity: 0;
    will-change: transform, opacity;
}
.scroll-animate.animated {
    opacity: 1;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Header fade-in */
header {
    animation: fadeIn 0.6s ease-out;
}

/* Navbar transparency and transitions */
.navbar-transparent {
    background: transparent !important;
    backdrop-filter: blur(10px);
    box-shadow: none !important;
}
.navbar-scrolled {
    background: white !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

/* Animated underline for nav links */
.nav-link-underline {
    position: relative;
    display: inline-block;
}
.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link-underline:hover::after {
    width: 100%;
}
.nav-link-underline.active::after {
    width: 100%;
}

/* Mobile menu styles */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}
#mobile-menu.hidden {
    display: none;
}
.mobile-menu-link {
    display: block;
    text-decoration: none;
}
.mobile-menu-link:last-child {
    border-bottom: none !important;
}

@media (max-width: 767px) {
    #mobile-menu {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        z-index: 50;
    }
}

/* Process Arrow Styling */
.process-step {
    position: relative;
}
/* Hide arrows on mobile */
@media (max-width: 767px) {
    .process-step::after,
    .process-step::before {
        display: none !important;
    }
}
/* Arrow between steps on medium screens (2 columns) - show only after odd items (first column) */
@media (min-width: 768px) and (max-width: 1023px) {
    .process-step:nth-child(odd):not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -2rem;
        width: calc(2rem + 1px);
        height: 2px;
        background: var(--color-primary);
        z-index: 10;
        opacity: 0.7;
    }
    .process-step:nth-child(odd):not(:last-child)::before {
        content: '';
        position: absolute;
        top: 32px;
        right: -2rem;
        width: 0;
        height: 0;
        border-left: 8px solid var(--color-primary);
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        transform: translateX(calc(2rem + 1px));
        z-index: 10;
        opacity: 0.7;
    }
}
/* Arrow between steps on large screens (4 columns) */
@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -2rem;
        width: calc(2rem + 1px);
        height: 2px;
        background: var(--color-primary);
        z-index: 10;
        opacity: 0.7;
        transition: opacity 0.3s ease, width 0.3s ease;
    }
    .process-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 32px;
        right: -2rem;
        width: 0;
        height: 0;
        border-left: 8px solid var(--color-primary);
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        transform: translateX(calc(2rem + 1px));
        z-index: 10;
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .process-step:hover:not(:last-child)::after,
    .process-step:hover:not(:last-child)::before {
        opacity: 1;
    }
    .process-step:hover:not(:last-child)::after {
        width: calc(2.5rem + 1px);
    }
    .process-step:hover:not(:last-child)::before {
        transform: translateX(calc(2.5rem + 1px));
    }
}

/* About SVG Green Filter - Converts to system green (#22C55E) */
.about-svg-green {
    filter: brightness(0) saturate(100%) invert(62%) sepia(96%) saturate(1452%) hue-rotate(89deg) brightness(98%) contrast(87%);
}

/* Parallax CSS Classes */
.parallax-container {
    position: relative;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.parallax-content {
    position: relative;
    z-index: 10;
}
/* Reduce parallax on mobile for better performance */
@media (max-width: 767px) {
    .parallax-bg {
        height: 100%;
    }
}

/* Hide scrollbars but maintain scroll functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Donation Modal Styles */
#donate-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#donate-modal.show {
    display: flex !important;
    opacity: 1;
}
#donate-modal.hidden {
    display: none !important;
}
#donate-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
#donate-modal.show #donate-modal-content {
    transform: scale(1) translateY(0);
}
@media (max-width: 640px) {
    #donate-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
}