:root {
  --bg: #03060d;
  --bg-soft: rgba(10, 15, 27, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #aab3c5;
  --accent: #8ec5ff;
  --accent-strong: #d8ecff;
  --brand-violet: #8a7dff;
  --brand-cyan: #7de7ff;
  --brand-glow: rgba(125, 231, 255, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::selection {
  background: rgba(142, 197, 255, 0.32);
  color: #fff;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: #ffffff;
  color: #020409;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2100;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet));
  box-shadow: 0 0 18px rgba(125, 231, 255, 0.45);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.34), rgba(1, 2, 6, 0.78)),
    radial-gradient(circle at top left, rgba(66, 133, 244, 0.14), transparent 0 32%),
    radial-gradient(circle at bottom right, rgba(120, 119, 198, 0.12), transparent 0 30%),
    url('./assets/user-bg.svg') center/cover no-repeat;
}

.floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -10vh;
  left: 0;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(125, 231, 255, 0.68) 45%, transparent 72%);
  box-shadow: 0 0 18px rgba(125, 231, 255, 0.26);
  opacity: 0;
  animation: floatParticle var(--duration, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.bg-layer,
.circuit-overlay {
  position: absolute;
  inset: -8%;
  will-change: transform;
}

.bg-layer-1 {
  background:
    radial-gradient(circle at 30% 30%, rgba(142, 197, 255, 0.16), transparent 0 18%),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.06), transparent 0 16%);
  filter: blur(10px);
}

.bg-layer-2 {
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

.circuit-overlay {
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,0.16) 8% 8.15%, transparent 8.15% 100%),
    linear-gradient(transparent 0 12%, rgba(255,255,255,0.08) 12% 12.15%, transparent 12.15% 100%),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,0.05) 90px 91px, transparent 91px 180px),
    repeating-linear-gradient(transparent 0 96px, rgba(255,255,255,0.04) 96px 97px, transparent 97px 192px);
  mix-blend-mode: screen;
}

.navbar {
  background: rgba(3, 6, 13, 0.42);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: rgba(3, 6, 13, 0.82);
  border-bottom-color: rgba(142, 197, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-link {
  color: rgba(255,255,255,0.82) !important;
}

.nav-link:hover {
  color: #fff !important;
}

.hero-intro {
  padding: 8rem 0 3rem;
  position: relative;
}

.hero-intro::after {
  content: '';
  position: absolute;
  inset: 6% 18% auto;
  height: 240px;
  background: radial-gradient(circle, var(--brand-glow), transparent 68%);
  filter: blur(30px);
  z-index: -1;
  animation: driftGlow 8s ease-in-out infinite alternate;
}

.hero-chip,
.section-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 231, 255, 0.18);
  background: rgba(125, 231, 255, 0.05);
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: inset 0 0 12px rgba(125, 231, 255, 0.06);
}

.hero-title {
  max-width: 980px;
  margin: 1rem auto;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.05;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, var(--brand-cyan) 52%, #cdbaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions .btn,
.btn-light,
.btn-outline-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-actions .btn::before,
.btn-light::before,
.btn-outline-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.42) 50%, transparent 80%);
  transform: translateX(-130%);
  animation: shineSweep 4.4s linear infinite;
  z-index: -1;
}

.hero-actions .btn:hover,
.btn-light:hover,
.btn-outline-light:hover {
  transform: translateY(-3px) scale(1.01);
}

.btn-light {
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}

.btn-cta-primary {
  background: linear-gradient(90deg, #fefeff 0%, #bff2ff 100%);
  color: #05111d;
  border: 0;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(125, 231, 255, 0.22);
}

.btn-cta-secondary {
  border-color: rgba(125, 231, 255, 0.42);
  box-shadow: 0 10px 28px rgba(125, 231, 255, 0.08);
}

.btn-cta-primary:hover {
  box-shadow: 0 16px 40px rgba(125, 231, 255, 0.28);
  color: #05111d;
}

.btn-outline-light:hover,
.btn-cta-secondary:hover {
  box-shadow: 0 10px 28px rgba(142, 197, 255, 0.18);
}

.hero-note {
  margin-bottom: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.hero-chip {
  animation: floatSoft 5.8s ease-in-out infinite;
}

.brand-badges span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  animation: floatSoft 5.2s ease-in-out infinite;
}

.brand-badges span:nth-child(2) {
  animation-delay: 0.35s;
}

.brand-badges span:nth-child(3) {
  animation-delay: 0.7s;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-cue span {
  width: 28px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  position: relative;
}

.scroll-cue span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  transform: translateX(-50%);
  animation: cueBounce 1.6s ease-in-out infinite;
}

.scroll-cue small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.glass-card {
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.88), rgba(6, 9, 16, 0.74));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 231, 255, 0.18);
  box-shadow: 0 18px 42px rgba(4, 8, 18, 0.45);
}

.story-section {
  position: relative;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  z-index: 1;
}

.center-card {
  width: min(680px, 92vw);
  text-align: center;
  padding: 2rem 2rem 2.25rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.88), rgba(3, 5, 11, 0.74));
  box-shadow: 0 20px 60px rgba(2, 8, 18, 0.5), inset 0 0 0 1px rgba(125, 231, 255, 0.08);
}

.card-pulse {
  animation: cardPulse 0.55s ease;
}

.center-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0.8rem 0 0.2rem;
  font-weight: 900;
}

.dynamic-subtitle {
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dynamic-copy {
  max-width: 520px;
  margin: 1rem auto 1.5rem;
  color: var(--muted);
}

.story-track {
  margin-top: -100vh;
  position: relative;
  z-index: 2;
}

.scroll-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem 0;
}

.scroll-step:nth-child(even) {
  justify-content: flex-start;
}

