/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1F1B16;
}
::-webkit-scrollbar-thumb {
  background: #362F27;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C87943;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default state: visible (no JS progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Animated state — only applied via JS */
.reveal-up.animated {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left.animated {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right.animated {
  opacity: 0;
  transform: translateX(40px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 121, 67, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .menu-line {
  background: #F5E6D3;
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.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; }

/* Mobile menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.25rem;
}

/* ===== HERO PARALLAX SUBTLE ===== */
#hero {
  position: relative;
}

#hero img {
  will-change: transform;
}

/* ===== GOLD ACCENT LINE ===== */
.gold-line {
  background: linear-gradient(90deg, transparent, #C87943, transparent);
}

/* ===== CARD HOVER GLOW ===== */
.glow-card:hover {
  box-shadow: 0 0 40px rgba(200, 121, 67, 0.1);
}

/* ===== IMAGE LAZY LOAD FADE ===== */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

/* ===== INPUT AUTOFOCUS HIGHLIGHT ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(200, 121, 67, 0.15);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #about .grid {
    gap: 3rem;
  }
}
