:root {
  --bg: #0a0f12;
  --bg-soft: rgba(14, 21, 18, 0.92);
  --panel: rgba(16, 27, 22, 0.78);
  --panel-strong: rgba(11, 20, 17, 0.95);
  --line: rgba(144, 255, 181, 0.14);
  --line-strong: rgba(144, 255, 181, 0.32);
  --text: #eef7ef;
  --muted: #99ad9e;
  --accent: #9fef00;
  --accent-soft: #6cff8f;
  --accent-blue: #00d6b9;
  --danger: #ff8b8b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --mono: "JetBrains Mono", monospace;
  --display: "Chakra Petch", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(159, 239, 0, 0.12), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(0, 214, 185, 0.12), transparent 26%),
    linear-gradient(180deg, #050809 0%, #0a0f12 45%, #070b0d 100%);
  font-family: var(--display);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(159, 239, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 239, 0, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 34%, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(159, 239, 0, 0.02) 48%, transparent 100%);
  background-size: 100% 5px;
  opacity: 0.18;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 10px 10px;
}

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  filter: blur(90px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
}

.ambient-a {
  top: 5rem;
  left: -8rem;
  background: var(--accent);
}

.ambient-b {
  right: -10rem;
  bottom: 5rem;
  background: var(--accent-blue);
}

.sidebar,
.panel,
.project-card,
.footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 27, 22, 0.88), rgba(9, 14, 12, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.layout-shell {
  display: block;
}

.sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 280px;
  min-height: auto;
  padding: 22px 18px;
  border-radius: 24px;
  display: grid;
  align-content: start;
  gap: 24px;
  overflow: hidden;
}

.content-shell {
  min-width: 0;
  margin-left: 304px;
}

.content-shell main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.brand-copy strong,
.eyebrow,
h1,
h2,
h3,
.sidenav a,
.button,
.filter-chip,
.panel-code {
  font-family: var(--display);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy small,
.hud-label,
.footer-meta,
.terminal-body,
.panel-code,
.metric-card span,
.project-status,
.form-note {
  font-family: var(--mono);
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.sidenav {
  display: grid;
  gap: 10px;
}

.sidenav a,
.footer-links a,
.filter-chip {
  border: 1px solid rgba(159, 239, 0, 0.08);
  background: rgba(159, 239, 0, 0.02);
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  transition: 220ms ease;
}

.sidenav a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidenav a:hover,
.sidenav a.is-active,
.footer-links a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text);
  background: rgba(159, 239, 0, 0.08);
  border-color: rgba(159, 239, 0, 0.14);
}

.nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(159, 239, 0, 0.14);
  background: rgba(159, 239, 0, 0.04);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.nav-index svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidenav a:hover .nav-index,
.sidenav a.is-active .nav-index {
  color: var(--text);
  border-color: rgba(159, 239, 0, 0.28);
  background: rgba(159, 239, 0, 0.1);
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 12, 10, 0.82);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  max-height:220px ;
 
}

.sidebar-card strong {
  font-size: 1.05rem;
}

.sidebar-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(159, 239, 0, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
}

.sidebar-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.section {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  overflow: visible;
  padding-top: 72px;
}

.page-hero {
  min-height: 34vh;
  display: flex;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-align: center;
  padding-right: 15px;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.3rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  text-align: center;
  margin-inline: auto;
}

h3 {
  font-size: 1.25rem;
}

