/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - White + Soft Gradients */
  --bg-base: #f4f7fb;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #8b5cf6;
  --accent: #0ea5e9;

  /* Glass Properties */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-bg-hover: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  --glass-blur: blur(16px);

  /* Dark Glass for Logo Contrast */
  --dark-glass-bg: rgba(15, 23, 42, 0.8);
  --dark-glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Animation Variables updated by JS */
  --mouseX: 0deg;
  --mouseY: 0deg;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* ==========================================================================
   BACKGROUND ANIMATED BLOBS (STORYTELLING LAYERS)
   ========================================================================== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: rgba(59, 130, 246, 0.3);
  animation-delay: 0s;
}
.blob-2 {
  top: 40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(139, 92, 246, 0.3);
  animation-delay: -5s;
}
.blob-3 {
  bottom: -20%;
  left: 20%;
  width: 70vw;
  height: 70vw;
  background: rgba(14, 165, 233, 0.3);
  animation-delay: -10s;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.display-1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.display-2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.display-3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 8rem 0;
}
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.glass-panel:hover::before {
  left: 200%;
}
.glass-panel:hover {
  transform: translateY(-10px) translateZ(20px);
  box-shadow: 0 15px 45px rgba(31, 38, 135, 0.1);
  background: var(--glass-bg-hover);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* ==========================================================================
   STRICT HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  max-height: 60px;
  display: block;
  filter: invert();
}
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  font-family: var(--font-heading);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle .bar {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 999;
  padding: 6rem 2rem;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main);
}

@media (max-width: 992px) {
  .nav-list,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   SCROLL REVEAL & PARALLAX AWWWARDS EFFECTS
   ========================================================================== */
.scene-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.reveal-z {
  opacity: 0;
  transform: translateZ(-100px) translateY(50px) rotateX(-10deg);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-z.visible {
  opacity: 1;
  transform: translateZ(0) translateY(0) rotateX(0deg);
}

.parallax-layer {
  transition: transform 0.1s linear;
  transform: translateX(var(--mouseX)) translateY(var(--mouseY));
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-glass {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 500px;
}

/* 3D Dashboard Mockup inside Hero */
.dashboard-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg);
  transform-style: preserve-3d;
  animation: floatDashboard 6s infinite alternate ease-in-out;
}

.dash-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transform: translateZ(50px);
}

.dash-bar {
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
  margin-bottom: 1rem;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0;
  animation: fillBar 2s forwards 1s;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   REPORTS / DATA VISUALIZATION SECTION
   ========================================================================== */
.reports-glass {
  position: relative;
  z-index: 2;
}
.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 200px;
  margin-top: 2rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 1rem;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 8px 8px 0 0;
  transition: height 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 0;
  position: relative;
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-main);
  opacity: 0;
  transition: opacity 0.5s 1.5s;
}

.reveal-z.visible .chart-bar {
  height: var(--target-height);
}
.reveal-z.visible .chart-bar::after {
  opacity: 1;
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group label {
  font-family: var(--font-heading);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.revenue-output {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
}

/* ==========================================================================
   INDUSTRIES & TESTIMONIALS
   ========================================================================== */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}
.pill {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  transition: 0.3s ease;
}
.pill:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.testimonial-card p {
  font-style: italic;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  border: 1px solid var(--glass-border);
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}
.legal-content p {
  margin-bottom: 1.5rem;
}
.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.page-header {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   STRICT FOOTER
   ========================================================================== */
.site-footer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  padding: 6rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  pointer-events: none;
}
.chat-panel.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  font-family: var(--font-heading);
}
.chat-body {
  padding: 1.5rem;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.chat-input {
  display: flex;
  border-top: 1px solid var(--glass-border);
}
.chat-input input {
  flex: 1;
  border: none;
  padding: 1rem;
  background: transparent;
  outline: none;
}
.chat-input button {
  background: transparent;
  border: none;
  padding: 0 1rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

@keyframes floatDashboard {
  0% {
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg)
      translateY(0);
  }
  100% {
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg)
      translateY(-20px);
  }
}

@keyframes fillBar {
  to {
    width: 80%;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .calc-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 350px;
  }
  .dashboard-mockup {
    width: 100%;
    transform: translate(-50%, -50%) rotateY(0) rotateX(0);
    animation: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-padding {
    padding: 4rem 0;
  }
  .display-1 {
    font-size: 2.5rem;
  }
}
