/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
  --bg-dark: #030305;
  --bg-surface: rgba(15, 15, 20, 0.6);
  --bg-surface-light: rgba(30, 30, 40, 0.8);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --accent-cyan: #00e5ff;
  --accent-purple: #7000ff;
  --accent-glow: rgba(0, 229, 255, 0.3);

  --font-heading: "Orbitron", sans-serif;
  --font-body: "Share Tech Mono", monospace;

  --spacing-xs: clamp(0.5rem, 1vw, 1rem);
  --spacing-sm: clamp(1rem, 2vw, 2rem);
  --spacing-md: clamp(2rem, 4vw, 4rem);
  --spacing-lg: clamp(4rem, 8vw, 8rem);
  --spacing-xl: clamp(6rem, 12vw, 12rem);

  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: initial; /* Handled by GSAP/Lenis concept if needed, otherwise smooth */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.text-reveal-wrapper {
  overflow: hidden;
  display: inline-block;
}

.heading-xl {
  font-size: clamp(3rem, 8vw, 8rem);
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading-lg {
  font-size: clamp(2.5rem, 5vw, 5rem);
}
.heading-md {
  font-size: clamp(1.5rem, 3vw, 3rem);
}
.heading-sm {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.highlight {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-glow);
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
}

/* ==========================================================================
   Global Layout & Backgrounds
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,%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)" opacity="0.05"/%3E%3C/svg%3E');
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  perspective: 1000px;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

.btn-primary::before {
  background: #fff;
}

/* ==========================================================================
   Header & Navigation (STRICTLY CONSISTENT)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(3, 3, 5, 0.85);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  filter: invert(1);
}

.main-nav .nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-cyan);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.hamburger .line {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s ease;
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .nav-links li a {
    font-size: 2rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (min-width: 993px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ==========================================================================
   Footer (STRICTLY CONSISTENT)
   ========================================================================== */
.site-footer {
  position: relative;
  background: #010102;
  padding: var(--spacing-lg) 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.footer-huge-text {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.footer-column p {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.footer-heading {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page Specific & Index Sections
   ========================================================================== */

/* Page Headers (Legal & Contact) */
.page-header-section {
  padding-top: 150px;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(
    circle at top right,
    rgba(0, 229, 255, 0.05),
    transparent 50%
  );
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

/* Legal Content Blocks */
.legal-content {
  padding: var(--spacing-md) 0;
}

.legal-content h2 {
  color: var(--accent-cyan);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.legal-content p,
.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 20px;
  list-style-type: square;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* INDEX: Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-purple);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  background: rgba(112, 0, 255, 0.1);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-3d-element {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hc-1 {
  width: 300px;
  height: 300px;
  animation: spin 20s linear infinite;
  border-top-color: var(--accent-cyan);
}
.hc-2 {
  width: 450px;
  height: 450px;
  animation: spin 30s linear infinite reverse;
  border-right-color: var(--accent-purple);
}
.hc-3 {
  width: 600px;
  height: 600px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* INDEX: Marquee */
.marquee-section {
  padding: 2rem 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 4rem;
  padding-right: 4rem;
}
.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marquee-item::before {
  content: "✦";
  color: var(--accent-purple);
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* INDEX: Bento Box Services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
  margin-top: 4rem;
}
.bento-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-item:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}
.bento-item::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(0, 229, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}
.bento-item:hover::before {
  opacity: 1;
}
.bento-content {
  position: relative;
  z-index: 1;
}
.bento-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}
.bento-item:hover .bento-icon {
  color: var(--accent-cyan);
  transform: scale(1.1);
}
.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.bento-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-fast);
}
.bento-item:hover p {
  transform: translateY(0);
  opacity: 1;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-tall {
  grid-row: span 2;
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 250px;
  }
  .bento-large,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-item p {
    transform: none;
    opacity: 1;
  }
}

/* INDEX: Interactive ROI Calculator */
.calculator-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a12 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.calc-wrapper {
  background: var(--bg-surface-light);
  border: 1px solid rgba(112, 0, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: 0 0 50px rgba(112, 0, 255, 0.1);
}
.calc-input-group {
  margin-bottom: 2rem;
}
.calc-input-group label {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-cyan);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}
.calc-value-display {
  text-align: right;
  font-size: 1.2rem;
  color: #fff;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}
.calc-result {
  text-align: center;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(0, 229, 255, 0.2);
}
.calc-result h4 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.result-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
}

/* INDEX: Sample Reports / UI Mockup */
.reports-dashboard {
  position: relative;
  width: 100%;
  height: 500px;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  overflow: hidden;
}
.dashboard-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.dash-dot:nth-child(1) {
  background: #ff5f56;
}
.dash-dot:nth-child(2) {
  background: #ffbd2e;
}
.dash-dot:nth-child(3) {
  background: #27c93f;
}
.dash-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.panel-large {
  grid-row: span 2;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: auto;
}
.bar {
  flex: 1;
  background: linear-gradient(0deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 4px 4px 0 0;
  height: 0%;
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-chart-svg {
  width: 100%;
  height: 100px;
}
.line-path {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

/* INDEX: Process Timeline */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  height: 100%;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.process-step {
  position: relative;
  padding-left: 120px;
  margin-bottom: 4rem;
}
.step-number {
  position: absolute;
  left: 25px;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  z-index: 2;
}
.process-step h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Contact Form Specifics */
.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}
.contact-form-wrapper {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1rem;
  font-family: var(--font-body);
  border-radius: 4px;
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}
.contact-info-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-info-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
