/* ── Base & Typography ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: rgba(94, 234, 212, 0.3); color: #fff; }

/* ── Navbar ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5EEAD4;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-link { position: relative; }
.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #5EEAD4;
  transition: width 0.3s ease;
  margin-top: 4px;
}
.mobile-link:hover::after { width: 100%; }

#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }

.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#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) { width: 24px; margin-left: 0; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Beer Cards ── */
.beer-card { cursor: pointer; }
.beer-card:hover { transform: translateY(-4px); }
.beer-card:hover img { transform: scale(1.05); }

/* ── Event Cards ── */
.event-card { transition: transform 0.4s ease, border-color 0.4s ease; }
.event-card:hover { transform: translateY(-4px); }

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: #132240; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1e3a5f; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .font-serif { line-height: 1.15; }
}
