/* ═══════════════════════════════════════════════
   MedElite Hospital — Premium 3D Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --primary: #0077b6;
  --primary-dark: #023e8a;
  --primary-light: #00b4d8;
  --accent: #48cae4;
  --accent-soft: rgba(72,202,228,0.14);
  --gold: #d4a017;
  --gold-soft: rgba(212,160,23,0.16);
  --red: #e63946;
  --green: #06d6a0;
  --dark: #0d1b2a;
  --dark2: #1b2838;
  --ink: #07111f;
  --gray: #8899aa;
  --white: #ffffff;
  --glass: rgba(255,255,255,0.07);
  --glass2: rgba(255,255,255,0.12);
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-3d: 0 14px 40px rgba(0,0,0,0.32), 0 6px 14px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 28px rgba(0,119,182,0.28);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, #07111f 0%, var(--dark) 38%, #101d2c 100%);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  --nav-height: 104px;
  padding-top: calc(32px + var(--nav-height));
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══ TOP SCROLLING BAR ═══ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(90deg, #023e8a, #0077b6, #023e8a);
  padding: 8px 0;
  overflow: hidden;
  z-index: 10001;
  border-bottom: 2px solid var(--accent);
}

.top-bar-track {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}

.top-bar-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.top-bar-divider { color: rgba(255,255,255,0.3); font-size: 0.7rem; }

.blink-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.blink-dot.green {
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 20px var(--green);
  animation: blinkGreen 1.2s ease-in-out infinite;
}

.blink-dot.red {
  background: var(--red);
  box-shadow: 0 0 10px var(--red), 0 0 20px var(--red);
  animation: blinkRed 1.2s ease-in-out infinite 0.6s;
}

@keyframes blinkGreen {
  0%,100% { opacity:1; box-shadow: 0 0 10px var(--green), 0 0 20px var(--green); }
  50% { opacity:0.3; box-shadow: 0 0 4px var(--green); }
}

@keyframes blinkRed {
  0%,100% { opacity:1; box-shadow: 0 0 10px var(--red), 0 0 20px var(--red); }
  50% { opacity:0.3; box-shadow: 0 0 4px var(--red); }
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ NAVIGATION ═══ */
.navbar {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.2rem;
  background: rgba(7,17,31,0.68);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: all 0.35s ease;
}

/* Ensure 3D rendering uses GPU and remains crisp */
.hero, .hero-slideshow, .hero-panel, .hero-main {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity, background-position;
}

/* Use CSS var for hero sizing so JS can adjust based on actual navbar */
.hero {
  min-height: calc(100vh - var(--nav-height));
  height: calc(100vh - var(--nav-height));
}

.navbar.scrolled {
  padding: 0.32rem 1rem;
  background: rgba(13,27,42,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.nav-logo {
  width: 108px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover { transform: scale(1.08); }

.nav-brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 900; color: var(--white); line-height: 1.05; letter-spacing: 0.3px; }
.brand-tagline { font-size: 0.72rem; color: var(--accent); letter-spacing: 1.8px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 1.2rem; list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-signin-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light) 62%, var(--gold));
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,119,182,0.4);
}

.nav-signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,119,182,0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══ HERO SLIDESHOW ═══ */
.hero {
  position: relative;
  margin-top: 0;
  width: 100%;
  min-height: calc(100vh - 104px);
  height: calc(100vh - 104px);
  overflow: hidden;
  padding: 0;
  z-index: 0;
  background: radial-gradient(circle at 18% 15%, rgba(38, 121, 214, 0.18), transparent 18%),
              radial-gradient(circle at 78% 22%, rgba(6, 214, 160, 0.14), transparent 16%),
              linear-gradient(180deg, #030712 0%, #07111f 38%, #02060f 100%);
  isolation: isolate;
  box-shadow: none;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  filter: saturate(1.08) contrast(1.08);
}

.hero-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: rgba(4, 10, 20, 0.95);
  border-radius: 0;
  transform: perspective(1600px) translate3d(0, 0, 0) scale(1);
  will-change: opacity, transform;
}

.hero-panel.active {
  opacity: 1;
  transform: none;
  z-index: 1;
  animation: heroBgPan 24s linear infinite;
  will-change: background-position;
}

/* Vertical background pan for premium motion (top -> bottom -> top) */
@keyframes heroBgPan {
  0% { background-position: center 15%; }
  100% { background-position: center 85%; }
}

/* Pause background pan on hover to allow user focus */
.hero-slideshow:hover .hero-panel.active {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel.active { animation: none !important; }
}

.hero-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}
/* clean hero CSS: keep fullscreen slider and remove old overlay text blocks */

