@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    font-family: 'Inter', sans-serif;
    @apply text-gray-700 bg-gray-50;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: 'Outfit', sans-serif;
  }
}

/* Custom Utilities */
.text-brand-accent {
  color: #ff6600;
}

.bg-brand-accent {
  background-color: #ff6600;
}

.bg-brand-primary {
  background-color: #0015ad;
}

.text-brand-primary {
  color: #0015ad;
}

/* Sticky Header Adjustments */
header.sticky-active {
  @apply shadow-md bg-white/95 backdrop-blur-md transition-all duration-300;
}

/* Mobile Menu Animation */
.mobile-menu {
  clip-path: circle(0px at top right);
  transition: clip-path 0.5s ease-in-out;
}

.mobile-menu.open {
  clip-path: circle(150% at top right);
  z-index: 51;
}

/* Service Modal Nav Links */
.service-nav-link {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
}

.service-nav-link:hover {
  color: #fb923c;
}

.service-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #fb923c;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

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

@keyframes serviceLine {
  0% {
    left: -40px;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.animate-service-line {
  animation: serviceLine 2s linear infinite;
}

/* Hero Slider Overrides */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  @apply text-white w-12 h-12 rounded-full bg-brand-accent/50 hover:bg-brand-accent transition-colors backdrop-blur-sm;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
  @apply text-xl font-bold;
}

.hero-swiper .swiper-pagination-bullet {
  @apply bg-white opacity-50 w-3 h-3;
}

.hero-swiper .swiper-pagination-bullet-active {
  @apply opacity-100 bg-brand-accent;
}

/* Doctor Slider Overrides */
/* Doctor Swiper */
.doctor-swiper {
  @apply pb-16;
}

/* Pagination Position */
.doctor-swiper .swiper-pagination {
  position: relative !important;
  margin-top: 30px;
  bottom: auto !important;
}

/* Default Dot */
.doctor-swiper .swiper-pagination-bullet {
  @apply bg-brand-accent opacity-40 w-3 h-3 transition-all duration-300;
}

/* Active Dot */
.doctor-swiper .swiper-pagination-bullet-active {
  @apply opacity-100;
  width: 28px;
  border-radius: 999px;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Image overlays */
.overlay-gradient {
  background: linear-gradient(to right, rgba(0, 21, 173, 0.85), rgba(255, 102, 0, 0.7));
}

/* Testimonial Swiper */
.testimonial-swiper {
  @apply pb-16;
}

/* Equal Height */
.testimonial-swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonial-swiper .swiper-slide {
  height: auto;
}

/* Pagination Position */
.testimonial-swiper .swiper-pagination {
  position: relative !important;
  margin-top: 40px;
}

/* Default Dot */
.testimonial-swiper .swiper-pagination-bullet {
  @apply bg-brand-accent opacity-40 w-3 h-3 transition-all duration-300;
}

/* Active Dot */
.testimonial-swiper .swiper-pagination-bullet-active {
  @apply opacity-100;
  width: 28px;
  border-radius: 999px;
}

@keyframes footerLine {

  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    transform: translateX(250%);
    opacity: 0;
  }

}