/* =============================================
   KARISHMA DENTAL CLINIC - STYLESHEET
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #6366f1;
  --accent: #f472b6;
  --coral: #fb7185;
  --teal: #14b8a6;
  --gold: #f59e0b;
  --violet: #8b5cf6;
  --success: #10b981;
  --text-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-blue: #f0f9ff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section ---- */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* ---- Typography ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--violet), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: tagSparkle 3s ease-in-out infinite;
}

@keyframes tagSparkle {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }

  50% {
    box-shadow: 0 0 12px 3px rgba(14, 165, 233, 0.25);
  }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--violet), var(--accent));
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  animation: shimmerBtn 4s linear infinite;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    left: -75%;
  }

  60% {
    left: 125%;
  }

  100% {
    left: 125%;
  }
}

@keyframes shimmerBtn {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(99, 102, 241, 0.45);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

.nav-btn {
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, #f0f9ff 0%, #e8f4ff 25%, #ede9fe 60%, #fdf2f8 100%);
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
  top: -150px;
  right: -100px;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

/* Third hero blob for extra colour depth */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  top: 60%;
  right: 30%;
  filter: blur(70px);
  animation: blobFloat 10s ease-in-out infinite alternate;
  animation-delay: -2s;
  pointer-events: none;
}

@keyframes blobFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
  }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-main {
  position: relative;
  width: 380px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooth-svg-wrap {
  width: 280px;
  filter: drop-shadow(0 20px 60px rgba(14, 165, 233, 0.25));
  animation: toothFloat 4s ease-in-out infinite alternate;
}

@keyframes toothFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-12px);
  }
}

.tooth-hero-svg {
  width: 100%;
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  animation: badgeFloat 3s ease-in-out infinite alternate;
}

.badge-top {
  top: 30px;
  right: 0;
  animation-delay: -1.5s;
}

.badge-bottom {
  bottom: 50px;
  left: 0;
}

@keyframes badgeFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

.fb-icon {
  font-size: 1.5rem;
}

.fb-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.fb-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  display: block;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 50%, var(--accent) 100%);
  background-size: 300% auto;
  animation: marqueeGradient 6s ease infinite alternate;
  padding: 18px 0;
  overflow: hidden;
}

@keyframes marqueeGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.marquee-track {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.marquee-content span {
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  background: linear-gradient(160deg, #f8fafc 0%, #f0f4ff 50%, #fdf5ff 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.04), rgba(99, 102, 241, 0.04));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--c1) 40%, transparent);
  animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  from {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
  }

  to {
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.42);
  }
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  gap: 8px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: white;
}

.about-bg-shape {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
}

.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.about-img-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg, var(--primary), var(--violet), var(--accent), var(--teal), var(--primary));
  background-size: 300% 300%;
  animation: rainbowBorder 5s linear infinite;
  z-index: -1;
}

@keyframes rainbowBorder {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.clinic-svg {
  width: 100%;
}

.about-badge-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  bottom: -20px;
  right: -20px;
  animation: badgeFloat 3s ease-in-out infinite alternate;
}

.about-badge-card2 {
  bottom: auto;
  top: -20px;
  left: -20px;
  right: auto;
  animation-delay: -1.5s;
}

.about-badge-icon {
  font-size: 2rem;
}

.about-badge-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.about-badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-content {
  position: relative;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   TEAM
   ============================================ */
.team-section {
  background: var(--bg-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-svg {
  width: 100%;
  height: 100%;
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.team-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-social {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
}

/* ── Single Doctor Layout ── */
.team-single {
  grid-template-columns: 1fr !important;
  max-width: 680px;
  margin: 0 auto;
}

.team-card-featured {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.15);
  overflow: hidden;
}

.team-avatar-large {
  height: 100% !important;
  min-height: 260px;
}

.team-card-featured .team-info {
  padding: 36px;
}

.team-card-featured h3 {
  font-size: 1.5rem !important;
  font-family: 'Playfair Display', serif;
}

.team-degrees {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.degree-badge {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.team-card-featured .team-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .team-card-featured {
    grid-template-columns: 1fr;
  }

  .team-avatar-large {
    min-height: 200px;
    height: 200px !important;
  }

  .team-single {
    max-width: 100%;
  }
}


/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
  background: white;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.why-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.2);
}

.why-card-large {
  grid-column: span 1;
}

.why-card:nth-child(1) {
  grid-column: 1 / 3;
}

.why-card:nth-child(5) {
  grid-column: 2 / 4;
}

.why-card-large h3 {
  font-size: 1.3rem;
}

.why-icon-big {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.why-featured {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  border-color: transparent;
}

.why-featured h3,
.why-featured p {
  color: white;
}

.why-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  line-height: 1;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonial-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.testimonial-featured {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  transform: scale(1.02);
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   APPOINTMENT
   ============================================ */
.appointment-section {
  background: var(--bg-soft);
}

.appt-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.appt-info .section-title {
  margin-bottom: 16px;
}

.appt-info>p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.appt-contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.appt-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.appt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.appt-contact-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.appt-contact-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Appointment Form */
.appt-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.appt-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-soft);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 16px;
}

/* ============================================
   CONTACT / MAP
   ============================================ */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow);
}

.cc-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
}

.map-placeholder {
  width: 100%;
}

.map-svg {
  width: 100%;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f172a;
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand-desc {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 20px 0 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(14, 165, 233, 0.3);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #64748b;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-list {
  gap: 12px !important;
}

.footer-contact-list li {
  font-size: 0.85rem !important;
  color: #64748b;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #475569;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: #475569;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    gap: 40px;
  }

  .hero-card-main {
    width: 320px;
    height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 1.2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-main {
    width: 260px;
    height: 300px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    display: inline-flex;
  }

  .services-grid,
  .team-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appt-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appt-form-wrap {
    padding: 28px 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card:nth-child(1),
  .why-card:nth-child(5) {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .about-badge-card {
    right: 8px;
    bottom: -10px;
  }

  .about-badge-card2 {
    left: 8px;
    top: -10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    padding: 14px 28px;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .appt-form-wrap {
    padding: 24px 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}