/* Custom styles that complement Tailwind */

/* Ensure smooth rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.3);
  color: #f1f5f9;
}

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

/* Smooth image rendering */
img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

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

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

::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* Select dropdown 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='%2394a3b8' 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 1rem center;
  padding-right: 2.5rem;
}

/* Print styles */
@media print {
  nav, #back-to-top, button {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

/* Reduced motion - ensure content is visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-bg {
    animation: none !important;
    transform: scale(1) !important;
  }
  .card-lift {
    transition: none !important;
  }
  .card-lift:hover {
    transform: none !important;
  }
  .gold-shimmer {
    animation: none !important;
    background: linear-gradient(90deg, #c9a84c, #f0d78c, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Small screen adjustments */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
  .gold-shimmer {
    font-size: inherit;
  }
}

/* Large screen adjustments */
@media (min-width: 1024px) {
  .reveal {
    transition-delay: 0.1s;
  }
  .reveal:nth-child(2) {
    transition-delay: 0.2s;
  }
  .reveal:nth-child(3) {
    transition-delay: 0.3s;
  }
  .reveal:nth-child(4) {
    transition-delay: 0.4s;
  }
}
