/* ==========================================================================
   Awwwards-Level Digital Marketing Agency Styles
   ========================================================================== */

/* --- CSS Variables & Reset --- */
:root {
  /* Color Palette - Cyber/High-End Dark Mode */
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 20, 0.6);
  --primary-color: #00f0ff;
  --primary-hover: #00d0dd;
  --secondary-color: #8a2be2;
  --accent-color: #ff0055;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-glow: linear-gradient(90deg, #00f0ff, #8a2be2, #ff0055, #00f0ff);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Easings for premium feel */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FIX: Strict horizontal overflow hiding to prevent side gaps */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: auto; /* Handled by JS for smoothness */
  font-size: 16px;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  position: relative;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.2s,
    height 0.2s;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.text-center {
  text-align: center;
}
.relative {
  position: relative;
}
.z-10 {
  z-index: 10;
}
.w-100 {
  width: 100%;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.glass-panel,
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s var(--ease-out-expo),
    visibility 0.8s;
}

.loader-logo-wrapper {
  text-align: center;
  width: 300px;
}

.loader-img {
  max-width: 150px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-color));
  animation: pulse 2s infinite;
}

.loader-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.1s;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 3px;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-fast);
  padding: 1.5rem 0;
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-fast);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-glow {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-glow);
  z-index: -1;
  background-size: 400%;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.3s;
  animation: animateGlow 8s linear infinite;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: 0.4s;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 10s infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px)
    translateZ(-200px);
  transform-origin: center top;
  animation: gridMove 20s linear infinite;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 4.5rem;
  margin: 1.5rem 0;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  margin: 0;
  display: inline-block;
  color: #fff;
}

.stat-item span {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: bold;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* 3D Cube Animation */
.cube-container {
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 15s infinite linear;
}

.face {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  color: var(--primary-color);
  box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(5px);
}

.front {
  transform: translateZ(150px);
}
.back {
  transform: rotateY(180deg) translateZ(150px);
}
.right {
  transform: rotateY(90deg) translateZ(150px);
}
.left {
  transform: rotateY(-90deg) translateZ(150px);
}
.top {
  transform: rotateX(90deg) translateZ(150px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

/* --- Marquee --- */
.marquee-section {
  padding: 2rem 0;
  background: var(--primary-color);
  transform: rotate(-2deg) scale(1.05);
  margin: 4rem 0;
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: scrollMarquee 20s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.marquee-track i {
  color: #000;
  font-size: 1rem;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-top: 2rem;
}

.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.decorative-card {
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.code-block code {
  font-family: "Courier New", Courier, monospace;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.code-block .keyword {
  color: var(--secondary-color);
}
.code-block .func {
  color: var(--primary-color);
}
.code-block .string {
  color: #27c93f;
}

/* --- Services 3D Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  perspective: 1000px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  transition: transform 0.1s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(0, 240, 255, 0.1),
    transparent 50%
  );
  pointer-events: none;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transform: translateZ(30px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateZ(40px);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  transform: translateZ(20px);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  transform: translateZ(30px);
}

.service-features span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #ccc;
}

/* --- Industries Section --- */
.industries-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.industry-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.industry-content {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.industry-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.industry-item p {
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-fast);
}

.industry-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition:
    transform 0.8s var(--ease-out-expo),
    filter 0.8s;
  filter: grayscale(100%) brightness(0.2);
}

.ecommerce-bg {
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark));
} /* Mock images due to pure code */
.saas-bg {
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark));
}
.health-bg {
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark));
}
.realestate-bg {
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark));
}

.industry-item:hover .industry-hover-bg {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(0.4);
  background: radial-gradient(
    circle at center,
    rgba(0, 240, 255, 0.2),
    transparent
  );
}

.industry-item:hover .industry-content p {
  opacity: 1;
  transform: translateY(0);
}

.industry-item:hover .industry-content {
  transform: translateY(-10px);
}

/* --- Interactive Calculator --- */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 4rem;
}

.input-group {
  margin-top: 2rem;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 500;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-color);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.result-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.result-card h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-card .amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.result-card.highlight {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.impact-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 1rem;
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
}

