/* ============================================
   BYTENOTECHH — Section Styles (Pro Redesign)
   ============================================ */

/* === Hero Grid Layout === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* === Hero Visual — Interactive Particle 'B' Logo === */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
  animation: fadeIn 1s var(--ease-out) 0.2s both;
}

.particle-logo-container {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.particle-ambient-glow {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 166, 255, 0.22) 0%, rgba(27, 11, 158, 0.18) 45%, rgba(255, 215, 0, 0.08) 70%, transparent 85%);
  filter: blur(40px);
  pointer-events: none;
  animation: particleGlowPulse 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes particleGlowPulse {
  0% { transform: scale(0.94); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

#hero-particle-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

/* SVG Grid Overlay */
.hex-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  animation: hexRotateSlow 35s linear infinite;
}

/* Outer Hex Ring */
.hex-ring-1 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 166, 255, 0.45);
  box-shadow: 0 0 25px rgba(0, 166, 255, 0.2);
  animation: hexRotateCW 24s linear infinite;
  z-index: 2;
}

/* Vertex dots around outer ring */
.hex-vertex {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}
.hex-vertex.v1 { top: 0%; left: 50%; transform: translate(-50%, -50%); background: #38BDF8; color: #38BDF8; }
.hex-vertex.v2 { top: 25%; right: 0%; transform: translate(50%, -50%); background: #1B0B9E; color: #2563EB; }
.hex-vertex.v3 { bottom: 25%; right: 0%; transform: translate(50%, 50%); background: #FFD700; color: #FFD700; }
.hex-vertex.v4 { bottom: 0%; left: 50%; transform: translate(-50%, 50%); background: #F43F5E; color: #F43F5E; }
.hex-vertex.v5 { bottom: 25%; left: 0%; transform: translate(-50%, 50%); background: #A855F7; color: #A855F7; }
.hex-vertex.v6 { top: 25%; left: 0%; transform: translate(-50%, -50%); background: #00A6FF; color: #00A6FF; }

/* Middle Hex Ring (Hexagon Shape) */
.hex-ring-2 {
  position: absolute;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, rgba(27, 11, 158, 0.85), rgba(0, 166, 255, 0.6), rgba(255, 215, 0, 0.8));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 3px;
  animation: hexRotateCCW 18s linear infinite;
  z-index: 3;
  filter: drop-shadow(0 0 15px rgba(0, 166, 255, 0.5));
}

.hex-ring-2::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-primary, #090d16);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Orbiting energy pulses on middle ring */
.hex-energy-pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 15px #FFD700, 0 0 30px #FFD700;
  z-index: 4;
}
.hex-energy-pulse.p1 { top: 0%; left: 50%; transform: translate(-50%, -50%); }
.hex-energy-pulse.p2 { bottom: 25%; right: 0%; transform: translate(50%, 50%); background: #00A6FF; box-shadow: 0 0 15px #00A6FF; }
.hex-energy-pulse.p3 { bottom: 25%; left: 0%; transform: translate(-50%, 50%); background: #38BDF8; box-shadow: 0 0 15px #38BDF8; }

/* Inner Hex Ring */
.hex-ring-3 {
  position: absolute;
  width: 160px;
  height: 160px;
  background: linear-gradient(45deg, #1B0B9E, #00A6FF, #FFD700);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 2.5px;
  animation: hexRotateCW 12s linear infinite;
  z-index: 4;
  filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.6));
}
.hex-ring-3::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated, #131b2e);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Central Glowing Hexagon Core */
.hex-core {
  position: absolute;
  width: 95px;
  height: 95px;
  background: linear-gradient(135deg, #FFD700 0%, #00A6FF 50%, #1B0B9E 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 4px;
  z-index: 5;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
  animation: hexCorePulse 3s ease-in-out infinite alternate;
}

.hex-core-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0B133A 0%, #040614 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-core-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #FFD700, #00A6FF, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hexIconGlow 2s ease-in-out infinite alternate;
}

/* Keyframes */
@keyframes hexRotateCW {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hexRotateCCW {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes hexRotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hexCorePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7)); }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)) drop-shadow(0 0 60px rgba(0, 166, 255, 0.8)); }
}

