/* ============================================
   JAGATTU SCROLL-DRIVEN CINEMATIC WEBSITE
   Design System & Styles
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   TEXT PROTECTION - Prevent Copy/Selection
   ============================================ */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow selection for specific elements */
.selectable,
input,
textarea,
select,
a[href^="mailto:"],
a[href^="tel:"],
.upi-id-display strong,
.footer-contact-info a {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors from Jagattu Logo */
    --color-primary-dark: #002365;
    /* Deep Navy Blue */
    --color-primary-green: #267355;
    /* Forest Green */
    --color-secondary-green: #1a4c39;
    /* Dark Forest */
    --color-accent-gold: #fac91a;
    /* Vibrant Yellow/Gold */
    --color-muted-blue: #9ca9c2;
    /* Soft Blue-Gray */

    /* Background Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-light: #f5f5f5;
    --color-cream: #faf8f3;

    /* Text Colors */
    --color-text-light: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-muted: rgba(255, 255, 255, 0.7);

    /* Typography - Premium Art Gallery Style */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes - Fluid Typography */
    --fs-hero: clamp(2.5rem, 8vw, 6rem);
    --fs-heading: clamp(1.75rem, 4vw, 3.5rem);
    --fs-subheading: clamp(1.25rem, 2.5vw, 2rem);
    --fs-body: clamp(1rem, 1.5vw, 1.25rem);
    --fs-small: clamp(0.875rem, 1.2vw, 1rem);
    --fs-caption: clamp(0.75rem, 1vw, 0.875rem);

    /* Premium Letter Spacing */
    --ls-tight: -0.02em;
    --ls-normal: 0.01em;
    --ls-wide: 0.08em;
    --ls-extra-wide: 0.2em;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Z-Index Layers */
    --z-canvas: 1;
    --z-overlay: 10;
    --z-content: 20;
    --z-nav: 100;
    --z-audio: 150;
    --z-loader: 200;

    /* Glassmorphism */
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
}

/* ============================================
   Base Reset & Global Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text-light);
    background: var(--color-bg-dark);
    overflow-x: hidden;
}

/* Global Image Quality */
img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-green);
    border-radius: 3px;
}

/* ============================================
   Canvas & Container Styles
   ============================================ */
.cinema-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.canvas-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-canvas);
    /* Multi-layer background: First frame as fallback + gradient */
    background:
        url('main/ezgif-frame-001.jpg') center center / cover no-repeat,
        linear-gradient(135deg,
            var(--color-primary-dark) 0%,
            var(--color-secondary-green) 50%,
            var(--color-primary-dark) 100%);
    background-color: var(--color-secondary-green);
    image-rendering: auto;
    /* Smoother scaling than crisp-edges */
    transform: translateZ(0);
    -webkit-transform: translate3d(0, 0, 0);

    /* Subtle noise overlay to mask AI artifacts and add cinematic feel */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0.03;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    }
}

#cinema-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;

    /* Premium image quality enhancement */
    filter: brightness(1.02) contrast(1.06) saturate(1.04);

    /* Smooth high-quality rendering (not crisp which causes pixelation) */
    image-rendering: auto;
    image-rendering: -webkit-optimize-quality;

    /* GPU acceleration for smooth transitions */
    will-change: contents;
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* Smooth frame transitions */
    transition: filter 0.1s ease-out;
}

@media (max-width: 767px) {
    #cinema-canvas {
        object-position: center center;
        /* Optimized enhancement for mobile screens */
        filter: brightness(1.03) contrast(1.05) saturate(1.06);
        image-rendering: auto;
    }
}

/* Scroll Spacer - Extended to prevent black screen at bottom */
.scroll-spacer {
    height: 650vh;
    pointer-events: none;
}

/* Cinematic vignette overlay to prevent black screen appearance */
.canvas-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.15) 100%);
}

/* ============================================
   Loading Screen
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Premium gradient background instead of plain black */
    background:
        radial-gradient(ellipse at center, rgba(38, 115, 85, 0.3) 0%, transparent 60%),
        linear-gradient(135deg,
            #0d1a14 0%,
            #0a1f16 25%,
            #102a1f 50%,
            #0a1f16 75%,
            #0d1a14 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 25px rgba(38, 115, 85, 0.4));
}

.loader-logo-wrapper {
    position: relative;
    display: inline-block;
}

.loader-progress {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: 0 0 15px rgba(38, 115, 85, 0.2);
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg,
            var(--color-primary-green),
            var(--color-accent-gold),
            var(--color-primary-green));
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.1, 0.7, 1.0, 0.1);
    animation: loaderBarShimmer 2s linear infinite;
    border-radius: 4px;
}

