/* =========================================
   VARIABLES & THEME SETUP
   ========================================= */
:root {
  /* Color Palette - Deep tech / B2B integration brand */
  --primary-bg: #020617; /* Slate 950 */
  --secondary-bg: #0f172a; /* Slate 900 */
  --tertiary-bg: #1e293b; /* Slate 800 */

  --accent-blue: #3b82f6; /* Blue 500 */
  --accent-cyan: #06b6d4; /* Cyan 500 */
  --accent-glow: rgba(6, 182, 212, 0.4);

  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-dark: #0f172a;

  --success: #10b981;
  --danger: #ef4444;

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Layout */
  --container-width: 1280px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--tertiary-bg);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-padding {
  padding: 100px 0;
}

.dark-bg {
  background-color: var(--secondary-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--accent-cyan);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.loader-core {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}
.loader-logo-img {
  width: 60px;
  height: auto;
  animation: pulse 2s infinite;
}
.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* =========================================
   BUTTONS & BADGES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
  z-index: 1;
}
.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  z-index: -1;
  transition: opacity 0.3s;
  opacity: 0;
}
.btn-primary-glow:hover::before {
  opacity: 1;
}
.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline-glow {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
}
.btn-outline-glow:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-text {
  background: transparent;
  color: var(--text-main);
  padding: 0;
}
.btn-text:hover {
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
}

.badge-glow {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* =========================================
   STRICT HEADER (Matches all pages)
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: transparent;
}
.header.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 60px;
  width: auto;
  filter:invert(1);
}
.navbar {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-smooth);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}
.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* =========================================
   SECTION 1: HERO & 3D ANIMATION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(15, 23, 42, 1) 0%,
    rgba(2, 6, 23, 1) 100%
  );
}
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(59, 130, 246, 0.15),
      transparent 25%
    ),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
}
.hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}
.hero-btn-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Pure CSS 3D Element */
.hero-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}
.scene-3d {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3d 20s infinite linear;
}
.cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}
.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--accent-cyan);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: var(--accent-cyan);
  backdrop-filter: blur(5px);
}
.cube-front {
  transform: rotateY(0deg) translateZ(100px);
}
.cube-back {
  transform: rotateY(180deg) translateZ(100px);
}
.cube-right {
  transform: rotateY(90deg) translateZ(100px);
}
.cube-left {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube-top {
  transform: rotateX(90deg) translateZ(100px);
}
.cube-bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.floating-element {
  position: absolute;
  font-size: 2.5rem;
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.el-1 {
  top: -50px;
  left: -50px;
  animation: float 6s ease-in-out infinite;
}
.el-2 {
  bottom: -20px;
  right: -50px;
  animation: float 5s ease-in-out infinite reverse;
  color: var(--accent-cyan);
}
.el-3 {
  top: 50%;
  right: -100px;
  animation: float 7s ease-in-out infinite 1s;
  color: var(--success);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}
.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-main);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 15px;
    opacity: 0;
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* =========================================
   SECTION 2: METRICS / ABOUT
   ========================================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.metric-card {
  background: var(--tertiary-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}
.metric-card:hover::before {
  transform: scaleX(1);
}
.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.metric-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.metric-card h3 {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 0;
}
.metric-card span {
  font-size: 2rem;
  color: var(--accent-blue);
  font-weight: 700;
}
.metric-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* =========================================
   SECTION 3: SERVICES
   ========================================= */
.section-header {
  margin-bottom: 4rem;
  max-width: 800px;
  margin-inline: auto;
}
.subtitle {
  display: block;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--secondary-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
  z-index: 1;
}
.card-bg-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.1) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
  pointer-events: none;
}
.service-card:hover .card-bg-effect {
  opacity: 1;
  transform: scale(1.2);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  transition: var(--transition-bounce);
}
.service-card:hover .service-icon {
  background: var(--accent-blue);
  color: #fff;
  transform: rotateY(360deg);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
}
.service-link i {
  transition: transform 0.3s;
}
.service-link:hover i {
  transform: translateX(5px);
}