@keyframes hexIconGlow {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* === Hero Visual Orbital System (Rotating Tech Nodes) === */
:root {
  --orbit-r: 236px;
  --orbit-speed: 52s;
  --orbit-total: 11;
}

.hero-orbit-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-r) * 2);
  height: calc(var(--orbit-r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 166, 255, 0.28);
  box-shadow: 0 0 25px rgba(0, 166, 255, 0.08), inset 0 0 25px rgba(0, 166, 255, 0.04);
  pointer-events: none;
  z-index: 3;
}

.hero-float-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  background: var(--card-bg, rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-color, rgba(168, 85, 247, 0.28));
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: var(--fw-semibold, 600);
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  animation: heroOrbitNode var(--orbit-speed) linear infinite;
  animation-delay: calc(var(--orbit-speed) * (var(--orbit-index, 0) / var(--orbit-total, 11)) * -1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-orbit-container:hover .hero-float-card {
  animation-play-state: paused;
}

.hero-float-card:hover {
  z-index: 25;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 166, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-float-card:hover .hex-icon-box {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 166, 255, 0.8);
}

.hex-icon-box {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1B0B9E, #00A6FF);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(0, 166, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes heroOrbitNode {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateY(calc(-1 * var(--orbit-r))) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateY(calc(-1 * var(--orbit-r))) rotate(-360deg);
  }
}

@media (max-width: 1200px) {
  :root {
    --orbit-r: 215px;
  }
  .hero-float-card {
    font-size: 0.72rem;
    padding: 4px 10px 4px 5px;
  }
}
@media (max-width: 1024px) {
  :root {
    --orbit-r: 195px;
  }
  .hero-float-card {
    font-size: 0.7rem;
  }
}
@media (max-width: 600px) {
  :root {
    --orbit-r: 155px;
  }
  .hero-float-card {
    padding: 4px 8px 4px 5px;
    font-size: 0.65rem;
    gap: 5px;
  }
  .hex-icon-box {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }
}
@media (max-width: 400px) {
  :root {
    --orbit-r: 130px;
  }
}

/* Responsive: scale hero visual gracefully */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 400px;
    margin-top: var(--space-xl);
  }
  .particle-logo-container {
    width: 380px;
    height: 380px;
  }
}
@media (max-width: 480px) {
  .hero-visual {
    height: 330px;
  }
  .particle-logo-container {
    width: 310px;
    height: 310px;
  }
}
/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--nav-height);
}

/* Mesh gradient overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: 1;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(0, 166, 255, 0.08);
  border: 1px solid rgba(0, 166, 255, 0.25);
  border-radius: 6px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--primary-200);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}

.hero-badge i {
  font-size: 6px;
  color: #FFD700;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.hero-description {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* Typing cursor on gradient text */
.hero-title .gradient-text {
  position: relative;
}

.hero-title .gradient-text::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s var(--ease-out) 1s both;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-1 {
  background: #1B0B9E;
  top: -250px;
  right: -150px;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
  background: #00A6FF;
  bottom: -250px;
  left: -150px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* === Overview === */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.overview-text h2 { margin-bottom: var(--space-lg); }

.overview-text p {
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

.overview-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.overview-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  padding: 6px 0;
}

.overview-feature i {
  color: #FFD700;
  font-size: 0.75rem;
}

.overview-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.overview-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Gradient top accent */
.overview-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

/* Floating shimmer */
.overview-stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 166, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}

.overview-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover), 0 0 25px rgba(0, 166, 255, 0.15);
  border-color: var(--card-hover-border);
}

.overview-stat-card:hover::before { opacity: 1; }
.overview-stat-card:hover::after { opacity: 1; }

.overview-stat-card:nth-child(2) { margin-top: var(--space-xl); }
.overview-stat-card:nth-child(3) { margin-top: var(--space-sm); }

.overview-stat-card i {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overview-stat-card h4 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.overview-stat-card p {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}

/* === Why Choose Us === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* === Tech Stack === */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* === Industries === */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.industry-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-card-hover);
}

.industry-card i {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.industry-card:hover i {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.industry-card h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

/* === Portfolio Grid === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* === Achievements === */
.achievements {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.achievements::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.achievement-item {
  padding: var(--space-xl);
}

.achievement-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.achievement-label {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

/* === Testimonials === */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 var(--space-3xl);
}

.testimonials-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
}

.testimonials-track .testimonial-card {
  min-width: 100%;
  padding: var(--space-2xl) var(--space-xl);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: 0.85rem;
}

.testimonial-btn:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  box-shadow: var(--shadow-glow-primary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--duration-fast);
  border: none;
}

.testimonial-dot.active {
  background: var(--primary-500);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 166, 255, 0.4);
}

