/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #d4a017;
    color: #1a0a12;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a12;
}
::-webkit-scrollbar-thumb {
    background: #8c2d56;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a83d6f;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* Hero animations */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.1s forwards;
}

.hero-tagline {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

.hero-ctas {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Navbar */
.nav-link {
    position: relative;
}

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

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

/* Menu cards */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
    animation: mobileLinkIn 0.4s ease forwards;
}

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

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

/* Parallax hero subtle shift */
#hero {
    perspective: 10px;
}

#hero img {
    will-change: transform;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
