/* =========================================================
   E-LABS — New Template Styling
   ========================================================= */
:root {
  --navy: #1C2D3D;
  /* Deep Slate Blue Steel */
  --navy-2: #121E2A;
  /* Rich Dark Blue Steel */
  --blue: #4A90E2;
  /* Muted Steel Blue / Sky Blue */
  --blue-hover: #357ABD;
  --blue-soft: rgba(74, 144, 226, 0.08);
  --emerald: #10B981;
  /* Emerald Soft accent color - mát mắt & hiện đại */
  --emerald-hover: #0D9488;
  --emerald-soft: rgba(16, 185, 129, 0.08);
  --white: #ffffff;
  --bg-soft: #F4F7FA;
  /* Very gentle, clean white-gray light blue steel - extremely mát mắt */
  --text-mute: rgba(255, 255, 255, 0.7);
  --text-mute-dark: #5C6E7F;
  /* Premium Slate text */
  --border: rgba(28, 45, 61, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);

  /* Glassmorphism & premium UI shadows */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(28, 45, 61, 0.05);
  --glass-dark-bg: rgba(18, 30, 42, 0.75);
  --glass-dark-border: rgba(255, 255, 255, 0.06);
  --blur: blur(16px);

  --shadow-sm: 0 2px 8px rgba(28, 45, 61, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 45, 61, 0.08);
  --shadow-lg: 0 20px 40px rgba(28, 45, 61, 0.12);
  --glow-blue: 0 0 25px rgba(74, 144, 226, 0.2);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Ultra smooth ease-out */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Typography */
.display-font {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
  color: inherit;
  margin: 12px 0 24px;
}

.section-sub {
  font-size: 18px;
  color: inherit;
  opacity: 0.8;
  max-width: 600px;
}

section {
  height: auto;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  position: relative;
  box-sizing: border-box;
}

section .container {
  width: 100%;
}

section.dark {
  background: var(--navy);
  color: var(--white);
}

section.dark .section-sub {
  color: var(--text-mute);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow.dark-text {
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35), var(--glow-blue);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(74, 144, 226, 0.05);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s var(--ease);
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.logo img {
  height: 52px; /* Increased logo height for enhanced brand presence */
  transition: transform 0.3s var(--ease);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 8px 2px;
  transition: color 0.3s var(--ease);
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(28, 45, 61, 0.05);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(28, 45, 61, 0.03);
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
}

.lang-switch button.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.lang-switch button:hover:not(.active) {
  background: rgba(28, 45, 61, 0.05);
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 780px;
  padding-top: 100px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden; /* Clips background overflow during vertical translation */
  background: var(--white);
}

.hero-bg {
  position: absolute;
  top: -10%; /* 10% vertical buffer at the top to prevent showing white space on translation */
  left: 0;
  width: 100%;
  height: 120%; /* 120% height provides a perfect safe padding for vertical scrolls */
  /* Reduced gradient opacity to clear the fog, exposing the razor-sharp textures of the 8k photo background. Cache-busted with ?v=2. */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 60%, rgba(18, 30, 42, 0.08) 100%), url('../assets/images/elabs_real_hero_bg.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 1;
  
  /* Prevent browser from rendering blurry textures when GPU accelerated */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Force crisp rendering in Safari & standard browsers */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-left {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally in the hero viewport */
  padding: 60px 40px;
  position: relative;
  z-index: 2; /* Ensure interactive links and texts float safely above the background element */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px; /* Wider canvas for horizontal single-row stats */
  width: 100%;
  /* Removed container card styling entirely to let the realistic photo background shine through cleanly */
  background: transparent; 
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center; /* Center-align typography */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center nested items vertically */
  transition: all 0.45s var(--ease);
}

.hero .eyebrow {
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.65); /* Translucent capsule badge */
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(28, 45, 61, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(60px, 12vw, 100px);
  color: var(--navy);
  line-height: 0.95;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  /* Reinforced thick multi-layered white glow to insulate typography directly over background details */
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 1),
    0 0 16px rgba(255, 255, 255, 1),
    0 2px 30px rgba(255, 255, 255, 0.95),
    0 4px 50px rgba(255, 255, 255, 0.9);
}

.hero .hero-content p {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--navy);
  opacity: 0.9;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 36px;
  /* Reinforced thick multi-layered white glow for description text */
  text-shadow: 
    0 0 6px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 1),
    0 2px 25px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero .lightning {
  color: var(--blue);
  display: inline-block;
  vertical-align: middle;
}

/* Hero stats premium look - lightweight single-row transparent styling */
.hero-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
  max-width: 900px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
}

