/* === 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;
}

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

::selection {
  background: #ff4f1e;
  color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: #2d2d2d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff4f1e;
}

/* === REVEAL ANIMATIONS (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* Fallback: content always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === NAV SCROLLED STATE === */
nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === BUTTON HOVER GLOW === */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* === FORM FOCUS RING === */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 79, 30, 0.2);
}

/* === MOBILE MENU TRANSITION === */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

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

/* === HERO IMAGE PARALLAX (progressive) === */
@media (prefers-reduced-motion: no-preference) {
  #hero img {
    transition: transform 0.1s linear;
  }
}
