@import "tailwindcss";

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

@theme {
  --color-primary: #0b31ae;
  --color-primary-dark: #07227d;
  --color-primary-light: #254ee0;
  --color-secondary: #1bbde4;
  --color-secondary-dark: #0fa1c4;
  --color-secondary-light: #4fd0ef;
  --color-dark: #081839;
  --color-dark-surface: #0e224e;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

:root {
  --primary: #0b31ae;
  --primary-dark: #07227d;
  --primary-light: #254ee0;
  --secondary: #1bbde4;
  --secondary-dark: #0fa1c4;
  --secondary-light: #4fd0ef;
  --dark: #081839;
  --dark-surface: #0e224e;
}

.font-serif-title,
.font-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Base styling */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Ribbon Cut for Topbar Header in Sky Color (#1bbde4) - Desktop only (>= 768px) */
.ribbon-cut {
  position: relative;
  background-color: #1bbde4;
}

.ribbon-cut::after {
  content: '';
  display: none;
}

@media (min-width: 768px) {
  .ribbon-cut::after {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - 2px);
    width: 22px;
    height: 100%;
    background-color: #1bbde4;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 10;
    pointer-events: none;
    transition: background-color 0.2s ease;
  }

  .ribbon-cut:hover::after {
    background-color: #4fd0ef;
  }
}

/* Mega Menu & Dropdown Animations */
.dropdown-menu,
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .dropdown-menu,
.group:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
  background: #0b31ae;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #081839;
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, #0b31ae 0%, #1bbde4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-radial-hero {
  background: radial-gradient(circle at 80% 20%, rgba(27, 189, 228, 0.15) 0%, rgba(11, 49, 174, 0.05) 50%, rgba(248, 250, 252, 1) 100%);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(27, 189, 228, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0);
  }
}

.emergency-pulse {
  animation: pulse-ring 2s infinite;
}

/* Swiper Hero Custom Styles */
.hero-swiper {
  width: 100%;
  position: relative;
}

.hero-swiper .swiper-wrapper {
  display: flex !important;
  height: 100% !important;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

/* Image Zoom & Pan Animation on Slide Change */
.hero-slide-img {
  transform: scale(1.08) translate3d(0, 0, 0);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.swiper-slide-active .hero-slide-img {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Custom Swiper Pagination */
.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  opacity: 0.8;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 34px;
  background: linear-gradient(90deg, #0b31ae, #1bbde4);
  border-radius: 6px;
  opacity: 1;
}

/* Custom Swiper Navigation Buttons (Desktop only >= 1024px) */
.hero-swiper-btn-prev,
.hero-swiper-btn-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: #081839;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(8, 24, 57, 0.12);
  border: 2px solid #1bbde4;
  cursor: pointer;
  transition: all 0.25s ease;
}

@media (min-width: 1024px) {
  .hero-swiper-btn-prev,
  .hero-swiper-btn-next {
    display: flex;
  }
}

.hero-swiper-btn-prev:hover,
.hero-swiper-btn-next:hover {
  background: #081839;
  color: #1bbde4;
  border-color: #1bbde4;
  box-shadow: 0 6px 22px rgba(11, 49, 174, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.hero-swiper-btn-prev {
  left: 20px;
}

.hero-swiper-btn-next {
  right: 20px;
}

/* Doctors Swiper Section Styles */
.doctors-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

.doctors-swiper .swiper-slide {
  height: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
}

/* Fallback grid before Swiper JS initializes */
.doctors-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}

@media (min-width: 640px) {
  .doctors-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .doctors-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Doctors Swiper Pagination (Centered Alignment) */
.doctors-swiper-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.doctors-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #081839;
  opacity: 0.25;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.doctors-swiper-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 9999px;
  background: #1bbde4;
  opacity: 1;
}

/* Floating Card Animation */
@keyframes floatingCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float-card {
  animation: floatingCard 4s ease-in-out infinite;
}

/* Slide Content Entrance Animation with Scatter & Disperse Recovery */
.swiper-slide-active .hero-animate-title {
  animation: heroScatterIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.swiper-slide-active .hero-animate-desc {
  animation: heroScatterIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.swiper-slide-active .hero-animate-btn {
  animation: heroScatterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

@keyframes heroScatterIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px) scale(0.96);
    letter-spacing: 0.02em;
  }

  60% {
    opacity: 0.85;
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    letter-spacing: normal;
  }
}

/* Floating Scatter Nodes animation in background */
@keyframes floatScatterSlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate(15px, -18px) scale(1.15);
    opacity: 0.8;
  }
}

.animate-scatter-dot-delayed {
  animation: floatScatterSlow 7s ease-in-out 2s infinite;
}

/* Organic Floating & Rotating Background Blob Animation */
@keyframes organicBlobFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(-20px, -24px) rotate(8deg) scale(1.06);
  }
  66% {
    transform: translate(16px, -12px) rotate(-6deg) scale(0.96);
  }
}

