/* ─── Base & Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #a8d8c8;
  color: #0d1b2a;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 249, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ─── Buttons ─── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 216, 200, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-mint {
  background: linear-gradient(135deg, #a8d8c8, #7fb89e);
  color: #0d1b2a;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mint:hover {
  box-shadow: 0 8px 30px rgba(168, 216, 200, 0.4);
  transform: translateY(-2px);
}

/* ─── Section Eyebrow ─── */
.section-eyebrow {
  letter-spacing: 0.15em;
  color: #5a9e85 !important;
}

/* ─── Hero Animations ─── */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-subheadline {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

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

/* ─── Floating Decorations ─── */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 8s ease-in-out infinite 2s;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

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

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

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

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

/* ─── Marquee ─── */
.marquee-track {
  width: 200%;
}

.marquee-content {
  animation: marquee 30s linear infinite;
}

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

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── Craft Cards ─── */
.craft-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* ─── Product Items ─── */
.product-item {
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateX(6px);
}

/* ─── Mobile Menu ─── */
.mobile-link {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-link:hover {
  transform: scale(1.05);
}

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

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

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

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

/* ─── Focus Styles ─── */
input:focus, textarea:focus, button:focus {
  outline: none;
}

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

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

  @media (min-width: 768px) {
    .hero-headline {
      font-size: 4rem;
    }
  }

  @media (min-width: 1024px) {
    .hero-headline {
      font-size: 5rem;
    }
  }

  @media (min-width: 1280px) {
    .hero-headline {
      font-size: 6rem;
    }
  }
}

/* ─── 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;
  }
}
