/* Custom styles for Thasa Dental */

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

/* Floating animation for hero cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-card {
  animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
  animation-delay: 1s;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* Selection color */
::selection {
  background: #ccfbf1;
  color: #134e4a;
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Service card hover effect */
.group:hover .group-hover\:bg-white\/20 {
  background: rgba(255, 255, 255, 0.2);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}
