/* ===== Custom Styles for Ringo's Tavern ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Geometric Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid #f4bfb6;
    border-radius: 50%;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: #f4bfb6;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #f4bfb6;
    top: 30%;
    left: 8%;
    animation-delay: -10s;
    transform: rotate(15deg);
}

.geo-square {
    width: 100px;
    height: 100px;
    background: #f4bfb6;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
    transform: rotate(30deg);
}

.geo-ring {
    width: 200px;
    height: 200px;
    border: 4px solid #f0c4c4;
    border-radius: 50%;
    bottom: 15%;
    right: 20%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ===== Reveal Animations (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
    background: rgba(42, 12, 12, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: #fdeeee;
}

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

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

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

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

/* Active menu line animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a0c0c;
}
::-webkit-scrollbar-thumb {
    background: #8a2626;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a03030;
}

/* ===== Selection color ===== */
::selection {
    background: #f4bfb6;
    color: #2a0c0c;
}

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

/* ===== Image loading placeholder ===== */
img {
    background-color: #5e1a1a;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 150px;
        height: 150px;
    }
    .geo-circle-2 {
        width: 80px;
        height: 80px;
    }
    .geo-triangle {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
    .geo-square {
        width: 50px;
        height: 50px;
    }
    .geo-ring {
        width: 100px;
        height: 100px;
    }
}
