:root {
  --bg: #07111a;
  --bg-deep: #02070c;
  --panel: rgba(7, 18, 29, 0.72);
  --panel-strong: rgba(10, 23, 37, 0.92);
  --line: rgba(115, 220, 233, 0.18);
  --line-strong: rgba(115, 220, 233, 0.45);
  --text: #e8f3ff;
  --muted: #9db6c8;
  --teal: #75dce9;
  --mint: #8cffca;
  --amber: #ffbb70;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(20, 94, 124, 0.28), transparent 30%),
    linear-gradient(180deg, #091622 0%, #02070c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0) 3px
  );
  background-size: 100% 7px;
  opacity: 0.16;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.ambient-grid,
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(117, 220, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 220, 233, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  opacity: 0.38;
  z-index: -3;
}

.ambient-glow-a {
  background: radial-gradient(circle at 20% 20%, rgba(140, 255, 202, 0.13), transparent 24%);
  z-index: -2;
}

.ambient-glow-b {
  background: radial-gradient(circle at 80% 30%, rgba(255, 187, 112, 0.1), transparent 20%);
  z-index: -2;
}

.topbar,
.hero,
.metrics,
.project-grid,
.timeline,
.about-grid,
.contact {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s ease forwards;
}

.topbar { animation-delay: 0.05s; }
.hero { animation-delay: 0.15s; }
.metrics { animation-delay: 0.28s; }
.project-grid { animation-delay: 0.4s; }
.timeline { animation-delay: 0.52s; }
.about-grid { animation-delay: 0.64s; }
.contact { animation-delay: 0.76s; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 8, 14, 0.55);
  border: 1px solid rgba(117, 220, 233, 0.12);
  border-radius: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 0 18px rgba(140, 255, 202, 0.7);
}

.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a,
.contact-links a {
  color: var(--muted);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a:hover,
.contact-links a:hover {
  color: var(--text);
  text-shadow: 0 0 14px rgba(117, 220, 233, 0.4);
}

.panel {
  background: linear-gradient(180deg, rgba(10, 23, 37, 0.78), rgba(6, 13, 22, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 1.2rem;
  padding: 1.4rem;
  min-height: 70vh;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.status-card,
.signal-card,
.about-card,
.skills-card,
.contact {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::after,
.status-card::after,
.signal-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(117, 220, 233, 0.08), transparent 45%);
  pointer-events: none;
}

.eyebrow,
.project-tag,
.status-label,
.signal-title {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  margin: 0;
  line-height: 1.05;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.7;
  color: var(--muted);
}

.hero-text {
  max-width: 56ch;
  font-size: 1.03rem;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #031019;
  background: linear-gradient(135deg, var(--mint), var(--teal));
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(117, 220, 233, 0.08);
}

.hero-panel {
  display: grid;
  gap: 1.1rem;
}

.status-card,
.signal-card {
  padding: 1.4rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.status-list,
.skills-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.status-list li,
.skills-list li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.85rem 0;
  color: var(--text);
}

.status-list li::before,
.skills-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(140, 255, 202, 0.65);
}

.signal-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.signal-meter span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(117, 220, 233, 0.14);
  overflow: hidden;
}

.signal-meter span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber));
  animation: pulse 1.8s ease-in-out infinite;
}

.signal-meter span:nth-child(2)::after { animation-delay: 0.2s; }
.signal-meter span:nth-child(3)::after { animation-delay: 0.4s; }
.signal-meter span:nth-child(4)::after { animation-delay: 0.6s; }

.metrics,
.project-grid,
.timeline,
.about-grid {
  display: grid;
  gap: 1rem;
}

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

.metric {
  padding: 1.3rem;
}

.metric-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.45rem;
  color: var(--text);
}

.metric-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.section-header {
  margin: 0 0 1.5rem;
}

.section-header h2 {
  margin-top: 0.6rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4rem;
}

.project-card {
  overflow: hidden;
}