.feature-showcase-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.showcase-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Premium banner slideshow (scoped to feature showcase) */
.feature-showcase-section .premium-banner {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6,12,20,0.36), rgba(6,12,20,0.18));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
}

.feature-showcase-section .premium-slides {
  position: relative;
  width: 100%;
  height: 360px;
}

.feature-showcase-section .premium-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateZ(0) scale(1.02);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
}

.feature-showcase-section .premium-slide.active {
  opacity: 1;
  transform: translateZ(40px) scale(1);
}

.feature-showcase-section .premium-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-showcase-section .premium-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.06));
}

.feature-showcase-section .premium-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-showcase-section .premium-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Keep navbar on top */
.navbar { z-index: 11000; }

/* Removed feature showcase banner styles per page removal request */

.showcase-card-top {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  padding: 1rem;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  transform-style: preserve-3d;
}

.showcase-image {
  width: 100%;
  min-height: 340px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 90px rgba(0,0,0,0.35);
}

.showcase-content {
  padding: 1.4rem 0 0;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(72,202,228,0.35);
  color: var(--accent);
  background: rgba(72,202,228,0.08);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.showcase-card-top h3 {
  margin: 1rem 0 0.8rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.showcase-card-top p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 1rem;
}

.showcase-info {
  display: grid;
  gap: 1rem;
}

.info-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 1.6rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.info-block:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: var(--shadow-3d);
  border-color: rgba(72,202,228,0.4);
}

.info-block h4 {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  color: var(--white);
}

.info-block p {
  color: var(--gray);
  line-height: 1.7;
}

.showcase-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-note {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-3d);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.showcase-note h4 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--white);
}

.showcase-note p {
  color: var(--gray);
  line-height: 1.8;
}

.showcase-slideshow,
.showcase-slide,
.slideshow-controls,
.showcase-dot {
  display: none !important;
}

@media (max-width: 1120px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-right {
    order: -1;
  }
  .showcase-slideshow {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .showcase-grid {
    gap: 1.2rem;
  }
  .showcase-card-top,
  .info-block,
  .showcase-slideshow {
    border-radius: 24px;
  }
  .showcase-image {
    min-height: 240px;
  }
  .slideshow-controls {
    gap: 10px;
    padding: 1rem;
  }
}

.hero-lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 18, 0.96);
  z-index: 10000;
  padding: 1rem;
}
.hero-lightbox-overlay.active {
  display: flex;
}
.hero-lightbox-content {
  position: relative;
  width: min(100%, 960px);
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}
.hero-lightbox-close,
.hero-lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.hero-lightbox-close {
  top: 1rem;
  right: 1rem;
  backdrop-filter: blur(10px);
}
.hero-lightbox-close:hover,
.hero-lightbox-nav:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.14);
}
.hero-lightbox-prev {
  left: 1rem;
}
.hero-lightbox-next {
  right: 1rem;
}
.hero-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.85);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .hero-lightbox-close,
  .hero-lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .hero-lightbox-prev {
    left: 0.8rem;
  }
  .hero-lightbox-next {
    right: 0.8rem;
  }
  .hero-lightbox-counter {
    bottom: 0.85rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
}

@keyframes heroGlassShift {
  from { transform: translate3d(-1%, 0, 0); opacity: 0.16; }
  to { transform: translate3d(1.8%, -1.2%, 0); opacity: 0.28; }
}

.hero:hover .hero-main {
  transform: perspective(1500px) translate3d(0, -10px, 16px) scale(1.04) rotateY(-0.35deg);
}

.hero-action-pop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 9999;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .hero-action-pop {
    right: 1rem;
    bottom: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .hero-action-btn {
    width: 48px;
    height: 48px;
  }
}

.hero-action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 30, 0.88);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6,214,160,0.18), transparent 52%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-action-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, rgba(15,52,84,0.95), rgba(6,214,160,0.12));
  box-shadow: 0 22px 62px rgba(6,214,160,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
}

.hero-action-btn:hover::before {
  opacity: 1;
}

.hero-action-btn i {
  font-size: 1.2rem;
}

.hero-action-btn.action-book { background: linear-gradient(135deg, rgba(8, 104, 178, 0.96), rgba(48, 197, 255, 0.14)); }
.hero-action-btn.action-call { background: linear-gradient(135deg, rgba(6, 214, 160, 0.96), rgba(9, 139, 147, 0.14)); }
.hero-action-btn.action-whatsapp { background: linear-gradient(135deg, rgba(37, 211, 102, 0.96), rgba(17, 128, 61, 0.14)); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.75) 0%, rgba(13,27,42,0.55) 40%, rgba(13,27,42,0.70) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.2rem;
  animation: fadeInUp 0.8s ease-out;
}

