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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 107, 74, 0.3);
  color: #fff;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B4A;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.translate-y-8 {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.translate-x-8 {
  opacity: 0;
  transform: translateX(32px);
}

.reveal.scale-95 {
  opacity: 0;
  transform: scale(0.95);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

/* ── Hero Animations ── */
.hero-elem {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.3s; }
.hero-elem:nth-child(2) { animation-delay: 0.5s; }
.hero-elem:nth-child(3) { animation-delay: 0.7s; }
.hero-elem:nth-child(4) { animation-delay: 0.9s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navbar ── */
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* ── Custom Select ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-elem {
    opacity: 1;
    transform: none;
  }
}

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