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

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

/* Navigation link hover effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #63C399;
  border-radius: 1px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

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

/* Mobile nav links */
.mobile-nav-link {
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  border-left-color: #63C399;
  padding-left: 1rem;
}

/* Reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays */
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Header scroll state */
header.scrolled {
  background: rgba(10, 22, 40, 0.98) !important;
  box-shadow: 0 4px 30px rgba(6, 13, 31, 0.4) !important;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #F2FBF7 inset !important;
  -webkit-text-fill-color: #0F2240 !important;
}

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

::-webkit-scrollbar-track {
  background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #3DA87E;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #63C399;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #3DA87E;
  color: #0A1628;
}
