/* Custom styles beyond Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar scroll state */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero text animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-animate-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-animate-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-animate-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-animate-delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
  max-height: 400px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #0d9488;
  color: white;
}

/* Service card hover image tilt effect */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Subtle gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
