/* Base styles & custom properties */
:root {
    --color-emerald-950: #022c22;
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-emerald-400: #34d399;
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9f0;
    --color-cream-200: #faf3e0;
    --color-cream-300: #f5e9cc;
    --color-gold-400: #d4a853;
    --color-gold-500: #c9a227;
    --color-gold-600: #b8860b;
    --color-dark-900: #0a0f0d;
    --color-dark-800: #0d1612;
    --color-dark-700: #111e18;
    --color-dark-600: #162520;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #fefdf8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Reveal animations (progressive enhancement - only when JS is available and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Fallback: ensure content is visible without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a853 0%, #c9a227 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emerald gradient text utility */
.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle gold border glow on hover */
.gold-glow:hover {
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.15);
}

/* Button pulse on focus for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card shimmer effect on hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span.block {
        font-size: 1.75rem;
    }

    .animate-float, .animate-float-delayed {
        animation: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero h1 span.block {
        font-size: 1.5rem;
    }
}
