/* ===== Custom Styles for Tipsy Top Restaurant & Lounge ===== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

#navbar.scrolled {
  background-color: rgba(10, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #d4940e, #eebe47);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #eebe47 !important;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 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; }

/* ===== Hamburger Animation ===== */
#bar1.active {
  transform: rotate(45deg) translate(4px, 4px);
}

#bar2.active {
  opacity: 0;
}

#bar3.active {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

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

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

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

/* ===== Gold Gradient Text ===== */
.gold-gradient {
  background: linear-gradient(135deg, #eebe47, #d4940e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4940e, #93590c);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #eebe47, #d4940e);
}

/* ===== Input Focus Styles ===== */
input:focus,
textarea:focus {
  background-color: rgba(10, 26, 46, 0.8) !important;
}

/* ===== Selection ===== */
::selection {
  background-color: rgba(212, 148, 14, 0.3);
  color: #eebe47;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }
  
  #about h2,
  #menu h2,
  #experience h2,
  #contact h2 {
    font-size: 2.25rem;
  }
  
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.25rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  nav .flex.items-center.gap-10 {
    gap: 0;
  }
}