/* --- Reports Section (Charts) --- */
.dashboard-mockup {
  padding: 2rem;
  margin-top: 3rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.dash-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.dash-controls span {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.dash-controls span.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.metric-trend {
  font-size: 0.85rem;
  font-weight: 500;
}
.metric-trend.positive {
  color: #27c93f;
}
.metric-trend.negative {
  color: #ff5f56;
}

.chart-container {
  height: 300px;
  display: flex;
  gap: 2rem;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-bottom: 2rem;
}

.chart-bars {
  flex: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  position: relative;
}

.chart-bars::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bar-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  height: 100%;
  position: relative;
}

.bar {
  width: 30px;
  height: 0; /* animated via JS */
  border-radius: 4px 4px 0 0;
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-spend {
  background: rgba(255, 255, 255, 0.2);
}
.bar-rev {
  background: var(--gradient-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.bar-label {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-container.animate .bar {
  height: var(--target-height);
}

/* --- Timeline Process --- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: height 0.5s;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.timeline-content {
  width: 90%;
  padding: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 10%;
}

/* --- Testimonials --- */
.testimonial-slider-container {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.testimonial-slider {
  position: relative;
  min-height: 250px;
}

.testi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s var(--ease-out-expo);
  pointer-events: none;
  text-align: center;
}

.testi-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(0, 240, 255, 0.2);
  margin-bottom: 1rem;
}

.testi-text {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--primary-color);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.slider-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots .dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transform: scale(1.2);
}

/* --- CTA Section --- */
.cta-box {
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.15) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-decoration {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  transform: rotate(-15deg);
}

/* --- Live Chat Widget --- */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 240, 255, 0.4);
  transition: transform var(--transition-fast);
}

.chat-toggle:hover {
  transform: scale(1.1) rotate(10deg);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: bottom right;
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.chat-header h4 {
  margin: 0;
  font-size: 1rem;
}

.close-chat {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.chat-body {
  padding: 1.5rem;
  height: 250px;
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.9);
}

.chat-msg.system {
  background: rgba(0, 240, 255, 0.1);
  border-left: 3px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0 8px 8px 8px;
  font-size: 0.9rem;
}

.chat-footer {
  display: flex;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
}

.chat-send {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: #020202;
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: var(--text-muted);
}
.footer-legal a:hover {
  color: var(--primary-color);
}

/* --- Subpages (Contact & Legal) --- */
.subpage {
  padding-top: 0;
}
.page-header {
  padding: 180px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background: #020202;
  overflow: hidden;
}

.page-header h1 {
  font-size: 4rem;
}
.page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Forms */
.custom-form .form-row {
  display: flex;
  gap: 1.5rem;
}
.custom-form .form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}
.custom-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.glass-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: 0.3s;
}
.glass-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 240, 255, 0.05);
}
.btn-block {
  width: 100%;
}

.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info-block {
  padding: 3rem;
}
.contact-form-block {
  padding: 3rem;
}
.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-info-item h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

/* Legal Pages */
.legal-page .prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.legal-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}
.legal-page p {
  margin-bottom: 1.5rem;
  color: #d0d0d0;
}
.legal-page ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: #d0d0d0;
}
.legal-page li {
  margin-bottom: 0.5rem;
}

/* Success Popup */
.popup {
  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;
  visibility: hidden;
  transition: 0.3s;
}
.popup.active {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  position: relative;
  transform: scale(0.8);
  transition: 0.4s var(--ease-out-expo);
}
.popup.active .popup-content {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.popup-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 990;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-color);
  color: #000;
}

/* --- Scroll Animations (Triggered by JS) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s var(--ease-out-expo);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 1s var(--ease-out-expo);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 1s var(--ease-out-expo);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: 1s var(--ease-out-expo);
}
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) 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;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}

/* Keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
    filter: drop-shadow(0 0 20px var(--primary-color));
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-30px) scale(1.1);
  }
}
@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 50px;
  }
}
@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes animateGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .about-grid,
  .calc-wrapper,
  .contact-page-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s var(--ease-out-expo);
  }
  .nav-menu.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar-2 {
    opacity: 0;
  }
  .hamburger.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  .industries-wrapper {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 2rem;
    padding-right: 0;
  }
  .timeline-line {
    left: 0;
  }
  .timeline-dot {
    left: 0;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
  }
  .custom-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  } /* Disable custom cursor on mobile */
}