.loader-percentage {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    margin-bottom: var(--space-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.loader-text {
    font-family: var(--font-display);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(38, 115, 85, 0.4));
    }

    50% {
        opacity: 0.9;
        transform: scale(0.98);
        filter: drop-shadow(0 0 35px rgba(250, 201, 26, 0.5));
    }
}

@keyframes loaderBarShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes textFade {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Premium Loader Particles */
.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.loader-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--color-accent-gold) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 8s ease-in-out infinite;
}

.loader-particles .particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.loader-particles .particle:nth-child(2) {
    left: 80%;
    top: 40%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.loader-particles .particle:nth-child(3) {
    left: 30%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.loader-particles .particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.loader-particles .particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

.loader-particles .particle:nth-child(6) {
    left: 20%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-30px) translateX(15px) scale(1.2);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-10px) translateX(-20px) scale(0.8);
        opacity: 0.5;
    }

    75% {
        transform: translateY(20px) translateX(10px) scale(1.1);
        opacity: 0.6;
    }
}

/* ============================================
   Content Overlays
   ============================================ */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-content);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    pointer-events: none;
    opacity: 0;
    transform: translateY(0) scale(1);
    transition: opacity 0.15s ease-out;
    will-change: opacity;
    /* Performance: allow browser to skip rendering when off-screen */
    content-visibility: auto;
    contain-intrinsic-size: 0 100vh;
}

.content-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Text readability backdrop - Premium Glassmorphism */
.content-overlay .section-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: var(--space-xl);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero Content Overlay */
.hero-overlay {
    text-align: center;
}

.hero-logo {
    width: clamp(80px, 15vw, 150px);
    height: auto;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--ls-tight);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 8px 40px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-subheading);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7),
        0 3px 15px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: var(--fs-body);
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: var(--ls-extra-wide);
    margin-bottom: var(--space-lg);
    font-weight: 400;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.7),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Scroll Prompt - Circular with bounce (artprize-shadows style) */
.scroll-prompt {
    position: fixed;
    bottom: calc(var(--space-xl) + 60px);
    /* Above nav-dots */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: var(--z-content);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-prompt.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-light);
    stroke-width: 2;
    fill: none;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
}

/* Section Content Styles */
.section-content {
    max-width: 800px;
    text-align: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
    font-family: var(--font-display);
    font-size: var(--fs-caption);
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: var(--space-md);
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-heading);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.15;
    letter-spacing: var(--ls-tight);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.4);
}

.section-text {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: var(--ls-normal);
    font-weight: 300;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Left-aligned content variant */
.content-overlay.left-aligned {
    align-items: flex-start;
    padding-left: clamp(var(--space-lg), 10vw, 15vw);
}

.content-overlay.left-aligned .section-content {
    text-align: left;
    max-width: 550px;
}

.content-overlay.left-aligned .section-text {
    margin: 0;
}

/* Program Icons Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    max-width: 700px;
    margin-top: var(--space-xl);
}

.program-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.program-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-gold);
    transform: translateY(-5px);
}

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    background: rgba(249, 191, 59, 0.15);
    border-radius: 50%;
    border: 1px solid var(--color-accent-gold);
}

.program-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
}

.program-name {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.program-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    transition: background var(--transition-medium);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: auto;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width var(--transition-medium);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: var(--space-sm);
}

.lang-toggle:hover {
    background: var(--color-accent-gold);
    color: #1a1a1a;
    border-color: var(--color-accent-gold);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    transition: all var(--transition-fast);
}

/* ============================================
   Navigation Dots (Bottom Center - artprize-shadows style)
   ============================================ */
.nav-dots {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-nav);
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hide nav-dots and fixed elements when in footer */
body.footer-visible .nav-dots,
body.footer-visible .audio-control,
body.footer-visible .donate-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

body.footer-visible .audio-control,
body.footer-visible .donate-fab {
    transform: translateY(20px);
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    background: var(--color-text-light);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.nav-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Hide old progress-indicators */
.progress-indicators {
    display: none;
}

/* ============================================
   Audio Control - Ultra Premium Floating Design
   ============================================ */
.audio-control {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    z-index: var(--z-audio);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.audio-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg,
            rgba(38, 115, 85, 0.25) 0%,
            rgba(10, 20, 15, 0.5) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid rgba(250, 201, 26, 0.3);
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(38, 115, 85, 0.1),
        inset 0 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
    animation: audioFloat 4s ease-in-out infinite;
}

/* Floating animation for idle state */
@keyframes audioFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Animated gradient border ring */
.audio-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            var(--color-primary-green) 0%,
            var(--color-accent-gold) 25%,
            var(--color-primary-green) 50%,
            var(--color-accent-gold) 75%,
            var(--color-primary-green) 100%);
    opacity: 0.4;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: borderSpin 8s linear infinite;
}

