/* ============================================
   LabKart Diagnostic — Premium Brand Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* — Brand Colors — */
  --clr-primary: #0891B2;
  --clr-primary-dark: #0E7490;
  --clr-primary-deeper: #155E75;
  --clr-primary-light: #67E8F9;
  --clr-primary-pale: #ECFEFF;

  --clr-secondary: #10B981;
  --clr-secondary-dark: #059669;
  --clr-secondary-light: #6EE7B7;
  --clr-secondary-pale: #ECFDF5;

  --clr-accent: #F59E0B;
  --clr-accent-light: #FDE68A;

  --clr-dark: #0F172A;
  --clr-dark-soft: #1E293B;
  --clr-body: #334155;
  --clr-muted: #64748B;
  --clr-light: #F1F5F9;
  --clr-lighter: #F8FAFC;
  --clr-white: #ffffff;
  --clr-border: #E2E8F0;
  --clr-border-light: #F1F5F9;

  /* — Gradients — */
  --gradient-brand: linear-gradient(135deg, #0891B2 0%, #06B6D4 50%, #10B981 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(8,145,178,0.08) 0%, rgba(16,185,129,0.06) 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #0E7490 50%, #155E75 100%);
  --gradient-cta: linear-gradient(135deg, #0891B2 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B, #F97316);
  --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));

  /* — Typography — */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --ff-accent: 'DM Serif Display', serif;

  /* — Shadows — */
  --shadow-xs: 0 1px 3px rgba(15,23,42,0.04);
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 40px rgba(15,23,42,0.10);
  --shadow-xl: 0 20px 60px rgba(15,23,42,0.12);
  --shadow-glow: 0 0 30px rgba(8,145,178,0.15);
  --shadow-card: 0 4px 15px rgba(8,145,178,0.06);
  --shadow-btn-primary: 0 4px 20px rgba(8,145,178,0.35);
  --shadow-btn-secondary: 0 4px 20px rgba(16,185,129,0.3);

  /* — Glass — */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-bg-dark: rgba(15,23,42,0.6);
  --glass-border: rgba(255,255,255,0.25);
  --glass-blur: blur(16px);

  /* — Radius — */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* — Spacing & Timing — */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--clr-body);
  background: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--clr-primary);
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-primary-dark); }

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

::selection {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ---------- Utility ---------- */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 70px 0; }
.bg-light-custom { background: var(--clr-light); }
.text-primary-custom { color: var(--clr-primary) !important; }
.text-secondary-custom { color: var(--clr-secondary) !important; }

.section-title {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: -0.03em;
}
.section-title .accent-word {
  font-family: var(--ff-accent);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--clr-muted);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 3.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 0 auto 1rem;
  border: none;
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  left: 55px;
  top: 0;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--clr-accent);
}

/* ---------- Top Info Bar ---------- */
.top-bar {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1060;
  position: relative;
}
.top-bar a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}
.top-bar a:hover {
  color: var(--clr-primary-light);
}
.top-bar i {
  color: var(--clr-primary-light);
  margin-right: 5px;
}
.top-bar .top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  vertical-align: middle;
  margin: 0 14px;
}

/* ---------- Sticky Navbar ---------- */
.navbar-main {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  transition: all var(--transition);
  z-index: 1050;
  border-bottom: 1px solid transparent;
}
.navbar-main.scrolled {
  box-shadow: 0 1px 20px rgba(15,23,42,0.08);
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}
.navbar-logo {
  height: 130px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition);
}
.navbar-main.scrolled .navbar-logo {
  height: 100px;
}