/* === Process Timeline === */
.process-section .timeline {
  max-width: 900px;
  margin: 0 auto;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.pricing-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.pricing-desc {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 0;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

.pricing-features li i {
  color: var(--success);
  font-size: 0.75rem;
}

/* === Careers === */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.culture-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.culture-card:hover {
  border-color: var(--card-hover-border);
  transform: translateX(4px);
  box-shadow: var(--shadow-card-hover);
}

.culture-card i {
  font-size: 1.35rem;
  color: var(--primary-300);
  margin-top: 2px;
  flex-shrink: 0;
}

/* === Blog Grid === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--card-hover-border);
}

.blog-img {
  width: 100%;
  height: 180px;
  background: var(--gradient-card-hover);
  overflow: hidden;
  position: relative;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.blog-card:hover .blog-img img {
  transform: scale(1.08);
}

.blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(3, 0, 20, 0.4));
  pointer-events: none;
}

.blog-content {
  padding: var(--space-lg);
}

.blog-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-tiny);
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.blog-meta i {
  margin-right: 4px;
}

.blog-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
}

.blog-excerpt {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* === Partners Logo === */
.partners-track {
  display: flex;
  gap: var(--space-3xl);
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}

.partner-logo {
  font-size: 1.75rem;
  color: var(--text-tertiary);
  opacity: 0.4;
  transition: all var(--duration-normal);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.partner-logo:hover {
  opacity: 1;
  color: var(--primary-300);
}

/* === Section Dividers === */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), rgba(99, 102, 241, 0.2), transparent);
}

.section-divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00A6FF, #FFD700);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5), 0 0 24px rgba(168, 85, 247, 0.2);
  animation: dividerDotPulse 3s ease-in-out infinite alternate;
  flex-shrink: 0;
}

@keyframes dividerDotPulse {
  0% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.4), 0 0 16px rgba(168, 85, 247, 0.15); transform: scale(1); }
  100% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.7), 0 0 30px rgba(168, 85, 247, 0.3); transform: scale(1.3); }
}

/* === CTA Banner V2 — Redesigned === */
.cta-banner-v2 {
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0;
}

.cta-v2-wrapper {
  position: relative;
  background: linear-gradient(145deg, #0c0520 0%, #150E42 30%, #0a0628 60%, #1A0B4B 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 80px 40px;
  overflow: hidden;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 25px 80px -20px rgba(7, 4, 32, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Animated border glow */
.cta-v2-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(168, 85, 247, 0.5) 60deg,
    transparent 120deg,
    rgba(99, 102, 241, 0.4) 200deg,
    transparent 260deg,
    rgba(255, 215, 0, 0.35) 320deg,
    transparent 360deg
  );
  animation: ctaV2BorderRotate 8s linear infinite;
  z-index: -1;
  filter: blur(1px);
}

.cta-v2-wrapper::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(145deg, #0c0520 0%, #150E42 30%, #0a0628 60%, #1A0B4B 100%);
  border-radius: 23px;
  z-index: 0;
}

@keyframes ctaV2BorderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Background layer */
.cta-v2-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cta-v2-hex-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-hex-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
  animation: ctaV2SvgFloat 25s ease-in-out infinite alternate;
}

@keyframes ctaV2SvgFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 5px) scale(1.02); }
  100% { transform: translate(5px, -8px) scale(0.98); }
}

/* Orbs */
.cta-v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-v2-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00A6FF 0%, transparent 70%);
  top: -100px; left: -60px;
  opacity: 0.4;
  animation: ctaV2OrbA 7s ease-in-out infinite alternate;
}

.cta-v2-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #1B0B9E 0%, transparent 70%);
  bottom: -80px; right: -40px;
  opacity: 0.35;
  animation: ctaV2OrbB 9s ease-in-out infinite alternate;
}

.cta-v2-orb-3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, #FFD700 0%, transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.2;
  animation: ctaV2OrbC 5s ease-in-out infinite alternate;
}