@keyframes borderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Playing state - enhanced glow */
.audio-btn.playing::before {
    opacity: 0.8;
    animation: borderSpinFast 3s linear infinite;
}

@keyframes borderSpinFast {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Premium outer pulse ring when playing */
.audio-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(250, 201, 26, 0.2) 0%,
            rgba(38, 115, 85, 0.15) 40%,
            transparent 70%);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: -2;
    transition: all 0.5s ease;
}

.audio-btn.playing::after {
    animation: premiumPulse 2.5s ease-in-out infinite;
}

@keyframes premiumPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.5);
        filter: blur(3px);
    }
}

/* Hover state - elevated and glowing */
.audio-btn:hover {
    background: linear-gradient(145deg,
            rgba(38, 115, 85, 0.35) 0%,
            rgba(20, 40, 30, 0.6) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    border-color: var(--color-accent-gold);
    transform: translateY(-8px) scale(1.08);
    animation: none;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(250, 201, 26, 0.25),
        0 0 60px rgba(38, 115, 85, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.2);
}

.audio-btn:hover::before {
    opacity: 0.9;
    animation: borderSpinFast 2s linear infinite;
}

/* Playing state styling */
.audio-btn.playing {
    border-color: var(--color-primary-green);
    box-shadow:
        0 8px 35px rgba(38, 115, 85, 0.4),
        0 0 50px rgba(38, 115, 85, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.12);
    animation: audioFloatPlaying 3s ease-in-out infinite;
}

@keyframes audioFloatPlaying {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

/* Premium waveform bars with gradient */
.audio-btn .wave-bar {
    width: 3.5px;
    background: linear-gradient(180deg,
            var(--color-accent-gold) 0%,
            rgba(250, 201, 26, 0.8) 30%,
            var(--color-primary-green) 100%);
    border-radius: 4px;
    transition: all 0.25s ease;
    box-shadow:
        0 0 6px rgba(250, 201, 26, 0.4),
        0 0 12px rgba(250, 201, 26, 0.2);
}

.audio-btn .wave-bar:nth-child(1) {
    height: 10px;
}

.audio-btn .wave-bar:nth-child(2) {
    height: 16px;
}

.audio-btn .wave-bar:nth-child(3) {
    height: 12px;
}

.audio-btn .wave-bar:nth-child(4) {
    height: 18px;
}

.audio-btn .wave-bar:nth-child(5) {
    height: 8px;
}

/* Premium oscillating animations when playing */
.audio-btn.playing .wave-bar:nth-child(1) {
    animation: waveOscillate1 0.4s ease-in-out infinite alternate;
}

.audio-btn.playing .wave-bar:nth-child(2) {
    animation: waveOscillate2 0.3s ease-in-out infinite alternate;
}

.audio-btn.playing .wave-bar:nth-child(3) {
    animation: waveOscillate3 0.5s ease-in-out infinite alternate;
}

.audio-btn.playing .wave-bar:nth-child(4) {
    animation: waveOscillate4 0.25s ease-in-out infinite alternate;
}

.audio-btn.playing .wave-bar:nth-child(5) {
    animation: waveOscillate5 0.45s ease-in-out infinite alternate;
}

@keyframes waveOscillate1 {
    0% {
        height: 6px;
        transform: scaleY(1);
    }

    100% {
        height: 20px;
        transform: scaleY(1.15);
    }
}

@keyframes waveOscillate2 {
    0% {
        height: 18px;
        transform: scaleY(1.1);
    }

    100% {
        height: 6px;
        transform: scaleY(0.9);
    }
}

@keyframes waveOscillate3 {
    0% {
        height: 8px;
        transform: scaleY(1);
    }

    100% {
        height: 22px;
        transform: scaleY(1.2);
    }
}

@keyframes waveOscillate4 {
    0% {
        height: 20px;
        transform: scaleY(1.1);
    }

    100% {
        height: 5px;
        transform: scaleY(0.85);
    }
}

@keyframes waveOscillate5 {
    0% {
        height: 5px;
        transform: scaleY(1);
    }

    100% {
        height: 18px;
        transform: scaleY(1.1);
    }
}

/* Muted state - subtle flat bars */
.audio-btn:not(.playing) .wave-bar {
    height: 4px !important;
    animation: none !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Subtle idle pulse when not playing */
.audio-btn:not(.playing) .wave-bar:nth-child(3) {
    animation: idlePulse 2s ease-in-out infinite !important;
}

@keyframes idlePulse {

    0%,
    100% {
        height: 4px;
        opacity: 0.6;
    }

    50% {
        height: 8px;
        opacity: 1;
    }
}

/* Hide old SVG icons */
.audio-btn .audio-on,
.audio-btn .audio-off {
    display: none;

}

/* ============================================
   Call to Action
   ============================================ */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    pointer-events: auto;
}

.cta-btn:hover {
    background: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(250, 201, 26, 0.4);
}

.cta-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Secondary CTA */
.cta-secondary {
    background: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.cta-secondary:hover {
    background: var(--color-text-light);
    color: var(--color-primary-dark);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1000;
    /* High z-index to stay above canvas and overlays */
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg-dark) 15%, var(--color-bg-dark) 100%);
    padding: calc(var(--space-3xl) + 120px) var(--space-lg) var(--space-xl);
    margin-top: -60vh;
    /* Reduced overlap for better reliability on live site */
    clear: both;
    display: block;
}

/* Compact Footer Layout */
.footer-content.footer-compact {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-brand-compact {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand-compact .footer-logo {
    width: 50px;
    height: auto;
}

.footer-brand-compact .brand-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-compact .brand-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-tagline {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Quick Links Grid - More robust responsiveness */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.quick-links-grid a {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-links-grid a:hover {
    background: rgba(38, 115, 85, 0.15);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Contact Card */
.footer-contact-card {
    background: linear-gradient(145deg, rgba(38, 115, 85, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 20px;
    padding: var(--space-lg);
    border: 1px solid rgba(38, 115, 85, 0.2);
    overflow: hidden;
}

.footer-contact-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-accent-gold);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item.whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.15);
}

.contact-item.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.contact-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    position: static !important;
    /* Explicitly prevent floating */
}

.contact-item span:not(.contact-icon) {
    position: static !important;
    display: inline-block;
}

/* Expanded Partners Grid */
.partners-grid-expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.partner-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-badge:hover {
    background: rgba(38, 115, 85, 0.15);
    border-color: rgba(38, 115, 85, 0.3);
    transform: translateY(-4px);
}

.badge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Ensure fallbacks are visible if image fails or is missing */
.badge-icon .fallback-svg {
    display: none;
    width: 100%;
    height: 100%;
    color: var(--color-primary-green);
    opacity: 0.8;
}

.badge-icon img[style*="display: none"]+.fallback-svg {
    display: block !important;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.3;
}

.partner-badge:hover .badge-text {
    color: var(--color-text-light);
}

.partner-badge:hover .badge-icon svg {
    color: var(--color-primary-green);
}

/* Legacy footer styles - keep for compatibility */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-logo {
    width: 60px;
    height: auto;
}

.footer-brand p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: var(--fs-small);
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(250, 201, 26, 0.2);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gold), transparent);
}

.footer-section {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--fs-small);
    margin-bottom: var(--space-sm);
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.footer-section a:hover {
    color: var(--color-text-light);
    transform: translateX(5px);
}

/* Contact section specific enhanced styling */
.footer-section:last-child a {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid transparent;
}

.footer-section:last-child a:hover {
    background: rgba(38, 115, 85, 0.15);
    border-color: rgba(38, 115, 85, 0.3);
    transform: translateX(0);
    padding-left: 16px;
}

.footer-section:last-child a svg {
    transition: transform 0.3s ease;
}

.footer-section:last-child a:hover svg {
    transform: scale(1.2);
}

/* WhatsApp link special styling */
.footer-section .whatsapp-link {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.footer-section .whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

/* Partners Section */
.partners-section {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    margin-top: var(--space-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px 20px 0 0;
}

.partners-section h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partners-section h4::before,
.partners-section h4::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.partner-item {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
    transition: all var(--transition-medium);
}

.partner-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.partner-item svg {
    width: 48px;
    height: 48px;
}

.partner-item span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    font-weight: 500;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Premium Partner Badges */
.partner-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

.partner-badge:hover {
    background: rgba(250, 201, 26, 0.08);
    border-color: rgba(250, 201, 26, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(250, 201, 26, 0.15);
}

.badge-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    transition: all 0.3s ease;
}

.partner-badge:hover .badge-icon {
    transform: scale(1.1);
    color: var(--color-primary-green);
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

.badge-text {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    transition: color 0.3s ease;
}

.partner-badge:hover .badge-text {
    color: var(--color-text-light);
}

/* ============================================
   Professional Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    max-width: 600px;
}

.service-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.service-badge:hover {
    background: rgba(38, 115, 85, 0.2);
    border-color: var(--color-primary-green);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(38, 115, 85, 0.3);
}

.service-badge svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-accent-gold);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.service-badge:hover svg {
    stroke: var(--color-primary-green);
    transform: scale(1.1);
}

.service-badge span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: color var(--transition-fast);
}

.service-badge:hover span {
    color: var(--color-text-light);
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .service-badge {
        padding: var(--space-sm);
    }

    .service-badge svg {
        width: 36px;
        height: 36px;
    }

    .service-badge span {
        font-size: 0.65rem;
    }

    /* Compact footer responsive */
    .footer-content.footer-compact {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-md);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .partners-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .partner-badge {
        padding: 12px 8px;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
    }

    .badge-text {
        font-size: 0.7rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-badge {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-contact-info {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.contact-divider {
    display: flex;
    align-items: center;
}

.contact-divider:not(:last-child)::after {
    content: '|';
    margin-left: var(--space-md);
    opacity: 0.3;
}

@media (max-width: 767px) {
    .contact-divider:not(:last-child)::after {
        display: none;
    }

    .footer-contact-info {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

.footer-contact-info a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copy {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.developer-credit {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.developer-credit a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.developer-credit a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* ============================================
   Responsive Design - Tablet (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
    .main-nav {
        padding: var(--space-md);
    }

    .nav-links {
        gap: var(--space-md);
    }

    .progress-indicators {
        right: var(--space-md);
    }

    .content-overlay.left-aligned {
        padding-left: var(--space-xl);
    }

    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Responsive Design - Mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    .main-nav {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: var(--space-3xl) var(--space-lg);
        gap: var(--space-md);
        transition: right var(--transition-medium);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hide progress indicators on mobile */
    .progress-indicators {
        display: none;
    }

    /* Adjust content overlays */
    .content-overlay {
        padding: var(--space-md);
    }

    .content-overlay.left-aligned {
        align-items: center;
        padding-left: var(--space-md);
    }

    .content-overlay.left-aligned .section-content {
        text-align: center;
    }

    .content-overlay.left-aligned .section-text {
        margin: 0 auto;
    }

    /* Program grid mobile */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .program-item {
        padding: var(--space-sm);
    }

    .program-icon {
        font-size: 2rem;
    }

    /* Audio control mobile position */
    .audio-control {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .audio-btn {
        width: 44px;
        height: 44px;
    }

    /* Scroll prompt mobile */
    .scroll-prompt {
        bottom: var(--space-lg);
    }

    /* Hero adjustments */
    .hero-logo {
        width: 70px;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ============================================
   Small Mobile (< 375px)
   ============================================ */
@media (max-width: 374px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.8rem;
    }
}

/* ============================================
   Accessibility & Motion Preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-arrow {
        animation: none;
    }

    /* Hide particle effects for users who prefer reduced motion */
    .atmosphere-canvas,
    .loader-particles {
        display: none !important;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent-gold);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-muted: rgba(255, 255, 255, 0.9);
    }

    .progress-dot {
        border-width: 3px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-gold {
    color: var(--color-accent-gold);
}

.text-green {
    color: var(--color-primary-green);
}

/* ============================================
   Donation Floating Button & Modal
   ============================================ */

/* ============================================
   Floating Donate Button - Ultra Premium Design
   ============================================ */
.donate-fab {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 180;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(145deg,
            rgba(250, 201, 26, 0.15) 0%,
            rgba(38, 115, 85, 0.95) 20%,
            rgba(26, 138, 95, 0.9) 50%,
            rgba(38, 115, 85, 0.95) 80%,
            rgba(250, 201, 26, 0.15) 100%);
    border: 2px solid rgba(250, 201, 26, 0.6);
    border-radius: 50px;
    color: white;
    font-family: var(--font-display);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow:
        0 0 20px rgba(250, 201, 26, 0.4),
        0 0 40px rgba(38, 115, 85, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fabFloat 4s ease-in-out infinite, fabGlow 3s ease-in-out infinite alternate;
    overflow: visible;
}

/* Floating animation */
@keyframes fabFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Glow pulse animation */
@keyframes fabGlow {
    0% {
        box-shadow:
            0 0 20px rgba(250, 201, 26, 0.4),
            0 0 40px rgba(38, 115, 85, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 4px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px rgba(255, 255, 255, 0.25);
    }

    100% {
        box-shadow:
            0 0 35px rgba(250, 201, 26, 0.6),
            0 0 60px rgba(38, 115, 85, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 4px 16px rgba(0, 0, 0, 0.3),
            inset 0 1px rgba(255, 255, 255, 0.25);
    }
}

/* Static premium glow border - no rotation */
.donate-fab::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 55px;
    background: linear-gradient(135deg,
            var(--color-accent-gold) 0%,
            var(--color-primary-green) 50%,
            var(--color-accent-gold) 100%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(4px);
    transition: opacity 0.4s ease;
}

.donate-fab:hover::before {
    opacity: 0.85;
}

/* Outer glow ring - more dramatic */
.donate-fab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border-radius: 60px;
    background: radial-gradient(ellipse at center,
            rgba(250, 201, 26, 0.4) 0%,
            rgba(38, 115, 85, 0.25) 30%,
            transparent 60%);
    transform: translate(-50%, -50%) scale(1);
    z-index: -2;
    animation: fabPulseRing 2.5s ease-in-out infinite;
}

@keyframes fabPulseRing {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

.donate-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

/* Heart pulse animation */
.donate-fab svg {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }
}

/* Button text shimmer */
.donate-fab span {
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(250, 201, 26, 1) 50%,
            rgba(255, 255, 255, 1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.donate-fab:hover {
    transform: translateY(-8px) scale(1.05);
    animation: none;
    border-color: var(--color-accent-gold);
    box-shadow:
        0 15px 45px rgba(38, 115, 85, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(250, 201, 26, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.25);
}

.donate-fab:hover::before {
    opacity: 0.9;
    animation: fabBorderSpinFast 3s linear infinite;
}

@keyframes fabBorderSpinFast {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.donate-fab:hover svg {
    animation: none;
    transform: scale(1.2);
}

.donate-fab:active {
    transform: translateY(-4px) scale(1.02);
}

/* Donation Modal */
.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.donation-modal.active {
    opacity: 1;
    visibility: visible;
}

.donation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.donation-modal-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(165deg,
            rgba(15, 25, 35, 0.98) 0%,
            rgba(5, 15, 25, 0.99) 40%,
            rgba(10, 20, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: var(--space-lg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 80px rgba(38, 115, 85, 0.03);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.donation-modal.active .donation-modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Donation Header */
.donation-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.donation-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.heart-icon {
    font-size: 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }
}

.donation-subtitle {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
}

/* QR Section */
.donation-qr-section {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.qr-frame {
    position: relative;
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: var(--space-sm);
}

.qr-image {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .qr-image {
        width: 160px;
        height: 160px;
    }

    .donation-modal-content {
        padding: 15px;
        border-radius: 20px;
        width: 95%;
    }

    .donation-title {
        font-size: 1.2rem;
    }

    .qr-frame {
        padding: 10px;
    }

    .donation-caption {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .payment-logo img {
        height: 30px;
    }
}

.qr-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-accent-gold));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    animation: qrGlow 3s ease-in-out infinite alternate;
}

@keyframes qrGlow {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.7;
    }
}

.qr-instruction {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}

/* Donation Caption */
.donation-caption {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.caption-main {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.caption-highlight {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    line-height: 2;
    padding: var(--space-md);
    background: rgba(38, 115, 85, 0.15);
    border: 1px solid rgba(38, 115, 85, 0.3);
    border-radius: 12px;
}

/* Payment Logos */
.payment-logos {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.logos-label {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 250, 0.95) 100%);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: none;
}

.upi-id-display {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}

.upi-id-display strong {
    color: var(--color-accent-gold);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.payment-logo:hover {
    background: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(38, 115, 85, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.payment-logo img,
.payment-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1) contrast(1.02);
}

.payment-logo:hover img {
    filter: brightness(1.05) contrast(1.05);
}

.payment-logo.bhim-logo {
    width: 80px;
}

.logos-grid-secondary {
    margin-top: var(--space-sm);
    justify-content: center;
}

.logos-grid-secondary .payment-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(240, 245, 255, 0.95) 0%, rgba(230, 235, 245, 0.9) 100%);
}

/* Donation Footer */
.donation-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(38, 115, 85, 0.2);
    border: 1px solid var(--color-primary-green);
    border-radius: 20px;
    color: var(--color-primary-green);
    font-size: var(--fs-caption);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.tax-benefit svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-primary-green);
}

.legal-note {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    opacity: 0.8;
}

/* Mobile adjustments for donate button and modal */
@media (max-width: 767px) {
    .donate-fab {
        bottom: calc(var(--space-lg) + 60px);
        right: var(--space-md);
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .donate-fab span {
        display: none;
    }

    .donate-fab svg {
        width: 24px;
        height: 24px;
    }

    .donation-modal-content {
        padding: var(--space-lg);
        max-height: 85vh;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }

    .donation-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================
   PREMIUM CINEMATIC ENHANCEMENTS
   Light Leaks, Staggered Text, Breathing Rhythm
   ============================================ */

/* Enhanced Glassmorphism with Organic Glow */
.content-overlay .section-content {
    position: relative;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.25) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(250, 201, 26, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Light Leak Effect - Soft Gold/Green Glow */
.content-overlay .section-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%,
            rgba(250, 201, 26, 0.08) 0%,
            transparent 50%),
        radial-gradient(ellipse at 70% 80%,
            rgba(38, 115, 85, 0.06) 0%,
            transparent 40%);
    animation: lightLeak 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes lightLeak {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(5%, 5%) rotate(3deg);
        opacity: 0.8;
    }
}

/* Shimmer Border Animation */
.content-overlay .section-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(250, 201, 26, 0.3) 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 100%);
    background-size: 300% 300%;
    animation: shimmerBorder 6s ease-in-out infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes shimmerBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Breathing Rhythm - Subtle Scale Pulse */
.content-overlay.visible .section-content {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.005);
    }
}

/* ============================================
   STAGGERED TEXT REVEAL ANIMATIONS
   ============================================ */

/* Section Label - Slide up with fade */
.content-overlay .section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.1s;
}

/* Section Title - Slide up with fade */
.content-overlay .section-title {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0.25s;
}

/* Section Text - Slide up with fade */
.content-overlay .section-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.45s;
}

/* CTA Button - Slide up with fade */
.content-overlay .cta-btn {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.6s;
}

/* Programs Grid Items - Staggered appearance */
.content-overlay .program-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-overlay .program-item:nth-child(1) {
    transition-delay: 0.3s;
}

.content-overlay .program-item:nth-child(2) {
    transition-delay: 0.4s;
}

.content-overlay .program-item:nth-child(3) {
    transition-delay: 0.5s;
}

.content-overlay .program-item:nth-child(4) {
    transition-delay: 0.6s;
}

.content-overlay .program-item:nth-child(5) {
    transition-delay: 0.7s;
}

/* Reveal elements when overlay is visible */
.content-overlay.visible .section-label,
.content-overlay.visible .section-title,
.content-overlay.visible .section-text,
.content-overlay.visible .cta-btn,
.content-overlay.visible .program-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hero specific overrides - faster animation */
.hero-overlay .hero-tagline {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.hero-overlay .hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.hero-overlay .hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.5s;
}

.hero-overlay.visible .hero-tagline,
.hero-overlay.visible .hero-title,
.hero-overlay.visible .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PREMIUM TEXT SHADOWS FOR DEPTH
   ============================================ */

.section-title,
.hero-title {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 8px 40px rgba(0, 0, 0, 0.2);
}

.section-label,
.hero-tagline {
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(250, 201, 26, 0.15);
}

.section-text,
.hero-subtitle {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   HERO SECTION ENHANCED LOGO ANIMATION
   ============================================ */

.hero-overlay .hero-logo {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 30px rgba(250, 201, 26, 0.3));
}

.hero-overlay.visible .hero-logo {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 4px 20px rgba(250, 201, 26, 0.2));
    }

    100% {
        filter: drop-shadow(0 4px 35px rgba(250, 201, 26, 0.4));
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .content-overlay .section-content::before,
    .content-overlay .section-content::after {
        animation: none;
    }

    .content-overlay.visible .section-content {
        animation: none;
    }

    .content-overlay .section-label,
    .content-overlay .section-title,
    .content-overlay .section-text,
    .content-overlay .cta-btn,
    .content-overlay .program-item,
    .hero-overlay .hero-tagline,
    .hero-overlay .hero-title,
    .hero-overlay .hero-subtitle,
    .hero-overlay .hero-logo {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* GPU acceleration hints */
.content-overlay .section-content,
.content-overlay .section-label,
.content-overlay .section-title,
.content-overlay .section-text {
    will-change: opacity, transform;
}

/* ============================================
   NEW ELEMENTS - Deep Research Enhancement
   ============================================ */

/* Hero Philosophy Quote */
.hero-philosophy {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-md);
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.7s;
}

.hero-overlay.visible .hero-philosophy {
    opacity: 1;
    transform: translateY(0);
}

/* Micro Principles Badges */
.principles-micro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-lg);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.55s;
}

.content-overlay.visible .principles-micro {
    opacity: 1;
    transform: translateY(0);
}

.principles-micro span {
    font-size: 0.8rem;
    color: var(--color-text-light);
    background: rgba(38, 115, 85, 0.25);
    border: 1px solid rgba(38, 115, 85, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.principles-micro span:hover {
    background: rgba(38, 115, 85, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   REDESIGNED DONATION MODAL - Nature-Inspired
   Organic Design with Earth Tones
   ============================================ */

/* Override modal content with nature theme */
.donation-modal-content {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(38, 115, 85, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(250, 201, 26, 0.08) 0%, transparent 40%),
        linear-gradient(175deg,
            rgba(10, 30, 20, 0.97) 0%,
            rgba(5, 20, 15, 0.98) 40%,
            rgba(15, 25, 20, 0.97) 100%);
    border: 1px solid rgba(38, 115, 85, 0.2);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(38, 115, 85, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(38, 115, 85, 0.03);
}

/* Nature-themed donation header */
.donation-header {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
}

.donation-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary-green),
            var(--color-accent-gold),
            var(--color-primary-green),
            transparent);
    border-radius: 2px;
}

.donation-title {
    color: var(--color-text-light);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heart-icon {
    -webkit-text-fill-color: initial;
    background: none;
}

.donation-subtitle {
    font-style: normal;
    color: var(--color-primary-green);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-top: var(--space-xs);
}

/* Enhanced QR Section with organic frame */
.qr-frame {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.95) 100%);
    border-radius: 20px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: visible;
}

/* Organic leaf accents on QR frame corners */
.qr-frame::before,
.qr-frame::after {
    content: '🌿';
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.7;
}

.qr-frame::before {
    top: -8px;
    left: -8px;
    transform: rotate(-45deg);
}

.qr-frame::after {
    bottom: -8px;
    right: -8px;
    transform: rotate(135deg);
}

.qr-glow {
    background: linear-gradient(135deg,
            var(--color-primary-green) 0%,
            rgba(38, 115, 85, 0.7) 50%,
            var(--color-accent-gold) 100%);
    opacity: 0.4;
    filter: blur(15px);
}

.qr-instruction {
    color: var(--color-primary-green);
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* Enhanced donation caption */
.caption-main {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.8;
}

.caption-highlight {
    background: linear-gradient(135deg,
            rgba(38, 115, 85, 0.2) 0%,
            rgba(38, 115, 85, 0.1) 100%);
    border: 1px solid rgba(38, 115, 85, 0.35);
    border-radius: 16px;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    line-height: 2.2;
    text-align: left;
}

/* Payment logos with earthy styling */
.logos-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.payment-logo {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(250, 248, 243, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(38, 115, 85, 0.15);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.payment-logo:hover {
    border-color: var(--color-primary-green);
    box-shadow:
        0 8px 25px rgba(38, 115, 85, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Tax benefit badge - nature themed */
.tax-benefit {
    background: linear-gradient(135deg,
            rgba(38, 115, 85, 0.25) 0%,
            rgba(38, 115, 85, 0.15) 100%);
    border-color: rgba(38, 115, 85, 0.5);
    color: #4ade80;
}

.tax-benefit svg {
    stroke: #4ade80;
}

/* Legal note subtle styling */
.legal-note {
    opacity: 0.6;
    font-size: 0.65rem;
}

/* Floating donate button - nature pulse */
.donate-fab {
    background: linear-gradient(135deg,
            #267355 0%,
            #1a8a5f 50%,
            #267355 100%);
    background-size: 200% 200%;
    animation: naturePulse 4s ease-in-out infinite;
}

@keyframes naturePulse {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 20px rgba(38, 115, 85, 0.4);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 4px 30px rgba(38, 115, 85, 0.6), 0 0 20px rgba(38, 115, 85, 0.3);
    }
}

/* Mobile adjustments for new elements */
@media (max-width: 767px) {
    .principles-micro {
        gap: 8px;
    }

    .principles-micro span {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .hero-philosophy {
        font-size: 0.85rem;
    }

    .caption-highlight {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }
}