
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3560;
  --secondary: #00b4d8;
  --accent: #ff4757;
  --accent-hover: #ff3344;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 40px rgba(15, 76, 129, 0.15);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6; color: var(--dark); background: var(--light); overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.perspective-1000 { perspective: 1000px; }
.preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(5deg); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateY(5deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.6); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px) rotateX(15deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8) translateZ(-100px); }
  to { opacity: 1; transform: scale(1) translateZ(0); }
}
@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(2); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px) scale(2); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 7s ease-in-out infinite 1s; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-rotate-slow { animation: rotate-slow 20s linear infinite; }

.reveal {
  opacity: 0; transform: translateY(50px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0) rotateX(0); }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-cross {
  width: 80px; height: 80px; position: relative; margin: 0 auto 20px;
  transform-style: preserve-3d; animation: float 2s ease-in-out infinite;
}
.preloader-cross::before, .preloader-cross::after {
  content: ''; position: absolute; background: var(--primary); border-radius: 4px;
}
.preloader-cross::before { width: 20px; height: 80px; left: 50%; top: 0; transform: translateX(-50%); }
.preloader-cross::after { width: 80px; height: 20px; left: 0; top: 50%; transform: translateY(-50%); }
.preloader-text { color: var(--primary); font-size: 1.2rem; font-weight: 600; letter-spacing: 2px; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--primary-dark); color: var(--white); padding: 10px 0;
  font-size: 0.9rem; position: relative; z-index: 1000;
}
.top-bar-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.top-bar-left { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 8px; }
.top-bar-left i { color: var(--secondary); }
.top-bar-right { display: flex; gap: 15px; align-items: center; }
.top-bar-right a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.top-bar-right a:hover { background: var(--secondary); transform: translateY(-3px) scale(1.1); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 9999;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08); transition: var(--transition);
}
.header.scrolled { box-shadow: 0 5px 40px rgba(0,0,0,0.12); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; font-weight: bold;
  transform-style: preserve-3d; transition: var(--transition);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.3);
}
.logo:hover .logo-icon { transform: rotateY(20deg) rotateX(10deg) scale(1.1); }
.logo-text h1 { font-size: 1.4rem; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--secondary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

.nav-menu { display: flex; gap: 5px; align-items: center; }
.nav-menu a {
  padding: 10px 18px; color: var(--dark); font-weight: 500; font-size: 0.95rem;
  border-radius: 8px; position: relative; transition: var(--transition);
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition); transform: translateX(-50%);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 60%; }

.btn-emergency {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b81 100%);
  color: white !important; padding: 12px 24px !important; border-radius: 50px !important;
  font-weight: 600 !important; box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
  transform-style: preserve-3d; transition: var(--transition) !important;
}
.btn-emergency:hover {
  transform: translateY(-3px) translateZ(20px) !important;
  box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4) !important;
}
.btn-emergency::after { display: none !important; }

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
}
.mobile-toggle span { width: 28px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fb4 50%, var(--secondary) 100%);
  display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg-3d { position: absolute; inset: 0; overflow: hidden; }
.hero-3d-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.03); transform-style: preserve-3d; }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: float 10s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: float-delayed 12s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; background: rgba(255,255,255,0.05); animation: rotate-slow 30s linear infinite; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
  opacity: 0.3; animation: grid-move 20s linear infinite;
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero-content h2 {
  color: var(--secondary); font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 20px; font-weight: 600;
}
.hero-content h1 {
  color: var(--white); font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-content h1 span {
  display: block; background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 35px; max-width: 500px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 35px; background: linear-gradient(135deg, var(--accent) 0%, #ff6b81 100%);
  color: white; border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transform-style: preserve-3d;
  transition: var(--transition); box-shadow: 0 15px 35px rgba(255, 71, 87, 0.3);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-5px) translateZ(30px) rotateX(10deg);
  box-shadow: 0 25px 50px rgba(255, 71, 87, 0.4);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 35px; background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 50px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transform-style: preserve-3d; transition: var(--transition); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-5px) translateZ(20px); }

