/* Custom styles for Cafe Tbilisi */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08);
}

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-badge {
    animation-delay: 0.1s;
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

h1,
h1 .italic {
    animation: fadeInUp 0.8s ease-out both;
}

h1 {
    animation-delay: 0.2s;
}

h1 .italic {
    animation-delay: 0.35s;
}

h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

h1 .italic {
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

p.text-lg,
p.text-lg + .flex {
    animation: fadeInUp 0.8s ease-out both;
}

p.text-lg {
    animation-delay: 0.5s;
}

p.text-lg {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.flex.flex-wrap.gap-4.mt-10 {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.6s;
}

.flex.flex-wrap.gap-4.mt-10 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

div.flex.items-center.gap-8.mt-12 {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.7s;
}

div.flex.items-center.gap-8.mt-12 {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

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

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

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #044B38;
    border: 1.5px solid rgba(5, 150, 105, 0.15);
    cursor: pointer;
}

.menu-tab:hover {
    border-color: rgba(5, 150, 105, 0.4);
    background: rgba(5, 150, 105, 0.05);
}

.menu-tab.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

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

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

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #022C22;
}
</style>
