/* Custom styles for Maxim Integrated Products LLC */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(6, 14, 31, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled #nav-logo-text {
  color: #ffffff;
}

/* Service card hover image effect */
.group:hover .group-hover\:bg-gold-500 {
  transition: background-color 0.5s ease;
}

/* Form select arrow */
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='%23C8A45E' 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: 36px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #C8A45E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4B76A;
}

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