/* ==========================================================================
   CSS Variables & Base Setup (Tech/Cyber Digital Agency Theme)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Core Colors */
  --bg-main: #060913;
  --bg-secondary: #0b1121;
  --bg-card: rgba(15, 23, 42, 0.6);

  /* Accents */
  --primary: #4f46e5; /* Indigo */
  --primary-glow: rgba(79, 70, 229, 0.4);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #f43f5e; /* Rose/Red for errors/alerts */
  --success: #10b981; /* Emerald */

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Fonts */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* UI Elements */
  --border-color: rgba(255, 255, 255, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
}

::selection {
  background-color: var(--secondary);
  color: #000;
}

/* Typography */
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(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--secondary);
  border: 1px solid var(--secondary-glow);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.05);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Layout & Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: 8rem 0;
}

.padding-top-heavy {
  padding-top: 12rem;
}

.dark-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.text-center {
  text-align: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.full-width {
  width: 100%;
}

/* ==========================================================================
      Custom Cursor & Background Particles
      ========================================================================== */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--secondary-glow);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}
body:hover .cursor-outline.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(6, 182, 212, 0.1);
  border-color: var(--secondary);
}

.particle-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Preloader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.loader-content {
  text-align: center;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
.loader-text {
  font-family: var(--font-heading);
  color: var(--secondary);
  letter-spacing: 2px;
  font-size: 0.9rem;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
      Buttons
      ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cyber-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.cyber-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-normal);
  z-index: -1;
}
.cyber-btn:hover::before {
  left: 100%;
}
.cyber-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(79, 70, 229, 0.6);
}

.cyber-btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.cyber-btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow) inset;
}

.large-btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}
.large-btn i {
  margin-left: 10px;
  transition: transform 0.2s;
}
.large-btn:hover i {
  transform: translateX(5px);
}

/* Glitch effect on hover for specific buttons */
.cyber-glitch-1,
.cyber-glitch-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  opacity: 0;
}
.cyber-btn:hover .cyber-glitch-1 {
  animation: btn-glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  transform: translate(-3px, 2px);
  background: var(--secondary);
  opacity: 0.5;
}
.cyber-btn:hover .cyber-glitch-2 {
  animation: btn-glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite
    reverse;
  transform: translate(3px, -2px);
  background: var(--accent);
  opacity: 0.5;
}
@keyframes btn-glitch {
  0% {
    clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
  }
  20% {
    clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
  }
  40% {
    clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
  }
  60% {
    clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
  }
  80% {
    clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%);
  }
  100% {
    clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  }
}

/* ==========================================================================
      HEADER (Strictly identical structure requirements applied)
      ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition:
    padding 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  z-index: 1001;
}
.logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
}
.nav-list {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  position: relative;
  display: flex;
  align-items: center;
}
.nav-indicator {
  color: var(--primary);
  margin-right: 5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-main);
}
.nav-link:hover .nav-indicator {
  opacity: 1;
  transform: translateX(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1001;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}
.mobile-menu-toggle .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}
.mobile-menu-toggle .bar:nth-child(1) {
  top: 0;
}
.mobile-menu-toggle .bar:nth-child(2) {
  top: 9px;
}
.mobile-menu-toggle .bar:nth-child(3) {
  top: 18px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ==========================================================================
      HERO SECTION
      ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset header */
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Hero 3D Cube Animation */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.cube-container {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
.cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}
.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: var(--secondary);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.2) inset;
}
.front {
  transform: rotateY(0deg) translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.floating-data {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: bold;
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite;
}
.floating-1 {
  top: 20%;
  right: 10%;
  color: var(--success);
}
.floating-2 {
  bottom: 20%;
  left: 10%;
  color: var(--secondary);
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ==========================================================================
      FEATURES / INTRO
      ========================================================================== */
.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: var(--transition-normal);
}
.feature-card:hover::before {
  transform: translateX(100%);
}
.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.feature-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--text-muted);
}