.navbar-main .nav-link {
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--clr-dark-soft);
  padding: 8px 18px !important;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--clr-primary);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-primary);
  border: 2px solid var(--clr-border);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-call:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-pale);
  color: var(--clr-primary-dark);
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-white);
  background: var(--gradient-cta);
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  border: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-btn-primary);
  position: relative;
  overflow: hidden;
}
.btn-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}
.btn-book:hover::before {
  left: 100%;
}
.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8,145,178,0.4);
  color: var(--clr-white);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(14,116,144,0.65) 50%, rgba(8,145,178,0.55) 100%);
  z-index: 1;
}
.hero-overlay::after {
  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%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--clr-white);
}
.hero-content h1 {
  font-family: var(--ff-heading);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-content h1 .accent-text {
  font-family: var(--ff-accent);
  display: inline-block;
  background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.2rem;
  opacity: 0.88;
  margin-bottom: 2.25rem;
  max-width: 500px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.hero-badge i {
  color: var(--clr-accent);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  color: var(--clr-white);
  background: var(--gradient-cta);
  border: none;
  box-shadow: 0 8px 30px rgba(8,145,178,0.4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(8,145,178,0.5);
  color: var(--clr-white);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  color: var(--clr-white);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}
.btn-hero-outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,0.1);
  color: var(--clr-white);
  transform: translateY(-2px);
}

/* Floating shapes in hero */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 1;
}
.hero-shape-1 {
  width: 400px; height: 400px;
  background: var(--clr-primary-light);
  top: -100px; right: -100px;
  animation: float 10s ease-in-out infinite;
}
.hero-shape-2 {
  width: 250px; height: 250px;
  background: var(--clr-secondary);
  bottom: -60px; left: 8%;
  animation: float 8s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 150px; height: 150px;
  background: var(--clr-accent);
  top: 30%; right: 15%;
  animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(8deg); }
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,145,178,0.15);
}
.service-card .icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition);
  position: relative;
}
.service-card .icon-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover .icon-wrap {
  background: var(--gradient-brand);
  transform: scale(1.08) rotate(-3deg);
}
.service-card:hover .icon-wrap svg {
  filter: brightness(0) invert(1);
}
.service-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--clr-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Why Choose Us ---------- */
.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--clr-white);
  box-shadow: var(--shadow-md);
}
.why-card .why-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--gradient-brand);
  color: var(--clr-white);
  box-shadow: 0 8px 25px rgba(8,145,178,0.25);
  transition: all var(--transition);
}
.why-card:hover .why-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(8,145,178,0.35);
  border-radius: 24px;
}
.why-card h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: var(--clr-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--gradient-hero);
  color: var(--clr-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.06);
  top: -250px;
  right: -150px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.05);
  bottom: -150px;
  left: -50px;
}
.cta-banner h2 {
  color: var(--clr-white);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}
.cta-banner p {
  opacity: 0.85;
  font-size: 1.1rem;
  line-height: 1.8;
}
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: var(--clr-white);
  color: var(--clr-primary-dark);
  border: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}
.btn-cta-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8,145,178,0.08), transparent);
  transition: left 0.5s ease;
}
.btn-cta-white:hover::before {
  left: 100%;
}
.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.18);
  color: var(--clr-primary-dark);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}
.testimonial-card:hover::before {
  opacity: 1;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.testimonial-card .quote-icon {
  font-family: var(--ff-accent);
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
}
.testimonial-card p {
  font-style: italic;
  color: var(--clr-body);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--ff-heading);
  box-shadow: 0 3px 12px rgba(8,145,178,0.2);
}
.testimonial-card .author-info h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-card .author-info small {
  color: var(--clr-muted);
  font-size: 0.82rem;
}
.testimonial-card .stars {
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ---------- Page Header / Inner Banner ---------- */
.page-header {
  background: var(--gradient-hero);
  color: var(--clr-white);
  padding: 120px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::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.035'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(103,232,249,0.05);
  top: -250px; right: -120px;
}
.page-header h1 {
  color: var(--clr-white);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
}
.page-header p {
  opacity: 0.8;
  font-size: 1.1rem;
  position: relative;
}
.page-header .breadcrumb {
  justify-content: center;
  margin-top: 1.25rem;
  position: relative;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
}
.page-header .breadcrumb-item a:hover {
  color: var(--clr-primary-light);
}
.page-header .breadcrumb-item.active {
  color: var(--clr-white);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* Curved bottom for page headers */
.page-header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}

/* ---------- About Page ---------- */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.8s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.03);
}
.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--gradient-brand);
  color: var(--clr-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.stat-card {
  text-align: center;
  padding: 2.25rem 1.25rem;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.stat-card:hover::after {
  transform: scaleX(1);
}
.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.stat-card .stat-number {
  font-family: var(--ff-heading);
  font-size: 2.75rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-card .stat-label {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Mission / Vision cards */
.mv-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--clr-border);
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.mv-card:hover::before {
  opacity: 1;
}
.mv-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,145,178,0.1);
  transform: translateY(-4px);
}
.mv-card .mv-icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.mv-card:hover .mv-icon {
  background: var(--gradient-brand);
  transform: rotate(-5deg);
}
.mv-card:hover .mv-icon i {
  color: var(--clr-white) !important;
}
.mv-card h4 {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

/* ---------- Services Page ---------- */
.service-detail-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--gradient-brand);
  transition: height var(--transition);
}
.service-detail-card:hover::before { height: 100%; }
.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(8,145,178,0.12);
}
.service-detail-card .sdc-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.service-detail-card:hover .sdc-icon {
  background: var(--gradient-brand);
  transform: scale(1.05) rotate(-3deg);
}
.service-detail-card:hover .sdc-icon svg {
  filter: brightness(0) invert(1);
}
.service-detail-card h5 {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.service-detail-card p {
  color: var(--clr-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.service-detail-card .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--clr-secondary-pale);
  color: var(--clr-secondary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  font-family: var(--ff-heading);
  letter-spacing: 0.01em;
}

/* ---------- Forms ---------- */
.form-section {
  background: var(--clr-light);
}
.form-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.form-card .form-label {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-dark-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-card .form-control,
.form-card .form-select {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--ff-body);
  transition: all var(--transition);
  background: var(--clr-lighter);
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.1);
  background: var(--clr-white);
}
.form-card .form-control::placeholder {
  color: var(--clr-muted);
  font-size: 0.9rem;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: var(--clr-white);
  border: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-btn-primary);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-submit:hover::before {
  left: 100%;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(8,145,178,0.45);
  color: var(--clr-white);
}

/* Alert messages */
.alert-success-custom {
  background: var(--clr-secondary-pale);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--clr-secondary-dark);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  font-weight: 500;
}
.alert-error-custom {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  color: #b91c1c;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  font-weight: 500;
}

