/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(196, 61, 31, 0.2);
    color: #2a170c;
}

/* ========== HERO BACKGROUND ========== */
.hero-bg {
    background-image: url('https://images.pexels.com/photos/5083908/pexels-photo-5083908.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ========== GRAIN TEXTURE ========== */
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ========== NAVIGATION ========== */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
    background: rgba(42, 23, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

/* ========== HERO ANIMATIONS ========== */
.hero-tagline {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(110%);
}

.hero-word:nth-child(1) { animation-delay: 0.15s; }
.hero-word:nth-child(2) { animation-delay: 0.25s; }
.hero-word:nth-child(3) { animation-delay: 0.35s; }
.hero-word:nth-child(4) { animation-delay: 0.45s; }
.hero-word:nth-child(5) { animation-delay: 0.55s; }

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

.hero-cta {
    animation: fadeIn 0.8s ease 0.9s forwards;
    opacity: 0;
}

.hero-image-frame {
    animation: expandFrame 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

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

@keyframes expandFrame {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(6px) translateX(-50%); }
    60% { transform: translateY(3px) translateX(-50%); }
}

/* ========== SCROLL REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ========== MENU CARD HOVER ========== */
#menu .rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#menu .rounded-2xl:hover {
    transform: translateY(-4px);
}

/* ========== GALLERY HOVER ========== */
#gallery .overflow-hidden {
    overflow: hidden;
}

#gallery img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== FOOTER LINKS ========== */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f2a18a;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-bg {
        background-position: 60% center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta a {
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-bg {
        background-position: center;
    }
}
