/* Base & Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5f0f7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
    background: #421f42;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5e2d5e;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 6, 16, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.mobile-link {
    font-size: 1.1rem;
}

/* Hero */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: heroImageIn 0.8s 0.2s ease forwards;
}

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

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

/* About */
.about-content {
    opacity: 0;
    transform: translateY(30px);
}

.about-image {
    opacity: 0;
    transform: translateY(30px);
}

.about-content.visible,
.about-image.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Menu */
.menu-header {
    opacity: 0;
    transform: translateY(30px);
}

.menu-card {
    opacity: 0;
    transform: translateY(30px);
}

.menu-header.visible,
.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:nth-child(2) {
    transition-delay: 0.15s;
}

/* Gallery */
.gallery-header {
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-header.visible,
.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }

/* Visit */
.visit-content {
    opacity: 0;
    transform: translateY(30px);
}

.visit-map {
    opacity: 0;
    transform: translateY(30px);
}

.visit-content.visible,
.visit-map.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.visit-map {
    transition-delay: 0.15s;
}

/* Contact */
.contact-header {
    opacity: 0;
    transform: translateY(30px);
}

.contact-header.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold shimmer on hover for key elements */
.menu-card:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
}

/* Image hover effects */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 10, 30, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Subtle pulse for the hero CTA */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
    }
}

/* Form focus states */
input:focus,
textarea:focus {
    background: rgba(26, 10, 30, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.15;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-image {
        order: -1 !important;
    }
    
    .menu-card {
        padding: 1.5rem !important;
    }
    
    .gallery-item.col-span-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .gallery-item {
        aspect-ratio: 16/10;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}
