/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Hero animations - only for below-fold content, hero is visible immediately */
.hero-anim {
    animation: heroFadeIn 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger hero animations */
.hero-anim:nth-child(1) { --delay: 0.2s; }
.hero-anim:nth-child(2) { --delay: 0.4s; }
.hero-anim:nth-child(3) { --delay: 0.6s; }
.hero-anim:nth-child(4) { --delay: 0.8s; }

/* Scroll reveal - progressive enhancement, content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu active state */
.mobile-menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open #line2 {
    opacity: 0;
}
.mobile-menu-open #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.75rem;
}

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

/* Gold shimmer on hover for cards */
.group:hover .group-hover\:border-gold-400 {
    border-color: #d4af37;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}
</style>
