:root {
  --bg: #05070d;
  --bg-soft: #0a1020;
  --panel: rgba(12, 19, 34, 0.78);
  --panel-strong: rgba(14, 24, 45, 0.94);
  --text: #eef7ff;
  --muted: #91a3bb;
  --line: rgba(147, 197, 253, 0.18);
  --cyan: #22d3ee;
  --green: #7cff6b;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #05070d 0%, #07101d 42%, #05070d 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body::selection {
  color: #04100f;
  background: var(--green);
}

a {
  color: inherit;
}

#threatCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.22));
}

.site-header {
  position: fixed;
  top: 18px;
  right: 4vw;
  left: 4vw;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.55rem 0.7rem;
  background: rgba(5, 7, 13, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #021315;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 50%;
  font-size: 0.82rem;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--bg);
  background: var(--green);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero,
.section {
  position: relative;
  padding-right: 6vw;
  padding-left: 6vw;
}

.page-start {
  padding-top: clamp(8.5rem, 13vw, 12rem);
}

.scroll-scene {
  transform-style: preserve-3d;
}

.scroll-scene::before {
  position: absolute;
  inset: 8% 4vw;
  z-index: -2;
  content: "";
  opacity: var(--scene-glow, 0.34);
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(34, 211, 238, 0.26), transparent 24rem),
    linear-gradient(120deg, transparent, rgba(124, 255, 107, 0.08), transparent);
  filter: blur(2px);
  transform: scale(var(--scene-scale, 1));
  transition: opacity 300ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 6rem;
}

.hero-copy {
  transform: translateY(calc(var(--scene-progress, 0) * -42px)) rotateX(calc(var(--scene-progress, 0) * 4deg));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 8.7vw, 8.8rem);
  line-height: 0.87;
  letter-spacing: 0;
}

h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 6vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.contact-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  border-color: rgba(124, 255, 107, 0.7);
  transform: translateY(-3px);
}

.button.primary {
  color: #031111;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.26);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.security-orbit {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  perspective: 900px;
  transform: translateY(calc(var(--scene-progress, 0) * 48px)) rotateY(calc(var(--scene-progress, 0) * -12deg));
}

.orbit-core {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(42vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--bg);
  background:
    radial-gradient(circle at 38% 30%, #ffffff, var(--cyan) 34%, var(--green));
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 44px rgba(34, 211, 238, 0.42),
    inset 0 0 48px rgba(255, 255, 255, 0.22);
}

.orbit-core span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.8;
}

.orbit-core small {
  position: absolute;
  bottom: 23%;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.orbit-ring {
  position: absolute;
  width: var(--size);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.14);
  transform: rotateX(68deg) rotateZ(0deg);
}

.ring-one {
  --size: min(76vw, 520px);
  animation: ringSpin 18s linear infinite;
}

.ring-two {
  --size: min(64vw, 420px);
  border-color: rgba(124, 255, 107, 0.3);
  animation: ringSpin 14s linear infinite reverse;
}

.ring-three {
  --size: min(90vw, 650px);
  border-color: rgba(139, 92, 246, 0.28);
  animation: ringSpin 22s linear infinite;
}

.orbit-node {
  position: absolute;
  display: grid;
  min-width: 74px;
  min-height: 74px;
  place-items: center;
  padding: 0.8rem;
  color: var(--text);
  background: rgba(10, 16, 32, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.node-one {
  top: 14%;
  left: 12%;
}

.node-two {
  top: 24%;
  right: 8%;
}

.node-three {
  right: 18%;
  bottom: 16%;
}

.node-four {
  bottom: 12%;
  left: 8%;
}

.ticker {
  overflow: hidden;
  padding: 0.95rem 0;
  color: var(--bg);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.2);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  animation: marquee 30s linear infinite;
}

.ticker span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  font-weight: 700;
  white-space: nowrap;
}

.ticker span::after {
  content: " /";
}

.section {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.timeline-card,
.project-card,
.credential-panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card::before,
.timeline-card::before,
.project-card::before,
.credential-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(124, 255, 107, 0.12), transparent);
  transform: translateX(-60%);
  transition: opacity 300ms ease, transform 900ms ease;
}

.metric-card:hover::before,
.timeline-card:hover::before,
.project-card:hover::before,
.credential-panel:hover::before {
  opacity: 1;
  transform: translateX(60%);
}

.metric-card {
  min-height: 260px;
  padding: 1.4rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 4rem;
  color: var(--green);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
}

.metric-card span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.timeline-date {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 1rem;
  color: var(--green);
  background: rgba(124, 255, 107, 0.08);
  border: 1px solid rgba(124, 255, 107, 0.18);
  border-radius: 24px;
  font-weight: 900;
}

.timeline-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.role,
.project-type {
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-card p:not(.role),
.project-card p:not(.project-type),
.credential-list p {
  color: var(--muted);
}

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

.project-card {
  min-height: 520px;
  padding: 1.2rem;
}

.project-card a,
.credential-panel a {
  color: var(--green);
  font-weight: 900;
  text-decoration-color: rgba(124, 255, 107, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.project-terminal {
  display: grid;
  gap: 0.6rem;
  min-height: 210px;
  margin-bottom: 2rem;
  padding: 1rem;
  color: var(--green);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(124, 255, 107, 0.18);
  border-radius: 20px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  align-content: end;
}

.project-terminal span {
  display: block;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1180px;
}

.tool-cloud span {
  padding: 0.8rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.06);
  font-weight: 900;
}

.credentials-section {
  min-height: 86vh;
  display: grid;
  align-items: center;
}

.credential-panel {
  max-width: 1050px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.credential-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.credential-list p {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.credential-list strong {
  color: var(--text);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: 86vh;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
}

.contact-links a {
  padding: 1rem 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

.site-footer {
  padding: 1.5rem 6vw;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.9, 0.18, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene-active .metric-card,
.scene-active .timeline-card,
.scene-active .project-card,
.scene-active .credential-panel {
  border-color: rgba(124, 255, 107, 0.34);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ringSpin {
  from {
    transform: rotateX(68deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

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

@media (max-width: 1060px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .security-orbit {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    right: 1rem;
    left: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem;
    background: rgba(5, 7, 13, 0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero,
  .section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero {
    padding-top: 7.6rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  h2 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric-grid,
  .project-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .project-card {
    min-height: auto;
  }

  .security-orbit {
    min-height: 460px;
  }

  .orbit-core {
    width: min(62vw, 230px);
  }

  .orbit-node {
    min-width: 64px;
    min-height: 64px;
    font-size: 0.72rem;
  }
}
