/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a22; }
::-webkit-scrollbar-thumb { background: #3f3f48; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b6b74; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none !important;
}

/* Default state — always visible (progressive enhancement) */
.reveal-up { transform: translateY(0); }
.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }
.reveal-scale { transform: scale(1); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-up { transform: translateY(30px); }
  .reveal-left { transform: translateX(-30px); }
  .reveal-right { transform: translateX(30px); }
  .reveal-scale { transform: scale(0.95); }
  .reveal.revealed { opacity: 1 !important; transform: none !important; }
}

/* ── Navbar scroll state ── */
.nav-scrolled {
  background: rgba(13, 13, 18, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ── Service card hover glow ── */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(ellipse at top left, rgba(255, 107, 53, 0.06), transparent 60%);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* ── Testimonial card hover ── */
.testimonial-card {
  position: relative;
  overflow: hidden;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), transparent);
  border-radius: 0 1rem 0 2rem;
  pointer-events: none;
}

/* ── Button focus visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

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

/* ── Active nav link ── */
.nav-active {
  color: #ff8a52 !important;
}

/* ── Form input autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #2a2a32 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}
</style>
