/* ─── Base ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

::selection {
  background: rgba(66, 168, 99, 0.3);
  color: #f0f4f8;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #10212b; }
::-webkit-scrollbar-thumb { background: #334d63; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #42a863; }

/* ─── Reveal Animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ─── Service Card Hover ─── */
.service-card {
  transition: background-color 0.5s ease;
}

/* ─── Smooth Focus ─── */
input:focus, textarea:focus, button:focus {
  outline: none;
}

/* ─── Navbar Transition ─── */
#navbar.scrolled {
  background: rgba(5, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 77, 99, 0.3);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Form Input Placeholders ─── */
input::placeholder, textarea::placeholder {
  color: #48637a;
}

/* ─── Button Focus Ring ─── */
button:focus-visible, a:focus-visible {
  outline: 2px solid #42a863;
  outline-offset: 2px;
}

/* ─── Thin Line Decorations ─── */
.divider-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #42a863, transparent);
}
