/* ==========================================================================
   CSS VARIABLES & THEME SETUP (Neon Flow Pro)
   ========================================================================== */
@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 {
  /* Core Colors */
  --bg-base: #0f172a;
  --bg-surface: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.4);

  /* Accents & Gradients */
  --neon-cyan: #00e5ff;
  --neon-purple: #8b5cf6;
  --neon-pink: #f472b6;
  --gradient-primary: linear-gradient(
    135deg,
    var(--neon-cyan),
    var(--neon-purple)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--neon-purple),
    var(--neon-pink)
  );
  --gradient-glow: linear-gradient(90deg, #00e5ff, #8b5cf6, #f472b6, #00e5ff);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
      RESET & BASE
      ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Custom Cursor enabled */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 5px;
  border: 1px solid var(--border-glass);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Selection */
::selection {
  background: var(--neon-cyan);
  color: var(--bg-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
      CUSTOM CURSOR
      ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-cyan);
  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: 1px solid rgba(0, 229, 255, 0.5);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
  transition-timing-function: ease-out;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
  opacity: 1;
}

/* ==========================================================================
      PRELOADER
      ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-base);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
      GLOBAL BACKGROUND EFFECTS (Glowing Orbs)
      ========================================================================== */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 10s infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-purple);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--neon-cyan);
  bottom: 20%;
  right: -50px;
  animation-delay: -5s;
}
.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--neon-pink);
  top: 40%;
  left: 30%;
  filter: blur(100px);
  opacity: 0.2;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* ==========================================================================
      TYPOGRAPHY & UTILITIES
      ========================================================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-base);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--shadow-glow-cyan);
}

/* ==========================================================================
      HEADER (STRICT CONSISTENCY - USED ON ALL PAGES)
      ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  filter: brightness(0) invert(1); /* Ensure white logo visibility */
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

/* ==========================================================================
      HERO SECTION (Index Page)
      ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* 3D Visual Element in Hero */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  perspective: 1000px;
  z-index: 1;
}

.cube-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 150px;
  left: 150px;
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
}

.face-front {
  transform: translateZ(100px);
}
.face-back {
  transform: rotateY(180deg) translateZ(100px);
  border-color: var(--neon-purple);
}
.face-right {
  transform: rotateY(90deg) translateZ(100px);
}
.face-left {
  transform: rotateY(-90deg) translateZ(100px);
  border-color: var(--neon-pink);
}
.face-top {
  transform: rotateX(90deg) translateZ(100px);
}
.face-bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* ==========================================================================
      SERVICES SECTION
      ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d; /* For JS Tilt */
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--neon-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  gap: 10px;
}

/* ==========================================================================
      INTERACTIVE CALCULATOR SECTION
      ========================================================================== */
.calculator-section {
  background: linear-gradient(to bottom, var(--bg-base), var(--bg-surface));
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.calc-result-box {
  text-align: center;
  padding: 2rem;
  background: var(--bg-glass);
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-top: 2rem;
}

.result-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
      SAMPLE REPORTS / ANALYTICS UI SECTION
      ========================================================================== */
.analytics-showcase {
  position: relative;
  padding: 4rem 0;
}

.dashboard-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.dash-header {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}
.dash-dot:nth-child(2) {
  background: #f59e0b;
}
.dash-dot:nth-child(3) {
  background: #10b981;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dash-card {
  background: var(--bg-base);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.dash-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.dash-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* Fake Chart */
.chart-bar-container {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 20px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 5px 5px 0 0;
  animation: growBar 2s ease-out forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
      TESTIMONIALS SECTION
      ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testi-card {
  background: var(--bg-glass);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
  line-height: 1;
}

.testi-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}
.author-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--neon-pink);
}

/* ==========================================================================
      CONTACT CTA SECTION
      ========================================================================== */
.cta-section {
  text-align: center;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.1), transparent);
  border-top: 1px solid var(--border-glass);
}

.cta-box {
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 h 80 v 80 h -80 Z" fill="none" stroke="rgba(0,229,255,0.05)" stroke-width="1"/></svg>');
  padding: 5rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--neon-cyan);
  box-shadow: inset 0 0 50px rgba(0, 229, 255, 0.1);
}

/* ==========================================================================
      FOOTER (STRICT CONSISTENCY - USED ON ALL PAGES)
      ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--neon-cyan);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.social-icon:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px);
  color: var(--bg-base);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a:hover {
  color: var(--neon-pink);
}

/* ==========================================================================
      LEGAL PAGES & CONTACT PAGES (Inner Pages)
      ========================================================================== */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 229, 255, 0.05), transparent);
  border-bottom: 1px solid var(--border-glass);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-glass);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.legal-content h2 {
  margin-top: 2.5rem;
  color: var(--neon-cyan);
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Contact Page specific */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-card i {
  font-size: 2rem;
  color: var(--neon-pink);
}

/* ==========================================================================
      ANIMATIONS & UTILITIES (Scroll Reveal)
      ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Live Chat Placeholder */
.live-chat-btn {
  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;
  color: var(--bg-base);
  box-shadow: var(--shadow-glow-cyan);
  z-index: 999;
  transition: var(--transition-bounce);
}

.live-chat-btn:hover {
  transform: scale(1.1);
}

/* ==========================================================================
      RESPONSIVE DESIGN
      ========================================================================== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .calc-container,
  .footer-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
  }
  .main-nav.open {
    right: 0;
  }
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  .header-actions {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .legal-content {
    padding: 2rem;
  }
  .footer-grid {
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  } /* Disable custom cursor on mobile */
  * {
    cursor: auto;
  }
}