@keyframes ctaV2OrbA { 0% { transform: translate(0,0); } 100% { transform: translate(40px, 30px); } }
@keyframes ctaV2OrbB { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-30px, -20px) scale(1.2); } }
@keyframes ctaV2OrbC { 0% { transform: scale(0.8); opacity: 0.15; } 100% { transform: scale(1.5); opacity: 0.35; } }

/* Sparkle particles */
.cta-v2-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 12px rgba(168, 85, 247, 0.5);
  animation: ctaV2Twinkle 3s ease-in-out infinite;
}

.cta-v2-sparkle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.cta-v2-sparkle-2 { top: 25%; right: 15%; animation-delay: 0.6s; }
.cta-v2-sparkle-3 { bottom: 20%; left: 20%; animation-delay: 1.2s; }
.cta-v2-sparkle-4 { bottom: 30%; right: 25%; animation-delay: 1.8s; }
.cta-v2-sparkle-5 { top: 60%; left: 45%; animation-delay: 2.4s; }

@keyframes ctaV2Twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Content */
.cta-v2-content {
  position: relative;
  z-index: 2;
}

/* Animated icon ring */
.cta-v2-icon-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  position: relative;
}

.cta-v2-icon-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cta-v2-icon-inner i {
  font-size: 2rem;
  background: linear-gradient(135deg, #FFD700, #00A6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ctaV2IconFloat 3s ease-in-out infinite alternate;
}

@keyframes ctaV2IconFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.1); }
}

.cta-v2-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Title & description */
.cta-v2-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #FFFFFF;
  line-height: 1.2;
}

.cta-v2-desc {
  font-size: 1.1rem;
  color: rgba(209, 213, 219, 0.9);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Actions */
.cta-v2-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-v2-btn-primary {
  box-shadow: 0 4px 20px rgba(0, 166, 255, 0.45), 0 0 40px rgba(27, 11, 158, 0.25);
}

.cta-v2-btn-primary:hover {
  box-shadow: 0 8px 35px rgba(0, 166, 255, 0.55), 0 0 60px rgba(27, 11, 158, 0.35);
}

/* Force light colors and frosted dark background on secondary button inside dark CTA */
.cta-v2-actions .btn-secondary,
[data-theme="light"] .cta-v2-actions .btn-secondary {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-v2-actions .btn-secondary:hover,
[data-theme="light"] .cta-v2-actions .btn-secondary:hover {
  color: #FFFFFF !important;
  border-color: var(--accent-gold, #FFD700) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25) !important;
  transform: translateY(-2px);
}

/* Trust strip */
.cta-v2-trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-v2-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(209, 213, 219, 0.6);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cta-v2-trust-strip span i {
  font-size: 0.75rem;
  color: rgba(168, 85, 247, 0.7);
}

/* Responsive CTA v2 */
@media (max-width: 768px) {
  .cta-v2-wrapper { padding: 50px 24px; }
  .cta-v2-trust-strip { gap: 20px; }
  .cta-v2-trust-strip span { font-size: 0.75rem; }
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info-item .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-300);
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.contact-info-item:hover .icon-wrap {
  background: var(--gradient-primary-subtle);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow-primary);
}

.contact-info-item h4 {
  font-size: var(--fs-body);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}

.contact-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--duration-fast);
}

.social-link:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-primary);
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: all var(--duration-fast);
}

.form-input:hover,
.form-textarea:hover {
  background: var(--input-hover-bg);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--input-focus);
  background: var(--input-hover-bg);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* === Map === */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-2xl);
  border: 1px solid var(--card-border);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.1) brightness(0.9);
}

[data-theme="light"] .map-container iframe {
  filter: grayscale(0.3) contrast(1.05);
}

/* === Footer === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-brand p {
  margin: var(--space-md) 0;
  font-size: var(--fs-body-sm);
  max-width: 300px;
  line-height: var(--lh-relaxed);
}

.footer-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  transition: all var(--duration-fast);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-300);
  transform: translateX(3px);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem var(--space-md);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
  transition: all var(--duration-fast);
}

.newsletter-form input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.newsletter-form button {
  padding: 0.75rem var(--space-lg);
  background: var(--gradient-primary-subtle);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: var(--fs-body-sm);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: var(--text-tertiary);
  font-size: var(--fs-body-sm);
  transition: color var(--duration-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary-300);
}

/* === Certifications === */
.certs-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cert-item:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-card-hover);
}

