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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 4px 30px rgba(27, 67, 50, 0.08);
}

.nav-link {
  position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.3s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
.hamburger-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== FLOATING GEOMETRIC SHAPES ===== */
.floating-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #1B4332;
  top: 10%;
  right: -100px;
  animation: floatSlow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #E07A5F;
  bottom: 20%;
  left: -60px;
  animation: floatSlow 16s ease-in-out infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #D4A017;
  top: 45%;
  right: 5%;
  animation: floatSlow 18s ease-in-out infinite;
  opacity: 0.06;
}

.shape-square {
  width: 120px;
  height: 120px;
  background: #FFD166;
  bottom: 35%;
  left: 8%;
  border-radius: 24px;
  transform: rotate(45deg);
  animation: floatSlow 14s ease-in-out infinite reverse;
  opacity: 0.07;
}

.shape-dots {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  background-image: radial-gradient(circle, #1B4332 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.12;
  animation: floatSlow 22s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

.shape-square {
  animation-name: floatSquare;
}

@keyframes floatSquare {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  33% { transform: rotate(48deg) translateY(-20px); }
  66% { transform: rotate(42deg) translateY(10px); }
}

/* ===== HERO STAT CARDS ===== */
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  animation: statFloat 4s ease-in-out infinite;
}

.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }

@keyframes statFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stat-card-green {
  background: #1B4332;
  color: #FDFBF7;
}

.stat-card-gold {
  background: #FFD166;
  color: #1B4332;
}

.stat-card-terracotta {
  background: #E07A5F;
  color: #FDFBF7;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-green .stat-icon { background: rgba(255,255,255,0.15); }
.stat-card-gold .stat-icon { background: rgba(27,67,50,0.15); }
.stat-card-terracotta .stat-icon { background: rgba(255,255,255,0.25); }

.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.2;
}

.stat-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.3;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27, 67, 50, 0.4);
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(27, 67, 50, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(27, 67, 50, 0.5);
  border-radius: 2px;
  animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes scrollDotMove {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== MARQUEE ===== */
.marquee-track {
  width: 200%;
}

.marquee-content {
  flex-shrink: 0;
  animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== MENU CARDS ===== */
.menu-card {
  opacity: 1;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  opacity: 1;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-card {
    flex: 1;
    min-width: 0;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .floating-shape {
    display: none;
  }
}
