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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(10, 31, 51, 0.08);
}

/* ===== HERO FLOATING CARDS ===== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -1.5s;
  animation-duration: 5.5s;
}

.floating-card:nth-child(3) {
  animation-delay: -3s;
  animation-duration: 6.5s;
}

.floating-card:nth-child(4) {
  animation-delay: -4.5s;
  animation-duration: 7s;
}

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

/* ===== HERO STATS ===== */
.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4ade80, #86efac);
  transition: width 0.4s ease;
}

.stat-item:hover::after {
  width: 100%;
}

/* ===== FLAVOR CARDS ===== */
.flavor-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.flavor-card:hover {
  transform: translateY(-4px);
}

/* ===== PROCESS CARDS ===== */
.process-card {
  position: relative;
  overflow: visible;
}

.process-card:hover {
  transform: translateY(-4px);
}

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

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE MENU LINKS ===== */
.mobile-link {
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #16a34a;
  padding-left: 8px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7c9bc0;
}

/* ===== SELECTION ===== */
::selection {
  background: #bbf7d0;
  color: #0f2f4b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 640px) {
  #hero {
    padding-top: 90px;
  }

  h1 {
    font-size: 2rem !important;
  }
}
