/* ============================================
   COCOON TAP ROOM — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #2d6b2d;
    color: #fefdf8;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 107, 45, 0.08);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d6b2d;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

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

/* ============================================
   HERO GEOMETRIC SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(151, 199, 150, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(45, 107, 45, 0.08);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(68, 173, 106, 0.15) 0%, rgba(45, 107, 45, 0.08) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 30%;
    left: 45%;
    animation: morph 6s ease-in-out infinite;
}

.rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(45, 107, 45, 0.1);
    border-radius: 20px;
    top: 20%;
    left: 10%;
    transform: rotate(15deg);
    animation: float-slow 7s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(151, 199, 150, 0.2);
    bottom: 20%;
    right: 15%;
    animation: rotate-slow 12s linear infinite;
}

.dot-pattern {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(45, 107, 45, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    top: 60%;
    right: 5%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-track {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

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

/* ============================================
   MENU CARDS
   ============================================ */
.menu-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-8px);
}

/* ============================================
   EVENT CARDS
   ============================================ */
.event-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }

/* ============================================
   FORM STYLES
   ============================================ */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 107, 45, 0.1);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .blob-1 {
        width: 100px;
        height: 100px;
    }
    
    .rect-1 {
        width: 40px;
        height: 40px;
    }
    
    .triangle-1 {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 35px solid rgba(151, 199, 150, 0.2);
    }
    
    .dot-pattern {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #2d6b2d;
    outline-offset: 2px;
}
