/* ==========================================================================
   CSS Variables & Theme Definitions
   Theme: Electrical Resonation Corporate Site
   ========================================================================== */
:root {
  /* Core Colors */
  --bg-base: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;

  /* Typography Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  /* Brand Gradients */
  --grad-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --grad-primary-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --grad-cta: linear-gradient(135deg, #f59e0b 0%, #f472b6 100%);
  --grad-cta-hover: linear-gradient(135deg, #d97706 0%, #db2777 100%);
  --grad-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

  /* Solid Brand Colors */
  --color-primary: #3b82f6;
  --color-cta: #f472b6;
  --color-success: #10b981;
  --color-border: #e2e8f0;
  --color-border-dark: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Spacing & Layout */
  --max-width: 1400px;
  --header-height: 90px;
  --header-scrolled: 70px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
  --shadow-cta: 0 10px 20px rgba(244, 114, 182, 0.3);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cta {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn i {
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}
.btn:hover i {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary-hover);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(59, 130, 246, 0.5);
  color: #fff;
}

.btn-cta {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(244, 114, 182, 0.5);
  color: #fff;
}

/* ==========================================================================
   Header (Strict Consistency across all pages)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border-dark);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  height: var(--header-scrolled);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo:hover img {
  transform: scale(1.05);
}

.nav-menu ul {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.mobile-toggle {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   Hero Section (Index Page)
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  background:
    radial-gradient(
      circle at top right,
      rgba(96, 165, 250, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(244, 114, 182, 0.05),
      transparent 40%
    ),
    var(--bg-base);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* 3D Abstract Visuals */
.hero-visual {
  position: relative;
  height: 600px;
  perspective: 1000px;
}
.abstract-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatShape 10s infinite ease-in-out alternate;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--grad-primary);
  top: 10%;
  right: 0;
}
.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--grad-cta);
  bottom: 10%;
  left: 10%;
  animation-delay: -3s;
}

.data-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.card-roi {
  top: 20%;
  left: 0;
  animation: floatY 6s infinite ease-in-out;
}
.card-leads {
  bottom: 20%;
  right: 10%;
  animation: floatY 8s infinite ease-in-out reverse;
}

.data-card .metric {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}
.data-card .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  display: block;
}
.data-card .trend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-success);
  font-weight: 700;
  margin-top: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}
@keyframes floatY {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ==========================================================================
   Stats Bar Section
   ========================================================================== */
.stats-section {
  background: var(--bg-dark);
  padding: 5rem 0;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  position: relative;
}
.stat-item::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border-dark);
}
.stat-item:last-child::after {
  display: none;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  background: var(--bg-alt);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s ease;
  border: 1px solid var(--color-border);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
}
.service-card * {
  position: relative;
  z-index: 2;
  transition: color 0.5s ease;
}
.service-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  display: block;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover * {
  color: #fff !important;
}

/* ==========================================================================
   Interactive ROI Calculator Section
   ========================================================================== */
.roi-section {
  background: var(--bg-base);
  overflow: hidden;
}
.roi-container {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.roi-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(59, 130, 246, 0.2),
    transparent 30%
  );
  animation: rotateBg 15s linear infinite;
  pointer-events: none;
}
@keyframes rotateBg {
  100% {
    transform: rotate(360deg);
  }
}

.roi-content h2 {
  color: #fff;
}
.roi-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.calc-ui {
  background: var(--bg-base);
  padding: 3rem;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
}
.calc-group {
  margin-bottom: 2.5rem;
}
.calc-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.calc-val {
  color: var(--color-primary);
  font-size: 1.25rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: var(--shadow-glow);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--bg-alt);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.calc-result {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--color-border);
  text-align: center;
}
.calc-result span {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.result-value {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  background: var(--bg-alt);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: "\f30b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -1rem;
  top: 2.5rem;
  color: var(--color-border);
  font-size: 1.5rem;
}
.step-number {
  width: 80px;
  height: 80px;
  background: var(--grad-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}
.process-step h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Case Studies Section
   ========================================================================== */
.case-studies {
  background: var(--bg-base);
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.cs-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}
.cs-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.cs-image {
  height: 300px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.cs-card:hover .cs-image img {
  opacity: 0.7;
}
.cs-metrics {
  position: absolute;
  display: flex;
  gap: 2rem;
  z-index: 2;
}
.cs-metric-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.cs-metric-circle strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-cta);
}
.cs-metric-circle span {
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 1px;
  text-align: center;
}
.cs-content {
  padding: 2.5rem;
}
.cs-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cs-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  background: var(--bg-base);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-section {
  background: var(--bg-dark);
  color: white;
}
.industries-section .section-header h2,
.industries-section .section-header p {
  color: white;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.ind-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}
.ind-card i {
  font-size: 3rem;
  color: var(--color-cta);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.ind-card h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.ind-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.ind-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cta);
  transform: translateY(-10px);
}
.ind-card:hover i {
  transform: scale(1.2);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
  background: var(--bg-alt);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--bg-base);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.testi-stars {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.testi-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-family: var(--font-heading);
}
.client-details h4 {
  margin: 0;
  font-size: 1rem;
}
.client-details span {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: 8rem 0;
  background: var(--bg-base);
}
.cta-box {
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: 6rem 4rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="20" fill="none"/></svg>')
    repeat;
  opacity: 0.3;
  pointer-events: none;
}
.cta-box h2 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.cta-box p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Footer (Strict Consistency across all pages)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 6rem;
  border-top: 1px solid var(--color-border-dark);
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-about .logo img {
  max-height: 45px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}
.footer-about p {
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links ul li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  align-items: flex-start;
}
.footer-contact i {
  color: var(--color-primary);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* ==========================================================================
   Legal & Inner Pages
   ========================================================================== */
.page-header {
  padding: 12rem 0 6rem;
  background: var(--bg-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.page-header h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.breadcrumbs {
  font-size: 1rem;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}
.breadcrumbs a {
  color: var(--color-primary);
  font-weight: 700;
}
.breadcrumbs i {
  margin: 0 0.5rem;
  font-size: 0.75rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-base);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
  color: var(--text-main);
}
.legal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.legal-content strong {
  color: var(--text-main);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-panel {
  background: var(--bg-dark);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  color: white;
}
.contact-info-panel h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-info-panel p {
  color: #cbd5e1;
  margin-bottom: 3rem;
}
.contact-details-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.contact-details-list i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-details-list h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.contact-details-list span,
.contact-details-list a {
  color: #cbd5e1;
  font-size: 1rem;
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}
.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 5%;
  }
  .hero-grid,
  .roi-container {
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .services-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    height: 400px;
    margin-top: 3rem;
  }
  .data-card {
    transform: scale(0.8);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .nav-link {
    font-size: 1.5rem;
  }
  .mobile-toggle {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }

  .roi-container {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
  .process-grid,
  .cs-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }
  .legal-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .stats-grid,
  .services-grid,
  .industries-grid,
  .testi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cta-box {
    padding: 4rem 2rem;
  }
  .cta-box h2 {
    font-size: 2.5rem;
  }
  .cs-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  .cs-metric-circle {
    width: 90px;
    height: 90px;
  }
  .cs-metric-circle strong {
    font-size: 1.5rem;
  }
}
