/* ============================================
   IT Service Dental - Main Stylesheet
   Dark theme for dental IT support in NoVA
   ============================================ */

:root {
  /* Core Colors */
  --dark-bg: #0b1120;
  --dark-surface: #111827;
  --dark-card: #1a2332;
  --dark-border: #1e293b;

  /* Primary - Tech Blue */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.15);

  /* Accent - Dental Cyan */
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #22d3ee;

  /* Warm CTA */
  --cta: #f59e0b;
  --cta-dark: #d97706;
  --cta-light: #fbbf24;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Status */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1200px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
a:hover { color: var(--accent-light); }

ul { list-style: none; }

::selection {
  background: var(--primary);
  color: #fff;
}

/* ========== UTILITY ========== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta), #f97316);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  color: var(--text-inverse);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ========== ANIMATED BACKGROUND ========== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: glowFloat 20s ease-in-out infinite;
}
.bg-glow-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -5%; right: -5%;
  animation-delay: -7s;
}
.bg-glow-3 {
  width: 300px; height: 300px;
  background: #6366f1;
  top: 40%; left: 60%;
  animation-delay: -14s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-smooth);
}
.nav.scrolled {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  margin-left: 8px;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  position: absolute;
  left: 0;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-surface);
    border-left: 1px solid var(--dark-border);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.4s var(--ease-smooth);
  }
  .nav-links.open { right: 0; }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--primary-glow); color: var(--primary-light); }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease-spring) both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease-spring) 0.1s both;
}

.hero-title .gradient-text {
  display: inline-block;
}

.hero-title .typewriter {
  display: inline-block;
  border-right: 3px solid var(--accent);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
  animation: fadeInUp 0.6s var(--ease-spring) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-spring) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  animation: fadeInUp 0.6s var(--ease-spring) 0.4s both;
}
.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.8s var(--ease-spring) 0.2s both;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--success);
  margin-bottom: 16px;
}
.hero-card-status .dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card-metric {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.hero-card-metric .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
}
.hero-card-metric .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-card-security {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.security-item {
  padding: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease-smooth) infinite;
}
.floating-card-1 {
  top: -20px; right: -30px;
  animation-delay: 0s;
}
.floating-card-2 {
  bottom: -10px; left: -40px;
  animation-delay: -2s;
}
.floating-card-3 {
  bottom: 60px; right: -20px;
  animation-delay: -4s;
}

.floating-card .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.floating-card .icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.floating-card .icon.blue { background: var(--primary-glow); color: var(--primary-light); }
.floating-card .icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--cta); }

.floating-card .text { line-height: 1.3; }
.floating-card .text .main {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.floating-card .text .sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual-inner {
    max-width: 400px;
    margin: 0 auto;
  }
  .floating-card {
    display: none;
  }
}

/* ========== SECTION BASE ========== */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 1;
}

.section-header {
  margin-bottom: 60px;
}

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

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-icon.blue { background: var(--primary-glow); color: var(--primary-light); }
.service-icon.teal { background: rgba(6, 182, 212, 0.15); color: var(--accent-light); }
.service-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.service-icon.purple { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.service-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--cta-light); }
.service-icon.red { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-features {
  padding: 0;
  margin: 0;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.service-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

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

/* ========== WHY DENTAL ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 16px;
  transition: all 0.4s var(--ease-smooth);
}
.why-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateX(4px);
}

.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 165, 233, 0.3);
  line-height: 1;
  flex-shrink: 0;
}

.why-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.why-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ========== STATS / COUNTERS ========== */
.stats-section {
  background: linear-gradient(135deg, var(--dark-surface), var(--dark-card));
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

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

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.stat-suffix {
  font-size: 1.5rem;
  -webkit-text-fill-color: var(--accent-light);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-value { font-size: 2rem; }
}

/* ========== TESTIMONIALS ========== */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-spring);
}

.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 32px;
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--cta);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}
.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-glow);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}
.testimonial-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

@media (max-width: 900px) {
  .testimonial-card { min-width: calc(50% - 12px); }
}
@media (max-width: 600px) {
  .testimonial-card { min-width: 100%; }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}
