/* Custom styles beyond Tailwind */

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* Selection color */
::selection {
  background: #14b8a6;
  color: white;
}

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

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

/* Nav transition */
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero image parallax-like fixed feel */
#hero {
  background-attachment: fixed;
}

/* Gallery hover overlay */
.rounded-xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 148, 136, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

/* Ensure gallery items are positioned relative for the overlay */
.rounded-xl.overflow-hidden {
  position: relative;
}

/* Service card image container */
.group.relative .h-56 {
  position: relative;
  z-index: 1;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #14b8a6, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
