/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Navigation ── */
#site-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu .menu-line:nth-child(3) { width: 1.5rem; }
#mobile-menu.open .menu-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#mobile-menu.open .menu-line:nth-child(2) { opacity: 0; }
#mobile-menu.open .menu-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 1.5rem; }
.mobile-link { transition: all 0.3s ease; }

/* ── Hero ── */
.hero-bg { will-change: transform; }

/* ── Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes float-slow-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-3deg); }
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-12px); opacity: 1; }
}
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Geometric Shapes ── */
.geo-triangle {
  width: 0; height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid rgba(45, 212, 191, 0.3);
}
.geo-circle {
  width: 48px; height: 48px;
  background: rgba(45, 212, 191, 0.15);
  border-radius: 50%;
}
.geo-square {
  width: 32px; height: 32px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 6px;
  transform: rotate(15deg);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Selection ── */
::selection { background: rgba(13, 148, 136, 0.2); color: #0f766e; }

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

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
  .font-display { font-size: 2.25rem; line-height: 1.1; }
}
