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

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

body {
  font-family: 'DM Sans', sans-serif;
  color: #064e3b;
  background-color: #FDFCF8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* ── Header ── */
#header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
}

/* ── Hero Animations ── */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

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

.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

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

/* ── Scroll Line ── */
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

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

/* ── Buttons ── */
.btn-primary {
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.btn-secondary {
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.06);
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ── Why Us Blobs ── */
.why-blob {
  animation: whyBlobFloat 10s ease-in-out infinite;
}

.why-blob.blob-1 { animation-delay: 0s; }
.why-blob.blob-2 { animation-delay: -4s; }

@keyframes whyBlobFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -25px); }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

/* ── Form ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .font-serif {
    font-size: 2rem;
  }

  #hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 3.5rem;
  }
}
