/* ========================================
   C-innova — Futuristic Dark Theme
   ======================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Dynamic RGB base channels */
  --cyan-rgb: 0, 229, 255;
  --bg-primary-rgb: 6, 11, 24;
  --purple-rgb: 124, 77, 255;

  /* Core palette */
  --bg-primary: #060b18;
  --bg-secondary: #0a1128;
  --bg-card: #0d1530;
  --bg-card-hover: #111d42;

  /* Accent */
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --blue: #2979ff;
  --blue-dim: #1565c0;
  --purple: #7c4dff;

  /* Text */
  --text-primary: #eaf0ff;
  --text-secondary: #8a9bc2;
  --text-muted: #4a5f8a;

  /* Gradients */
  --gradient-cyan: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(var(--cyan-rgb), .25) 0%, rgba(41, 121, 255, .08) 100%);
  --gradient-card: linear-gradient(160deg, rgba(var(--cyan-rgb), .06) 0%, transparent 50%);

  /* Sizes */
  --container-max: 1200px;
  --header-h: 120px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(var(--cyan-rgb), .12);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, .35);

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

[data-theme="light"] {
  /* Base channels */
  --cyan-rgb: 0, 150, 180;
  --bg-primary-rgb: 248, 251, 255;
  --purple-rgb: 96, 53, 207;

  /* Core palette */
  --bg-primary: #f8fbff;
  --bg-secondary: #eef3fa;
  --bg-card: #ffffff;
  --bg-card-hover: #eaf1fa;

  /* Accent */
  --cyan: #0096b4;
  --cyan-dim: #00829e;
  --blue: #1d59cc;
  --blue-dim: #1545a0;
  --purple: #6035cf;

  /* Text */
  --text-primary: #060b18;
  --text-secondary: #3b4e78;
  --text-muted: #6a7c9f;

  /* Shadows & Gradients adjustments for explicit readability */
  --shadow-glow: 0 4px 20px rgba(var(--cyan-rgb), .15);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, .08);
  --gradient-glow: linear-gradient(135deg, rgba(var(--cyan-rgb), .15) 0%, rgba(29, 89, 204, .08) 100%);
  --gradient-card: linear-gradient(160deg, rgba(var(--cyan-rgb), .05) 0%, transparent 50%);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- UTILITY ---------- */
.gradient-text {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), .08);
  border: 1px solid rgba(var(--cyan-rgb), .15);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-description {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .35s var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 24px rgba(var(--cyan-rgb), .3);
}

.btn--primary:hover {
  box-shadow: 0 0 40px rgba(var(--cyan-rgb), .5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid rgba(var(--cyan-rgb), .35);
}

.btn--outline:hover {
  background: rgba(var(--cyan-rgb), .08);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

.navbar.scrolled {
  background: rgba(var(--bg-primary-rgb), .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(var(--cyan-rgb), .08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar__logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* In light mode: invert turns white→black, hue-rotate(180deg) restores cyan/blue colors */
:root[data-theme="light"] .navbar__logo-img {
  filter: invert(1) hue-rotate(180deg);
}

.navbar__links {
  display: flex;
  gap: 36px;
}

.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .3s var(--ease);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .3s var(--ease);
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.theme-toggle:hover {
  background: rgba(var(--cyan-rgb), 0.1);
  color: var(--cyan);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

:root[data-theme="light"] .sun-icon {
  display: none;
}

:root[data-theme="light"] .moon-icon {
  display: block;
}

:root:not([data-theme="light"]) .sun-icon {
  display: block;
}

:root:not([data-theme="light"]) .moon-icon {
  display: none;
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 120px;
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(var(--bg-primary-rgb), .5) 0%,
      rgba(var(--bg-primary-rgb), .7) 50%,
      var(--bg-primary) 100%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb), .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb), .03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Particles container */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero__badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), .06);
  border: 1px solid rgba(var(--cyan-rgb), .15);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown .8s var(--ease) both;
}

.hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeInDown .8s .15s var(--ease) both;
}

.hero__logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

:root[data-theme="light"] .hero__logo {
  filter: invert(1) hue-rotate(180deg);
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  animation: fadeInDown .8s .15s var(--ease) both;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--cyan-dim);
  margin-bottom: 16px;
  animation: fadeInDown .8s .3s var(--ease) both;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  animation: fadeInDown .8s .45s var(--ease) both;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInDown .8s .6s var(--ease) both;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 60px;
  animation: fadeInDown .8s .75s var(--ease) both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero__stat-plus {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
}

.hero__stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(var(--cyan-rgb), .25), transparent);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeInDown .8s .9s var(--ease) both;
}

