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

/* ─── Scroll-reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── Geometric shapes ─── */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

/* Hero circles */
.circle-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(126,34,206,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -10%; right: -5%;
}
.circle-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(251,191,36,0.25) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 15%; left: 38%;
}
.circle-3 {
  width: 140px; height: 140px;
  border: 3px solid rgba(126,34,206,0.15);
  border-radius: 50%;
  top: 25%; left: 5%;
}
.ring-1 {
  width: 200px; height: 200px;
  border: 4px solid rgba(251,191,36,0.3);
  border-radius: 50%;
  bottom: 20%; right: 10%;
}
.rect-1 {
  width: 80px; height: 80px;
  background: rgba(126,34,206,0.08);
  border-radius: 20px;
  top: 35%; left: 30%;
  transform: rotate(25deg);
}
.dot-group {
  top: 60%; right: 5%;
  opacity: 0.15;
}

/* About section shapes */
.circle-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -10%; left: -10%;
}
.rect-2 {
  width: 120px; height: 120px;
  background: rgba(251,191,36,0.06);
  border-radius: 28px;
  bottom: 5%; right: 5%;
  transform: rotate(-15deg);
}

/* CTA section shapes */
.circle-5 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -20%; left: -5%;
}
.circle-6 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -15%; right: 10%;
}

/* ─── Header scroll state ─── */
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(126,34,206,0.1);
}

/* ─── Nav links ─── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #fbbf24;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Service cards ─── */
.service-card { opacity: 1; }

/* ─── Back to top ─── */
#back-to-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ─── Mobile menu transition ─── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
