/* ===== Base & Utilities ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== Navbar Shadow on Scroll ===== */
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(30, 58, 95, 0.1);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4f9;
}
::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #162d4b;
}

/* ===== Selection Color ===== */
::selection {
  background: #d4a84b;
  color: #1e3a5f;
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
  max-height: 400px;
}

/* ===== Product Card Hover ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #d4a84b;
  outline-offset: 2px;
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}

/* ===== Image Loading ===== */
img {
  image-rendering: auto;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}
