/* Custom styles complementing Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}

/* Prevent horizontal scroll from geometric elements */
body {
  overflow-x: hidden;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print styles */
@media print {
  nav, #mobile-menu, .geo-circle, .geo-square, .geo-triangle {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

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

/* Thin scrollbar for webkit */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0B1D3A;
}
::-webkit-scrollbar-thumb {
  background: #D4A017;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E8B82C;
}