.hero-image { position: relative; transform-style: preserve-3d; perspective: 1000px; }
.hero-image-main {
  position: relative; border-radius: 30px; overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  transform: rotateY(-10deg) rotateX(5deg); transition: var(--transition);
}
.hero-image:hover .hero-image-main { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
.hero-image-main img { width: 100%; height: 500px; object-fit: cover; }

.hero-float-card {
  position: absolute; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  padding: 20px 25px; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform-style: preserve-3d;
}
.float-card-1 { top: 30px; right: -30px; animation: float 5s ease-in-out infinite; }
.float-card-2 { bottom: 40px; left: -40px; animation: float-delayed 6s ease-in-out infinite; }
.float-card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 15px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem; margin-bottom: 10px;
}
.hero-float-card h4 { font-size: 1.5rem; color: var(--primary); }
.hero-float-card p { font-size: 0.85rem; color: var(--gray); }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h3 {
  color: var(--secondary); font-size: 1rem; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 15px; font-weight: 600;
}
.section-header h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 20px; line-height: 1.2; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { padding: 100px 0; background: var(--white); position: relative; overflow: hidden; }
.about-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-image { position: relative; transform-style: preserve-3d; }
.about-image-frame {
  position: relative; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-3d); transform: rotateY(5deg) rotateX(2deg);
  transition: var(--transition);
}
.about-image:hover .about-image-frame { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
.about-image-frame img { width: 100%; height: 500px; object-fit: cover; }
.about-image::before {
  content: ''; position: absolute; top: -20px; left: -20px;
  width: 100%; height: 100%; border: 3px solid var(--secondary);
  border-radius: 30px; z-index: -1; transform: translateZ(-50px);
}
.about-experience-badge {
  position: absolute; bottom: 30px; right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; padding: 25px 30px; border-radius: 20px; text-align: center;
  box-shadow: 0 20px 60px rgba(15, 76, 129, 0.4);
  transform-style: preserve-3d; animation: float 4s ease-in-out infinite;
}
.about-experience-badge h4 { font-size: 2.5rem; line-height: 1; }
.about-experience-badge p { font-size: 0.9rem; opacity: 0.9; }
.about-content h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 25px; line-height: 1.2; }
.about-content > p { color: var(--gray); margin-bottom: 30px; font-size: 1.05rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 35px; }
.about-feature {
  display: flex; gap: 15px; align-items: flex-start; padding: 20px;
  background: var(--light); border-radius: 15px; transition: var(--transition); transform-style: preserve-3d;
}
.about-feature:hover {
  transform: translateY(-5px) translateZ(20px); box-shadow: var(--shadow-card); background: white;
}
.about-feature-icon {
  min-width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.about-feature h4 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 5px; }
.about-feature p { font-size: 0.9rem; color: var(--gray); }

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  position: relative; z-index: 1;
}
.stat-card {
  text-align: center; padding: 40px 20px;
  background: rgba(255,255,255,0.05); border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1); transform-style: preserve-3d;
  transition: var(--transition); backdrop-filter: blur(10px);
}
.stat-card:hover {
  transform: translateY(-10px) translateZ(30px) rotateX(5deg);
  background: rgba(255,255,255,0.08); border-color: var(--secondary);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.stat-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem; transform: translateZ(20px);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.3);
}
.stat-number { font-size: 3rem; font-weight: 700; color: white; line-height: 1; margin-bottom: 10px; transform: translateZ(15px); }
.stat-number span { color: var(--secondary); }
.stat-label { color: rgba(255,255,255,0.7); font-size: 1rem; transform: translateZ(10px); }

/* ============================================
   TREATMENTS — 3D FLIP CARDS
   ============================================ */