.hero-stat-item .stat-number {
  font-size: clamp(48px, 9vw, 64px);
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 8px;
  /* Reinforced thick multi-layered white glow to insulate numbers over dark desk elements */
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 1),
    0 0 16px rgba(255, 255, 255, 1),
    0 2px 24px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(74, 144, 226, 0.45);
}

.hero-stat-item .stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.45;
  /* Reinforced thick multi-layered white glow to insulate text labels over dark desk elements */
  text-shadow: 
    0 0 6px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 1),
    0 1px 4px rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Core Values (Dark) - Updated to 3 Columns with glow */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.value-card {
  border-top: 2px solid var(--border-light);
  padding-top: 24px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  transition: width 0.4s var(--ease);
}

.value-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}

.value-card:hover::before {
  width: 100%;
}

.value-card h3 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.value-card:hover h3 {
  color: var(--blue);
}

.value-card p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* Experience: Tech Stack & Domains */
.experience-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

/* Experience Dark Overrides */
.experience-section.dark {
  background: var(--navy-2);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-section.dark h3.display-font {
  color: var(--white) !important;
}

.experience-section.dark p {
  color: var(--text-mute) !important;
}

.experience-section.dark .tech-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.experience-section.dark .tech-badge:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
  border-color: var(--blue);
}

.experience-section.dark .domain-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.experience-section.dark .domain-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
}

.experience-section.dark .domain-card-title {
  color: var(--white);
}

.experience-section.dark .domain-card-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.experience-section.dark .domain-card:hover .domain-card-icon {
  background: var(--blue);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
}

.tech-container,
.domain-container {
  display: flex;
  flex-direction: column;
}

.tech-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--navy);
  border: 1px solid rgba(28, 45, 61, 0.06);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.tech-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.tech-badge:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tech-badge:hover svg {
  transform: scale(1.15) rotate(4deg);
}

.tech-badge.highlight-ai {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
  border-color: rgba(74, 144, 226, 0.4);
  color: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.tech-badge.highlight-ai:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(74, 144, 226, 0.1));
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.2);
}

.domain-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.domain-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  border: 1px solid rgba(28, 45, 61, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s var(--ease);
}

.domain-card:hover {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.domain-card-icon {
  font-size: 16px;
  background: rgba(74, 144, 226, 0.08);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.domain-card:hover .domain-card-icon {
  background: var(--blue);
  transform: scale(1.06);
}

.domain-card-content {
  flex: 1;
}

.domain-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.case-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0;
  flex: 1;
}

.case-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.case-card-tech .tech-badge {
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--blue);
  margin-top: 0;
}

/* Case Studies (Dark) - Horizontal Slider */
.cases-slider-container {
  position: relative;
  width: 100%;
  margin-top: 56px;
  overflow: visible;
}

.cases-slider-viewport {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  /* Ensures shadow outlines aren't clipped */
}

.cases-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 24px;
  will-change: transform;
}

.case-card-wrapper {
  flex: 0 0 calc((100% - 48px) / 3);
  /* 3 cards visible on desktop */
  min-width: 300px;
  transition: opacity 0.4s var(--ease);
}

.case-card {
  background: var(--navy-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lg), var(--glow-blue);
}

.case-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(28, 45, 61, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.case-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.case-card:hover .case-card-img-wrap img {
  transform: scale(1.06);
}

.case-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-card-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
  display: inline-block;
}

.case-card-title {
  font-size: 20px;
  color: var(--white);
  margin: 0 0 14px 0;
  line-height: 1.35;
  font-weight: 700;
  transition: color 0.3s;
}

.case-card:hover .case-card-title {
  color: var(--blue);
}

.case-card-desc {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Slider Controls */
.cases-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.slider-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.35s var(--ease);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--blue);
  width: 20px;
  border-radius: 4px;
}

/* Cases Section Light overrides */
#cases {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

#cases .slider-btn {
  background: var(--bg-soft);
  border-color: rgba(28, 45, 61, 0.12);
  color: var(--navy);
}

#cases .slider-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

#cases .slider-dot {
  background: rgba(28, 45, 61, 0.15);
}

#cases .slider-dot.active {
  background: var(--blue);
}

/* Services / Plans (Light) */
#services {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.plan-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(28, 45, 61, 0.04);
  border: 1px solid rgba(28, 45, 61, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  border-color: rgba(74, 144, 226, 0.3);
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-number-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F4F7FA, #E1E8F0);
  border: 1px solid rgba(28, 45, 61, 0.08);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}

