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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* ========== HERO ANIMATIONS ========== */
.fade-in {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

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

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

/* ========== SELECTION ========== */
::selection {
  background: #f9ddd2;
  color: #a33019;
}

/* ========== FOCUS ========== */
*:focus-visible {
  outline: 2px solid #d9522b;
  outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h1 span {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: 5rem;
  }
}