.project-visual {
  min-height: 220px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

.visual-docks {
  background:
    radial-gradient(circle at 18% 30%, rgba(140, 255, 202, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(117, 220, 233, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(7, 16, 27, 0.2), rgba(7, 16, 27, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='260' viewBox='0 0 480 260'%3E%3Crect width='480' height='260' fill='%23071014'/%3E%3Cg stroke='%2362d3df' stroke-opacity='.35' fill='none'%3E%3Cpath d='M20 205h120l30-34h78l22-26h90l40-46h62'/%3E%3Cpath d='M54 224h92l16-19h144l25-32h116'/%3E%3Cpath d='M65 84h54l12-14h108l20 22h76l18-18h58'/%3E%3C/g%3E%3Cg fill='%2391ffcf' fill-opacity='.18'%3E%3Crect x='64' y='90' width='28' height='96'/%3E%3Crect x='126' y='52' width='22' height='142'/%3E%3Crect x='296' y='74' width='24' height='124'/%3E%3Crect x='360' y='40' width='26' height='162'/%3E%3C/g%3E%3C/svg%3E");
}

.visual-station {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 187, 112, 0.2), transparent 18%),
    linear-gradient(140deg, rgba(255, 187, 112, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(7, 16, 27, 0.2), rgba(7, 16, 27, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='260' viewBox='0 0 480 260'%3E%3Crect width='480' height='260' fill='%2307111a'/%3E%3Cg stroke='%23ffbb70' stroke-opacity='.22' fill='none'%3E%3Cpath d='M30 200l82-82 58 56 74-76 50 52 62-63 94 93' stroke-width='3'/%3E%3Cpath d='M0 212h480'/%3E%3Cpath d='M58 98h84M101 56v85M288 72h69M323 28v87'/%3E%3C/g%3E%3Cg fill='%236ed7e6' fill-opacity='.16'%3E%3Ccircle cx='112' cy='116' r='36'/%3E%3Ccircle cx='323' cy='90' r='28'/%3E%3Crect x='196' y='146' width='82' height='46'/%3E%3C/g%3E%3C/svg%3E");
}

.visual-lab {
  background:
    radial-gradient(circle at 50% 24%, rgba(117, 220, 233, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(140, 255, 202, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(7, 16, 27, 0.2), rgba(7, 16, 27, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='260' viewBox='0 0 480 260'%3E%3Crect width='480' height='260' fill='%23050b12'/%3E%3Cg stroke='%2375dce9' stroke-opacity='.28' fill='none'%3E%3Crect x='82' y='76' width='96' height='108'/%3E%3Crect x='202' y='58' width='70' height='126'/%3E%3Crect x='292' y='88' width='106' height='92'/%3E%3Cpath d='M82 130h316M140 76v108M237 58v126M346 88v92'/%3E%3C/g%3E%3Cg fill='%23ffbb70' fill-opacity='.16'%3E%3Ccircle cx='130' cy='124' r='10'/%3E%3Ccircle cx='237' cy='104' r='10'/%3E%3Ccircle cx='346' cy='126' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

.project-copy,
.timeline-step,
.about-card,
.skills-card,
.contact {
  padding: 1.4rem;
}

.process-wrap {
  margin-bottom: 4rem;
}

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

.step-index {
  display: inline-flex;
  margin-bottom: 0.75rem;
  font-family: "Orbitron", sans-serif;
  color: var(--amber);
}

.about-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-bottom: 4rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.footer {
  padding: 2rem 0 1rem;
  text-align: center;
  color: var(--muted);
}

@keyframes pulse {
  0%, 100% { transform: scaleX(0.65); opacity: 0.72; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .project-grid,
  .timeline,
  .about-grid,
  .contact,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.6rem;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.8rem 1rem;
  }

  .hero,
  .hero-copy,
  .project-copy,
  .timeline-step,
  .about-card,
  .skills-card,
  .contact {
    padding: 1.1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h2 {
    max-width: none;
  }

  .button {
    width: 100%;
  }
}