/* Card that sits behind slide text to improve legibility */
.slide-card {
  background: rgba(6,12,20,0.22);
  padding: 28px 32px;
  border-radius: 14px;
  max-width: 680px;
  box-shadow: var(--shadow-3d), var(--shadow-glow);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 860px) {
  .slide-card { padding: 18px 20px; margin: 0 1rem; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(72,202,228,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.slide-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #f6d98b 48%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ═══ 3D HERO MOTION ELEMENTS ═══ */
.hero-3d-element {
  position: absolute;
  opacity: 0.08;
  z-index: 10;
  pointer-events: none;
  border-radius: 50%;
}

.hero-3d-element.element-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(72,202,228,0.5), transparent 70%);
  top: -120px;
  right: -100px;
  animation: float3d-1 15s ease-in-out infinite;
}

.hero-3d-element.element-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212,160,23,0.4), transparent 70%);
  bottom: 80px;
  left: -80px;
  animation: float3d-2 18s ease-in-out infinite;
}

.hero-3d-element.element-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6,214,160,0.3), transparent 70%);
  top: 40%;
  right: 5%;
  animation: float3d-3 20s ease-in-out infinite;
}

.hero-3d-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 800px 600px at 60% 40%, rgba(72,202,228,0.08), transparent 60%);
  animation: lightShift 10s ease-in-out infinite;
}

@keyframes float3d-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -30px, 50px) scale(1.1); }
}

@keyframes float3d-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(0deg); }
  50% { transform: translate3d(-20px, 40px, 30px) rotateZ(180deg); }
}

@keyframes float3d-3 {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg); }
  50% { transform: translate3d(-40px, -20px, 40px) rotateX(15deg); }
}

@keyframes lightShift {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.14; }
}

/* ═══ SERVICES TEXT SLIDER ═══ */
.services-text-slider {
  margin-top: 1.8rem;
  margin-bottom: 1.4rem;
  position: relative;
  min-height: 5.2rem;
  overflow: hidden;
}

.service-text-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(100%) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.service-text-item.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.service-text-item.active ~ .service-text-item {
  transform: translateX(100%) scale(0.95);
}

.service-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(72,202,228,0.2), rgba(6,214,160,0.15));
  border: 1px solid rgba(72,202,228,0.3);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.service-text-item.active .service-text-icon {
  background: linear-gradient(135deg, rgba(72,202,228,0.35), rgba(6,214,160,0.3));
  border-color: rgba(72,202,228,0.6);
  transform: scale(1.1) rotateY(360deg);
}

.service-text-item p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* ═══ SERVICE TEXT INDICATORS ═══ */
.service-text-indicators {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.service-dot:hover {
  background: rgba(72,202,228,0.4);
  border-color: rgba(72,202,228,0.6);
  transform: scale(1.15);
}

.service-dot.active {
  background: linear-gradient(135deg, var(--accent), rgba(6,214,160,0.8));
  border-color: var(--accent);
  width: 26px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(72,202,228,0.4);
}

.slide-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-wrap: nowrap;
  margin-top: 0.5rem;
  align-items: stretch;
}

.hero-contact-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.hero-contact-note strong {
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light) 62%, var(--gold));
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 10px 32px rgba(0,119,182,0.42), inset 0 1px 0 rgba(255,255,255,0.24);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,119,182,0.7);
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.36);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Button Animations */
@keyframes glowSurround {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.7),
                0 8px 30px rgba(0, 119, 182, 0.5);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(0, 119, 182, 0.3),
                0 8px 30px rgba(0, 119, 182, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0),
                0 8px 30px rgba(0, 119, 182, 0.5);
  }
}

@keyframes blinkColor {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }
}

@keyframes greenGlowBlink {
  0%, 100% {
    border-color: rgba(6, 214, 160, 0.3);
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.5);
  }
  50% {
    border-color: rgba(6, 214, 160, 0.8);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.7);
  }
}

/* Apply animations to specific buttons in slide-actions */
.slide-actions > a:nth-child(1) {
  animation: glowSurround 2.5s ease-in-out infinite;
}

.slide-actions > a:nth-child(2) {
  animation: blinkColor 1.8s ease-in-out infinite;
}

.slide-actions > a:nth-child(3) {
  animation: greenGlowBlink 1.8s ease-in-out infinite;
  border-color: rgba(6, 214, 160, 0.3);
}

/* Slide indicators - Premium Design */
.slide-indicators {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 1.2rem;
  transform: translateX(-50%) translateZ(42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: min(86%, 230px);
  z-index: 220;
  transform-style: preserve-3d;
}

.indicator {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 39px;
  border-radius: 999px;
  background: rgba(5,12,21,0.52);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(140%);
}

.indicator::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--gold));
  transition: width 5s linear;
}

