/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  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[data-state="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navbar ── */
.nav-scrolled #nav {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-scrolled .nav-logo-text,
.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-nav-link {
  display: block;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-link:hover {
  color: #5eead4;
  padding-left: 8px;
}

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

/* ── Form focus styles ── */
input:focus,
textarea:focus {
  outline: none;
}

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

/* ── Print ── */
@media print {
  nav, #mobile-menu, .scroll-reveal { display: none; }
  body { color: #000; background: #fff; }
  section { padding: 20px 0; }
}
