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

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

/* Nav scroll state */
#site-header.scrolled {
  background: rgba(15, 51, 28, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Nav links underline animation */
.nav-link {
  position: relative;
}

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

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

/* Mobile links */
.mobile-link {
  position: relative;
}

.mobile-link:hover {
  color: #d4a843;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Input autofill override for dark inputs */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
  -webkit-text-fill-color: white !important;
}

/* Selection color */
::selection {
  background: #d4a843;
  color: #0f331c;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #2d4a2f;
}

/* Mobile menu animation */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

.geometric-float {
  animation: float 6s ease-in-out infinite;
}

.geometric-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}
