/* ===================================
   Twilligers Tavern — Custom Styles
   Premium Dark Luxury Theme
   =================================== */

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0f0709;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c9a66b, #58101d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e5c588, #7a1a2a);
}

/* Selection Color */
::selection {
    background: rgba(201, 166, 107, 0.3);
    color: #f4d0c8;
}

/* ===================================
   Animations
   =================================== */

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

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

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease forwards;
}

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

/* ===================================
   Navbar
   =================================== */

#navbar {
    background: transparent;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(5, 2, 3, 0.92);
    backdrop-filter: blur(20px);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 166, 107, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Mobile Menu
   =================================== */

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #c9a66b;
    transition: width 0.3s ease;
}

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

/* ===================================
   Image Parallax & Effects
   =================================== */

#hero-img {
    transition: transform 8s ease;
}

#hero:hover #hero-img {
    transform: scale(1.08);
}

/* ===================================
   Gold Text Gradient Shimmer
   =================================== */

.text-gold-shimmer {
    background: linear-gradient(
        90deg,
        #c9a66b 0%,
        #e5c588 25%,
        #f0d89c 50%,
        #e5c588 75%,
        #c9a66b 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ===================================
   Card Hover Glow
   =================================== */

.glow-card:hover {
    box-shadow: 0 0 60px rgba(201, 166, 107, 0.15);
}

/* ===================================
   Button Ripple Effect
   =================================== */

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-gold:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   Reveal on Scroll
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   Decorative Lines
   =================================== */

.deco-line {
    position: relative;
}

.deco-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #c9a66b, transparent);
}

/* ===================================
   Image Overlay Gradients
   =================================== */

.img-overlay-dark {
    position: relative;
}

.img-overlay-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 7, 9, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* ===================================
   Loading Screen
   =================================== */

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #050203;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-star {
    animation: float 1.5s ease-in-out infinite;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    .reveal {
        transform: translateY(20px);
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none;
    }
}
