/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

/* Section Label */
.section-label {
  display: block;
}

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(8, 14, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .bar {
  background: #f8fafc;
}

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

.bar.open-top {
  transform: translateY(4px) rotate(45deg);
}

.bar.open-mid {
  opacity: 0;
}

.bar.open-bot {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero Animations */
.hero-eyebrow {
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-cta {
  animation: fadeUp 0.8s ease forwards 1.1s;
}

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Menu Items */
.menu-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.menu-item h4 {
  transition: color 0.3s ease;
}

.menu-item p {
  transition: color 0.3s ease;
}

.menu-item:hover p {
  color: #94a3b8;
}

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* Form Styles */
input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.08);
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

/* Reduced motion */
@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;
  }
}
