/* Delmar Language Systems — Custom Styles */

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

/* Base font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #051525;
}
::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3DB87A;
}

/* Selection color */
::selection {
  background: rgba(61, 184, 122, 0.3);
  color: #ffffff;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #3DB87A;
  outline-offset: 2px;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Nav background on scroll */
header.scrolled {
  background: rgba(2, 11, 20, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(168, 230, 207, 0.05);
}

/* Card hover lift */
.group:hover {
  transform: translateY(-4px);
}

/* Subtle glow on mint elements */
.text-mint-400 {
  text-shadow: 0 0 40px rgba(95, 196, 144, 0.15);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
