@import url('images/image_5.jpg');

:root {
  --midnight: #05040b;
  --void: #0b0615;
  --panel: rgba(20, 10, 38, 0.82);
  --panel-strong: rgba(32, 13, 58, 0.94);
  --purple: #24104a;
  --magenta: #ff2bd6;
  --cyan: #20f7ff;
  --blue: #2387ff;
  --text: #f6f2ff;
  --muted: #c8bce4;
  --line: rgba(32, 247, 255, 0.34);
  --line-magenta: rgba(255, 43, 214, 0.38);
  --shadow-cyan: 0 0 28px rgba(32, 247, 255, 0.24);
  --shadow-magenta: 0 0 34px rgba(255, 43, 214, 0.22);
  --max-width: 1180px;
  --hero-padding: clamp(7rem, 10vw, 10rem);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Exo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 43, 214, 0.22), transparent 29%),
    radial-gradient(circle at 82% 16%, rgba(32, 247, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--midnight), #090516 45%, #020107 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(32, 247, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(32, 247, 255, 0.08) 44%, transparent 48%),
    linear-gradient(295deg, transparent 0%, rgba(255, 43, 214, 0.075) 62%, transparent 66%);
  animation: lightPulse 8s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(5, 4, 11, 0.94), rgba(5, 4, 11, 0.68));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(32, 247, 255, 0.18);
}

.navbar {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: "Audiowide", "Orbitron", sans-serif;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(32, 247, 255, 0.72);
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: var(--shadow-cyan);
}

.nav-toggle {
  display: none;
  color: var(--text);
  background: rgba(32, 247, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  text-decoration: none;
  color: var(--muted);
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 43, 214, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 214, 0.26), 0 0 16px rgba(255, 43, 214, 0.16);
  outline: none;
}

.section-panel {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  position: relative;
}

.hero {
  min-height: 100vh;
  padding-top: var(--hero-padding);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy,
.section-heading,
.demo-console,
.carousel,
.support-grid,
.team-block,
.gallery-block,
.faq-block,
.site-footer {
  position: relative;
}

.hero-copy::before,
.section-heading::before,
.demo-console::before,
.carousel::before,
.neon-card::before,
.zoom-card::before,
.faq-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(32, 247, 255, 0.11), transparent 28%, rgba(255, 43, 214, 0.1) 78%, transparent);
  opacity: 1;.85;
}

.hero-copy {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 7, 28, 0.9), rgba(34, 11, 58, 0.66));
  border-radius: var(--radius);
  padding: clamp(1.35rem, 4vw, 3rem);
  box-shadow: var(--shadow-cyan), inset 0 0 45px rgba(255, 43, 214, 0.07);
}

.eyebrow,
.panel-label,
.subsection-kicker {
  margin: 0 0 0.85rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(32, 247, 255, 0.55);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", "Audiowide", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  max-width: 980px;
  animation: glitchFlicker 6.5s linear infinite;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.subsection-copy,
.faq-intro p {
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.neon-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.neon-link {
  color: #05040b;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 24px rgba(32, 247, 255, 0.28), 0 0 32px rgba(255, 43, 214, 0.2);
}

.ghost-link {
  color: var(--text);
  border: 1px solid var(--line-magenta);
  background: rgba(255, 43, 214, 0.07);
}

.neon-link:hover,
.ghost-link:hover,
.neon-link:focus-visible,
.ghost-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 0 30px rgba(32, 247, 255, 0.42), 0 0 42px rgba(255, 43, 214, 0.28);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-magenta);
  background: var(--panel);
  box-shadow: var(--shadow-magenta);
  transform: translateY(1.2rem);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.24) contrast(1.12) hue-rotate(18deg);
}

.hero-visual figcaption {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 43, 214, 0.18);
}

.section-heading,
.demo-console,
.carousel,
.team-block,
.gallery-block,
.faq-block {
  border: 1px solid rgba(32, 247, 255, 0.22);
  background: linear-gradient(145deg, rgba(15, 7, 28, 0.78), rgba(10, 5, 20, 0.92));
  border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 2.4rem);
  box-shadow: inset 0 0 60px rgba(35, 135, 255, 0.05);
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.neon-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(255, 43, 214, 0.24);
  background:
    linear-gradient(145deg, rgba(32, 13, 58, 0.8), rgba(7, 4, 15, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(32, 247, 255, 0.13), transparent 34%);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.1);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.neon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 247, 255, 0.52);
  box-shadow: var(--shadow-cyan);
}

.neon-card h3 {
  margin-bottom: 0.8rem;
}

.neon-card p {
  margin-bottom: 0;
}

.neon-card.compact {
  border-color: rgba(32, 247, 255, 0.25);
}

.demo-console {
  margin-top: 1rem;
  border-color: rgba(255, 43, 214, 0.26);
}