.indicator i,
.indicator span {
  position: relative;
  z-index: 1;
}

.indicator i {
  color: var(--accent);
  font-size: 0.9rem;
}

.indicator.active {
  background: rgba(7,22,36,0.74);
  border-color: rgba(72,202,228,0.72);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(0,119,182,0.24), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateZ(16px);
}

.indicator.active::before {
  width: 100%;
}

.indicator:hover {
  background: rgba(72,202,228,0.18);
  border-color: rgba(72,202,228,0.58);
  transform: translateY(-2px) translateZ(18px);
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(72,202,228,0.3);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Emotion badges */
.emotion-badges {
  display: none;
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 1.4rem;
  top: auto;
  transform: translateX(-50%);
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 0.85rem;
  z-index: 100;
  width: min(92%, 680px);
}

.emotion-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5,12,21,0.46);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 10px 16px;
  transition: all 0.4s;
  animation: badgePulse 3s ease-in-out infinite;
  cursor: default;
  min-width: 132px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}

.emotion-badge i { font-size: 1rem; color: var(--accent); }
.emotion-badge span { font-size: 0.75rem; color: rgba(255,255,255,0.8); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.emotion-badge:hover {
  background: rgba(72,202,228,0.2);
  border-color: var(--accent);
  transform: scale(1.1);
}

.eb-1 { animation-delay: 0s; }
.eb-2 { animation-delay: 0.75s; }
.eb-3 { animation-delay: 1.5s; }
.eb-4 { animation-delay: 2.25s; }

@keyframes badgePulse {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ═══ SECTION HEADERS ═══ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact-section .section-header {
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(72,202,228,0.16), rgba(212,160,23,0.10));
  border: 1px solid rgba(72,202,228,0.34);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.contact-section .section-tag {
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1.8px;
}

.contact-section .section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.contact-section .section-sub {
  max-width: 560px;
  margin: 0.85rem auto 0;
  letter-spacing: 0.01em;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  text-wrap: balance;
}

.section-sub {
  color: rgba(225,235,244,0.72);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ═══ ABOUT / STATS ═══ */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s;
}

.stat-3d:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(-3deg);
  box-shadow: var(--shadow-3d), var(--shadow-glow);
  border-color: var(--accent);
}

.stat-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0,119,182,0.4);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ═══ DOCTORS ═══ */
.doctors-section {
  padding: 6rem 0;
  background: var(--dark2);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.doctor-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.doctor-3d:hover {
  transform: translateY(-16px) rotateX(4deg);
  box-shadow: var(--shadow-3d);
  border-color: var(--accent);
}

.doctor-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.doctor-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.doctor-card:hover .doctor-img-wrap img { transform: scale(1.08); }

.doctor-status {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blinkGreen 1.5s infinite;
}

.doctor-info {
  padding: 1.4rem;
}

.doctor-info h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.doctor-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.doctor-exp {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.3rem;
}

.btn-doctor {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-doctor:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,119,182,0.5);
}

