/* === Custom Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* === Navbar Scroll State === */
#navbar.scrolled {
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

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

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

/* === Floating Shapes Animation === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.floating-shape {
  animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; }
.shape-2 { animation-delay: 2s; }
.shape-3 { animation-delay: 4s; }
.shape-4 { animation-delay: 1s; }

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

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

/* Default visible state for progressive enhancement */
.reveal {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* === Flavor Card Hover === */
.flavor-card {
  transition: transform 0.3s ease;
}

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

.flavor-card img {
  transition: transform 0.5s ease;
}

/* === Mobile Menu === */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  position: relative;
  padding: 8px 0;
}

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

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

/* === Button Ripple Effect === */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* === Selection Color === */
::selection {
  background: #f0c16e;
  color: #1e3a5f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #162b48;
}

/* === Input Focus Animation === */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(240, 193, 110, 0.2);
}

/* === Mobile Responsive Tweaks === */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .flavor-card:hover {
    transform: none;
  }
}