.cert-item i {
  font-size: 1.75rem;
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cert-item span {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

/* === Portfolio Placeholders === */
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portfolio-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.portfolio-placeholder-1 {
  background: linear-gradient(135deg, #1B0B9E, #00A6FF);
}

.portfolio-placeholder-2 {
  background: linear-gradient(135deg, #00A6FF, #2563EB);
}

.portfolio-placeholder-3 {
  background: linear-gradient(135deg, #00A6FF, #FFD700);
}

.portfolio-placeholder-icon {
  font-size: 3rem;
  color: white;
  opacity: 0.35;
  z-index: 1;
}

/* === Careers Helpers === */
.careers-subtitle {
  margin-bottom: var(--space-lg);
}

.careers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* === CTA V2 Helpers (legacy compat) === */

/* === Partners Wrapper === */
.partners-wrapper {
  overflow: hidden;
  padding: var(--space-lg) 0;
}

/* === Card Feature Lists (Service Pillars) === */
.card-features {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-features li i {
  color: var(--accent-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* === 4-Step Engagement Process === */
.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.35;
}

.process-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.25rem;
  color: var(--accent-gold);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: background 0.3s, transform 0.3s;
}

.process-step:hover .process-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(234, 179, 8, 0.15));
  transform: scale(1.08);
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.process-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
  color: var(--accent-gold);
  font-size: 1.25rem;
  opacity: 0.5;
  margin-top: 80px;
}

/* === Updated Industry Cards with Descriptions === */
.industry-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

/* === Services Grid — Adjusted for 5 Cards === */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-connector {
    display: none;
  }
  .process-grid {
    gap: var(--space-lg);
    justify-content: center;
  }
  .process-step {
    max-width: 100%;
    flex-basis: 45%;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    flex-basis: 100%;
  }
}

/* ============================================
   "GET IN TOUCH" CONTACT MODAL
   ============================================ */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal, 2000);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
}

.cm-overlay {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay, rgba(5, 5, 20, 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cm-dialog {
  position: relative;
  width: 94%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--modal-bg, linear-gradient(145deg, rgba(20, 22, 45, 0.96), rgba(12, 14, 30, 0.98)));
  border: 1px solid var(--modal-border, rgba(168, 85, 247, 0.25));
  border-radius: var(--radius-2xl, 18px);
  box-shadow: var(--modal-shadow, 0 25px 50px -12px rgba(0, 0, 0, 0.85));
  padding: 2.5rem 2rem 2rem;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  z-index: 2;
}

.contact-modal.open .cm-dialog {
  transform: translateY(0) scale(1);
}

/* Scrollbar styling for the dialog */
.cm-dialog::-webkit-scrollbar { width: 4px; }
.cm-dialog::-webkit-scrollbar-track { background: transparent; }
.cm-dialog::-webkit-scrollbar-thumb { background: var(--primary-600, #1D4ED8); border-radius: 4px; }

.cm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary, #7E7A9A);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.cm-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Header */
.cm-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.cm-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(27, 11, 158, 0.25), rgba(255, 215, 0, 0.25));
  border: 2px solid rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FFD700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.15);
}

.cm-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cm-subtitle {
  font-size: 0.9rem;
  color: var(--text-tertiary, #7E7A9A);
  line-height: 1.5;
}

/* Form Grid */
.cm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cm-field {
  margin-bottom: 1.15rem;
}

.cm-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #B8B5D0);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.cm-required {
  color: #FF4D6D;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  margin-left: 3px;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-1px);
}

.cm-optional {
  color: var(--text-muted, #5A567A);
  font-weight: 400;
  font-size: 0.78rem;
}

.cm-input,
.cm-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--modal-input-bg, rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--modal-input-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 8px);
  color: var(--modal-input-color, #ffffff);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cm-input::placeholder,
.cm-textarea::placeholder {
  color: var(--text-muted, #5A567A);
}

.cm-input:focus,
.cm-textarea:focus {
  border-color: var(--primary-500, #2563EB);
  box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.cm-input.cm-input-error,
.cm-textarea.cm-input-error {
  border-color: var(--error, #EF4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.cm-textarea {
  resize: vertical;
  min-height: 100px;
}

.cm-error {
  display: block;
  font-size: 0.75rem;
  color: var(--error, #EF4444);
  margin-top: 4px;
  min-height: 1em;
}

/* Phone row */
.cm-phone-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.cm-phone-prefix {
  padding: 11px 12px;
  background: var(--modal-input-bg, rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--modal-input-border, rgba(255, 255, 255, 0.12));
  border-right: none;
  border-radius: var(--radius-md, 8px) 0 0 var(--radius-md, 8px);
  color: var(--text-tertiary, #7E7A9A);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.cm-phone-input {
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0 !important;
}

/* Service chips */
.cm-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--modal-card-bg, rgba(255, 255, 255, 0.03));
  border: 1.5px solid var(--modal-card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-full, 9999px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary, #B8B5D0);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cm-service-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cm-service-chip i {
  font-size: 0.8rem;
  color: var(--primary-300, #60A5FA);
  transition: color 0.2s ease;
}

.cm-service-chip:hover {
  border-color: var(--primary-400, #3B82F6);
  background: var(--modal-card-hover, rgba(99, 102, 241, 0.1));
}

.cm-service-chip.selected {
  background: rgba(0, 166, 255, 0.15);
  border-color: var(--primary-500, #2563EB);
  color: var(--primary-200, #B5AAFF);
  box-shadow: 0 0 10px rgba(0, 166, 255, 0.25);
}

.cm-service-chip.selected i {
  color: #FFD700;
}

/* Submit button */
.cm-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 13px;
  font-size: 0.95rem;
}

/* Success state */
.cm-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: cmFadeIn 0.5s var(--ease-out);
}

.cm-success-icon {
  font-size: 3.5rem;
  color: var(--success, #34D399);
  margin-bottom: 1rem;
  animation: cmPulse 0.6s ease;
}

.cm-success h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cm-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.cm-done-btn {
  padding: 10px 32px;
}

@keyframes cmFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cmPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
  .cm-dialog {
    padding: 2rem 1.25rem 1.5rem;
    max-height: 95vh;
    border-radius: var(--radius-xl, 14px);
  }
  .cm-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cm-services-grid {
    gap: 6px;
  }
  .cm-service-chip {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}

/* ============================================
   CONTACT MODAL — Light Theme Overrides
   ============================================ */
[data-theme="light"] .cm-dialog {
  background: #FFFFFF;
  border-color: rgba(0, 166, 255, 0.2);
  box-shadow: 0 25px 60px -12px rgba(27, 11, 158, 0.22), 0 0 25px rgba(0, 166, 255, 0.1);
}

[data-theme="light"] .cm-header h2 {
  color: #1A1540;
}

[data-theme="light"] .cm-subtitle {
  color: #4A4570;
}

[data-theme="light"] .cm-close {
  background: rgba(0, 166, 255, 0.06);
  border-color: rgba(0, 166, 255, 0.16);
  color: #4A4570;
}

[data-theme="light"] .cm-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

[data-theme="light"] .cm-icon-wrap {
  background: linear-gradient(135deg, rgba(27, 11, 158, 0.18), rgba(255, 215, 0, 0.25));
  border-color: rgba(179, 134, 0, 0.35);
  color: #B38600;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.18);
}

[data-theme="light"] .cm-label {
  color: #4A4570;
}

[data-theme="light"] .cm-input,
[data-theme="light"] .cm-textarea {
  background: #FAFAFE;
  border-color: rgba(0, 166, 255, 0.2);
  color: #1A1540;
}

[data-theme="light"] .cm-input::placeholder,
[data-theme="light"] .cm-textarea::placeholder {
  color: #9A96B8;
}

[data-theme="light"] .cm-input:focus,
[data-theme="light"] .cm-textarea:focus {
  border-color: #00A6FF;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
  background: #FFFFFF;
}

[data-theme="light"] .cm-phone-prefix {
  background: #F0EFF8;
  border-color: rgba(0, 166, 255, 0.2);
  color: #4A4570;
}

[data-theme="light"] .cm-service-chip {
  background: #FAFAFE;
  border-color: rgba(0, 166, 255, 0.14);
  color: #4A4570;
}

[data-theme="light"] .cm-service-chip:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .cm-service-chip.selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: #00A6FF;
  color: #1B0B9E;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .cm-service-chip.selected i {
  color: #B38600;
}

[data-theme="light"] .cm-service-chip i {
  color: #00A6FF;
}
