:root {
  color-scheme: dark;
  --bg: #08111f;
  --surface: rgba(12, 24, 42, 0.86);
  --line: rgba(156, 179, 207, 0.28);
  --text: #eef4ff;
  --muted: #a9b8cc;
  --blue: #4aa8ff;
  --green: #3ddc97;
  --amber: #ffc857;
  --red: #ff6b6b;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 25% 18%, rgba(74, 168, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #08111f 0%, #101827 48%, #08111f 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 56px;
  padding: 64px 0 72px;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy,
.wide-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: #06120d;
  border-color: transparent;
}

.button.secondary {
  background: rgba(12, 24, 42, 0.68);
  color: var(--text);
}

.profile-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 220px);
  margin: 0;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 156px;
  height: 156px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid rgba(61, 220, 151, 0.82);
  border-radius: 999px;
  background: #101827;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.profile-summary {
  display: grid;
  gap: 5px;
}

.profile-summary span,
.profile-summary small {
  color: var(--muted);
}

.profile-summary span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-summary strong {
  max-width: 220px;
  font-size: 20px;
  line-height: 1.15;
}

.profile-summary small {
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

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

.skill-grid span {
  border: 1px solid var(--line);
  background: rgba(12, 24, 42, 0.68);
  padding: 14px;
  color: var(--text);
  font-weight: 700;
}

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

.project-card {
  border: 1px solid var(--line);
  background: rgba(12, 24, 42, 0.82);
  padding: 14px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.55;
}

.project-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.project-visual {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-size: cover;
  background-position: center;
}

.project-visual span {
  font-size: 40px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.visual-analytics {
  background:
    linear-gradient(135deg, rgba(74, 168, 255, 0.42), rgba(61, 220, 151, 0.2)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 32px),
    #10243c;
}

.visual-control {
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.32), rgba(74, 168, 255, 0.22)),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.2), transparent 18%),
    #172337;
}

.visual-gateway {
  background:
    linear-gradient(135deg, rgba(61, 220, 151, 0.32), rgba(255, 107, 107, 0.18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 28px),
    #122d2a;
}

.visual-ops {
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.28), rgba(74, 168, 255, 0.22)),
    radial-gradient(circle at 30% 70%, rgba(61, 220, 151, 0.28), transparent 20%),
    #1d2330;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 18px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  padding-bottom: 120px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .profile-panel {
    justify-self: start;
    text-align: left;
    justify-items: start;
  }

  .skill-grid,
  .project-grid,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  nav {
    gap: 12px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .profile-photo {
    width: 136px;
    height: 136px;
  }

  .project-visual {
    min-height: 132px;
  }
}