/* =========================================
   SECTION 4: INTERACTIVE CALCULATOR
   ========================================= */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.check-list {
  margin-top: 2rem;
}
.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.check-list i {
  color: var(--success);
}

.glass-panel {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
.input-group span {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

/* Custom Range Slider */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--primary-bg);
  outline: none;
  padding: 0;
  margin: 0;
}
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: 0.2s;
}
.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}
.result-box {
  background: var(--primary-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}
.result-box h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.result-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* =========================================
   SECTION 5: SAMPLE REPORTS (DASHBOARD)
   ========================================= */
.dashboard-mockup {
  background: var(--secondary-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  margin: 0 auto;
}
.dash-header {
  background: var(--tertiary-bg);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-dots {
  display: flex;
  gap: 6px;
  margin-right: 20px;
}
.dash-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
}
.dash-dots span:nth-child(1) {
  background: #ef4444;
}
.dash-dots span:nth-child(2) {
  background: #eab308;
}
.dash-dots span:nth-child(3) {
  background: #10b981;
}
.dash-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dash-body {
  display: flex;
  min-height: 400px;
}
.dash-sidebar {
  width: 200px;
  background: rgba(30, 41, 59, 0.3);
  padding: 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-nav {
  padding: 12px 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}
.dash-nav:hover,
.dash-nav.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-cyan);
  border-right: 3px solid var(--accent-cyan);
}
.dash-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CSS Bar Chart */
.chart-container {
  background: var(--primary-bg);
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chart-title {
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.bar-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  flex: 1;
  height: 200px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 40px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--accent-blue), var(--accent-cyan));
  border-radius: 4px 4px 0 0;
  height: 0; /* Animated via JS/Scroll */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-stats {
  display: flex;
  gap: 15px;
}
.stat-pill {
  background: var(--primary-bg);
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   SECTION 6: INDUSTRIES
   ========================================= */
.industry-carousel-container {
  overflow: hidden;
  padding: 20px 0;
}
.industry-track {
  display: flex;
  gap: 2rem;
  /* Optional: CSS infinite scroll animation could go here, keeping static for simple flex layout for now */
  flex-wrap: wrap;
  justify-content: center;
}
.ind-card {
  background: var(--tertiary-bg);
  width: 250px;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}
.ind-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-10px);
  background: var(--primary-bg);
}
.ind-icon {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}
.ind-card h3 {
  font-size: 1.2rem;
}
.ind-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   SECTION 7: PROCESS TIMELINE
   ========================================= */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline-container::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  right: -20px;
  background: var(--secondary-bg);
  border: 2px solid var(--accent-cyan);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--accent-cyan);
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -20px;
}
.timeline-content {
  padding: 20px 30px;
  background: var(--tertiary-bg);
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--accent-blue);
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================
   SECTION 8: TESTIMONIALS
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--primary-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.03);
}
.testi-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}
.author-avatar {
  font-size: 2.5rem;
  color: var(--text-muted);
}
.author-info h4 {
  margin-bottom: 0;
  font-size: 1rem;
}
.author-info span {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

/* =========================================
   SECTION 9: CTA
   ========================================= */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-bg));
  overflow: hidden;
  padding: 120px 0;
}
.cta-heading {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.cta-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: radial-gradient(
    circle at 80% 20%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 40%
  );
}

/* =========================================
   STRICT FOOTER (Matches all pages)
   ========================================= */
