@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-color: #00f0ff;
  --primary-dark: #00b3cc;
  --secondary-color: #7000ff;
  --secondary-dark: #4d00b3;
  --accent-color: #ff0055;

  /* Backgrounds */
  --bg-dark: #07090f;
  --bg-darker: #040508;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* Text Colors */
  --text-light: #ffffff;
  --text-muted: #a0a5b5;
  --text-dark: #000000;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-glow: linear-gradient(
    90deg,
    rgba(0, 240, 255, 0.5),
    rgba(112, 0, 255, 0.5)
  );
  --gradient-card: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );

  /* Shadows & Borders */
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glow-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--text-light);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   UTILITY CLASSES & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-title h2 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn i {
  margin-left: 10px;
  transition: var(--transition-fast);
}

.btn:hover i {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light) !important;
  box-shadow: var(--glow-shadow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  z-index: -1;
  transition: opacity var(--transition-medium);
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-dark) !important;
  transform: translateY(-3px);
}

.glass-panel {
  background: rgba(15, 20, 35, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

/* ==========================================================================
   GLOBAL HEADER (STRICT CONSISTENCY)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-medium);
  background: transparent;
}

.header.scrolled {
  background: rgba(4, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link img.logo {
  height: 60px;
  filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  transition: var(--transition-medium);
}

.nav-list {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

.mobile-toggle .bar-top {
  top: 0;
}
.mobile-toggle .bar-middle {
  top: 11px;
}
.mobile-toggle .bar-bottom {
  bottom: 0;
}

.mobile-toggle.active .bar-top {
  transform: rotate(45deg);
  top: 11px;
}
.mobile-toggle.active .bar-middle {
  opacity: 0;
}
.mobile-toggle.active .bar-bottom {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-darker);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav ul {
  text-align: center;
}

.mobile-nav li {
  margin: 25px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.mobile-nav.active li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a:not(.btn) {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
}

/* ==========================================================================
   HERO SECTION (3D & Animations)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: floatShape 20s infinite alternate linear;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -10%;
  left: -5%;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: -10%;
  right: -5%;
  animation-delay: -5s;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* 3D Hero Graphic */
.hero-visual {
  perspective: 1000px;
}

.hero-3d-element {
  width: 100%;
  height: 500px;
  position: relative;
  transform-style: preserve-3d;
  animation: float3D 6s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hc-1 {
  width: 300px;
  height: 200px;
  top: 50px;
  left: 20px;
  transform: translateZ(50px) rotateY(-15deg);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 0, 0, 0));
}

.hc-2 {
  width: 250px;
  height: 150px;
  bottom: 50px;
  right: 20px;
  transform: translateZ(100px) rotateY(10deg);
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 0, 0, 0));
  border-color: rgba(112, 0, 255, 0.3);
}

.hc-3 {
  width: 200px;
  height: 180px;
  top: 150px;
  right: 80px;
  transform: translateZ(150px) rotateX(10deg);
}

/* Graphic Lines inside Hero Cards */
.hc-line {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.hc-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-color);
  width: 60%;
}
.hc-1 .hc-line:nth-child(2)::after {
  width: 85%;
  background: var(--secondary-color);
}
.hc-1 .hc-line:nth-child(3)::after {
  width: 45%;
  background: var(--accent-color);
}

/* ==========================================================================
   ABOUT US SECTION & STATS
   ========================================================================== */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-darker);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.about-image img {
  border-radius: 20px;
  filter: grayscale(20%) contrast(120%);
  transition: var(--transition-slow);
}

.about-image:hover img {
  filter: grayscale(0) contrast(100%);
  transform: scale(1.05);
}

.about-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-light);
  transition: var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* ==========================================================================
   SERVICES (3D Cards)
   ========================================================================== */
.services-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  perspective: 1000px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid var(--border-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  border-color: transparent;
  box-shadow:
    -20px 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 240, 255, 0.2);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  transition: var(--transition-medium);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateZ(30px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.service-card:hover h3 {
  transform: translateZ(20px);
}

.service-card p {
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.service-card:hover p {
  transform: translateZ(10px);
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.service-link i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* ==========================================================================
   INDUSTRY FOCUS SECTION
   ========================================================================== */
.industries-section {
  padding: var(--section-padding);
  background: var(--bg-darker);
}

.industry-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 12px 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--glow-shadow);
}

.industry-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.industry-content.active {
  display: block;
}

.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ind-img {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--box-shadow);
}