.hero__scroll-indicator span {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2s infinite;
}

/* ==============================
   ABOUT
   ============================== */
.about {
  padding: 120px 0;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), .15), transparent);
}

.about__content {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

/* Highlight cards */
.about__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(var(--cyan-rgb), .08);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  overflow: hidden;
  transition: all .4s var(--ease);
}

.highlight-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(var(--cyan-rgb), .2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.highlight-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--cyan-rgb), .06);
  border: 1px solid rgba(var(--cyan-rgb), .12);
  border-radius: 14px;
  color: var(--cyan);
}

.highlight-card__icon svg {
  width: 26px;
  height: 26px;
}

.highlight-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.highlight-card__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(var(--cyan-rgb), .04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.highlight-card:hover .highlight-card__glow {
  opacity: 1;
}

/* ==============================
   INDUSTRIES
   ============================== */
.industries {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
}

.industries::before,
.industries::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), .15), transparent);
}

.industries::before {
  top: 0;
}

.industries::after {
  bottom: 0;
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(var(--cyan-rgb), .1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cyan-rgb), .3);
  box-shadow: var(--shadow-glow);
}

.industry-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.industry-card__title-bar {
  background: rgba(var(--cyan-rgb), .15);
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .05);
  border-top: 1px solid rgba(var(--cyan-rgb), .05);
}

.industry-card__title-bar h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.industry-card__content {
  padding: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card__content p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ==============================
   CUSTOMERS
   ============================== */
.customers {
  padding: 120px 0;
  position: relative;
}

.customers__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.customers__track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.customer-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 90px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--cyan-rgb), .06);
  border-radius: var(--radius-sm);
  transition: all .4s var(--ease);
}

.customer-logo:hover {
  border-color: rgba(var(--cyan-rgb), .2);
  box-shadow: var(--shadow-glow);
}

.customer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}

.customer-logo:hover span {
  color: var(--cyan);
}

/* ==============================
   CTA
   ============================== */
.cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cta__bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.cta__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--cyan-rgb), .08);
  top: -200px;
  right: -100px;
}

.cta__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(var(--purple-rgb), .06);
  bottom: -150px;
  left: -100px;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.cta__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  padding: 80px 0 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(var(--cyan-rgb), .06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--cyan-rgb), .06);
  border: 1px solid rgba(var(--cyan-rgb), .1);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all .3s var(--ease);
}

.footer__social-link:hover {
  color: var(--cyan);
  border-color: rgba(var(--cyan-rgb), .3);
  transform: translateY(-3px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__links-group h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer__links-group li {
  margin-bottom: 12px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer__links-group a {
  transition: color .3s var(--ease);
}

.footer__links-group a:hover {
  color: var(--cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(var(--cyan-rgb), .06);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating particle */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(.5);
  }

  15% {
    opacity: .6;
  }

  85% {
    opacity: .6;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .about__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .navbar__logo-img {
    height: 60px;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-primary-rgb), .97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    display: none;
    z-index: 999;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links a {
    font-size: 1.4rem;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1001;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-number {
    font-size: 2rem;
  }

  .about__cards {
    grid-template-columns: 1fr 1fr;
  }

  .industries__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {

  .about__cards,
  .industries__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero__stat-divider {
    width: 48px;
    height: 1px;
  }

  .hero__buttons,
  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }
}