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

/* ── Nav scroll state ── */
#nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ── */
.mobile-link { position: relative; }
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #2dd4bf;
  transition: width 0.3s ease;
}
.mobile-link:hover::after { width: 40px; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stagger children ── */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #14b8a6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2dd4bf; }

/* ── Selection ── */
::selection { background: rgba(20, 184, 166, 0.3); color: #0f172a; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }

/* ── Form inputs ── */
input:focus, textarea:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1) !important;
}

/* ── Hero geometric shapes animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-15px) rotate(-12deg); }
}
.hero-shape-1 { animation: float 6s ease-in-out infinite; }
.hero-shape-2 { animation: float-reverse 8s ease-in-out infinite; }

/* ── Pulse dot ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
