@keyframes heroText {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

html {
  scroll-behavior: smooth;
}

/* Remove default focus outline for mouse users, keep for keyboard */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Image fallback styles */
img {
  display: block;
}

/* Prevent layout shift on hover */
.group {
  position: relative;
}

/* Subtle grain overlay for premium feel */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/></filter><rect width="100" height="100" fill="%23fff"/><rect width="100" height="100" fill="%23000" opacity="0.02" filter="url(%23noise)"/></svg>');
  opacity: 0.3;
  z-index: -1;
}

/* Smooth button hover effects */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

button:active::before {
  width: 300px;
  height: 300px;
}

/* Link underline animation */
a.nav-link {
  position: relative;
}

a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2563eb, #14b8a6);
  transition: width 0.3s ease;
}

a.nav-link:hover::after {
  width: 100%;
}

/* Responsive mobile menu */
@media (max-width: 768px) {
  #mobile-menu-panel {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 0;
    margin: 0;
    border-radius: 0;
  }

  #mobile-menu-panel.hidden {
    display: none;
  }

  #mobile-menu-panel:not(.hidden) {
    display: block;
  }
}

/* Service card icon animation */
.group .rounded-full {
  transition: transform 0.3s ease;
}

.group:hover .rounded-full {
  transform: scale(1.15) rotate(5deg);
}

/* Testimonial card stagger */
@keyframes staggerCards {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero gradient text */
.bg-clip-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #2563eb, #14b8a6);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1d4ed8, #0d9488);
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }
}