.step-card {
  width: min(360px, 92vw);
  padding: 1.35rem;
  border-radius: 20px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.step-active {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(125, 231, 255, 0.26);
  box-shadow: 0 18px 46px rgba(8, 20, 38, 0.45);
}

.step-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.step-card h3,
.feature-card h3,
.service-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.step-card p,
.feature-card p,
.service-card p,
.cta-box p {
  margin: 0;
  color: var(--muted);
}

.content-section,
.stats-section,
.cta-section {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.section-heading h2,
.cta-box h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.feature-card,
.service-card,
.stat-card,
.cta-box {
  border-radius: 20px;
  padding: 1.4rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(125, 231, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 0 16px rgba(125, 231, 255, 0.16);
}

.counter-value {
  letter-spacing: 0.04em;
}

.stat-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.4rem;
  border: 1px solid rgba(125, 231, 255, 0.14);
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.92), rgba(5, 8, 15, 0.82));
}

.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.34;
  pointer-events: none;
}

.cta-box::before {
  width: 180px;
  height: 180px;
  top: -50px;
  left: -40px;
  background: radial-gradient(circle, rgba(125, 231, 255, 0.32), transparent 68%);
  animation: floatSoft 7s ease-in-out infinite;
}

.cta-box::after {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(138, 125, 255, 0.28), transparent 70%);
  animation: driftGlow 10s ease-in-out infinite alternate;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-points li {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.cta-note {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

.project-modal .modal-dialog {
  max-width: 760px;
}

.project-modal .modal-content {
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.97), rgba(4, 8, 15, 0.93));
  border: 1px solid rgba(125, 231, 255, 0.18) !important;
  box-shadow: 0 24px 80px rgba(3, 9, 18, 0.55);
}

.project-modal .modal-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.modal-text {
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-form .form-label {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.project-form .form-control,
.project-form .form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.8rem 0.95rem;
}

#projectType {
  background-color: rgba(8, 14, 24, 0.96);
  background-image: linear-gradient(180deg, rgba(14, 22, 36, 0.98), rgba(7, 12, 22, 0.98));
  color: #fff;
}

#projectType option {
  background: #09111d;
  color: #ffffff;
}

.project-form .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.project-form .form-control:focus,
.project-form .form-select:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(125, 231, 255, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(125, 231, 255, 0.12);
  color: #fff;
}

.form-success {
  display: none;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(125, 231, 255, 0.08);
  border: 1px solid rgba(125, 231, 255, 0.18);
  color: rgba(255,255,255,0.9);
}

.form-success.show {
  display: block;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 1.4rem 0 2rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  transform: translateX(-34px) scale(0.98);
}

.reveal-right {
  transform: translateX(34px) scale(0.98);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.is-switching {
  animation: textSwap 0.45s ease;
}

@keyframes textSwap {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes cueBounce {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 12px);
    opacity: 0.45;
  }
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(var(--drift, 30px), -120vh, 0) scale(1.25);
    opacity: 0;
  }
}

@keyframes driftGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(16px, 10px, 0) scale(1.08);
  }
}

@keyframes cardPulse {
  0% {
    transform: scale(0.985);
    box-shadow: 0 10px 24px rgba(2, 8, 18, 0.32);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(2, 8, 18, 0.5), inset 0 0 0 1px rgba(125, 231, 255, 0.08);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(5, 10, 18, 0.92);
    border: 1px solid rgba(125, 231, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }

  .navbar-nav {
    gap: 0.25rem !important;
  }

  .nav-link {
    display: block;
    padding: 0.7rem 0.85rem !important;
    border-radius: 12px;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-intro {
    padding: 6.5rem 0 2.4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero-text,
  .section-text {
    max-width: 100%;
  }

  .story-track {
    margin-top: -68vh;
  }

  .sticky-stage {
    height: 68vh;
    padding: 1.25rem 0.85rem;
  }

  .scroll-step,
  .scroll-step:nth-child(even) {
    justify-content: center;
    min-height: 82vh;
  }

  .step-card {
    width: min(420px, 100%);
  }

  .content-section,
  .stats-section,
  .cta-section {
    padding: 4rem 0;
  }

  .project-modal .modal-dialog {
    margin: 0.85rem;
  }

  .project-form .form-control,
  .project-form .form-select {
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  .hero-intro {
    padding: 6rem 0 2rem;
  }

  .hero-chip,
  .section-tag,
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.65rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .hero-text,
  .section-text,
  .hero-note,
  .cta-note,
  .dynamic-copy {
    font-size: 0.95rem;
  }

  .brand-badges {
    gap: 0.45rem !important;
  }

  .brand-badges span {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }

  .scroll-cue,
  .floating-particles {
    display: none;
  }

  .glass-card:hover,
  .step-active {
    transform: none;
  }

  .center-card {
    width: min(100%, 30rem);
    padding: 1.3rem 1rem 1.5rem;
    border-radius: 22px;
  }

  .center-card h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .dynamic-subtitle {
    font-size: 0.95rem;
  }

  .section-heading h2,
  .cta-box h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .feature-card,
  .service-card,
  .stat-card,
  .cta-box {
    padding: 1.05rem;
  }

  .cta-points {
    justify-content: center !important;
  }

  .cta-points li {
    width: 100%;
    text-align: center;
  }

  .modal-header,
  .modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .story-track {
    margin-top: -64vh;
  }

  .sticky-stage {
    height: 64vh;
    padding: 1rem 0.7rem;
  }

  .scroll-step {
    min-height: 76vh;
    padding: 0.8rem 0;
  }

  .step-card {
    width: 100%;
    padding: 1rem;
  }

  .cta-box {
    padding: 1.4rem;
  }

  .project-modal .modal-title {
    font-size: 1.35rem;
  }

  .site-footer .container {
    text-align: center;
  }
}
