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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Geometric Decorations ── */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .geo-circle-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(13,148,136,0.12) 0%, transparent 70%);
    top: -80px; right: -100px;
    animation: float-slow 20s ease-in-out infinite;
  }
  .geo-circle-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(45,212,191,0.08) 0%, transparent 70%);
    bottom: 15%; left: -60px;
    animation: float-slow 15s ease-in-out infinite reverse;
  }
  .geo-circle-3 {
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
    top: 40%; right: 5%;
    animation: float-slow 12s ease-in-out infinite;
  }
}

.geo-circle-4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
  top: -100px; left: -150px;
}
.geo-circle-5 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(45,212,191,0.06) 0%, transparent 70%);
  bottom: -50px; right: -80px;
}
.geo-circle-6 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.geo-diamond {
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
}
.geo-diamond-1 {
  background: rgba(45,212,191,0.1);
  top: 20%; left: 8%;
  transform: rotate(45deg);
  border-radius: 4px;
}
.geo-diamond-2 {
  background: rgba(148,163,184,0.08);
  bottom: 25%; right: 10%;
  transform: rotate(30deg);
  width: 40px; height: 40px;
  border-radius: 3px;
}
.geo-diamond-3 {
  background: rgba(255,255,255,0.06);
  top: 30%; left: 15%;
  transform: rotate(45deg);
  width: 50px; height: 50px;
  border-radius: 4px;
}

.geo-plus {
  position: absolute;
  pointer-events: none;
}
.geo-plus::before, .geo-plus::after {
  content: '';
  position: absolute;
  background: rgba(45,212,191,0.2);
}
.geo-plus-1 {
  top: 35%; left: 3%;
  width: 20px; height: 4px;
}
.geo-plus-1::before { width: 20px; height: 4px; }
.geo-plus-1::after { width: 4px; height: 20px; left: 8px; }
.geo-plus-2 {
  bottom: 30%; right: 5%;
  width: 16px; height: 3px;
}
.geo-plus-2::before { width: 16px; height: 3px; }
.geo-plus-2::after { width: 3px; height: 16px; left: 6.5px; }

.geo-dots {
  position: absolute;
  top: 60%; left: 2%;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(45,212,191,0.2) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  pointer-events: none;
}
.geo-dots-2 {
  position: absolute;
  bottom: 20%; right: 3%;
  width: 60px; height: 60px;
  background-image: radial-gradient(circle, rgba(148,163,184,0.15) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.03); }
  66% { transform: translate(-8px, 10px) scale(0.97); }
}

/* ── Navbar ── */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── FAQ ── */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}
.faq-item.active .faq-content {
  max-height: 300px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

/* ── Mobile Menu Transition ── */
#mobile-menu {
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .font-heading {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}