.animate-blob-organic {
  animation: organicBlobFloat 12s ease-in-out infinite;
  transform-origin: center center;
}

/* Video Play Button Pulse Ripple Effect with Sky Blue Theme (#1bbde4) */
@keyframes playRipple {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 18px rgba(27, 189, 228, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0);
  }
}

.play-btn-ripple {
  animation: playRipple 2.2s infinite ease-in-out;
}

/* About Card Floating Badge Shadow */
.about-badge-shadow {
  box-shadow: 0 20px 40px -15px rgba(8, 24, 57, 0.5);
}

/* Testimonial Floating Avatars Animation */
@keyframes floatAvatarSlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

.animate-avatar-float {
  animation: floatAvatarSlow 5s ease-in-out infinite;
}

.animate-avatar-float-delayed {
  animation: floatAvatarSlow 6s ease-in-out 1.5s infinite;
}

.animate-avatar-float-slow {
  animation: floatAvatarSlow 7s ease-in-out 3s infinite;
}

/* Testimonial Swiper Pagination */
.testimonial-swiper-pagination {
  position: relative !important;
  margin-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.testimonial-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #081839;
  opacity: 0.2;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.testimonial-swiper-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 9999px;
  background: #1bbde4;
  opacity: 1;
}

/* Floating WhatsApp & Calling Action Buttons */
@keyframes ringVibrate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  10%, 30% {
    transform: rotate(-12deg) scale(1.06);
  }
  20%, 40% {
    transform: rotate(12deg) scale(1.06);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
}

.animate-ring-phone {
  display: inline-block;
  transform-box: fill-box;
  transform-origin: center center;
  animation: ringVibrate 2.8s infinite ease-in-out;
}

@keyframes floatPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-wp-pulse {
  animation: floatPulseGreen 2.2s infinite;
}

@keyframes floatPulseBlue {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0.65);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(27, 189, 228, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(27, 189, 228, 0);
  }
}

.floating-call-pulse {
  animation: floatPulseBlue 2.2s infinite 1.1s;
}

/* Department Tab Switcher Styles */
.dept-tab-btn {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  transition: all 0.25s ease !important;
}

.dept-tab-btn .tab-title {
  color: #0f172a !important; /* Dark Slate - 100% visible when inactive */
  transition: color 0.25s ease !important;
}

.dept-tab-btn .tab-subtext {
  color: #64748b !important; /* Slate 500 when inactive */
  transition: color 0.25s ease !important;
}

.dept-tab-btn .tab-icon-box {
  background-color: #eff6ff !important;
  color: #0b31ae !important;
  border-color: #dbeafe !important;
  transition: all 0.25s ease !important;
}

.dept-tab-btn .tab-arrow {
  color: #94a3b8 !important;
  transition: all 0.25s ease !important;
}

/* Hover state for inactive tabs */
.dept-tab-btn:not(.active):hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.dept-tab-btn:not(.active):hover .tab-title {
  color: #0b31ae !important;
}

.dept-tab-btn:not(.active):hover .tab-arrow {
  color: #0b31ae !important;
  transform: translateX(3px) !important;
}