/* ==========================================================================
      SERVICES
      ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  z-index: 1;
  height: 100%;
}
.service-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}
.service-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 70px;
}
.service-list {
  margin-bottom: 2rem;
}
.service-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list i {
  color: var(--secondary);
  font-size: 0.8rem;
}
.service-link {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.service-link:hover {
  color: white;
  letter-spacing: 2px;
}

.service-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 100%,
    var(--primary-glow),
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
  border-radius: inherit;
}
.service-card:hover .service-bg-glow {
  opacity: 1;
}
.service-card:hover {
  border-color: rgba(79, 70, 229, 0.5);
}

/* ==========================================================================
      CALCULATOR SECTION
      ========================================================================== */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.calc-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}
.calc-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  font-size: 0.8rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

.calc-body {
  padding: 2rem;
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: bold;
}

/* Custom Slider Input */
.cyber-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}
.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--secondary-glow);
  transition: 0.2s;
}
.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-value {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
}
.total-rev {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}
.total-rev .huge {
  font-size: 2rem;
}

/* ==========================================================================
      DASHBOARD MOCKUP
      ========================================================================== */
.mock-container {
  max-width: 1000px;
  margin: 0 auto;
}
.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.dash-header {
  background: #1e293b;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}
.dash-dots {
  display: flex;
  gap: 8px;
  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: #22c55e;
}
.dash-title {
  font-family: monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dash-body {
  display: flex;
  height: 400px;
}
.dash-sidebar {
  width: 80px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  gap: 20px;
}
.dash-nav-item {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}
.dash-nav-item.active {
  background: var(--primary);
}

.dash-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dash-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.stat-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.stat-num {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: bold;
  margin: 5px 0;
}
.stat-trend.up {
  color: var(--success);
}
.stat-trend.down {
  color: var(--accent);
}

.dash-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  flex: 1;
}
.dash-chart-main,
.dash-chart-side {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.chart-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.chart-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bar-group {
  display: flex;
  gap: 5px;
  width: 15%;
  align-items: flex-end;
  height: 100%;
  justify-content: center;
}
.bar {
  width: 40%;
  border-radius: 2px 2px 0 0;
}
.bar-1 {
  background: var(--primary);
}
.bar-2 {
  background: var(--secondary);
}

.pie-chart-mock {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(
    var(--primary) 0% 45%,
    var(--secondary) 45% 80%,
    rgba(255, 255, 255, 0.1) 80% 100%
  );
  position: relative;
}
.pie-chart-mock::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: 50%;
}
.legend {
  margin-top: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.d1 {
  background: var(--primary);
}
.d2 {
  background: var(--secondary);
}
.d3 {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
      PROCESS TIMELINE
      ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-main);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--secondary);
  box-shadow: 0 0 15px var(--primary-glow);
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -20px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -20px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: transform 0.3s;
}
.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}
.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
      INDUSTRIES
      ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.industry-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 3rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.ind-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: 0.3s;
}
.industry-card h4 {
  font-size: 1.2rem;
  margin: 0;
  transition: 0.3s;
}

.ind-overlay {
  position: absolute;
  inset: 0;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  font-weight: bold;
  font-family: var(--font-heading);
  transform: translateY(100%);
  transition: var(--transition-normal);
}
.industry-card:hover .ind-overlay {
  transform: translateY(0);
}
.industry-card:hover .ind-icon,
.industry-card:hover h4 {
  opacity: 0;
}

/* ==========================================================================
      TESTIMONIALS
      ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}
.quote-icon {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-main);
  font-size: 1.2rem;
}
.testi-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}
.author-avatar {
  font-size: 2.5rem;
  color: var(--text-muted);
}
.author-info h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
      CTA BANNER
      ========================================================================== */
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1) 0%,
    rgba(6, 182, 212, 0.1) 100%
  );
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}
.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-glow);
  top: -100px;
  right: -100px;
}
.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-glow);
  bottom: -50px;
  left: 20%;
}

/* ==========================================================================
      FOOTER (Strictly identical requirements applied)
      ========================================================================== */
.site-footer {
  background: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  position: relative;
}
.footer-top {
  padding: 5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: block;
}
.footer-desc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}
.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.footer-list li {
  margin-bottom: 0.8rem;
}
.footer-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.footer-list i {
  font-size: 0.7rem;
  color: var(--secondary);
  transition: transform 0.2s;
}
.footer-list a:hover {
  color: var(--secondary);
}
.footer-list a:hover i {
  transform: translateX(5px);
}