/* Doctor specialization colors */
.doctor-card[data-spec="cardiology"] .doctor-spec { color: #e63946; }
.doctor-card[data-spec="cardiology"] .btn-doctor { background: linear-gradient(135deg, #e63946, #ff6b6b); }

.doctor-card[data-spec="neurology"] .doctor-spec { color: #4895ef; }
.doctor-card[data-spec="neurology"] .btn-doctor { background: linear-gradient(135deg, #4895ef, #7ec8e3); }

.doctor-card[data-spec="orthopedics"] .doctor-spec { color: #9b5de5; }
.doctor-card[data-spec="orthopedics"] .btn-doctor { background: linear-gradient(135deg, #9b5de5, #c77dff); }

.doctor-card[data-spec="pediatrics"] .doctor-spec { color: #f77f00; }
.doctor-card[data-spec="pediatrics"] .btn-doctor { background: linear-gradient(135deg, #f77f00, #fcbf49); }

.doctor-card[data-spec="radiology"] .doctor-spec { color: #06d6a0; }
.doctor-card[data-spec="radiology"] .btn-doctor { background: linear-gradient(135deg, #06d6a0, #80ed99); }

.doctor-card[data-spec="dermatology"] .doctor-spec { color: #f72585; }
.doctor-card[data-spec="dermatology"] .btn-doctor { background: linear-gradient(135deg, #f72585, #ff85a1); }

.doctor-card[data-spec="gynecology"] .doctor-spec { color: #e76f51; }
.doctor-card[data-spec="gynecology"] .btn-doctor { background: linear-gradient(135deg, #e76f51, #f4a261); }

.doctor-card[data-spec="oncology"] .doctor-spec { color: #b5179e; }
.doctor-card[data-spec="oncology"] .btn-doctor { background: linear-gradient(135deg, #b5179e, #f15bb5); }

/* ═══ SERVICES ═══ */
.services-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(72,202,228,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover::before { opacity: 1; }

.svc-3d:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(-3deg);
  box-shadow: var(--shadow-3d), var(--shadow-glow);
  border-color: var(--accent);
}

.svc-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0,119,182,0.3);
  transition: transform 0.4s;
}

.service-card:hover .svc-icon { transform: scale(1.15) rotate(-8deg); }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ═══ DEPARTMENTS ═══ */
.departments-section {
  padding: 6rem 0;
  background: var(--dark);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dept-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 0;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  cursor: pointer;
  min-height: 340px;
  display: grid;
  align-items: end;
  justify-items: center;
}

.dept-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(72,202,228,0.9);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.dept-card .dept-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dept-card .dept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.dept-card:hover .dept-image img {
  transform: scale(1.12) rotate(1deg);
  opacity: 1;
}

.dept-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
  margin: 0 1rem 1.5rem;
  padding: 0.95rem 1.4rem;
  background: rgba(6,12,20,0.78);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.dept-card::after {
  content: 'Book Appointment';
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dept-card:hover::after {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.appointment-card {
  text-decoration: none;
}

.dept-card[data-color="red"] i { color: #e63946; }
.dept-card[data-color="blue"] i { color: #4895ef; }
.dept-card[data-color="teal"] i { color: #06d6a0; }
.dept-card[data-color="purple"] i { color: #9b5de5; }
.dept-card[data-color="pink"] i { color: #f72585; }
.dept-card[data-color="orange"] i { color: #f77f00; }
.dept-card[data-color="green"] i { color: #2a9d8f; }
.dept-card[data-color="indigo"] i { color: #b5179e; }
.dept-card[data-color="rose"] i { color: #e76f51; }
.dept-card[data-color="cyan"] i { color: #00b4d8; }
.dept-card[data-color="amber"] i { color: #fcbf49; }
.dept-card[data-color="emerald"] i { color: #80ed99; }

/* ═══ FOUNDER / MD SECTION ═══ */
.founder-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--dark), rgba(27,40,56,0.5));
  position: relative;
  overflow: hidden;
}

.founder-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,119,182,0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.founder-card {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 3rem;
  position: relative;
  z-index: 10;
}

.founder-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  max-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.founder-img {
  display: none;
}

.founder-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--gold), #ffc107);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}

.founder-name {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, #f8f7ff 0%, #d3f3ff 45%, #fff1b1 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.founder-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.08);
}

.founder-title i {
  color: var(--gold);
}

.founder-tagline {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #f4f9ff;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-spec {
  display: none;
}

.founder-bio {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.founder-bio p {
  margin-bottom: 1rem;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.founder-bio strong {
  color: var(--white);
  font-weight: 700;
}

.founder-quote {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--accent);
  font-size: 1.02rem;
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

.founder-footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.founder-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

.founder-3d {
  transform: perspective(1200px) rotateY(-2deg);
  transition: transform 0.4s cubic-bezier(0.23,1,0.320,1), box-shadow 0.4s ease;
}

.founder-3d:hover {
  transform: perspective(1200px) rotateY(0deg) translateZ(20px);
  box-shadow: 0 30px 80px rgba(0,119,182,0.3), 0 0 60px rgba(0,119,182,0.1);
}

@media (max-width: 960px) {
  .founder-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .founder-name { font-size: 1.8rem; }
  .founder-img { max-width: 280px; }
}

@media (max-width: 640px) {
  .founder-section { padding: 3rem 0; }
  .founder-card { padding: 1.5rem; gap: 1.5rem; }
  .founder-name { font-size: 1.4rem; }
  .founder-bio { padding: 1rem; font-size: 0.9rem; }
}


.contact-section {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--dark), var(--dark2));
}

.contact-section .section-header {
  margin-bottom: 1.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.2rem;
  align-items: stretch;
}

/* ═══ HOME IMAGE GRID SECTION ═══ */
.home-image-section {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, rgba(9,21,37,0.95), rgba(9,21,37,0.96));
}
.home-image-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.home-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.image-card {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 26px 70px rgba(0,0,0,0.18);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.4rem;
  color: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.55));
  pointer-events: none;
}
.image-card span {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(0,0,0,0.24);
}

@media (max-width: 980px) {
  .home-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .home-image-grid { grid-template-columns: 1fr; }
  .image-card { min-height: 220px; }
}

.contact-left {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.contact-info-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-call-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.05);
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.request-call-card::before,
.request-call-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.request-call-card::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -60px;
  background: rgba(72,202,228,0.18);
  filter: blur(40px);
}

.request-call-card::after {
  width: 240px;
  height: 240px;
  bottom: -90px;
  left: -90px;
  background: rgba(255,193,7,0.12);
  filter: blur(60px);
}

.request-call-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.request-call-3d:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
}

.request-call-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.request-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.request-call-header h3 {
  font-size: 1.65rem;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.request-call-header p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 520px;
}

.request-call-form {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.request-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.request-call-form select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%), linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  background-position: calc(100% - 1rem) center, center;
  background-size: 12px 12px, 100%;
  background-repeat: no-repeat;
}

.request-call-form textarea.form-input {
  resize: none;
  min-height: 120px;
}

.request-call-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: -0.25rem;
}

.request-call-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  min-height: 1.4rem;
}

.btn-request-callback {
  align-items: center;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,118,255,0.3);
  color: var(--white);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.85rem;
  justify-content: center;
  padding: 18px 30px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: fit-content;
}

.btn-request-callback:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,118,255,0.4);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-emergency {
  align-items: center;
  background: linear-gradient(135deg, #ff4d4f, #d7263d);
  border: none;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(255,77,79,0.25);
  color: var(--white);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.85rem;
  justify-content: center;
  padding: 18px 30px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(255,77,79,0.35);
}

.btn-request-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.callback-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.callback-modal.active {
  display: flex;
}

.callback-modal-box {
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(7,19,36,0.98), rgba(12,27,50,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 36px 90px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}

.callback-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.callback-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(0,198,255,0.28), rgba(0,118,255,0.08));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(0,198,255,0.3);
}

.callback-header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.callback-header p {
  font-size: 0.95rem;
  color: var(--gray);
}

.callback-form {
  display: grid;
  gap: 1rem;
}

.callback-fields {
  display: grid;
  gap: 1rem;
}

.callback-form .form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}

.callback-form select.form-input {
  appearance: none;
  padding-right: 2.5rem;
}

.callback-time-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.time-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.time-chip.active,
.time-chip:hover {
  background: rgba(0,198,255,0.18);
  border-color: rgba(0,198,255,0.4);
  color: var(--white);
}

.callback-submit {
  margin-top: 0.15rem;
}

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; }
  .request-form-row { grid-template-columns: 1fr; }
  .btn-request-callback { width: 100%; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .request-form-row { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-item i {
  width: 40px; height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.96rem; font-weight: 700; color: var(--white); margin-bottom: 6px; letter-spacing: 0.02em; }
.contact-item p,
.contact-item .contact-phone-list a { font-size: 0.92rem; color: var(--gray); line-height: 1.6; }
.contact-item .contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-item .contact-phone-list a {
  color: var(--accent);
  text-decoration: none;
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green), #2a9d8f);
  color: var(--white);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 0.3s;
  margin-top: auto;
}

.btn-map:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6,214,160,0.4);
}

.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 300px;
}

.map-wrap iframe {
  width: 100%; height: 100%;
  min-height: 300px;
  filter: brightness(0.88) saturate(0.95) contrast(1.04);
}

/* ═══ GOOGLE REVIEWS SECTION ═══ */
.reviews-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark), var(--dark2));
}

.google-rating-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.google-rating-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
}

.google-logo { margin-bottom: 0.5rem; }

.rating-score {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.rating-stars {
  display: flex;
  gap: 3px;
  color: #FFC107;
  font-size: 1.3rem;
}

.rating-count {
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.3rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.google-rating-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.rating-bar-row span:first-child { min-width: 28px; text-align: right; }
.rating-bar-row span:last-child { min-width: 32px; font-weight: 600; color: var(--gray); }

.rating-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFC107, #FF9800);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.reviews-carousel {
  position: relative;
  overflow: visible;
  margin-bottom: 2rem;
  padding: 1rem 0 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.05));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  perspective: 2000px;
}

.review-slide-wrapper {
  overflow: visible;
  width: 100%;
  display: flex;
  justify-content: center;
}

.review-slide-track {
  display: flex;
  flex-direction: row;
  gap: 1.8rem;
  transition: scroll-behavior 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1rem;
  transform-style: preserve-3d;
  will-change: scroll-position;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.review-slide-track::-webkit-scrollbar {
  height: 4px;
}

.review-slide-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.review-slide-track::-webkit-scrollbar-thumb {
  background: rgba(72,202,228,0.3);
  border-radius: 2px;
}

.review-slide-track::-webkit-scrollbar-thumb:hover {
  background: rgba(72,202,228,0.5);
}

.review-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: linear-gradient(180deg, rgba(6,12,20,0.88), rgba(12,24,44,0.65));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 2rem;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.6s ease, 
              border-color 0.6s ease, 
              background 0.6s ease,
              opacity 0.6s ease;
  box-shadow: 0 20px 65px rgba(0,0,0,0.22);
  transform: translateZ(0) scale(0.88) rotateY(18deg);
  opacity: 0.65;
  animation: reviewFloat 14s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: auto;
}

.review-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 30%);
  pointer-events: none;
}

.review-card.active {
  flex: 0 0 340px;
  min-width: 340px;
  transform: translateZ(80px) scale(1) rotateY(0deg);
  opacity: 1;
  box-shadow: 0 40px 140px rgba(0,119,182,0.28), 
              inset 0 1px 0 rgba(255,255,255,0.12),
              0 0 60px rgba(255,193,7,0.12);
  border-color: rgba(255,193,7,0.25);
  background: linear-gradient(180deg, rgba(6,12,20,0.95), rgba(12,24,44,0.75));
}

.review-card:nth-last-child(1):not(.active) {
  transform: translateZ(0) scale(0.88) rotateY(-18deg);
}

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(72,202,228,0.18), rgba(0,119,182,0.14));
  color: var(--accent);
  border: 1px solid rgba(72,202,228,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25),
              inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  font-size: 1.2rem;
}

.review-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: linear-gradient(135deg, rgba(72,202,228,0.28), rgba(0,119,182,0.22));
  box-shadow: 0 28px 80px rgba(0,119,182,0.3),
              inset 0 1px 0 rgba(255,255,255,0.12);
  color: var(--white);
}

.review-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.review-prev {
  left: 1rem;
}

.review-next {
  right: 1rem;
}

.review-dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}

.review-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.review-dot:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.4);
}

.review-dot.active {
  background: linear-gradient(135deg, #FFB300, #FFC107);
  border-color: rgba(255,193,7,0.6);
  transform: scale(1.25);
  box-shadow: 0 0 16px rgba(255,193,7,0.4);
}

.review-card:nth-child(2n) {
  animation-delay: 1.2s;
}

.review-card:nth-child(3n) {
  animation-delay: 0.4s;
}

.review-card:nth-child(4n) {
  animation-delay: 0.9s;
}

@keyframes reviewFloat {
  0% { transform: translateZ(0) translateY(0); }
  100% { transform: translateZ(12px) translateY(-8px); }
}

.review-3d:hover {
  transform: translateY(-14px) rotateX(6deg) rotateY(-4deg) scale(1.04);
  box-shadow: 0 48px 160px rgba(0,119,182,0.32), 
              inset 0 1px 0 rgba(255,255,255,0.14),
              0 0 80px rgba(255,193,7,0.18);
  border-color: rgba(255,193,7,0.4);
  background: linear-gradient(180deg, rgba(6,12,20,0.98), rgba(12,24,44,0.8));
}

.review-3d:hover::before {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 30%);
}


.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,193,7,0.4);
}

.review-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--gray);
}

.review-google-icon { margin-left: auto; }

.review-stars {
  display: flex;
  gap: 3px;
  color: #FFC107;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.review-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(72,202,228,0.12);
  border: 1px solid rgba(72,202,228,0.25);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.reviews-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-reviews {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,193,7,0.4);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-reviews:hover {
  background: rgba(255,193,7,0.15);
  border-color: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,193,7,0.25);
}

@media (max-width: 860px) {
  .google-rating-card { flex-direction: column; gap: 2rem; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .google-rating-card { padding: 1.5rem; }
  .rating-score { font-size: 3rem; }
}

/* ═══ FOOTER ═══ */
.footer {
  background: linear-gradient(180deg, #07111f, #050a12);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  width: 70px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer ul li, .footer ul a { color: var(--gray); font-size: 0.9rem; text-decoration: none; transition: color 0.3s; cursor: pointer; }
.footer ul a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ═══ FLOATING EMERGENCY BUTTON ═══ */
.floating-emergency-single {
  position: fixed;
  bottom: 68px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--red), var(--green));
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(230,57,70,0.5), 0 0 20px rgba(6,214,160,0.3);
  z-index: 1000;
  transition: all 0.3s;
  animation: emergencyPulseSingle 2s ease-in-out infinite;
  pointer-events: auto;
}

.floating-emergency-single i {
  font-size: 1.4rem;
  animation: emergencyIconPulse 1.2s ease-in-out infinite;
}

.floating-emergency-single:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(230,57,70,0.7), 0 0 30px rgba(6,214,160,0.5);
}

@keyframes emergencyPulseSingle {
  0%,100% { box-shadow: 0 8px 30px rgba(230,57,70,0.5), 0 0 20px rgba(6,214,160,0.3); }
  50% { box-shadow: 0 8px 30px rgba(230,57,70,0.5), 0 0 30px rgba(6,214,160,0.5), 0 0 0 15px rgba(230,57,70,0.1); }
}

@keyframes emergencyIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ═══ FLOATING CALLBACK BUTTON ═══ */
.floating-callback-btn {
  position: fixed;
  bottom: 68px;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #06d6a0);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 32px rgba(72,202,228,0.35), 0 0 20px rgba(6,214,160,0.25);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatCallbackPulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.floating-callback-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-callback-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 48px rgba(72,202,228,0.5), 0 0 32px rgba(6,214,160,0.4);
}

.floating-callback-btn:hover::before {
  opacity: 1;
}

.callback-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: callbackRipple 2s ease-out infinite;
}