.treatments { padding: 100px 0; background: linear-gradient(180deg, var(--light) 0%, white 100%); }
.treatments-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.treatments-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; perspective: 2000px;
}
.treatment-card-3d { position: relative; height: 420px; transform-style: preserve-3d; cursor: pointer; }
.treatment-card-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.treatment-card-3d:hover .treatment-card-inner { transform: rotateY(180deg); }
.treatment-card-front, .treatment-card-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 25px; overflow: hidden; box-shadow: var(--shadow-card);
}
.treatment-card-front { background: white; }
.treatment-card-front img { width: 100%; height: 220px; object-fit: cover; }
.treatment-card-front-content { padding: 25px; }
.treatment-card-front-content h3 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 12px; }
.treatment-card-front-content p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }
.treatment-card-back {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: rotateY(180deg); display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 40px; text-align: center; color: white;
}
.treatment-card-back h3 { font-size: 1.5rem; margin-bottom: 20px; }
.treatment-card-back p { margin-bottom: 25px; opacity: 0.9; line-height: 1.7; }
.btn-treatment {
  display: inline-block; padding: 12px 30px; background: white; color: var(--primary);
  border-radius: 50px; font-weight: 600; transition: var(--transition);
}
.btn-treatment:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ============================================
   DOCTORS — 3D HOVER CARDS
   ============================================ */
.doctors { padding: 100px 0; background: white; }
.doctors-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 35px; }
.doctor-card {
  background: white; border-radius: 25px; overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition);
  transform-style: preserve-3d; position: relative;
}
.doctor-card:hover {
  transform: translateY(-15px) translateZ(40px) rotateX(5deg);
  box-shadow: 0 40px 80px rgba(15, 76, 129, 0.2);
}
.doctor-image { position: relative; height: 300px; overflow: hidden; }
.doctor-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.doctor-card:hover .doctor-image img { transform: scale(1.1); }
.doctor-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(15, 76, 129, 0.9));
  transform: translateY(100%); transition: transform 0.4s;
}
.doctor-card:hover .doctor-overlay { transform: translateY(0); }
.doctor-social { display: flex; gap: 10px; justify-content: center; }
.doctor-social a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; transition: var(--transition);
}
.doctor-social a:hover { background: white; color: var(--primary); transform: translateY(-5px); }
.doctor-info { padding: 25px; text-align: center; }
.doctor-info h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 5px; }
.doctor-info p { color: var(--secondary); font-size: 0.9rem; font-weight: 500; }
.doctor-info span { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--gray); }

/* ============================================
   TESTIMONIALS — 3D CAROUSEL
   ============================================ */
.testimonials { padding: 100px 0; background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%); overflow: hidden; }
.testimonials-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.testimonial-slider { position: relative; perspective: 1000px; }
.testimonial-track { display: flex; gap: 30px; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.testimonial-card {
  min-width: 100%; background: white; padding: 50px; border-radius: 30px;
  box-shadow: var(--shadow-card); transform-style: preserve-3d; position: relative;
}
@media (min-width: 768px) { .testimonial-card { min-width: calc(50% - 15px); } }
@media (min-width: 1024px) { .testimonial-card { min-width: calc(33.333% - 20px); } }
.testimonial-card::before {
  content: '"'; position: absolute; top: 20px; left: 30px;
  font-size: 6rem; color: var(--secondary); opacity: 0.2; line-height: 1; font-family: Georgia, serif;
}
.testimonial-stars { color: #ffc107; margin-bottom: 20px; font-size: 1.1rem; }
.testimonial-text { color: var(--gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--secondary); }
.testimonial-author h4 { color: var(--primary-dark); font-size: 1.1rem; }
.testimonial-author p { color: var(--gray); font-size: 0.9rem; }
.testimonial-nav { display: flex; justify-content: center; gap: 15px; margin-top: 40px; }
.testimonial-nav button {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary);
  background: white; color: var(--primary); font-size: 1.2rem; cursor: pointer;
  transition: var(--transition); transform-style: preserve-3d;
}
.testimonial-nav button:hover { background: var(--primary); color: white; transform: translateY(-3px) translateZ(10px); }

/* ============================================
   GALLERY — 3D MASONRY GRID
   ============================================ */
.gallery { padding: 100px 0; background: white; }
.gallery-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.gallery-item {
  position: relative; border-radius: 20px; overflow: hidden;
  transform-style: preserve-3d; transition: var(--transition); cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item:hover {
  transform: translateY(-10px) translateZ(30px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2); z-index: 10;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(15, 76, 129, 0.9));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: white; font-size: 1.2rem; transform: translateY(20px); transition: transform 0.4s; }
.gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }

/* ============================================
   CTA / APPOINTMENT SECTION
   ============================================ */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; background: rgba(255,255,255,0.05);
  border-radius: 50%; animation: float 8s ease-in-out infinite;
}
.cta-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.cta-content h2 { color: white; font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 35px; }
.cta-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 35px; }
.cta-feature { display: flex; align-items: center; gap: 15px; color: white; }
.cta-feature i {
  width: 40px; height: 40px; background: rgba(255,255,255,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.cta-form {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(30px);
  padding: 50px; border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2); transform-style: preserve-3d;
}
.cta-form h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 30px; text-align: center; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--dark); font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 20px; border: 2px solid #e9ecef; border-radius: 12px;
  font-size: 1rem; transition: var(--transition); font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1); transform: translateY(-2px);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white; border: none; border-radius: 12px;
  font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: var(--transition); transform-style: preserve-3d;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(15, 76, 129, 0.3); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--darker); color: white; padding: 80px 0 0; position: relative; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 50px;
}
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 20px; color: white; }
.footer-brand p { color: rgba(255,255,255,0.7); margin-bottom: 25px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; background: rgba(255,255,255,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); transform: translateY(-5px) rotateY(15deg); }
.footer-column h4 { font-size: 1.2rem; margin-bottom: 25px; color: white; position: relative; padding-bottom: 10px; }
.footer-column h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--secondary); border-radius: 2px;
}
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: rgba(255,255,255,0.7); transition: var(--transition); display: inline-block; }
.footer-column ul li a:hover { color: var(--secondary); transform: translateX(5px); }
.footer-newsletter input {
  width: 100%; padding: 14px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: white; margin-bottom: 15px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button {
  width: 100%; padding: 14px; background: var(--secondary); color: white;
  border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.footer-newsletter button:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 60px; padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP & WHATSAPP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 999; box-shadow: 0 10px 30px rgba(15, 76, 129, 0.4); transform-style: preserve-3d;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px) translateZ(20px) rotateX(10deg); }

