/* ==========================================================================
   URBAN COSMIC BRAND SYSTEM & DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-cosmic: #040408;
  --bg-card: rgba(13, 13, 25, 0.7);
  --bg-card-hover: rgba(22, 22, 45, 0.95);
  --primary-glow: #00f2fe;
  --secondary-glow: #7f00ff;
  --accent-magenta: #ff007f;
  --accent-green: #39ff14;
  --text-primary: #f0f0f8;
  --text-muted: #a0a0ca;
  --text-dark: #0a0a14;
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", monospace;
  --perspective: 1200px;
  --spring-transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-fluid: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --cursor-glow: rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
     RESET & SYSTEM INITIALIZATION
     ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cosmic);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

#synapse-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* ==========================================================================
     CUSTOM CURSOR (FLUID PHYSICS)
     ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-glow);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary-glow);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.08s ease-out,
    border-color 0.2s;
  box-shadow: 0 0 15px var(--cursor-glow);
}

/* ==========================================================================
     4-SECOND CINEMATIC PRELOADER
     ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-cosmic);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0.8s;
}

.preloader-logo {
  height: 80px;
  margin-bottom: 2rem;
  filter: invert(1);
  opacity: 0;
  transform: scale(0.5);
  animation: logoAssemble 2.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.preloader-bar-container {
  width: 250px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  animation: preloaderProgress 3.2s forwards cubic-bezier(0.1, 0.8, 0.1, 1);
}

@keyframes logoAssemble {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    filter: blur(10px);
  }
  50% {
    opacity: 0.5;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes preloaderProgress {
  0% {
    width: 0%;
  }
  30% {
    width: 45%;
  }
  75% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

/* ==========================================================================
     NAVIGATION & GLASS HEADER
     ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--ease-fluid);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
  filter: invert(1);
  transition: var(--spring-transition);
}

.logo:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--ease-fluid);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  transition: var(--ease-fluid);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--spring-transition);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  color: var(--text-dark);
  border: none;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}

.btn-primary span {
  position: relative;
  z-index: 2;
}

.btn-primary i {
  position: relative;
  z-index: 2;
  transition: var(--spring-transition);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-glow),
    var(--accent-magenta)
  );
  transition: var(--ease-fluid);
  z-index: 1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(127, 0, 255, 0.4);
}

.btn-primary:hover i {
  transform: translateX(5px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-toggle .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--ease-fluid);
}

/* ==========================================================================
     3D HERO ROOM & GRID SCENE
     ========================================================================== */
.hero-scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--perspective);
  overflow: hidden;
  padding-top: 85px;
}

.perspective-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(0, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: translate(-50%, -30%) rotateX(60deg);
  transform-origin: center center;
  z-index: -1;
  animation: gridFlow 20s infinite linear;
}

@keyframes gridFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  z-index: 2;
  padding: 0 2rem;
  transform-style: preserve-3d;
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--primary-glow);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  opacity: 0;
  transform: translateZ(50px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  color: #fff;
  transform-style: preserve-3d;
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
  line-height: 1.8;
  transform: translateZ(30px);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  transform: translateZ(60px);
}

/* ==========================================================================
     DYNAMIC MARQUEE / WIN TICKER
     ========================================================================== */
.results-ticker {
  background: rgba(13, 13, 25, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  overflow: hidden;
  width: 100%;
}

.ticker-wrap {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 4rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.ticker-item span {
  color: var(--accent-green);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
     SERVICES (3D CARD DECK / INTERACTIVE ELEMENTS)
     ========================================================================== */
.section {
  padding: 8rem 0;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.container {
  width: 100%;
  padding: 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--primary-glow);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
}

/* Interactive Flip Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.flip-card {
  background: transparent;
  perspective: var(--perspective);
  height: 400px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-card-front {
  background: var(--bg-card);
  align-items: flex-start;
  text-align: left;
}

.flip-card-back {
  background: linear-gradient(135deg, var(--bg-card-hover), #0f052d);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-glow);
  margin-bottom: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
     INDUSTRY SORT SYSTEM
     ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease-fluid);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-glow);
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  transition: var(--ease-fluid);
}

.industry-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--spring-transition);
}

.industry-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-glow);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

/* ==========================================================================
     KPI DASHBOARD & NEON ODOMETRIES
     ========================================================================== */
.kpi-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
}

.kpi-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
}

.kpi-num span {
  color: var(--primary-glow);
}

.kpi-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.kpi-visuals {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.dashboard-panel {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-bar-container {
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 2rem;
}

.chart-column {
  width: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 1rem;
}

.column-bar {
  width: 100%;
  background: linear-gradient(
    to top,
    var(--secondary-glow),
    var(--primary-glow)
  );
  border-radius: 8px 8px 0 0;
  transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
}

.column-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-glow);
}

.column-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
     PROCESS / TIMELINE
     ========================================================================== */
.timeline-track {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-glow),
    var(--secondary-glow),
    transparent
  );
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6rem;
  width: 100%;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-img {
  width: 45%;
  display: flex;
  justify-content: center;
}

