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

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

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

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

::selection {
  background-color: rgba(255, 92, 43, 0.2);
  color: #1c1c27;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

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

.nav-logo-text {
  color: #1c1c27;
  transition: color 0.3s ease;
}

.nav-subtext {
  color: #737387;
  transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #1c1c27;
}

#navbar.scrolled .nav-subtext {
  color: #737387;
}

.nav-link {
  position: relative;
}

/* ========== HERO ANIMATIONS ========== */
.hero-badge {
  animation: fadeDown 0.8s ease forwards;
  opacity: 0;
}

.hero-headline {
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-sub {
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-ctas {
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-scroll {
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(32px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal-state="hidden"] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
  display: block;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ff8456;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
  background: #c4c4cc;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8456;
}