.contact-info-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.contact-info-list i {
  color: var(--primary);
  margin-top: 5px;
}
.contact-info-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace;
  letter-spacing: 1px;
}
.ping-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
      LEGAL PAGES & CONTACT OVERRIDES
      ========================================================================== */
.page-header {
  padding: 4rem 0 2rem;
}
.legal-content-section {
  padding-top: 2rem;
}
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  border-radius: var(--radius-lg);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-main);
}
.prose h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 3rem 0 1.5rem;
}
.prose p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.prose strong {
  color: var(--secondary);
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.info-card {
  height: 100%;
  position: relative;
}
.info-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}
.info-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.method-item {
  display: flex;
  gap: 20px;
  margin-bottom: 2.5rem;
}
.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.3);
}
.method-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: white;
}
.method-text p,
.method-text a {
  color: var(--text-muted);
}
.method-text a:hover {
  color: var(--secondary);
}

/* 3D Contact Graphic */
.contact-3d-element {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.3;
  pointer-events: none;
}
.rotating-rings {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotateAll 20s linear infinite;
}
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--secondary);
  border-radius: 50%;
}
.ring-1 {
  width: 100px;
  height: 100px;
  animation: rotateX 5s linear infinite;
}
.ring-2 {
  width: 150px;
  height: 150px;
  border-color: var(--primary);
  animation: rotateY 7s linear infinite;
}
.ring-3 {
  width: 200px;
  height: 200px;
  border-style: dashed;
  animation: rotateZ 9s linear infinite;
}
@keyframes rotateAll {
  100% {
    transform: rotate3d(1, 1, 1, 360deg);
  }
}
@keyframes rotateX {
  100% {
    transform: translate(-50%, -50%) rotateX(360deg);
  }
}
@keyframes rotateY {
  100% {
    transform: translate(-50%, -50%) rotateY(360deg);
  }
}
@keyframes rotateZ {
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

/* Form */
.cyber-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cyber-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 1rem;
  color: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.cyber-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2) inset;
}
select.cyber-input {
  appearance: none;
  cursor: pointer;
}

/* Modal */
.modal-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: 10000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--bg-main);
  border: 1px solid var(--primary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 400px;
  transform: translateY(20px);
  transition: 0.3s;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}
.modal-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.modal-content h3 {
  margin-bottom: 1rem;
}
.modal-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Chat Widget Mockup */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
  transition: 0.3s;
}
.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.chat-widget.open .chat-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.chat-header {
  background: var(--primary);
  padding: 15px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
}
.chat-header button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.chat-body {
  height: 250px;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  font-size: 0.9rem;
}
.msg.received {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-input {
  display: flex;
  border-top: 1px solid var(--border-color);
}
.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  color: white;
  outline: none;
}
.chat-input button {
  background: transparent;
  border: none;
  color: var(--secondary);
  padding: 0 15px;
  cursor: pointer;
}

/* ==========================================================================
      ANIMATIONS (Intersection Observer classes)
      ========================================================================== */
.animate-element {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
  transform: translateY(40px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-right {
  transform: translateX(-40px);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-left {
  transform: translateX(40px);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  transform: scale(0.9);
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.scale-up {
  transform: scale(0.95);
}
.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
      RESPONSIVE MEDIA QUERIES
      ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .cube-container {
    width: 150px;
    height: 150px;
  }
  .face {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
  .front {
    transform: rotateY(0deg) translateZ(75px);
  }
  .back {
    transform: rotateY(180deg) translateZ(75px);
  }
  .right {
    transform: rotateY(90deg) translateZ(75px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(75px);
  }
  .top {
    transform: rotateX(90deg) translateZ(75px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .calc-container,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-section {
    text-align: center;
    padding-top: 120px;
  }
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-stats-row {
    grid-template-columns: 1fr;
  }
  .dash-charts-row {
    grid-template-columns: 1fr;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 5rem 0;
  }
  .header-actions .btn {
    display: none;
  } /* Hide quote button on mobile header */
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    z-index: 1000;
  }
  .main-nav.active {
    left: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  }
  .nav-list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav-link {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-dot {
    left: 10px !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .legal-box {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-body,
  .calc-header {
    padding: 1.5rem 1rem;
  }
  .cube-container {
    display: none;
  } /* Hide complex 3D on very small screens for perf */
}
