/* Base styles & custom utilities */

html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background-color: #D4A017;
    color: #1e0719;
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#marquee {
    animation: marquee 30s linear infinite;
}

#marquee:hover {
    animation-play-state: paused;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A017;
    transition: width 0.3s ease;
}

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

/* Mobile nav link animation */
.mobile-nav-link {
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-open .mobile-nav-link {
    animation: slideInLeft 0.4s ease forwards;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hamburger animation */
.menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #fdf2f8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #350f2d;
}
