/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Custom Properties ── */
:root {
  --nav-height: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 43, 76, 0.06), 0 4px 24px rgba(15, 43, 76, 0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7ddfc6;
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s var(--ease-out-expo) forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: color 0.2s, padding-left 0.2s; }
.mobile-link:hover { color: #1a996f; padding-left: 8px; }

/* ── Hero ── */
.hero-orb { will-change: transform; }
.hero-float { will-change: transform; }
.hero-badge {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}
.hero-title {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}
.hero-subtitle {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.35s both;
}
.hero-ctas {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}
.hero-trust {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.65s both;
}

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

/* ── CTA Buttons ── */
.cta-primary { position: relative; overflow: hidden; }
.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-primary:hover::before { opacity: 1; }

/* ── Section Labels ── */
.section-label {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
.section-title {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}
.section-subtitle {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.2s both;
}

/* ── Service Cards ── */
.service-card {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

/* ── Why Cards ── */
.why-card {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
.why-card:nth-child(1) { animation-delay: 0.05s; }
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.15s; }
.why-card:nth-child(4) { animation-delay: 0.2s; }

/* ── Testimonial Cards ── */
.testimonial-card {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
.testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.15s; }

/* ── Contact Form ── */
.form-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #7ddfc6;
  box-shadow: 0 0 0 3px rgba(125, 223, 198, 0.2);
}

/* ── Contact Info Items ── */
.contact-info-item {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
.contact-info-item:nth-child(1) { animation-delay: 0.05s; }
.contact-info-item:nth-child(2) { animation-delay: 0.1s; }
.contact-info-item:nth-child(3) { animation-delay: 0.15s; }

/* ── Scroll Reveal (applied via JS) ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── About Float Card ── */
.about-float-card {
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Float Animations ── */
.float-1 { animation: float1 6s ease-in-out infinite; }
.float-2 { animation: float2 5s ease-in-out infinite; }
.float-3 { animation: float3 7s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -16px) rotate(5deg); }
  66% { transform: translate(-8px, -8px) rotate(-3deg); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -12px) rotate(8deg); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-6px, 10px) rotate(-5deg); }
}

/* ── Hero Orbs ── */
.orb-1 { animation: orbFloat1 10s ease-in-out infinite; }
.orb-2 { animation: orbFloat2 12s ease-in-out infinite; }
.orb-3 { animation: orbFloat3 14s ease-in-out infinite; }

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 25px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-48%, -52%) scale(1.1); }
}

/* ── Why Section Orbs ── */
.why-orb { animation: orbFloat1 10s ease-in-out infinite; }

/* ── Image Hover ── */
.about-image-wrapper {
  transition: transform 0.6s var(--ease-out-expo);
}
.about-image-wrapper:hover {
  transform: scale(1.015);
}

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