/* 
   DR. KAMAKASHI MULTISPECIALITY CLINIC MAMBAKKAM
   PREMIUM CUSTOM STYLESHEET
   Aesthetics: Clean, Premium Clinical Outreach Website
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #702081; /* KMH Deep Purple */
  --primary-rgb: 112, 32, 129;
  --secondary: #5C2D91; /* KMH Secondary Purple */
  --secondary-rgb: 92, 45, 145;
  --accent: #E0000F; /* KMH Medical Red */
  --accent-rgb: 224, 0, 15;
  --accent-blue: #0284C7; /* Medical Soft Blue */
  --accent-blue-rgb: 2, 132, 199;
  --bg: #F1F5F9; /* Slate 100 - Increased background depth for better contrast */
  --card-bg: #FFFFFF;
  --text: #0F172A; /* Slate 900 - Bolder dark text for high readability */
  --text-muted: #475569; /* Slate 600 - Darker muted text for better contrast */
  --border: rgba(112, 32, 129, 0.1); /* Slightly higher visibility */
  --border-light: rgba(112, 32, 129, 0.05);
  --shadow-sm: 0 2px 8px rgba(112, 32, 129, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(112, 32, 129, 0.08), 0 8px 16px -6px rgba(112, 32, 129, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(112, 32, 129, 0.12), 0 12px 24px -10px rgba(112, 32, 129, 0.08);
  --radius-sm: 8px; /* Sharper professional medical corners */
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(81, 63, 149, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(81, 63, 149, 0.4);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  max-width: 680px;
  margin-bottom: 60px;
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  background: rgba(107, 92, 184, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary);
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(81, 63, 149, 0.2);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 92, 184, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(81, 63, 149, 0.05);
  transform: translateY(-2px);
}

/* Decorative Background Elements */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.glow-primary {
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.glow-accent {
  background: var(--accent);
  bottom: -100px;
  left: -100px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: rgba(16, 6, 30, 0.45); /* Semi-transparent dark glass for dark hero integration */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  transition: var(--transition-normal);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .nav-link:hover {
  color: #ffffff;
}

.navbar .btn-primary {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.navbar .btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.navbar .nav-logo img {
  filter: brightness(0) invert(1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  height: 80px;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

.navbar.scrolled .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.navbar.scrolled .btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.navbar.scrolled .nav-logo img {
  filter: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.nav-logo img {
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: var(--transition-normal);
}

.navbar.scrolled .nav-logo img {
  height: 48px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-action {
  display: none;
}

.nav-drkmh-link {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.nav-drkmh-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.navbar.scrolled .nav-drkmh-link {
  color: var(--primary);
  background: rgba(112, 32, 129, 0.06);
  border-color: rgba(112, 32, 129, 0.18);
}

.navbar.scrolled .nav-drkmh-link:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Mobile Nav Styles */
@media (max-width: 991px) {
  .navbar {
    height: 70px !important;
    background: rgba(16, 6, 30, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .navbar.scrolled {
    height: 70px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .nav-logo img {
    max-width: 180px !important;
    height: auto !important;
    filter: brightness(0) invert(1) !important;
  }
  .navbar.scrolled .nav-logo img {
    max-width: 180px !important;
    height: auto !important;
    filter: none !important;
  }

  .menu-toggle {
    display: block;
  }
  
  .navbar .menu-toggle span {
    background: #ffffff !important;
  }
  .navbar.scrolled .menu-toggle span {
    background: var(--primary) !important;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #16061e !important;
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
    z-index: 998;
  }
  
  .navbar.scrolled .nav-menu {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
  }
  .nav-menu .nav-link:hover {
    color: #ffffff !important;
  }

  .navbar.scrolled .nav-menu .nav-link {
    color: var(--text-muted) !important;
  }
  .navbar.scrolled .nav-menu .nav-link:hover {
    color: var(--primary) !important;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-action {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 0;
    margin-top: 2px;
  }

  .mobile-menu-action .nav-drkmh-link {
    width: auto;
    min-height: 38px;
    padding: 9px 18px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .navbar.scrolled .mobile-menu-action .nav-drkmh-link {
    color: var(--primary);
    background: rgba(112, 32, 129, 0.06);
    border-color: rgba(112, 32, 129, 0.18);
  }
  
  .navbar.scrolled .nav-menu {
    top: 70px;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 14px;
    gap: 8px;
  }

  .nav-logo img {
    max-width: 136px !important;
  }

  .navbar.scrolled .nav-logo img {
    max-width: 136px !important;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(224, 0, 15, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(112, 32, 129, 0.35) 0%, transparent 60%),
              linear-gradient(135deg, #10061e 0%, #1c0a32 50%, #0c0316 100%);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d8b4fe; /* Lighter lavender for dark background */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1; /* Lighter slate-300 for high readability */
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary) 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
  color: #ffffff;
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 12px 30px rgba(112, 32, 129, 0.4);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ffffff !important;
}

.hero-badges-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c084fc; /* Violet 400 for accent details */
  margin-bottom: 16px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
}

.hero-badge-item svg {
  color: #c084fc;
  flex-shrink: 0;
}

/* Hero Interactive Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
}

.hero-circle-backdrop {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(81, 63, 149, 0.03) 0%, rgba(140, 193, 243, 0.1) 100%);
  border: 1px solid rgba(81, 63, 149, 0.05);
  z-index: 1;
}

/* Clinic Registration Desk Card & Badges */
.clinic-desk-card {
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  z-index: 10;
  transition: var(--transition-normal);
}

.clinic-desk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(112, 32, 129, 0.12);
}

.clinic-desk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.clinic-logo-wrap {
  max-width: 180px;
}

.clinic-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.clinic-desk-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.clinic-quick-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-mini {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input-mini, .form-select-mini {
  font-family: var(--font-sans);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: var(--transition-fast);
}

.form-input-mini:focus, .form-select-mini:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(112, 32, 129, 0.1);
}

.btn-submit-mini {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(112, 32, 129, 0.2);
}

.btn-submit-mini:hover {
  background: var(--secondary);
  box-shadow: 0 6px 16px rgba(92, 45, 145, 0.3);
  transform: translateY(-1px);
}

/* Floating Clinic Badges */
.floating-badge-item {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 12;
  transition: var(--transition-normal);
}

.floating-badge-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.badge-top-right {
  top: 12%;
  left: 100%;
  margin-left: 24px;
  animation: float 6s ease-in-out infinite;
}

.badge-bottom-left {
  bottom: 12%;
  right: 100%;
  margin-right: 24px;
  animation: float 8s ease-in-out infinite 1s;
}

.badge-icon-red {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(224, 0, 15, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-purple {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(112, 32, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.badge-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 6px;
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 1.5s infinite;
}


@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-visual {
    height: 380px;
  }
  .hero-circle-backdrop {
    width: 320px;
    height: 320px;
  }
  .floating-badge-item { display: none !important; }
  .clinic-desk-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 20px auto 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
  }
}

/* About Section */
.about {
  background: var(--bg);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 32, 129, 0.05) 0%, transparent 70%);
  top: -100px;
  left: -200px;
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-dashboard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.about-decor-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(140, 193, 243, 0.15);
  top: -40px;
  left: -40px;
  z-index: 1;
  filter: blur(20px);
}

.about-db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.about-db-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.about-db-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(81, 63, 149, 0.05);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 100px;
}

.about-db-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-db-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.about-db-item:hover {
  transform: scale(1.02);
  border-color: rgba(81, 63, 149, 0.15);
}

.about-db-label-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-db-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.about-db-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.about-db-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.about-db-status.online {
  color: #10B981;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-visual {
    order: 2;
  }
  .about-content {
    order: 1;
  }
}

/* Our Services Section */
.services-section {
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #FAF5FF 100%);
  border: 1px solid rgba(112, 32, 129, 0.12);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(112, 32, 129, 0.05);
}

/* Bento Grid col/row spans for 5 cards */
.services-grid .service-card:nth-child(1) {
  grid-column: span 1;
  grid-row: span 2;
  min-height: 480px;
}

.services-grid .service-card:nth-child(2),
.services-grid .service-card:nth-child(3),
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(112, 32, 129, 0.35);
  box-shadow: 0 20px 40px -10px rgba(112, 32, 129, 0.18), 0 0 0 4px rgba(112, 32, 129, 0.05);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(81, 63, 149, 0.06) 0%, rgba(112, 32, 129, 0.12) 100%);
  border: 1px solid rgba(112, 32, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(112, 32, 129, 0.2);
  transform: scale(1.05);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-hours {
  margin-top: auto;
  border-top: 1px solid rgba(112, 32, 129, 0.08);
  background: rgba(112, 32, 129, 0.02);
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: -32px;
  padding: 24px 32px;
  transition: background 0.3s ease;
}

.service-card:hover .service-hours {
  background: rgba(112, 32, 129, 0.04);
}

.service-hours-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.service-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-hours-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-hours-label {
  font-weight: 500;
}

.service-hours-value {
  font-weight: 600;
  color: var(--primary);
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(112, 32, 129, 0.1);
  font-size: 12px;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    min-height: auto;
  }
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Special Benefits Section */
.benefits-section {
  background: linear-gradient(135deg, #1e0b35 0%, #3e1b68 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.benefits-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 0, 15, 0.1) 0%, transparent 75%);
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

.benefits-section .section-title {
  color: #ffffff;
}

.benefits-section .section-subtitle {
  color: #d8b4fe;
}

.benefits-section .section-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #e9d5ff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.benefit-badge-glow {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.benefit-badge-glow::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  animation: rotateClockwise 20s linear infinite;
}

.benefit-discount-num {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.benefit-desc {
  font-size: 14px;
  color: #cbd5e1;
}

.benefit-footnote {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
  margin-top: 24px;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

/* Why Choose Us Section */
.why-choose-us {
  background: #ffffff;
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.why-row:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}

.why-row:nth-child(even) .why-content {
  order: 2;
}

.why-row:nth-child(even) .why-visual {
  order: 1;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-title-row {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.why-desc-row {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.why-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

/* Custom CSS illustrations representing features */
.feature-ui-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 2;
}

.feature-ui-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  margin-bottom: 12px;
  width: 100%;
}

.feature-ui-bar.short {
  width: 60%;
}

.feature-ui-bar.active {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

@media (max-width: 991px) {
  .why-row, .why-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-row:nth-child(even) .why-content {
    order: 1;
  }
  .why-row:nth-child(even) .why-visual {
    order: 2;
  }
  .why-grid {
    gap: 80px;
  }
}

/* Conditions Commonly Managed */
.conditions-section {
  background: var(--bg);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.condition-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.condition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(81, 63, 149, 0.12);
}

.condition-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.condition-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(81, 63, 149, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.condition-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.condition-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.condition-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.condition-item svg {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  .condition-card {
    padding: 32px 24px;
  }
}

/* Patient Care Journey Timeline */
.journey-section {
  background: linear-gradient(135deg, #10061e 0%, #1c0a32 100%);
  color: #ffffff;
  position: relative;
}

.journey-section .section-title {
  color: #ffffff;
}

.journey-section .section-subtitle {
  color: #cbd5e1;
}

.journey-section .section-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #e9d5ff;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  margin-top: 60px;
}

/* Desktop Horizontal Timeline */
@media (min-width: 992px) {
  .timeline-track {
    position: absolute;
    top: 120px;
    left: 8.33%;
    right: 8.33%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
  }

  .timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Animated on scroll via JS */
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary) 50%, var(--accent) 100%);
    transition: width 0.8s ease-out;
  }

  .timeline-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
    z-index: 2;
  }

  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    height: 100%;
  }

  .timeline-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #10061e;
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 40px;
    margin-top: 98px; /* line center offset */
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .timeline-step.active .timeline-node {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(112, 32, 129, 0.6);
    transform: scale(1.15);
  }

  .timeline-card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .timeline-step.active .timeline-card-content {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
  }

  .timeline-step-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: 8px;
  }

  .timeline-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
  }

  .timeline-step-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
  }
}

/* Mobile Vertical Timeline */
@media (max-width: 991px) {
  .timeline-track {
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
  }

  .timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--primary) 50%, var(--accent) 100%);
    transition: height 0.8s ease-out;
  }

  .timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
  }

  .timeline-step {
    display: flex;
    gap: 24px;
    position: relative;
  }

  .timeline-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #10061e;
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #cbd5e1;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition-normal);
  }

  .timeline-step.active .timeline-node {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(112, 32, 129, 0.5);
  }

  .timeline-card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    flex-grow: 1;
  }

  .timeline-step.active .timeline-card-content {
    border-color: rgba(167, 139, 250, 0.25);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }

  .timeline-step-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: 6px;
  }

  .timeline-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
  }

  .timeline-step-desc {
    font-size: 13px;
    color: #cbd5e1;
  }
}

/* Facilities & Support */
.facilities-section {
  background: var(--bg);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.facility-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(81, 63, 149, 0.12);
}

.facility-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(81, 63, 149, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-normal);
}

