/* Custom styles supplementing Tailwind */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Selection color */
::selection {
  background-color: #99f6e4;
  color: #042f2e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Subtle entrance animation for hero (no JS required) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero > div > div > div:first-child > * {
  animation: fadeInUp 0.7s ease forwards;
}

#hero > div > div > div:first-child > :nth-child(2) {
  animation-delay: 0.1s;
}

#hero > div > div > div:first-child > :nth-child(3) {
  animation-delay: 0.2s;
}

#hero > div > div > div:first-child > :nth-child(4) {
  animation-delay: 0.3s;
}

#hero > div > div > div:first-child > :nth-child(5) {
  animation-delay: 0.4s;
}

/* Image hover zoom effect */
img {
  transition: transform 0.4s ease;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}