.tab-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button,
.carousel-control,
.carousel-dot,
.faq-question,
.zoom-toggle {
  color: var(--text);
  background: rgba(32, 247, 255, 0.07);
  border: 1px solid rgba(32, 247, 255, 0.28);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.active,
.carousel-control:hover,
.carousel-control:focus-visible,
.faq-question:hover,
.faq-question:focus-visible,
.zoom-toggle:hover,
.zoom-toggle:focus-visible {
  background: rgba(255, 43, 214, 0.15);
  border-color: rgba(255, 43, 214, 0.58);
  box-shadow: var(--shadow-magenta);
  outline: none;
}

.tab-pane {
  display: none;
  border: 1px solid rgba(32, 247, 255, 0.18);
  border-radius: calc(var(--radius) - 6px);
  padding: 1.25rem;
  background:
    linear-gradient(100deg, rgba(6, 4, 14, 0.95), rgba(25, 9, 47, 0.88)),
    repeating-linear-gradient(90deg, rgba(32, 247, 255, 0.04) 0 1px, transparent 1px 18px);
}

.tab-pane.active {
  display: grid;
  gap: 1rem;
  animation: fadeUp 320ms ease both;
}

.demo-text p:last-child {
  margin-bottom: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric-strip span {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(32, 247, 255, 0.2);
  border-radius: 16px;
  padding: 0.8rem;
  color: var(--text);
  background: rgba(32, 247, 255, 0.06);
}

.carousel {
  overflow: hidden;
  min-height: 360px;
}

.carousel-track {
  position: relative;
  min-height: 220px;
}

.testimonial {
  display: none;
  padding: 1.5rem clamp(1.2rem, 6vw, 4.5rem);
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: fadeUp 360ms ease both;
}

.quote {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--text);
  line-height: 1.55;
  margin-top: 0;
}

.client-name {
  margin-bottom: 0.2rem;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
}

.client-context {
  margin-top: 0;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  background: rgba(200, 188, 228, 0.28);
}

.carousel-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(32, 247, 255, 0.72);
}

.support-grid,
.team-block,
.gallery-block,
.faq-block {
  margin-top: 1.2rem;
}

.subsection-kicker {
  margin-top: 0;
}

.subsection-copy {
  margin-top: 0;
}

.gallery-grid {
  align-items: stretch;
}

.zoom-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 247, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(5, 4, 11, 0.82);
  box-shadow: var(--shadow-cyan);
}

.zoom-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
  filter: saturate(1.15) contrast(1.08);
}

.zoom-card.zoomed img {
  transform: scale(1.85);
  cursor: crosshair;
}

.zoom-card figcaption {
  padding: 0.95rem 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(32, 247, 255, 0.16);
}

.zoom-toggle {
  margin: 0 1rem 1rem;
}

.faq-intro {
  margin-bottom: 1rem;
}

.faq-intro h3 {
  margin-bottom: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(255, 43, 214, 0.23);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 4, 15, 0.78);
}

.faq-question {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 1rem 1.1rem;
  background: rgba(32, 247, 255, 0.06);
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-answer p {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto 1rem;
  border: 1px solid rgba(32, 247, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(5, 4, 11, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  max-width: 820px;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--cyan);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
}

@keyframes lightPulse {
  0% {
    opacity: 1;.44;
    transform: translate3d(-1%, -1%, 0);
  }
  100% {
    opacity: 1;.92;
    transform: translate3d(1%, 1%, 0);
  }
}

@keyframes glitchFlicker {
  0%, 92%, 100% {
    text-shadow: 0 0 18px rgba(32, 247, 255, 0.28), 0 0 30px rgba(255, 43, 214, 0.2);
  }
  93% {
    text-shadow: 2px 0 0 rgba(255, 43, 214, 0.7), -2px 0 0 rgba(32, 247, 255, 0.7);
  }
  94% {
    text-shadow: -1px 0 0 rgba(255, 43, 214, 0.6), 1px 0 0 rgba(32, 247, 255, 0.6);
  }
  95% {
    text-shadow: 0 0 18px rgba(32, 247, 255, 0.28), 0 0 30px rgba(255, 43, 214, 0.2);
  }
}

@keyframes fadeUp {
  from {
    opacity: 1;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(32, 247, 255, 0.22);
    border-radius: 20px;
    background: rgba(5, 4, 11, 0.96);
    box-shadow: var(--shadow-cyan);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .carousel {
    min-height: 420px;
  }

  .carousel-control {
    top: auto;
    bottom: 3.1rem;
    transform: none;
  }

  .carousel-control.prev {
    left: 1rem;
  }

  .carousel-control.next {
    right: 1rem;
  }

  .testimonial {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --hero-padding: 6.4rem;
  }

  .section-panel,
  .site-footer {
    width: min(100% - 1rem, var(--max-width));
  }

  .hero-copy,
  .section-heading,
  .demo-console,
  .carousel,
  .team-block,
  .gallery-block,
  .faq-block {
    padding: 1rem;
  }

  .hero-actions,
  .tab-buttons {
    flex-direction: column;
  }

  .neon-link,
  .ghost-link,
  .tab-button {
    width: 100%;
  }

  .carousel {
    min-height: 500px;
  }

  .carousel-control {
    padding: 0.65rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Enhanced: Missing animation classes from JS */
.animate-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
