*, *::before, *::after { box-sizing: border-box; }

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

/* Hero animations - visible immediately, no opacity:0 gating */
.hero-anim {
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 1;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(0); opacity: 1; }
}

/* Scroll reveal - progressive enhancement, content visible by default */
.reveal {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Navbar transitions */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #6B1D3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8B2E52; }

/* Selection */
::selection { background: rgba(107, 29, 58, 0.6); color: #E8C4C4; }

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

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Loader */
#loader {
    z-index: 50;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Image hover */
img {
    transition: opacity 0.3s ease;
}
img:hover {
    opacity: 0.95;
}
