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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060D0A;
}
::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06B6D4;
}

/* ========== NAVBAR ========== */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background-color: rgba(6, 13, 10, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}
#navbar.scrolled .menu-line {
  background-color: #FFF8F0;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu button animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* ========== HERO FLOATING CARDS ========== */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.card-1 {
  animation-delay: 0s;
}
.card-2 {
  animation-delay: -2s;
}
.card-3 {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default visible state (no JS) */
.scroll-reveal {
  /* Content is visible by default — animation is progressive enhancement */
}

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

/* ========== SELECTION ========== */
::selection {
  background-color: rgba(4, 120, 87, 0.4);
  color: #FFF8F0;
}

/* ========== FORM STYLES ========== */
select option {
  background-color: #0A1310;
  color: #FFF8F0;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
}