/* ---------- Contact Info Cards ---------- */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  margin-bottom: 1rem;
}
.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(8,145,178,0.15);
  transform: translateX(6px);
}
.contact-info-card .ci-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--clr-primary);
  transition: all var(--transition);
}
.contact-info-card:hover .ci-icon {
  background: var(--gradient-brand);
  color: var(--clr-white);
}
.contact-info-card h6 {
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.contact-info-card p {
  margin: 0;
  color: var(--clr-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

/* Newsletter row */
.footer-newsletter {
  background: var(--clr-dark-soft);
  padding: 50px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-newsletter h4 {
  color: var(--clr-white);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.footer-newsletter p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--clr-white);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter-form input:focus {
  border-color: var(--clr-primary);
  background: rgba(255,255,255,0.1);
}
.newsletter-form button {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: var(--clr-white);
  border: none;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary);
}

.footer-main {
  padding: 60px 0;
}
.footer h5 {
  color: var(--clr-white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.footer a {
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--clr-primary-light);
  padding-left: 6px;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  margin-bottom: 0.65rem;
}
.footer ul li a::before {
  content: '›';
  margin-right: 8px;
  color: var(--clr-primary);
  font-weight: 700;
  transition: margin var(--transition-fast);
}
.footer ul li a:hover::before {
  margin-right: 12px;
}
.footer-about-text {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  margin-right: 8px;
  font-size: 1rem;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}
.footer .social-icons a::before {
  display: none;
}
.footer .social-icons a:hover {
  background: var(--gradient-brand);
  color: var(--clr-white);
  transform: translateY(-3px);
  padding-left: 0;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(8,145,178,0.3);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.47s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.54s; }
.stagger-children .fade-in:nth-child(9) { transition-delay: 0.61s; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: pointer;
  z-index: 999;
  border: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(8,145,178,0.4);
}

/* ---------- Quick Info Cards (Book Test) ---------- */
.quick-info-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.quick-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.quick-info-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.75rem; }
  .section-title { font-size: 2rem; }
  .section-padding { padding: 70px 0; }
  .navbar-main .navbar-nav { padding: 1rem 0; }
  .navbar-main .nav-item { margin-bottom: 4px; }
  .top-bar { display: none; }
  .navbar-main .nav-link::after { display: none; }
  .newsletter-form { max-width: 100%; }
  .footer-newsletter .row { gap: 1rem; }
}

@media (max-width: 767px) {
  .hero-section { min-height: 80vh; }
  .hero-content h1 { font-size: 2.15rem; }
  .hero-content p { font-size: 1rem; }
  .section-padding { padding: 55px 0; }
  .section-title { font-size: 1.75rem; }
  .form-card { padding: 1.75rem; }
  .page-header { padding: 100px 0 50px; }
  .page-header h1 { font-size: 2rem; }
  .newsletter-form { flex-direction: column; }
  .cta-banner { padding: 60px 0; }
  .cta-banner h2 { font-size: 1.75rem; }
  .footer-newsletter { padding: 35px 0; }
}

@media (max-width: 575px) {
  .hero-content h1 { font-size: 1.85rem; }
  .section-title { font-size: 1.5rem; }
  .btn-hero { padding: 14px 30px; font-size: 0.95rem; }
  .form-card { padding: 1.25rem; }
  .stat-card .stat-number { font-size: 2.25rem; }
}