.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px;
  background: #25d366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999; transition: var(--transition); animation: pulse-glow 3s infinite;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); }

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center; color: white; position: relative; overflow: hidden;
}
.page-header h1 { font-size: 3rem; margin-bottom: 15px; position: relative; z-index: 1; }
.page-header p { font-size: 1.1rem; opacity: 0.9; position: relative; z-index: 1; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.mission-vision { padding: 100px 0; background: var(--light); }
.mv-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card {
  background: white; padding: 50px; border-radius: 25px;
  box-shadow: var(--shadow-card); transform-style: preserve-3d; transition: var(--transition);
}
.mv-card:hover { transform: translateY(-10px) translateZ(30px); }
.mv-card-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; margin-bottom: 25px;
}
.mv-card h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.value-card {
  text-align: center; padding: 40px 30px; background: white;
  border-radius: 20px; box-shadow: var(--shadow-card); transition: var(--transition); transform-style: preserve-3d;
}
.value-card:hover { transform: translateY(-10px) rotateX(5deg); }
.value-card-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem;
}
.value-card h4 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 0.95rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { padding: 100px 0; background: var(--light); }
.contact-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-info-card {
  background: white; padding: 40px; border-radius: 25px;
  box-shadow: var(--shadow-card); margin-bottom: 30px;
  transform-style: preserve-3d; transition: var(--transition);
}
.contact-info-card:hover { transform: translateX(10px) translateZ(20px); }
.contact-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; margin-bottom: 20px;
}
.contact-info-card h4 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 10px; }
.contact-info-card p { color: var(--gray); line-height: 1.7; }
.map-container { border-radius: 25px; overflow: hidden; box-shadow: var(--shadow-3d); height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   FAQ SECTION (AEO Optimized)
   ============================================ */
.faq-section { padding: 100px 0; background: white; }
.faq-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.faq-item {
  background: var(--light); border-radius: 15px; margin-bottom: 20px;
  overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.faq-item:hover { transform: translateX(5px); }
.faq-question {
  padding: 25px 30px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; color: var(--primary-dark); font-size: 1.05rem;
}
.faq-question i { transition: transform 0.3s; color: var(--secondary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 30px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--gray); line-height: 1.7;
}
.faq-item.active .faq-answer { padding: 0 30px 25px; max-height: 500px; }

/* ============================================
   APPOINTMENT PAGE
   ============================================ */
.appointment-section { padding: 100px 0; background: var(--light); }
.appointment-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.appointment-info { display: flex; flex-direction: column; gap: 30px; }
.appointment-info-card {
  background: white; padding: 35px; border-radius: 25px;
  box-shadow: var(--shadow-card); transform-style: preserve-3d; transition: var(--transition);
}
.appointment-info-card:hover { transform: translateY(-5px) translateZ(20px); }
.appointment-info-card h4 { font-size: 1.3rem; color: var(--primary-dark); margin: 15px 0 10px; }
.appointment-info-card p { color: var(--gray); line-height: 1.7; }
.appointment-form-container {
  background: white; padding: 50px; border-radius: 30px;
  box-shadow: var(--shadow-3d); transform-style: preserve-3d;
}
.appointment-form-container h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 10px; }
.appointment-form-container > p { color: var(--gray); margin-bottom: 35px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============================================
   BLOG / NEWS SECTION
   ============================================ */
.blog-section { padding: 100px 0; background: var(--light); }
.blog-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 35px;
}
.blog-card {
  background: white; border-radius: 25px; overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition); transform-style: preserve-3d;
}
.blog-card:hover { transform: translateY(-10px) translateZ(30px) rotateX(3deg); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover img { transform: scale(1.1); }
.blog-content { padding: 30px; }
.blog-meta { display: flex; gap: 15px; margin-bottom: 15px; font-size: 0.85rem; color: var(--gray); }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-content h3 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.3; }
.blog-content p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.read-more { color: var(--secondary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.read-more:hover { gap: 10px; color: var(--primary); }

/* ============================================
   EMERGENCY BANNER
   ============================================ */
.emergency-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b81 100%);
  color: white; padding: 40px 0; text-align: center;
}
.emergency-banner-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.emergency-banner h2 { font-size: 2rem; margin-bottom: 15px; }
.emergency-banner p { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.9; }
.emergency-banner .btn-white {
  display: inline-block; padding: 14px 35px; background: white;
  color: var(--accent); border-radius: 50px; font-weight: 600;
  transition: var(--transition);
}
.emergency-banner .btn-white:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* ============================================
   TIMING TABLE
   ============================================ */
.timing-section { padding: 100px 0; background: white; }
.timing-table {
  max-width: 800px; margin: 0 auto; background: white;
  border-radius: 25px; overflow: hidden; box-shadow: var(--shadow-3d);
}
.timing-table-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; padding: 25px 40px; font-size: 1.3rem; font-weight: 600;
}
.timing-row {
  display: flex; justify-content: space-between; padding: 20px 40px;
  border-bottom: 1px solid #f0f0f0; transition: var(--transition);
}
.timing-row:hover { background: var(--light); transform: translateX(5px); }
.timing-row:last-child { border-bottom: none; }
.timing-day { font-weight: 600; color: var(--primary-dark); }
.timing-hours { color: var(--gray); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { margin: 0 auto 35px; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
  .about-container { grid-template-columns: 1fr; gap: 50px; }
  .cta-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .appointment-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 80px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-150%); opacity: 0; transition: all 0.4s;
    z-index: 9998;
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; }
  .mobile-toggle { display: flex; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-header h2 { font-size: 2rem; }
  .about-features { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2.2rem; }
  .top-bar-left { justify-content: center; width: 100%; }
  .top-bar-right { justify-content: center; width: 100%; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 20px; left: 20px; }
  .back-to-top { width: 45px; height: 45px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .btn-primary, .btn-secondary { padding: 14px 25px; font-size: 0.9rem; }
  .stat-number { font-size: 2.2rem; }
  .cta-content h2 { font-size: 2rem; }
  .cta-form { padding: 30px 20px; }
  .treatment-card-3d { height: 380px; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: white; padding: 8px 16px;
  z-index: 100000; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--secondary); outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .top-bar, .header, .back-to-top, .whatsapp-float, .preloader { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
}