/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #eab3e4;
  color: #42134e;
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

.nav-link {
  position: relative;
}

/* ── Hero Blobs ── */
.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(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Hero Floating Icons ── */
.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

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

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Scroll Reveal ── */
.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 (no-JS safe) */
.reveal {
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: hide then reveal with JS */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for card groups */
.card-service:nth-child(1)  { transition-delay: 0ms;   }
.card-service:nth-child(2)  { transition-delay: 100ms; }
.card-service:nth-child(3)  { transition-delay: 200ms; }
.card-service:nth-child(4)  { transition-delay: 300ms; }
.card-service:nth-child(5)  { transition-delay: 400ms; }
.card-service:nth-child(6)  { transition-delay: 500ms; }

.card-community:nth-child(1) { transition-delay: 0ms;   }
.card-community:nth-child(2) { transition-delay: 120ms; }
.card-community:nth-child(3) { transition-delay: 240ms; }
.card-community:nth-child(4) { transition-delay: 360ms; }

.card-testimonial:nth-child(1) { transition-delay: 0ms;   }
.card-testimonial:nth-child(2) { transition-delay: 150ms; }
.card-testimonial:nth-child(3) { transition-delay: 300ms; }

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

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

.mobile-link {
  display: block;
}

/* ── Custom Select Arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D8E' stroke-width='2.5' 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 1rem center;
  padding-right: 2.5rem;
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ── Smooth Anchor Offset ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Print Styles ── */
@media print {
  #navbar, .hero-blob, .hero-float, .animate-bounce { display: none; }
  body { color: #000; background: #fff; }
}
