/* ===== Base & Utilities ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f0f0f0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f14;
}
::-webkit-scrollbar-thumb {
  background: #1e2d3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a3f4f;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ===== Scroll Down Animation ===== */
@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

.animate-scrollDown {
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ===== Navbar ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #dbb960 !important;
}

/* ===== Hero Image Parallax ===== */
#heroImg {
  will-change: transform;
}

/* ===== Collection Card Hover ===== */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

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

/* ===== Mobile Menu Transitions ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu Lines Animation ===== */
.menu-line {
  will-change: transform;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
  background: #c9a84c;
}

/* ===== Gold Gradient Text Utility ===== */
.text-gradient-gold {
  background: linear-gradient(135deg, #e8cc7a, #c9a84c, #a07c2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Subtle Glow Effects ===== */
.glow-gold {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

.glow-teal {
  box-shadow: 0 0 40px rgba(26, 122, 127, 0.15);
}

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

@media (min-width: 1024px) {
  .reveal {
    transform: translateY(60px);
  }
}
