/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #d4a84b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4923a;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(14, 26, 56, 0.08);
}

.nav-link {
    color: #1e293b;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #f5e19a;
}

#navbar:not(.scrolled) .nav-text {
    color: #ffffff;
}

#navbar:not(.scrolled) #hamburger span {
    background-color: #ffffff;
}

#navbar.scrolled #hamburger span {
    background-color: #1e293b;
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, #d4a84b 0%, #e4b942 50%, #c4923a 100%);
    color: #0e1a38;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #c4923a 0%, #d4a84b 50%, #b8842e 100%);
    color: #0e1a38;
}

/* Hero */
.hero-bg {
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 16, 36, 0.55) 0%,
        rgba(14, 26, 56, 0.65) 50%,
        rgba(20, 35, 70, 0.80) 100%
    );
    z-index: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 2;
}

/* Hero Content Animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroReveal 1s ease-out forwards;
}

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

/* Scroll Line Animation */
@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Floating Decorations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatDelayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 5s ease-in-out infinite 1s;
}

.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Feature Items */
.feature-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-right: none;
}

/* Menu Cards */
.menu-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(14, 26, 56, 0.06);
    transition: all 0.4s ease;
}

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(14, 26, 56, 0.12);
    transform: translateY(-4px);
}

/* Gallery */
.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-item:nth-child(2) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(3) {
    aspect-ratio: 5/4;
}

.gallery-item:nth-child(5) {
    aspect-ratio: 5/4;
}

.gallery-item:nth-child(7) {
    aspect-ratio: 3/4;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Mobile Menu */
.mobile-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    color: #d4a84b;
    transform: scale(1.05);
}

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #0e1a38;
}
