/* ===================================
   Vice Tea — Custom Styles
   =================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #1a6b6b;
    color: #f5f0e8;
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(8, 37, 36, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo-text {
    color: #f5f0e8 !important;
}

#navbar.scrolled .nav-logo-text {
    color: #f5f0e8 !important;
}

/* ===================================
   Hero Section
   =================================== */
#hero {
    position: relative;
}

.hero-zoom {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-subtitle {
    animation: fadeUp 1s ease-out 0.3s forwards;
}

.hero-headline {
    animation: fadeUp 1s ease-out 0.6s forwards;
}

.hero-desc {
    animation: fadeUp 1s ease-out 0.9s forwards;
}

.hero-cta {
    animation: fadeUp 1s ease-out 1.2s forwards;
}

.hero-scroll {
    animation: fadeIn 1s ease-out 1.8s forwards;
}

.hero-decor {
    animation: fadeIn 1.5s ease-out 1s forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   Scroll Reveal Animations
   =================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===================================
   Menu Hover Effects
   =================================== */
#menu a.group h4 {
    position: relative;
}

#menu a.group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a96e;
    transition: width 0.3s ease;
}

#menu a.group:hover h4::after {
    width: 100%;
}

/* ===================================
   Gallery
   =================================== */
#gallery img {
    cursor: pointer;
}

/* ===================================
   Form Styles
   =================================== */
#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #1a6b6b !important;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #cbd5e1;
}

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.5s ease-out forwards;
}

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

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
    background: #1a6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d746f;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    #about,
    #menu,
    #gallery,
    #visit,
    #contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .grid lg\:grid-cols-2 {
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    #navbar,
    #hero,
    #gallery,
    #contact {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
