/* ===== CUSTOM STYLES ===== */

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

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

body {
  margin: 0;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
}

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

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

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== HERO ANIMATIONS ===== */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.6s;
}

.hero-sub {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.9s;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
  /* Default: visible — progressive enhancement */
}

.reveal.revealed {
  animation: revealUp 0.7s ease forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal.revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas {
    opacity: 1;
    animation: none;
  }

  img {
    transition: none;
  }
}

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  display: block;
}

/* ===== MENU TABS ===== */
.menu-tab {
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', system-ui, sans-serif;
}

.menu-tab:hover {
  color: #e2e8f0;
}

.menu-tab.active {
  background: #14b8a6;
  color: #020617;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

/* ===== MENU ITEMS ===== */
.menu-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover h3 {
  color: #5eead4;
  transition: color 0.2s ease;
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  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; }

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.75rem;
  }

  #about,
  #menu,
  #experience,
  #visit {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .grid lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 3rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 4rem;
  }
}
