/* === BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a3a52;
  background: #ffffff;
  overflow-x: hidden;
}

/* === NAVBAR === */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(26, 58, 82, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(167, 243, 208, 0.8);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: rgba(167, 243, 208, 0.6);
  transition: width 0.3s ease;
  margin: 0 auto;
}

.mobile-link:hover::after {
  width: 50%;
}

/* === HERO === */
.hero-gradient {
  background: linear-gradient(135deg, #1a3a52 0%, #0b1c2b 40%, #14532d 70%, #166534 100%);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 43, 0.25) 0%,
    rgba(11, 28, 43, 0.05) 40%,
    rgba(11, 28, 43, 0.4) 100%
  );
}

.hero-img {
  opacity: 0.55;
}

/* Hero decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -50px;
  animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: 30%;
  left: 15%;
  animation: float-shape 6s ease-in-out infinite;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Hero content entrance */
.hero-content > * {
  animation: heroFadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

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

/* Scroll indicator */
.hero-scroll-indicator {
  animation: heroFadeUp 0.8s ease 1.2s forwards;
  opacity: 0;
}

@keyframes scroll-line {
  0% { height: 0; opacity: 0; }
  50% { height: 40px; opacity: 1; }
  100% { height: 40px; opacity: 0; }
}

.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #1a3a52;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 60px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #f0fdf4;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 60px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Cards */
.card-flip {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Menu items */
.menu-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .card-flip[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .card-flip[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-item[data-reveal] {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .menu-item[data-reveal].revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === HERO IS ABOVE-FOLD — no reveal classes applied === */
/* Hero content uses CSS-only keyframe animations that start immediately */

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

  .hero-content p {
    font-size: 1.1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