.facility-card:hover .facility-icon-circle {
  background: var(--primary);
  color: #ffffff;
}

.facility-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 991px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* Conversion CTA & Form Section */
.book-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.book-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.contact-centered {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-centered .book-info {
  align-items: center;
}

.contact-centered .book-phone-box {
  margin: 16px auto 0 auto;
  width: 100%;
  max-width: 480px;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.book-phone-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  transition: var(--transition-normal);
}

.book-phone-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.book-phone-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.book-phone-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.book-phone-number:hover {
  color: var(--secondary);
}

.book-phone-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Interactive Booking Form */
.booking-form-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.booking-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-input, .form-select, .form-textarea {
  font-family: var(--font-sans);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition-normal);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(81, 63, 149, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.form-submit-btn:hover {
  background: var(--secondary);
  box-shadow: 0 4px 14px rgba(107, 92, 184, 0.3);
}

@media (max-width: 991px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .booking-form-wrapper {
    padding: 24px;
  }
}

/* Footer */
.footer {
  background: #111019;
  color: #A0A5B5;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  text-decoration: none;
  color: #A0A5B5;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.footer-contact-item svg {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-copyright {
  color: #6C7284;
}

.footer-terms {
  color: #6C7284;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 16, 25, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(81, 63, 149, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition-fast);
  z-index: 10001;
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.modal-body {
  padding: 40px;
}

/* Success State inside Modal or Form */
.success-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: pulseSuccess 2s infinite;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.success-message {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile Floating Action Button */
.mobile-sticky-actions {
  display: none;
}

@media (max-width: 991px) {
  .mobile-sticky-actions {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    z-index: 990;
    box-shadow: none;
    padding: 0;
  }
  
  .btn-sticky-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px;
    border-radius: 100px !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(81, 63, 149, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: callPulse 2.5s infinite;
    transition: var(--transition-normal);
  }
  
  .btn-sticky-call:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(107, 92, 184, 0.4);
  }

  body {
    padding-bottom: 0px !important;
  }
}

@keyframes callPulse {
  0% { box-shadow: 0 8px 24px rgba(81, 63, 149, 0.25), 0 0 0 0 rgba(81, 63, 149, 0.4); }
  70% { box-shadow: 0 8px 24px rgba(81, 63, 149, 0.25), 0 0 0 12px rgba(81, 63, 149, 0); }
  100% { box-shadow: 0 8px 24px rgba(81, 63, 149, 0.25), 0 0 0 0 rgba(81, 63, 149, 0); }
}

/* Intersection Observer Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.appear > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-container.appear > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-container.appear > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-container.appear > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-container.appear > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-container.appear > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-container.appear > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-container.appear > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-container.appear > *:nth-child(8) { transition-delay: 0.8s; }

/* Custom Keyframes */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(81, 63, 149, 0.3); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(81, 63, 149, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(81, 63, 149, 0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Mobile Layout Centering & Alignment Enhancements */
@media (max-width: 768px) {
  .section-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 40px;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-badges-title {
    text-align: center;
  }
  
  .hero-badges {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .hero-badge-item {
    justify-content: flex-start !important;
    width: auto !important;
  }
  
  .about-content {
    text-align: center;
    align-items: center;
  }
  
  .why-content {
    text-align: center;
    align-items: center;
  }

  /* Hero Clinic Desk Card - Centering and Overflow Fixes */
  .floating-badge-item {
    display: none !important;
  }
  
  .clinic-desk-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 20px auto 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
  }
  
  .hero-visual {
    height: 320px !important;
    overflow: hidden;
  }

  .footer-brand {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .footer-logo {
    justify-content: center !important;
  }
  
  .footer-title {
    text-align: center !important;
  }
  
  .footer-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .footer-links {
    align-items: center !important;
    width: 100% !important;
  }
  
  .footer-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    gap: 16px !important;
  }
  
  .footer-contact-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .footer-bottom {
    justify-content: center !important;
    text-align: center !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .footer-copyright, .footer-terms {
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
  }
}


/* Clinical Specialties Section */
.specialties-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.specialty-card {
  background: linear-gradient(135deg, #ffffff 0%, #FAF5FF 100%);
  border: 1px solid rgba(112, 32, 129, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 25px -10px rgba(112, 32, 129, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.specialty-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.specialty-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.specialty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(81, 63, 149, 0.05) 0%, rgba(112, 32, 129, 0.1) 100%);
  border: 1px solid rgba(112, 32, 129, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  transition: all 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-8px);
  border-color: rgba(112, 32, 129, 0.35);
  box-shadow: 0 15px 30px -10px rgba(112, 32, 129, 0.15), 0 0 0 3px rgba(112, 32, 129, 0.04);
}

.specialty-card:hover .specialty-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(112, 32, 129, 0.15);
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 576px) {
  .specialties-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Image Micro-Animations & Zoom Effects */
.about-visual:hover .about-interior-img {
  transform: scale(1.05);
}
.about-interior-img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.why-row-img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.why-visual:hover .why-row-img {
  transform: scale(1.05);
}
