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

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

/* Scroll Reveal Animations */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Hero text animation - only for below fold content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1823;
}

::-webkit-scrollbar-thumb {
    background: #d49a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e4b23e;
}

/* Selection color */
::selection {
    background: #d49a1a;
    color: #0d1823;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d49a1a;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(7, 14, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(212, 154, 26, 0.1);
}

/* Button hover effects */
a.bg-gold-500:hover,
button.bg-gold-500:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 154, 26, 0.3);
}

a.bg-gold-500:active,
button.bg-gold-500:active {
    transform: translateY(0);
}

/* Form transitions */
input:focus,
textarea:focus {
    background: rgba(13, 24, 35, 0.8);
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}
