@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap");

:root {
  --bg-main: #050507;
  --bg-secondary: #0a0a0e;
  --bg-tertiary: rgba(255, 255, 255, 0.03);
  --accent-primary: #6366f1; /* Neon Indigo */
  --accent-secondary: #06b6d4; /* Neon Cyan */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);

  --font-heading: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-width: 1400px;
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s ease;

  --glass-bg: rgba(10, 10, 14, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-blur: blur(12px);
}

/* ================= Reset & Base ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom Cursor */
}

/* Background Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  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");
  opacity: 0.03;
  pointer-events: none;
  z-index: 999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= Custom Cursor ================= */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  transition: transform 0.1s;
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
}
.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(99, 102, 241, 0.1);
  border-color: transparent;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
  border: none;
  cursor: none;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #fff;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-main);
}

/* ================= Header (Global) ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}
.site-header.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link img {
  height: 60px;
  object-fit: contain;
}
.main-nav ul {
  display: flex;
  gap: 2.5rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: var(--transition-smooth);
}
.main-nav a:hover {
  color: var(--text-primary);
}
.main-nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  padding: 10px;
  z-index: 1001;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}
.hamburger::before {
  content: "";
  transform: translateY(-8px);
}
.hamburger::after {
  content: "";
  transform: translateY(6px);
}

/* Mobile Menu */
@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    flex-direction: column;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .main-nav a {
    font-size: 2rem;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-toggle.active .hamburger {
    background: transparent;
  }
  .mobile-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
  }
  .mobile-toggle.active .hamburger::after {
    transform: translateY(-2px) rotate(-45deg);
  }
}

/* ================= Footer (Global) ================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: var(--glass-border);
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 300px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}
.footer-brand .logo {
  height: 50px;
  margin-bottom: 1.5rem;
}
.footer-desc {
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 2rem;
}
.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-secondary);
  padding-left: 5px;
}
.contact-info li {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  align-items: flex-start;
}
.contact-info svg {
  width: 20px;
  fill: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 5px;
}
.footer-bottom {
  border-top: var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ================= Animations (Scroll Reveal) ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* ================= Page Header (Legal & Contact) ================= */
.page-header {
  padding: 15rem 0 5rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: var(--glass-border);
  position: relative;
  overflow: hidden;
}
.page-title {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.page-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ================= Legal Content Pages ================= */
.legal-content {
  padding: 6rem 0;
}
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 4rem;
  border-radius: 20px;
  border: var(--glass-border);
}
.legal-wrapper h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.legal-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .legal-wrapper {
    padding: 2rem;
  }
}

/* ================= Sections (Index) ================= */

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 50%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
}
.hero-title {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}
.hero-3d-element {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40vw;
  height: 40vw;
  z-index: 1;
  perspective: 1000px;
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
}
@keyframes rotate {
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  margin: -100px 0 0 -100px;
  border: 2px solid var(--accent-primary);
  background: rgba(6, 182, 212, 0.05);
  backdrop-filter: blur(5px);
}
.front {
  transform: rotateY(0deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@media (max-width: 992px) {
  .hero-3d-element {
    display: none;
  }
}

/* Marquee / Intro */
.marquee-section {
  padding: 3rem 0;
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
  overflow: hidden;
  background: var(--bg-secondary);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-item {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-color);
  text-transform: uppercase;
  padding: 0 3rem;
}
.marquee-item span {
  color: var(--accent-secondary);
  -webkit-text-stroke: 0;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Services Section */
.section-padding {
  padding: 10rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-secondary);
  border: var(--glass-border);
  padding: 3rem;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.service-icon svg {
  width: 30px;
  fill: var(--accent-secondary);
}
.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.service-hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
  transform: scale(1.1);
  filter: grayscale(100%);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}
.service-card:hover .service-hover-img {
  opacity: 0.2;
  transform: scale(1);
}

/* Interactive Calculator */
.calc-section {
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}
.calc-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 30px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.calc-input-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 5px;
  outline: none;
  margin-bottom: 2rem;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-secondary);
  cursor: pointer;
}
.calc-val-display {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-weight: bold;
  margin-bottom: 2rem;
  display: block;
}
.calc-results {
  background: var(--bg-main);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.result-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}
.result-item:last-child {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.result-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-value {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

@media (max-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

/* Reports Visualization Section */
.report-vis {
  display: flex;
  gap: 2rem;
  height: 400px;
  align-items: flex-end;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: var(--glass-border);
}
.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.bar {
  width: 100%;
  background: linear-gradient(
    to top,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 8px 8px 0 0;
  height: 0;
  transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.report-vis.active .bar-1 {
  height: 40%;
}
.report-vis.active .bar-2 {
  height: 65%;
}
.report-vis.active .bar-3 {
  height: 85%;
}
.report-vis.active .bar-4 {
  height: 100%;
}
.bar-label {
  color: var(--text-secondary);
  font-family: var(--font-heading);
}

/* Industries Scroll */
.industries {
  overflow: hidden;
  padding: 5rem 0;
}
.ind-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
}
.ind-card {
  padding: 2rem 4rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.ind-card:hover {
  background: var(--text-primary);
  color: var(--bg-main);
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 20px;
  border: var(--glass-border);
}
.quote-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.5;
  margin-bottom: 1rem;
  line-height: 1;
  font-family: serif;
}
.testi-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-style: italic;
}
.testi-author h4 {
  color: var(--text-primary);
}
.testi-author p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
@media (max-width: 992px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Global CTA */
.cta-section {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  border-top: var(--glass-border);
}
.cta-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 60%
  );
  z-index: -1;
}
.cta-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 2rem;
}

/* Contact Page Specific Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info-panel h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}
.info-block {
  margin-bottom: 2rem;
}
.info-block h3 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.info-block p {
  font-size: 1.2rem;
}
.contact-form {
  background: var(--bg-secondary);
  padding: 4rem;
  border-radius: 20px;
  border: var(--glass-border);
}
.form-group {
  margin-bottom: 2rem;
  position: relative;
}
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-bottom-color: var(--accent-primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-secondary);
  pointer-events: none;
  transition: 0.3s ease all;
}
.form-control:focus ~ .form-label,
.form-control:valid ~ .form-label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--accent-primary);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 2rem;
  }
}

/* Live Chat Bubble (UI Only) */
.live-chat-ui {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  cursor: none;
  transition: var(--transition-fast);
}
.chat-btn:hover {
  transform: scale(1.1);
  background: var(--accent-secondary);
}
.chat-btn svg {
  width: 30px;
  fill: #fff;
}
