/* Base styles and custom utilities */
html {
  scroll-behavior: smooth;
}

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

/* Mobile menu open state */
body.menu-open {
  overflow: hidden;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger animation */
body.menu-open #menu-toggle .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open #menu-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

body.menu-open #menu-toggle .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Selection color */
::selection {
  background-color: #99f6e4;
  color: #0f172a;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal.hidden-reveal {
    opacity: 1;
    transform: none;
  }
  .card-hover {
    transition: none;
  }
  .animate-bounce {
    animation: none;
  }
  #submit-spinner {
    animation: none;
  }
}
