/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #f0f4f1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1f17;
}
::-webkit-scrollbar-thumb {
    background: #1a3324;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #254630;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar */
.nav-scrolled {
    background: rgba(8, 15, 12, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 51, 36, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .logo-text {
    color: #f0f4f1;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.hero-float-1 { animation: float 6s ease-in-out infinite; }
.hero-float-2 { animation: floatSlow 7s ease-in-out infinite; animation-delay: 1s; }
.hero-float-3 { animation: float 5s ease-in-out infinite; animation-delay: 2s; }
.hero-float-4 { animation: floatSlow 8s ease-in-out infinite; animation-delay: 0.5s; }

/* Gold shimmer on hover for cards */
.group:hover .group-hover\:border-gold-500\/40 {
    border-color: rgba(212, 160, 23, 0.4);
}

/* Input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Counter animation */
.count-up {
    display: inline-block;
}