.plan-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: all 0.4s var(--ease);
}

.plan-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--navy) 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  transition: all 0.4s var(--ease);
  flex: 1;
}

.plan-card:hover .plan-number-wrap {
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  border-color: var(--blue);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: var(--glow-blue);
}

.plan-card:hover .plan-number {
  color: var(--white);
}

.plan-card:hover .plan-title {
  background: linear-gradient(135deg, var(--blue-hover) 30%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(4px);
}

.plan-card p {
  color: var(--text-mute-dark);
  margin-bottom: 32px;
  flex: 1;
}

.plan-card .btn {
  width: 100%;
}

/* Process (Light) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.process-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-card .content {
  padding: 32px;
}

.process-card .num {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1;
}

.process-card h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-mute);
  font-size: 14px;
}

/* Cyber Glitch & RGB Split Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.glitch-text::before {
  left: 3px;
  text-shadow: -2px 0 #ff003c;
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -3px;
  text-shadow: -2px 0 #00ffff;
  animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
  5% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); }
  10% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 2px); }
  15% { clip-path: inset(100% 0 0 0); transform: translate(0); }
  100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
}

@keyframes glitch-anim2 {
  0% { clip-path: inset(25% 0 45% 0); transform: translate(2px, -1px); }
  5% { clip-path: inset(65% 0 15% 0); transform: translate(-2px, 1px); }
  10% { clip-path: inset(15% 0 75% 0); transform: translate(2px, -2px); }
  15% { clip-path: inset(100% 0 0 0); transform: translate(0); }
  100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
}

/* Section Header Effects (Neural Network + Hologram Shimmer) */
.section-header {
  position: relative;
  z-index: 1;
}

.neural-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
}

section:not(.dark) .neural-canvas {
  opacity: 0.25;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--blue) 0%, transparent 60%);
  opacity: 0.12;
  z-index: -1;
  filter: blur(35px);
  animation: pulse-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

section:not(.dark) .section-header::before {
  opacity: 0.08;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.18; }
}

.shimmer-text {
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
  display: inline-block;
}

section.dark .shimmer-text {
  background-image: linear-gradient(-45deg, #ffffff 40%, var(--blue) 50%, #ffffff 60%);
}

section:not(.dark) .shimmer-text {
  background-image: linear-gradient(-45deg, var(--navy) 40%, var(--blue) 50%, var(--navy) 60%);
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Contact / FAQ (Dark) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.accordion {
  border-top: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
}

/* Footer */
footer {
  background: var(--bg-soft);
  color: var(--navy);
  padding: 80px 0 40px;
  text-align: center;
}

.footer-mega {
  font-family: 'Anton', sans-serif;
  font-size: clamp(60px, 12vw, 160px);
  line-height: 0.85;
  margin-bottom: 64px;
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* Utils */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  section {
    height: auto;
    min-height: auto;
    padding: 80px 0;
    overflow: visible;
  }
  .hero {
    flex-direction: column;
    padding-top: 120px;
    height: auto;
    min-height: auto;
    overflow: visible; /* Safe static overflow for stacked viewports */
  }

  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.35) 100%), url('../assets/images/elabs_real_hero_bg.webp');
    background-size: cover;
    background-position: center;
    transform: none !important; /* Disable parallax transformations on mobile devices */
    z-index: 1;
  }

  .hero-left {
    width: 100%;
    padding: 60px 20px;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .plans-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 100;
  order: -1;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  margin: 5px auto;
  transition: all 0.3s var(--ease);
}
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-lang {
  display: none;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-cta {
    gap: 8px;
  }
  .nav-cta .btn {
    display: none;
  }
  .nav-cta .lang-switch {
    display: none;
  }
  .mobile-lang {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border);
  }
  .nav-menu.active {
    display: flex;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .values-grid,
  .plans-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cases-slider-controls {
    margin-top: 24px;
  }

  .case-card-wrapper {
    flex: 0 0 100%;
  }
}

/* Premium Form styling */
.contact-form-premium {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.contact-form-premium:hover {
  box-shadow: 0 30px 60px rgba(28, 45, 61, 0.14);
}

.contact-form-premium h3 {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.contact-form-premium p {
  color: var(--text-mute-dark);
  font-size: 15px;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(28, 45, 61, 0.12);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: var(--glow-blue);
}

.contact-form-premium button[type="submit"] {
  width: 100%;
  margin-top: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}

.contact-form-premium button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Notification Banner */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: alertFadeIn 0.3s var(--ease);
}

.form-alert.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-alert.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}