.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-cosmic);
  border: 4px solid var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
}

.timeline-card {
  width: 45%;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
     TESTIMONIALS (3D CARD DECK & TILT EFFECT)
     ========================================================================== */
.deck-container {
  position: relative;
  height: 450px;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-deck-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card-hover), #0f052d);
  border-radius: 24px;
  padding: 4rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: grab;
  user-select: none;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-meta h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.author-meta span {
  font-size: 0.85rem;
  color: var(--primary-glow);
}

.deck-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.deck-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease-fluid);
}

.deck-btn:hover {
  background: var(--primary-glow);
  color: var(--text-dark);
}

/* ==========================================================================
     BEFORE / AFTER SPLIT SLIDER
     ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 550px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.img-after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80");
}

.img-before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=80");
  width: 50%;
  z-index: 2;
  border-right: 3px solid var(--primary-glow);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary-glow);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
     ROI CALCULATOR & SYSTEM VISUALS
     ========================================================================== */
.roi-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.range-group {
  margin-bottom: 2.5rem;
}

.range-label-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.range-label {
  font-weight: 600;
}

.range-value {
  color: var(--primary-glow);
  font-family: var(--font-mono);
  font-weight: 700;
}

.range-input {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-glow);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.1s;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-result-panel {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.result-metric {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  margin-bottom: 1rem;
}

/* ==========================================================================
     CAMPAIGN GOAL MATCHER
     ========================================================================== */
.matcher-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.matcher-step {
  display: none;
}

.matcher-step.active {
  display: block;
}

.matcher-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.matcher-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--ease-fluid);
  text-align: left;
}

.matcher-option:hover,
.matcher-option.selected {
  border-color: var(--primary-glow);
  background: rgba(0, 242, 254, 0.05);
}

/* ==========================================================================
     CONTACT FORM & CREATIVE MAP
     ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--bg-card-hover), #0f052d);
  border-radius: 24px;
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
  font-size: 1.3rem;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  outline: none;
  transition: var(--ease-fluid);
}

.form-group select {
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--primary-glow);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--ease-fluid);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -1rem;
  font-size: 0.8rem;
  color: var(--primary-glow);
}

/* ==========================================================================
     AI ASSISTANT CHATBOT WIDGET
     ========================================================================== */
.ai-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
  transition: var(--spring-transition);
}

.ai-toggle:hover {
  transform: scale(1.1);
}

.ai-chat-window {
  width: 380px;
  height: 500px;
  background: var(--bg-card-hover);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.ai-chat-window.active {
  display: flex;
}

.ai-chat-header {
  padding: 1.5rem;
  background: linear-gradient(90deg, var(--bg-cosmic), rgba(13, 13, 25, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 1rem;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble-ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.bubble-user {
  background: linear-gradient(135deg, var(--secondary-glow), var(--bg-cosmic));
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.ai-chat-footer {
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1rem;
}

.ai-chat-footer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.8rem 1.2rem;
  color: #fff;
  outline: none;
}

/* ==========================================================================
     POPUP MODALS
     ========================================================================== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease-fluid);
}

.popup:target {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(12px);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--bg-card-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 4rem;
  max-width: 550px;
  width: 90%;
  text-align: center;
  transition: var(--spring-transition);
}

.popup:target .popup-content {
  transform: translate(-50%, -50%) scale(1);
}

.popup-icon {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 2rem;
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--ease-fluid);
}

.popup-close:hover {
  color: #fff;
}

/* ==========================================================================
     FOOTER (MASTER STRUCTURAL GRAPHICS)
     ========================================================================== */
.footer {
  position: relative;
  background: #030306;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8rem 0 3rem 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(127, 0, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: invert(1);
  margin-bottom: 1.5rem;
}

.footer-about-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--spring-transition);
}

.social-link:hover {
  background: var(--primary-glow);
  color: var(--text-dark);
  transform: translateY(-5px);
}

.footer-col-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--ease-fluid);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
}

.contact-info i {
  color: var(--primary-glow);
}

.contact-info a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
     LEGAL PAGES GENERAL STYLING
     ========================================================================== */
.legal-content {
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 3rem 0 1.5rem 0;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

/* ==========================================================================
     RESPONSIVE LAYOUT MATRIX
     ========================================================================== */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 2rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 4rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .roi-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .kpi-container {
    grid-template-columns: 1fr;
  }
}
