/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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(249, 243, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 78, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5a623;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

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

.mobile-link {
  display: block;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #d49fbe;
  border-radius: 4px;
}

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

/* ========== SELECTION ========== */
::selection {
  background: #e6c6d8;
  color: #561f37;
}

/* ========== IMAGE HOVER ========== */
img {
  max-width: 100%;
  height: auto;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== FORM ========== */
input, textarea {
  font-family: inherit;
}
