/* ==========================================================================
   Base & Variables
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Core Palette */
  --bg-dark: #050505;
  --bg-surface: #0a0a0a;
  --bg-surface-light: #141414;
  --bg-glass: rgba(20, 20, 20, 0.4);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Accents */
  --accent-primary: #4f46e5; /* Electric Indigo */
  --accent-secondary: #06b6d4; /* Cyan */
  --accent-glow: rgba(79, 70, 229, 0.5);

  /* Typography */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Sizes */
  --header-height: 90px;
  --section-padding: 120px;
  --container-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 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;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* Custom cursor */
}

/* ==========================================================================
      Custom Cursor & Background Effects
      ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

body:hover .cursor-outline.hovered {
  width: 60px;
  height: 60px;
  background-color: rgba(79, 70, 229, 0.1);
  border-color: transparent;
}

.noise-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.03;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(var(--border-glass) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 0%,
    transparent 80%
  );
}

/* ==========================================================================
      Typography & Utilities
      ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(
    to right,
    var(--accent-secondary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: none;
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--accent-secondary),
    var(--accent-primary)
  );
  transition: var(--transition-fast);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--text-main);
}
.btn-primary:hover::before {
  left: 0;
}

.btn-icon {
  margin-left: 10px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s var(--ease-out-expo);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 1s var(--ease-out-expo);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 1s var(--ease-out-expo);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
      Strict Header
      ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1); /* Ensures white logo on dark bg */
}

.desktop-nav {
  display: none;
}
@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
  .nav-list {
    display: flex;
    gap: 40px;
  }
  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
  }
  .nav-link:hover {
    color: var(--text-main);
  }
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
  }
  .nav-link:hover::after {
    width: 100%;
  }
}

.mobile-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1002;
}
@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle .bar {
  width: 30px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 30px;
}
.mobile-nav-content a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

/* ==========================================================================
      Strict Footer
      ========================================================================== */
.main-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: var(--accent-glow);
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.brand-col p {
  color: var(--text-muted);
  margin: 20px 0;
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-glass);
}
.social-links a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-main);
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--accent-secondary);
  padding-left: 5px;
}

.contact-info ul li {
  display: flex;
  gap: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.contact-info i {
  color: var(--accent-secondary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 24px 0;
  background: var(--bg-dark);
}
.bottom-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}
@media (min-width: 768px) {
  .bottom-flex {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.legal-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.legal-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.legal-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
      Index Page Sections (AWWARDS Level)
      ========================================================================== */

/* 1. Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-3d-elements {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: rgba(79, 70, 229, 0.4);
}
.orb-2 {
  bottom: -10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.3);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-30px, 50px) scale(1.1);
  }
}

/* 2. Marquee Clients */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  align-items: center;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-glass);
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 3. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
  transform: translateZ(30px);
}
.service-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.service-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.service-link i {
  transition: var(--transition-fast);
}
.service-card:hover .service-link i {
  transform: translateX(5px);
  color: var(--accent-secondary);
}

/* 4. Interactive Report / Features */
.dashboard-preview {
  background: linear-gradient(
    145deg,
    var(--bg-surface),
    var(--bg-surface-light)
  );
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  margin-top: 60px;
}

.chart-container {
  height: 300px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding-top: 40px;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.bar-chart {
  flex: 1;
  background: var(--bg-dark);
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: hidden;
  height: 0; /* Animated via JS */
  transition: height 1.5s var(--ease-out-expo);
}

.bar-chart::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, transparent, var(--accent-primary));
  opacity: 0.5;
}

/* 5. Industries / Tabbed Accordion */
.industry-row {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  padding: 40px 0;
  align-items: center;
  transition: var(--transition-fast);
  cursor: none;
}
.industry-row:first-child {
  border-top: 1px solid var(--border-glass);
}
.industry-row:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, var(--bg-glass), transparent);
}

.ind-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 100px;
}
.ind-title {
  font-family: var(--font-display);
  font-size: 3rem;
  flex: 1;
}
.ind-icon {
  font-size: 2rem;
  color: var(--accent-secondary);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-fast);
}
.industry-row:hover .ind-icon {
  opacity: 1;
  transform: translateX(0);
}

/* 6. Impact Calculator */
.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
@media (min-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-input-group {
  margin-bottom: 30px;
}
.calc-input-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 0 15px var(--accent-primary);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: var(--border-glass);
  border-radius: 2px;
}

.calc-result {
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-secondary);
  margin: 20px 0;
}

/* 7. Testimonials */
.testimonial-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.test-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 30px;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.test-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Live Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
  transition: var(--transition-fast);
}
.chat-widget:hover {
  transform: scale(1.1);
}

/* ==========================================================================
      Internal Pages (Contact, Legal)
      ========================================================================== */

.page-header {
  padding: 200px 0 100px;
  text-align: center;
  background: radial-gradient(
    ellipse at top,
    rgba(79, 70, 229, 0.1) 0%,
    transparent 70%
  );
}

.page-title {
  font-size: 4rem;
  margin-bottom: 20px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Content Box */
.legal-content {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 60px;
  max-width: 900px;
  margin: -40px auto 100px;
  position: relative;
  z-index: 10;
}

.legal-content h3 {
  margin-top: 40px;
  color: var(--accent-secondary);
  font-size: 1.5rem;
}
.legal-content p,
.legal-content ul {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Contact Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: -40px auto 100px;
  position: relative;
  z-index: 10;
}
@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-box {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-primary);
}
.contact-info-text h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.contact-info-text p {
  color: var(--text-muted);
}

.contact-form-box {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}
.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}
