/* ========================================
   The Oasis Pub & Grill — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Geometric Background Blobs */
.geometric-blob {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.blob-burgundy-1 {
    top: 15%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(125, 36, 39, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 20s ease-in-out infinite;
}

.blob-burgundy-2 {
    bottom: 20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(125, 36, 39, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 25s ease-in-out infinite reverse;
}

.blob-blush-1 {
    top: 40%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 122, 79, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 18s ease-in-out infinite;
}

.blob-blush-2 {
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 122, 79, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-blob 22s ease-in-out infinite reverse;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

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

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(125, 36, 39, 0.08);
}

.nav-link {
    position: relative;
}

/* Mobile Menu */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: -10px 0 40px rgba(125, 36, 39, 0.1);
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobile-menu.open .mobile-nav-link {
    animation: slideInNav 0.3s ease forwards;
}

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

@keyframes slideInNav {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Toggle */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Geometric Decorative Elements */
.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #96282b;
}

/* Selection */
::selection {
    background: rgba(181, 47, 49, 0.15);
    color: #7d2427;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff7a4f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #fce7e7 0%, #fff0eb 100%);
}

/* Print Styles */
@media print {
    .geometric-blob,
    .marquee-track,
    .scroll-reveal {
        display: none !important;
    }
    
    #navbar {
        position: static !important;
        background: none !important;
        box-shadow: none !important;
    }
}