/* Active Tab (Selected) */
.dept-tab-btn.active,
.dept-tab-btn[aria-selected="true"] {
  background: linear-gradient(135deg, #081839 0%, #0b31ae 100%) !important;
  border-color: #1bbde4 !important;
  box-shadow: 0 10px 25px -5px rgba(11, 49, 174, 0.4) !important;
}

.dept-tab-btn.active .tab-title,
.dept-tab-btn[aria-selected="true"] .tab-title {
  color: #ffffff !important; /* Pure white on dark gradient background */
}

.dept-tab-btn.active .tab-subtext,
.dept-tab-btn[aria-selected="true"] .tab-subtext {
  color: #e2e8f0 !important; /* Crisp light slate on dark background */
}

.dept-tab-btn.active .tab-icon-box,
.dept-tab-btn[aria-selected="true"] .tab-icon-box {
  background-color: #1bbde4 !important;
  color: #081839 !important;
  border-color: #1bbde4 !important;
}

.dept-tab-btn.active .tab-arrow,
.dept-tab-btn[aria-selected="true"] .tab-arrow {
  color: #1bbde4 !important;
  transform: translateX(4px) !important;
  opacity: 1 !important;
}

.dept-tab-pane {
  animation: fadeInPane 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Browse Doctors by Specialization Circular Buttons */
.spec-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  outline: none;
  background: transparent;
  border: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-circle-btn .spec-circle {
  background-color: #f0f7ff;
  border: 1.5px solid #c8e1fd;
  color: #0b31ae;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(11, 49, 174, 0.06);
}

.spec-circle-btn:hover .spec-circle {
  background: linear-gradient(135deg, #0b31ae 0%, #0062d2 50%, #1bbde4 100%);
  border-color: #1bbde4;
  color: #ffffff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 24px -4px rgba(11, 49, 174, 0.35), 0 4px 12px rgba(27, 189, 228, 0.25);
}

.spec-circle-btn .spec-name {
  color: #081839;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.spec-circle-btn:hover .spec-name {
  color: #0b31ae;
}

.spec-circle-btn.active .spec-circle {
  background: linear-gradient(135deg, #081839 0%, #0b31ae 100%) !important;
  color: #ffffff !important;
  border-color: #1bbde4 !important;
  box-shadow: 0 12px 28px -3px rgba(11, 49, 174, 0.45) !important;
  transform: scale(1.08) !important;
}

.spec-circle-btn.active .spec-name {
  color: #0b31ae !important;
  font-weight: 700 !important;
}

/* Emergency & Critical Care red accent matching reference list */
.spec-circle-btn[data-specialty="emergency"] .spec-circle {
  background-color: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.08);
}

.spec-circle-btn[data-specialty="emergency"]:hover .spec-circle {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  border-color: #fb7185;
  color: #ffffff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 24px -4px rgba(225, 29, 72, 0.35);
}

.spec-circle-btn[data-specialty="emergency"] .spec-name {
  color: #e11d48;
  font-weight: 600;
  transition: color 0.2s ease;
}

.spec-circle-btn[data-specialty="emergency"]:hover .spec-name {
  color: #be123c;
}

.spec-circle-btn[data-specialty="emergency"].active .spec-circle {
  background: linear-gradient(135deg, #881337 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 12px 28px -3px rgba(225, 29, 72, 0.45) !important;
  transform: scale(1.08) !important;
}

.spec-circle-btn[data-specialty="emergency"].active .spec-name {
  color: #e11d48 !important;
  font-weight: 700 !important;
}

/* Doctor card styling */
.doctor-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(8, 24, 57, 0.12);
  border-color: #1bbde4;
}

/* Neuro Doctor Section (Matching User Reference Design) */
.neuro-doctor-card {
  background-color: #f2faf7;
  border: 1px solid #d0ece5;
  border-radius: 1.125rem;
  transition: all 0.3s ease;
}

.neuro-doctor-card:hover {
  border-color: #b6e2d6;
  box-shadow: 0 10px 25px -5px rgba(0, 98, 210, 0.07), 0 6px 12px -4px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.neuro-img-frame {
  background-color: #ffffff;
  border: 1px solid #d2ebe3;
  border-radius: 0.875rem;
}

.neuro-btn-badge {
  border: 1px solid #00a3e0;
  color: #009edb;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.neuro-btn-badge:hover {
  background-color: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

.neuro-book-link {
  color: #0b31ae;
  font-weight: 700;
  transition: color 0.2s ease;
}

.neuro-book-link:hover {
  color: #07227d;
  text-decoration: underline;
}

/* Individual Doctor Profile Avatar Container */
.doctor-profile-avatar-frame {
  width: 176px !important;
  height: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.doctor-profile-avatar-frame img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: top !important;
  display: block !important;
}

/* Careers Filter Bar */
.careers-filter-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  align-items: flex-end !important;
  width: 100% !important;
}

.careers-filter-search {
  flex: 1 1 320px !important;
  min-width: 240px !important;
}

.careers-filter-dept {
  flex: 0 1 260px !important;
  min-width: 200px !important;
}

.careers-filter-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
}

/* =======================================================
   Doctor Review Section (GMB CTA) - Guaranteed Dark Card
   ======================================================= */
.doctor-review-card {
  background: linear-gradient(135deg, #081839 0%, #0d2e6e 50%, #081839 100%) !important;
  background-color: #081839 !important;
  color: #ffffff !important;
}

.doctor-review-card h3 {
  color: #ffffff !important;
}

.doctor-review-card p {
  color: #e2e8f0 !important;
}

.doctor-review-btn {
  background-color: #ffffff !important;
  color: #081839 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35) !important;
}

.doctor-review-btn:hover {
  background-color: #f8fafc !important;
  color: #0062d2 !important;
}