.footer {
  background: var(--primary-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-blue),
    var(--accent-cyan),
    transparent
  );
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 60px;
}
.footer-logo-img {
  height: 60px;
  margin-bottom: 1.5rem;
  filter:invert(1);
}
.footer-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tertiary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-icon:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-3px);
}
.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}
.footer-list li {
  margin-bottom: 12px;
}
.footer-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-list a::before {
  content: ">";
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  opacity: 0;
  transition: 0.2s;
  transform: translateX(-10px);
}
.footer-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.footer-list a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}
.footer-contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
  align-items: flex-start;
}
.footer-contact-list i {
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-top: 3px;
}
.footer-contact-list a {
  color: var(--text-muted);
}
.footer-contact-list a:hover {
  color: var(--text-main);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.legal-links {
  display: flex;
  gap: 15px;
  align-items: center;
}
.legal-links a:hover {
  color: var(--accent-cyan);
}
.divider {
  opacity: 0.3;
}

/* =========================================
   LIVE CHAT WIDGET
   ========================================= */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: var(--font-body);
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-bounce);
  outline: none;
}
.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--secondary-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transform-origin: bottom right;
}
.chat-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.chat-header {
  background: var(--tertiary-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-agent img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.chat-agent h5 {
  margin: 0;
  font-size: 1rem;
}
.chat-agent span {
  font-size: 0.75rem;
  color: var(--success);
}
.close-chat {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.2s;
}
.close-chat:hover {
  color: #fff;
}
.chat-body {
  padding: 20px;
  height: 250px;
  overflow-y: auto;
  background: var(--primary-bg);
}
.chat-msg {
  background: var(--tertiary-bg);
  padding: 12px 15px;
  border-radius: 12px 12px 12px 0;
  font-size: 0.9rem;
  max-width: 80%;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.chat-footer {
  padding: 15px;
  background: var(--tertiary-bg);
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-footer input {
  flex: 1;
  background: var(--primary-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  outline: none;
}
.chat-footer button {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.chat-footer button:hover {
  background: var(--accent-cyan);
}

/* =========================================
   LEGAL / CONTACT PAGES SPECIFIC
   ========================================= */
.page-body {
  background: var(--primary-bg);
}
.page-header {
  padding: 180px 0 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  z-index: 0;
  opacity: 0.5;
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: 3.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Content Layout */
.legal-container {
  max-width: 900px;
  padding: 3rem;
  border-radius: 16px;
}
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
}
.legal-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--text-muted);
}
.legal-content li {
  margin-bottom: 0.5rem;
}
.legal-content strong {
  color: var(--text-main);
}

/* Contact Form Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}
.contact-info-panel {
  padding: 3rem;
}
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}
.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--accent-blue);
}
.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.info-content p,
.info-content a {
  color: var(--text-muted);
}
.info-content a:hover {
  color: var(--accent-cyan);
}

.contact-form-panel {
  background: var(--secondary-bg);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.modern-form h3 {
  margin-bottom: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.input-wrap {
  position: relative;
}
.full-width {
  grid-column: span 2;
}
.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  width: 100%;
  background: var(--primary-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.input-wrap select {
  appearance: none;
  cursor: pointer;
}
.input-wrap label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: var(--text-muted);
  transition: 0.3s;
  pointer-events: none;
  background: var(--primary-bg);
  padding: 0 5px;
}
.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}
.input-wrap input:focus ~ label,
.input-wrap input:not(:placeholder-shown) ~ label,
.input-wrap textarea:focus ~ label,
.input-wrap textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 15px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup-box {
  background: var(--tertiary-bg);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  transform: translateY(50px);
  transition: 0.4s;
  border: 1px solid var(--accent-cyan);
}
.popup-overlay.active .popup-box {
  transform: translateY(0);
}
.popup-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}
.popup-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    display: none; /* Hide 3D on smaller tablet for simplicity */
  }
  .hero-btn-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-list {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(2, 6, 23, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    gap: 2rem;
    backdrop-filter: blur(10px);
  }
  .nav-list.active {
    left: 0;
  }
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .timeline-container::after {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-dot {
    left: 10px !important;
  }

  .calc-results {
    grid-template-columns: 1fr;
  }
  .dash-body {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    display: flex;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
  }
  .dash-nav {
    flex: 1;
    justify-content: center;
    border-right: none !important;
    border-bottom: 3px solid transparent;
  }
  .dash-nav.active {
    border-bottom-color: var(--accent-cyan);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-contact-list li {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* Animations for JS Intersection Observer */
[data-scroll] {
  opacity: 0;
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-scroll="fade-up"] {
  transform: translateY(50px);
}
[data-scroll="fade-left"] {
  transform: translateX(50px);
}
[data-scroll="fade-right"] {
  transform: translateX(-50px);
}
[data-scroll="zoom-in"] {
  transform: scale(0.8);
}
[data-scroll="scale-up"] {
  transform: scale(0.95);
}

.is-visible {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}