.ind-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}

.ind-img:hover img {
  transform: scale(1.05);
}

.ind-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.ind-list {
  margin-top: 30px;
}

.ind-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.ind-list li i {
  color: var(--primary-color);
  margin-top: 5px;
  margin-right: 15px;
}

/* ==========================================================================
   INTERACTIVE CAMPAIGN REPORTS (Live Dashboard Mockup)
   ========================================================================== */
.reports-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
}

.dashboard-mockup {
  background: rgba(20, 25, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
}

.metric-trend {
  font-size: 0.85rem;
  color: #00ff88;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.metric-trend i {
  margin-right: 5px;
}

.dash-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* CSS Bar Chart */
.chart-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-title {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding-bottom: 30px;
  position: relative;
}

.bar-chart::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.bar-group {
  width: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar {
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  transition: height 1.5s ease-out;
  position: relative;
}

.bar-group span {
  position: absolute;
  bottom: -25px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICE CALCULATOR
   ========================================================================== */
.calculator-section {
  padding: var(--section-padding);
  background: var(--bg-darker);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}

.calc-form {
  padding: 50px;
}

.calc-group {
  margin-bottom: 30px;
}

.calc-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Range Slider Styling */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-value-display {
  text-align: right;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
  display: block;
}

/* Custom Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.custom-checkbox {
  position: relative;
  display: block;
  cursor: pointer;
  padding-left: 35px;
  font-size: 1rem;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.calc-result {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1),
    rgba(112, 0, 255, 0.1)
  );
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-light);
}

.calc-result h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.est-price {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0;
}

/* ==========================================================================
   HOW WE WORK / PROCESS
   ========================================================================== */
.process-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.process-steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.process-step {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.step-number {
  width: 100px;
  height: 100px;
  background: var(--bg-darker);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.step-content {
  margin-left: 40px;
  padding-top: 15px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-light);
  width: 100%;
  transition: var(--transition-medium);
}

.step-content:hover {
  transform: translateX(10px);
  border-color: var(--secondary-color);
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-darker);
  overflow: hidden;
}

.testi-slider {
  display: flex;
  gap: 30px;
  animation: scrollTesti 30s linear infinite;
  width: max-content;
}

.testi-card {
  width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.testi-card i.fa-quote-left {
  font-size: 3rem;
  color: rgba(0, 240, 255, 0.1);
  position: absolute;
  top: 20px;
  right: 30px;
}

.testi-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
}

.testi-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
}

.testi-info h4 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.testi-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 120px 0;
  background:
    linear-gradient(rgba(7, 9, 15, 0.8), rgba(7, 9, 15, 0.9)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(0,240,255,0.05)" stroke-width="2" fill="none"/></svg>');
  background-size: 100px 100px;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* ==========================================================================
   SUBPAGES (LEGAL & CONTACT)
   ========================================================================== */
.subpage-header {
  padding: 180px 0 80px;
  background: var(--bg-darker);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.subpage-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-light);
  font-weight: 500;
}

.legal-content {
  padding: 80px 0;
  background: var(--bg-dark);
}

.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 60px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.legal-wrapper h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.legal-wrapper h3 {
  font-size: 1.4rem;
  margin-top: 30px;
}

.legal-wrapper p,
.legal-wrapper ul {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.legal-wrapper ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  padding: var(--section-padding);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
}

.c-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
}

.c-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.c-text p {
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   GLOBAL FOOTER (STRICT CONSISTENCY)
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about img.logo {
  height: 60px;
  filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.4);
  transition: var(--transition-fast);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.chat-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  background: var(--gradient-primary);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.chat-title {
  font-weight: 600;
}
.chat-close {
  cursor: pointer;
}

.chat-body {
  height: 300px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.msg-agent {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg-user {
  background: var(--primary-dark);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
}

.chat-input button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(45deg);
  }
}

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0) rotateX(5deg) rotateY(-5deg);
  }
  50% {
    transform: translateY(-20px) rotateX(10deg) rotateY(0deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollTesti {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero-content-grid,
  .about-grid,
  .ind-grid,
  .calc-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 30px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  } /* Hide complex 3D on mobile for performance */
  .dash-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .dash-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .process-step {
    flex-direction: column;
  }
  .step-content {
    margin-left: 0;
    margin-top: 20px;
  }
  .process-steps::before {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .contact-info li {
    justify-content: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