p,
li,
label {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-text,
.section-header p {
  max-width: 62ch;
}

.hero-copy {
  text-align: center;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.hero-copy h1 {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-copy .hero-text {
  margin-inline: auto;
  text-align: center;
}

.hero-actions,
.hero-metrics,
.about-grid,
.team-grid,
.service-grid,
.project-grid,
.contact-layout,
.contact-side {
  display: grid;
  gap: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}

.button {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 18px 10px 10px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #081008;
  box-shadow: 0 16px 38px rgba(159, 239, 0, 0.22);
}

.button-secondary {
  background: rgba(159, 239, 0, 0.05);
  border-color: rgba(159, 239, 0, 0.18);
  color: var(--text);
  
}

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

.metric-card,
.hud-card,
.terminal-panel,
.contact-info {
  border: 1px solid var(--line);
  background: rgba(10, 18, 14, 0.86);
  border-radius: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.metric-card strong {
  color: var(--accent);
  font-size: 1.55rem;
  font-family: var(--display);
}

.hero-display {
  position: relative;
  min-height: 42rem;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(159, 239, 0, 0.14);
  background:
    radial-gradient(circle at center, rgba(159, 239, 0, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(11, 18, 14, 0.95), rgba(8, 12, 11, 0.98));
  overflow: hidden;
}

.mini-orbit {
  position: absolute;
  left: 56px;
  bottom: 56px;
  width: 180px;
  height: 180px;
  border: none;
  border-radius: 50%;
  animation: orbit-ring 14s linear infinite;
  pointer-events: none;
}

.mini-ship {
  position: absolute;
  width: 92px;
  top: -18px;
  left: 28px;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(159, 239, 0, 0.28));
  animation: orbit-counter 14s linear infinite;
}

.mini-ship-body ellipse,
.mini-ship-lights circle,
.mini-ship-beam ellipse,
.mini-ship-beam path {
  fill: rgba(159, 239, 0, 0.88);
  stroke: rgba(230, 255, 224, 0.7);
  stroke-width: 1.4;
}

.mini-ship-core {
  fill: rgba(121, 255, 167, 0.84);
}

.mini-ship-window {
  fill: rgba(8, 16, 13, 0.88);
}

.mini-ship-lights circle {
  fill: rgba(0, 214, 185, 0.92);
  stroke: rgba(186, 255, 247, 0.55);
  animation: mini-light-pulse 0.9s ease-in-out infinite alternate;
}

.mini-ship-beam ellipse {
  fill: rgba(0, 214, 185, 0.12);
  stroke: none;
  filter: blur(4px);
}

.mini-ship-ray {
  fill: rgba(0, 214, 185, 0.22);
  stroke: none;
  filter: blur(2px);
  animation: beam-pulse 1.2s ease-in-out infinite alternate;
}

.scan-grid,
.display-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scan-grid {
  background-image:
    linear-gradient(rgba(159, 239, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 239, 0, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(73deg) translateY(12%);
  transform-origin: center top;
}

.display-lines {
  background: linear-gradient(180deg, transparent 0%, rgba(159, 239, 0, 0.035) 50%, transparent 100%);
  background-size: 100% 6px;
  opacity: 0.22;
}

.hero-hud {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hud-card {
  padding: 16px;
}

.hud-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.hud-card-secondary {
  justify-self: end;
}

.hud-label,
.panel-code,
.project-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(159, 239, 0, 0.16);
  background: rgba(159, 239, 0, 0.06);
  color: var(--accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(100%, 360px);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(159, 239, 0, 0.25);
}

.terminal-header span:first-child {
  background: var(--danger);
}

.terminal-body {
  padding: 16px;
  color: #bdd7b9;
  font-size: 0.78rem;
  line-height: 1.9;
}

.terminal-body p {
  margin: 0;
}

.terminal-body strong {
  color: var(--accent);
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-header > div {
  width: 300px;
  margin-inline: auto;
}

.section-header > h2 {
  margin-inline: auto;
}

.page-hero .section-header {
  justify-items: center;
  text-align: center;
}

.page-hero .section-header .eyebrow {
  justify-content: center;
}

.page-hero .section-header h1,
.page-hero .section-header h2,
.page-hero .section-header p {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.about-grid,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel,
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.panel::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(159, 239, 0, 0.08), transparent 48%, rgba(0, 214, 185, 0.04));
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.panel:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.project-card {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(-4px);
}

.project-card:hover::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(6, 10, 12, 0.5) 32%, rgba(1, 3, 4, 0.82));
  backdrop-filter: blur(34px) saturate(0.7);
}

.mission-panel,
.team-card,
.service-card,
.contact-panel,
.contact-info {
  padding: 20px;
}

.service-head {
  display: grid;
  gap: 10px;
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-card {
  min-height: 330px;
}

.project-media,
.project-surface,
.project-overlay {
  position: absolute;
  inset: 0;
}

.project-media {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.7) brightness(0.5);
  transform: scale(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.project-surface,
.project-overlay {
  padding: 22px;
}

.project-surface {
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(9, 14, 12, 0.06), rgba(9, 14, 12, 0.96)),
    radial-gradient(circle at top right, rgba(159, 239, 0, 0.12), transparent 40%);
  transition: background 240ms ease;
}

.project-overlay {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  background: linear-gradient(180deg, rgba(9, 14, 12, 0.18), rgba(9, 14, 12, 0.98));
  opacity: 0;
  transform: translateY(14%);
  transition: 260ms ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-media {
  filter: saturate(0.75) brightness(0.45);
  transform: scale(1.08);
}

.project-card:hover .project-surface {
  background:
    linear-gradient(180deg, rgba(7, 9, 10, 0.48), rgba(2, 3, 4, 0.99)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 38%);
}

.project-card:hover .project-overlay {
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.42), rgba(1, 2, 3, 0.99));
}

.project-overlay a,
.contact-info a {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(159, 239, 0, 0.14);
  background: rgba(7, 11, 9, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(159, 239, 0, 0.07);
}

.contact-form button[disabled] {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.form-note {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.form-note.is-success {
  color: var(--accent);
}

.form-note.is-error {
  color: #ff8f8f;
}

.footer {
  width: 100%;
  margin: 12px 0 0;
  padding: 22px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer strong {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 700ms ease forwards;
}

.hero .reveal:nth-child(2),
.section .reveal:nth-child(2) {
  animation-delay: 120ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes mini-light-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes beam-pulse {
  from { opacity: 0.35; transform: scaleY(0.92); transform-origin: top center; }
  to { opacity: 0.82; transform: scaleY(1.08); transform-origin: top center; }
}

@media (max-width: 1080px) {
  .sidebar-toggle {
    display: inline-flex;
  }

  .layout-shell {
    display: block;
  }

  .team-grid,
  .project-grid,
  .about-grid,
  .contact-layout,
  .service-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 38rem;
  }

  .hero-hud {
    grid-template-columns: 1fr;
  }

  .hud-card-secondary {
    justify-self: stretch;
  }

  .mini-orbit {
    left: 24px;
    bottom: 24px;
    width: 160px;
    height: 160px;
  }

  .sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: min(280px, calc(100vw - 24px));
    min-height: auto;
    transform: translateX(calc(-100% - 18px));
    transition: transform 220ms ease;
    z-index: 25;
    overflow: hidden;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .content-shell {
    margin-left: 0;
    padding-top: 48px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .section {
    padding: 54px 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  h2 {
    max-width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 34rem;
    padding: 16px;
  }

  .mini-orbit {
    left: 18px;
    bottom: 18px;
    width: 132px;
    height: 132px;
  }

  .mini-ship {
    width: 72px;
    left: 20px;
  }

  .hero-hud {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .terminal-panel {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .footer {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
