/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Navigation ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-text {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Mobile Menu ── */
.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #ff6f5b;
}

/* ── Scroll Reveal (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.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; }
}

/* ── Selection ── */
::selection {
  background: #ff6f5b;
  color: #ffffff;
}

/* ── Focus ── */
a:focus-visible,
button:focus-visible {
  outline: 1px solid #ff6f5b;
  outline-offset: 4px;
}

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