@keyframes floatCallbackPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(72,202,228,0.35), 0 0 20px rgba(6,214,160,0.25);
  }
  50% {
    box-shadow: 0 8px 32px rgba(72,202,228,0.5), 0 0 28px rgba(6,214,160,0.4), 0 0 0 12px rgba(72,202,228,0.15);
  }
}

@keyframes callbackRipple {
  0% {
    width: 100%;
    height: 100%;
    border-width: 2px;
    opacity: 1;
  }
  100% {
    width: 180%;
    height: 180%;
    border-width: 0px;
    opacity: 0;
  }
}

/* ═══ AUTH MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: linear-gradient(135deg, #07111f, #17283a);
  border: 1px solid rgba(72,202,228,0.24);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  max-height: 95vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), var(--shadow-glow);
  animation: modalEnter 0.4s cubic-bezier(0.23,1,0.32,1);
}

@keyframes modalEnter {
  from { transform: scale(0.9) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover { background: var(--red); transform: rotate(90deg); }

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.auth-header h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
}

.auth-header p { color: var(--gray); font-size: 0.9rem; margin-top: 0.3rem; }

.auth-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.mobile-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.country-code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: var(--white);
  padding: 12px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 72px;
  appearance: none;
}

.country-code option { background: var(--dark2); color: var(--white); }

.mobile-input-group input,
.form-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  font-family: var(--font-body);
}

.mobile-input-group input:focus,
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(72,202,228,0.15);
}

.btn-otp {
  width: 100%;
  background: rgba(72,202,228,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.btn-otp:hover { background: rgba(72,202,228,0.25); }

.otp-group {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  justify-content: center;
}

.otp-digit {
  width: 44px; height: 52px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  text-align: center;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.3s;
}

.otp-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(72,202,228,0.2);
}

.btn-full { width: 100%; justify-content: center; margin-bottom: 1rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.auth-divider span { color: var(--gray); font-size: 0.85rem; }

.btn-google {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
}

.auth-footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-footer-links a:hover { color: var(--white); }
.auth-footer-links span { color: rgba(255,255,255,0.2); }

/* ═══ GALLERY SECTION ═══ */
.gallery-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%);
  margin: 3rem 0;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1100px) {
  .doctors-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .slide-indicators {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1.15rem;
    transform: translateX(-50%);
    justify-content: center;
    width: min(94%, 620px);
    gap: 8px;
  }
  .emotion-badges { display: none; }
  .emotion-badge {
    min-width: 112px;
    padding: 8px 12px;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 104px; left: 0; right: 0; bottom: 0;
    background: rgba(13,27,42,0.99);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 9500;
    animation: slideDown 0.3s ease;
    overflow-y: auto;
  }

  @keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  
  .modal-box { max-width: 90%; padding: 1.5rem; }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .doctors-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 2fr; }
  .stats-grid { grid-template-columns: 1fr; }
  
  .section-header h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 2rem; }
  
  .nav-brand { gap: 8px; }
  .nav-logo { width: 48px; }
  .brand-name { font-size: 1.2rem; }
  
  .floating-emergency-single { 
    bottom: 80px; 
    right: 1rem; 
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .hamburger { gap: 4px; }
  .hamburger span { width: 24px; height: 2px; }

  .stat-card { padding: 1.5rem 1rem; }
  .service-card.svc-3d { padding: 1.5rem; }
  .doctor-card { margin: 0 auto; }
  
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 { font-size: 1.3rem; }
  .section-header { margin-bottom: 1.5rem; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .otp-digit { width: 38px; height: 46px; }
}
