/* ========================================
   Vranoci Italian Restaurant — Custom Styles
   ======================================== */

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

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

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu button */
.nav-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
}

.hero-title {
    animation: fadeUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(150%); }
}

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

/* ========================================
   Menu Section
   ======================================== */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

/* Scroll animations */
.menu-category,
.menu-subtitle,
.menu-title,
.menu-divider {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.menu-category.visible,
.menu-subtitle.visible,
.menu-title.visible,
.menu-divider.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Story Section
   ======================================== */
.story-subtitle,
.story-subtitle.visible {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 23, 21, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(26, 23, 21, 0.1);
}

.gallery-item {
    position: relative;
}

.gallery-subtitle,
.gallery-title,
.gallery-divider {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-subtitle.visible,
.gallery-title.visible,
.gallery-divider.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Visit Section
   ======================================== */
.visit-subtitle,
.visit-title,
.visit-divider {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.visit-subtitle.visible,
.visit-title.visible,
.visit-divider.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utility
   ======================================== */
::selection {
    background: rgba(212, 79, 46, 0.2);
    color: #1a1715;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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