.faq-item.active {
  border-color: rgba(14, 165, 233, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-align: left;
  transition: color 0.3s var(--ease-smooth);
}
.faq-item.active .faq-question { color: var(--primary-light); }

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
  color: var(--text-muted);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--dark-surface), #0f1a2e);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-smooth);
}
.cta-phone:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-glow);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 24px;
  position: relative;
  z-index: 1;
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
}
.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-smooth);
  padding: 0;
}
.footer-social a:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
  padding: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  transition: all 0.3s var(--ease-smooth);
}
.contact-info-item:hover {
  border-color: rgba(14, 165, 233, 0.2);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.contact-info-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-form-wrapper {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all 0.3s var(--ease-smooth);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-input.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========== SERVICES PAGE EXTENDED ========== */
.service-detail-section {
  padding: 60px 0;
}

.service-detail-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-detail-card.reverse {
  direction: rtl;
}
.service-detail-card.reverse > * {
  direction: ltr;
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.service-detail-icon.blue { background: var(--primary-glow); color: var(--primary-light); }
.service-detail-icon.teal { background: rgba(6, 182, 212, 0.15); color: var(--accent-light); }
.service-detail-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.service-detail-icon.purple { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.service-detail-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--cta-light); }

.service-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-detail-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail-list {
  display: grid;
  gap: 8px;
}
.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.service-detail-list li::before {
  content: '→';
  color: var(--primary-light);
  font-weight: 700;
  flex-shrink: 0;
}

.service-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail-visual-inner {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

@media (max-width: 768px) {
  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .service-detail-card.reverse {
    direction: ltr;
  }
  .service-detail-visual { order: -1; }
}

/* ========== ABOUT PAGE ========== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-experience-badge .number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-experience-badge .label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-value {
  text-align: center;
  padding: 20px 12px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  transition: all 0.3s var(--ease-smooth);
}
.about-value:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.about-value .icon { font-size: 1.8rem; margin-bottom: 8px; }
.about-value h4 { font-size: 0.85rem; font-weight: 600; }
.about-value p { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s var(--ease-spring);
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.3);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--dark-card));
}
.blog-card-image .emoji {
  position: relative;
  z-index: 1;
  font-size: 3rem;
}
.blog-card:hover .blog-card-image .emoji {
  transform: scale(1.2);
  transition: transform 0.4s var(--ease-spring);
}

.blog-card-body {
  padding: 20px 24px 24px;
}
.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-glow);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s var(--ease-smooth);
}
.blog-card:hover h3 { color: var(--primary-light); }
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* Blog post page */
.blog-post-hero {
  padding: 140px 0 60px;
  text-align: center;
}
.blog-post-hero .blog-card-tag { margin-bottom: 20px; }
.blog-post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-post-hero .blog-card-meta {
  justify-content: center;
  font-size: 0.85rem;
}

.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
}
.blog-post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.blog-post-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}
.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 20px 20px;
}
.blog-post-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 8px;
}
.blog-post-content ul li { list-style: disc; }
.blog-post-content ol li { list-style: decimal; }
.blog-post-content strong { color: var(--text-primary); }
.blog-post-content a { color: var(--primary-light); text-decoration: underline; }

/* ========== SCROLL ANIMATIONS ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fadeIn"] { transform: none; }
[data-animate="fadeInUp"] { transform: translateY(30px); }
[data-animate="fadeInDown"] { transform: translateY(-30px); }
[data-animate="fadeInLeft"] { transform: translateX(-30px); }
[data-animate="fadeInRight"] { transform: translateX(30px); }
[data-animate="scaleIn"] { transform: scale(0.9); }
[data-animate="scaleIn"].visible { transform: scale(1); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* ========== DENTAL SHIELD SVG ANIMATION ========== */
.tooth-icon-wrapper {
  display: inline-block;
  transition: transform 0.3s var(--ease-smooth);
}
.tooth-icon-wrapper:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* ========== RESPONSIVE HELPERS ========== */
@media (max-width: 1024px) {
  :root { --section-padding: 70px; }
}
@media (max-width: 768px) {
  :root { --section-padding: 50px; }
}
@media (max-width: 480px) {
  :root { --section-padding: 40px; }
  .container { padding: 0 16px; }
}

/* ========== BLOG LAYOUT & TABLE OF CONTENTS ========== */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  position: relative;
}

.blog-post-content {
  min-width: 0;
  max-width: 100%;
}

/* Desktop TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-nav {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 24px;
}

.toc-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-border);
}

#tocDesktopList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#tocDesktopList li {
  margin: 0;
}

.toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  line-height: 1.45;
  border-radius: 0 4px 4px 0;
}

.toc-link:hover {
  color: #fff;
  border-left-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.08);
}

.toc-link.toc-h3 {
  padding-left: 28px;
  font-size: 0.8rem;
}

/* Active TOC link */
.toc-link.active {
  color: var(--primary-light);
  border-left-color: var(--primary-light);
  font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
}

/* Mobile TOC (hidden on desktop) */
.toc-mobile {
  display: none;
  margin-bottom: 24px;
}

.toc-mobile-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 16px 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

#tocMobileList {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

#tocMobileList ul {
  list-style: none;
  padding: 8px 20px 16px;
  margin: 0;
}

#tocMobileList li {
  margin: 0;
}

#tocMobileList .toc-link {
  padding: 12px 0 12px 16px;
  font-size: 0.95rem;
}

/* Responsive: stack layout on tablet/mobile */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  .toc-mobile {
    display: block;
    margin-bottom: 24px;
  }

  .blog-post-content {
    overflow-x: hidden;
    word-wrap: break-word;
  }

  .blog-post-content img,
  .blog-post-content table,
  .blog-post-content pre {
    max-width: 100%;
    overflow-x: auto;
  }
}
