@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Color Palette */
  --bg-dark: #050507;
  --bg-surface: #0a0b10;
  --bg-surface-glass: rgba(10, 11, 16, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #8892b0;
  --accent-cyan: #00f3ff;
  --accent-purple: #9d4edd;
  --gradient-primary: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-purple)
  );
  --border-glass: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Sizes */
  --nav-height: 90px;
  --container-width: 1400px;
  --section-pad: 120px 0;

  /* Animation Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor used */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 243, 255, 0.5);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}
body:hover .cursor-outline.hover-active {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 243, 255, 0.1);
  border-color: var(--accent-cyan);
  mix-blend-mode: screen;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  cursor: none; /* rely on custom cursor */
  border: none;
  z-index: 1;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}
.btn-primary:hover {
  color: var(--text-primary);
}
.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-primary i {
  transition: transform 0.3s ease;
}
.btn-primary:hover i {
  transform: translateX(5px) rotate(-45deg);
}

/* =========================================
   1. HEADER (Strictly Consistent)
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: transparent;
  z-index: 1000;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-bottom 0.4s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
}
.header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link img {
  height: 60px;
  width: auto;
  filter: invert(1);
  object-fit: contain;
}
.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.mobile-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.6s var(--ease-out-expo);
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav ul {
  list-style: none;
  text-align: center;
}
.mobile-nav li {
  margin: 2rem 0;
}
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: 0.3s;
}
.mobile-nav-link:hover {
  color: var(--text-primary);
  -webkit-text-stroke: 0;
}

/* =========================================
   2. HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}
/* 3D Grid Background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(5, 5, 7, 0.9), rgba(5, 5, 7, 1)),
    linear-gradient(var(--border-glass) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
  background-size:
    100% 100%,
    50px 50px,
    50px 50px;
  background-position: center bottom;
  transform: perspective(500px) rotateX(60deg) translateY(100px) scale(2.5);
  animation: gridMove 20s linear infinite;
  z-index: -1;
}
@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0) scale(2.5);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2.5);
  }
}
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.dynamic-text {
  display: block;
  height: 1.2em;
  overflow: hidden;
}
.dynamic-text span {
  display: block;
  animation: slideWords 9s infinite;
}
@keyframes slideWords {
  0%,
  25% {
    transform: translateY(0);
  }
  33.33%,
  58.33% {
    transform: translateY(-100%);
  }
  66.66%,
  91.66% {
    transform: translateY(-200%);
  }
  100% {
    transform: translateY(0);
  }
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* =========================================
   3. MARQUEE (TRUST BAR)
========================================= */
.marquee-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-surface);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track h3 {
  font-size: 2rem;
  margin: 0 3rem;
  color: var(--bg-dark);
  -webkit-text-stroke: 1px var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   4. ABOUT / PHILOSOPHY
========================================= */
.about {
  padding: var(--section-pad);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 50px var(--bg-dark);
}
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 243, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.glass-card:hover::before {
  opacity: 1;
}

/* =========================================
   5. SERVICES (3D CARDS)
========================================= */
.services {
  padding: var(--section-pad);
  background: var(--bg-surface);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}
.service-card {
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out-expo);
}
.service-card:hover {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-glass);
}
.card-front {
  background: var(--bg-dark);
  align-items: flex-start;
}
.card-front i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
  color: var(--bg-dark);
  align-items: center;
  text-align: center;
}
.card-back h3,
.card-back p {
  color: var(--bg-dark);
}
.card-back .btn-primary {
  background: var(--bg-dark);
  color: var(--text-primary);
  margin-top: 1rem;
}

/* =========================================
   6. INDUSTRIES
========================================= */
.industries {
  padding: var(--section-pad);
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.industry-item {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  cursor: none;
}
.industry-item span {
  font-family: var(--font-heading);
  font-size: 2rem;
  z-index: 2;
  transition: transform 0.4s ease;
}
.industry-item .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition:
    opacity 0.5s,
    transform 0.5s;
  filter: brightness(0.4);
  z-index: 1;
}
.industry-item:hover span {
  transform: scale(1.1);
}
.industry-item:hover .hover-img {
  opacity: 1;
  transform: scale(1);
}

/* =========================================
   7. CAMPAIGN REPORTS (DATA)
========================================= */
.reports {
  padding: var(--section-pad);
  background: var(--bg-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}
.stat-box h3 {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chart-container {
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 2%;
  height: 400px;
}
.bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px 10px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.bar-fill {
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 10px 10px 0 0;
  height: 0; /* Animated via JS */
  transition: height 1.5s var(--ease-out-expo);
  position: relative;
}
.bar-fill::after {
  content: attr(data-val);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s 1s;
}
.chart-container.active .bar-fill::after {
  opacity: 1;
}

/* =========================================
   8. SERVICE CALCULATOR
========================================= */
.calculator {
  padding: var(--section-pad);
}
.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.calc-row {
  margin-bottom: 2rem;
}
.calc-row label {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 5px;
  background: var(--border-glass);
  border-radius: 5px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}
.calc-result {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-result h3 {
  margin: 0;
}
.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* =========================================
   9. TESTIMONIALS
========================================= */
.testimonials {
  padding: var(--section-pad);
  background: var(--bg-surface);
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollTesti 40s linear infinite;
}
.testi-card {
  width: 400px;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 20px;
  white-space: normal;
}
.quote-icon {
  font-size: 2rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border-glass);
}
@keyframes scrollTesti {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   10. FOOTER (Strictly Consistent)
========================================= */
.footer {
  background: var(--bg-surface);
  padding: 5rem 0 0;
  border-top: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(157, 78, 221, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  height: 50px;
  filter: invert(1);
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul a {
  color: var(--text-secondary);
  position: relative;
}
.footer-col ul a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-icon:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =========================================
   SUBPAGES (Contact, Privacy, Terms, Disclaimer)
========================================= */
.page-header {
  padding: 180px 0 80px;
  background: var(--bg-surface);
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}
.page-header h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}
.breadcrumbs {
  color: var(--text-secondary);
  margin-top: 1rem;
}
.breadcrumbs a {
  color: var(--accent-cyan);
}

/* Legal Content Layout */
.legal-content {
  padding: var(--section-pad);
  max-width: 900px;
  margin: 0 auto;
}
.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 2rem;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 1.5rem;
}

/* Contact Page Layout */
.contact-section {
  padding: var(--section-pad);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.contact-info-card h3 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 20px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Live Chat Bubble */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: none;
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animations JS Classes */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s var(--ease-out-expo);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-list {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .industry-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .chart-container {
    height: 250px;
  }
}
