/* =========================
   GLOBAL BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #02000a;
  color: #f7f7ff;
}

/* Page background: radial depth (hex bg sits behind this) */
.page {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at top, #3b1675 0, transparent 55%),
    radial-gradient(circle at bottom, #14052e 0, transparent 55%),
    #02000a;
  overflow-x: hidden;
}

/* Removed old square grid overlay – replaced by animated hex background */

/* Containers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography helpers */

.heading-xs {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a8fe6;
}

.heading-xl {
  font-size: 32px;
  line-height: 1.1;
}

.heading-lg {
  font-size: 24px;
}

.text-muted {
  color: #b3acd6;
  font-size: 14px;
}

/* =========================
   LED STRIPS
   ========================= */

.led-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #9f6bff, #4d2fff, transparent);
  box-shadow: 0 0 22px rgba(159, 107, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.led-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #d0a9ff, transparent);
  transform: translateX(-100%);
  animation: ledSweep 6s linear infinite;
  opacity: 0.7;
}

@keyframes ledSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================
   HIGH-TECH HEX BACKGROUND
   ========================= */

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("images/hex-bg.jpg"); /* put your hex image here */
  background-size: cover;
  background-position: center;
  opacity: 0.33;
  filter: brightness(0.85) saturate(1.25);
  animation:
    hexDrift 24s ease-in-out infinite alternate,
    hexPulse 10s ease-in-out infinite;
}

/* Slow drift */
@keyframes hexDrift {
  0%   { transform: scale(1.08) translateX(-12px) translateY(-6px); }
  100% { transform: scale(1.08) translateX(12px) translateY(6px); }
}

/* Soft breathing glow */
@keyframes hexPulse {
  0%   { filter: brightness(0.85) saturate(1.25); }
  50%  { filter: brightness(1.0) saturate(1.45); }
  100% { filter: brightness(0.85) saturate(1.25); }
}

/* =========================
   HEADER / NAV
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(2, 0, 15, 0.96);
  border-bottom: 1px solid rgba(245, 240, 255, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(115, 95, 255, 0.9);
}

.logo-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.logo-text-main {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.logo-text-sub {
  font-size: 11px;
  color: #a19ad8;
}

/* Nav links */

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #c5c1ff;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.nav-links a:hover {
  color: #f5f3ff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a579ff, #4e31ff);
  box-shadow: 0 0 16px rgba(159, 107, 255, 0.9);
  transform: translateX(-50%);
  transition: width 0.18s ease-out;
}

.nav-links a.is-active::after {
  width: 30px;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #9d6dff, #4e31ff);
  color: #05030f;
  font-weight: 600;
  box-shadow: 0 0 32px rgba(153, 102, 255, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(173, 132, 255, 0.95);
}

.btn-outline {
  border: 1px solid #7c6aff;
  background: #05030f;
  color: #e9e7ff;
}

.btn-outline:hover {
  background: #0b071e;
}

/* =========================
   HERO (HOMEPAGE)
   ========================= */

.section {
  padding: 56px 0;
}

.hero {
  padding-top: 64px;
}

/* Make right side (before/after) wider */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-title span {
  display: block;
  color: #e5ddff;
}

.hero-text {
  font-size: 15px;
  color: #c2badf;
  max-width: 520px;
}

/* Feature row */

.feature-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: #05040b; /* matte black */
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 0 24px rgba(34, 16, 90, 0.8);
}

.feature-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

.feature-card-text {
  font-size: 13px;
  color: #b6aed8;
}

/* Hero CTAs */

.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Before / After */

.ba-wrap {
  background: #05040b; /* matte black */
  box-shadow: 0 0 30px rgba(34, 16, 90, 0.9);
  padding: 16px;
  border-radius: 0; /* square */
}

.ba-frame {
  position: relative;
  overflow: hidden;
  /* wider feel, slightly more cinematic */
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: #000;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* full coverage, no borders cutting off parts */
  transition: opacity 0.3s ease-out;
}

/* Default: show BEFORE */
.ba-image--after {
  opacity: 0;
}

/* Hover: show AFTER */
.ba-wrap:hover .ba-image--after {
  opacity: 1;
}

.ba-wrap:hover .ba-image--before {
  opacity: 0;
}

/* Purple “Before / After” label */
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #c4b5ff;
  background: rgba(76, 29, 149, 0.9);
  color: #f5f3ff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.9);
  transition: opacity 0.25s ease-out;
}

