/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, textarea, select {
  font: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #EDEBE7;
}
::-webkit-scrollbar-thumb {
  background: #FF6B4A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff8566;
}

/* ===== NAVBAR SCROLLED STATE ===== */
.nav-scrolled {
  background: rgba(247, 245, 242, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.menu-toggle-active .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle-active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle-active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== SELECTION ===== */
::selection {
  background: #FF6B4A;
  color: white;
}