/* On hover: label disappears completely */
.ba-wrap:hover .ba-label {
  opacity: 0;
}

.ba-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #c2badf;
}

/* =========================
   STATS
   ========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat-card {
  background: #05040b;
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 0 26px rgba(34, 16, 90, 0.9);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9f96e6;
}

.stat-number {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  color: #e1d8ff;
}

.stat-text {
  margin-top: 6px;
  font-size: 13px;
  color: #c7bfeb;
}

.stats-source {
  margin-top: 10px;
  font-size: 11px;
  color: #9f96e6;
}

/* =========================
   TESTIMONIALS
   ========================= */

.testimonials-section {
  padding-bottom: 60px;
}

.testimonials-shell {
  background: #05040b;
  border-radius: 22px;
  box-shadow: 0 0 32px rgba(34, 16, 90, 0.9);
  padding: 22px 20px 20px;
  overflow: hidden;
}

.testimonial {
  display: none;
  font-size: 14px;
  color: #e4deff;
}

.testimonial-active {
  display: block;
}

.testimonial small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #b3a7ff;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-dot {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: #37324f;
}

.testimonial-dot.is-active {
  background: #d9ccff;
  box-shadow: 0 0 14px rgba(159, 107, 255, 0.8);
}

/* =========================
   OUR WORK (for original non-Tailwind pages if reused)
   ========================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.work-card {
  background: #05040b;
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: 0 0 26px rgba(34, 16, 90, 0.9);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(159, 107, 255, 0.9);
}

.work-thumb {
  background: radial-gradient(circle at top, #2c1f7c, #05040b);
  height: 160px;
  border-radius: 14px;
  margin-bottom: 10px;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: min(960px, 100% - 40px);
  max-height: calc(100vh - 80px);
  background: #05040b;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(159, 107, 255, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #241d46;
}

.modal-title {
  font-size: 15px;
}

.modal-close {
  cursor: pointer;
  font-size: 18px;
  color: #c9c3ff;
}

.modal-body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  font-size: 14px;
  color: #d7d1ff;
}

/* Mini-site sections inside modal */

.mini-site-section {
  padding: 14px 0;
  border-bottom: 1px solid #1c1636;
}

.mini-site-section:last-child {
  border-bottom: none;
}

/* =========================
   PROCESS
   ========================= */

.process-timeline {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.process-step {
  background: #05040b;
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 0 24px rgba(34, 16, 90, 0.9);
  position: relative;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: linear-gradient(#9d6dff, #4e31ff);
  opacity: 0.0;
  transition: opacity 0.16s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(159, 107, 255, 1);
}

.process-step:hover::before {
  opacity: 1;
}

.process-index {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a8fe6;
}

.process-title {
  font-size: 15px;
  margin-top: 4px;
}

.process-text {
  font-size: 13px;
  margin-top: 6px;
  color: #c7bfeb;
}

.process-meaning {
  margin-top: 6px;
  font-size: 12px;
  color: #ab9ff0;
}

/* =========================
   FAQ
   ========================= */

.faq-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #05040b;
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 0 20px rgba(34, 16, 90, 0.8);
  border: 1px solid #1d1739;
}

.faq-item[open] {
  box-shadow: 0 0 32px rgba(159, 107, 255, 1);
  border-color: #8e6dff;
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 18px;
  color: #b9aaff;
  margin-left: 8px;
}

.faq-body {
  margin-top: 8px;
  font-size: 13px;
  color: #d8d0ff;
}

/* =========================
   TALK TO US FORM
   ========================= */

.form-shell {
  background: #05040b;
  border-radius: 22px;
  padding: 20px 18px 18px;
  box-shadow: 0 0 32px rgba(34, 16, 90, 0.95);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row-two {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  display: block;
  font-size: 11px;
  color: #b5a8ff;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #29214a;
  background: #02000a; /* matte black */
  padding: 9px 11px;
  font-size: 13px;
  color: #f6f4ff;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #726aa0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #9d6dff;
  box-shadow: 0 0 0 1px rgba(157, 109, 255, 0.6);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: #02000a;
  border-top: 1px solid rgba(245, 240, 255, 0.06);
  font-size: 11px;
  color: #a89cff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 840px) {
  .nav-links {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 44px;
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
