:root {
  --bg: #07111f;
  --panel: #0c1a2b;
  --panel2: #101f33;
  --text: #eef5ff;
  --muted: #9cafc6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #36a3ff;
  --accent2: #79c7ff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;

  background-image:
    linear-gradient(
      rgba(54, 163, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(54, 163, 255, 0.06) 1px,
      transparent 1px
    );

  background-size: 45px 45px;

  mask-image:
    linear-gradient(
      to bottom,
      #000,
      transparent 90%
    );

  z-index: -1;
}


/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(7, 17, 31, 0.82);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(54, 163, 255, 0.55);

  color: var(--accent);

  font-weight: 900;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 13px;
  color: var(--muted);

  transition: 0.2s;
}

nav a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;

  background: none;
  border: 0;

  color: var(--text);

  font-size: 24px;

  cursor: pointer;
}


/* GENERAL */

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 25px 0;
}


/* HERO */

.hero {
  padding-top: 85px;
  min-height: 720px;

  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.08fr 0.92fr;

  gap: 70px;

  align-items: center;
}

.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 800;
}

.eyebrow span {
  display: inline-block;

  width: 28px;
  height: 1px;

  background: var(--accent);

  vertical-align: middle;

  margin-right: 9px;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);

  line-height: 0.98;

  letter-spacing: -0.055em;

  margin: 22px 0;
}

h1 em,
h2 span {
  font-style: normal;
  color: var(--accent);
}

.hero-text {
  max-width: 650px;

  color: var(--muted);

  font-size: 17px;
}

.hero-actions {
  display: flex;

  gap: 12px;

  margin: 30px 0;
}

.btn {
  padding: 13px 18px;

  border: 1px solid var(--line);

  font-size: 13px;

  font-weight: 800;

  transition: 0.25s;
}

.btn.primary {
  background: var(--accent);

  color: #04101d;

  border-color: var(--accent);
}

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

.btn.ghost:hover {
  border-color: var(--accent);
}

.hero-meta {
  display: flex;

  gap: 45px;

  border-top: 1px solid var(--line);

  padding-top: 20px;

  margin-top: 40px;
}

.hero-meta span,
.mini-grid small {
  display: block;

  font-size: 9px;

  letter-spacing: 0.15em;

  color: var(--muted);

  margin-bottom: 4px;
}

.hero-meta strong {
  font-size: 12px;
}


/* ENGINEERING CARD */

.engineering-card {
  background:
    linear-gradient(
      145deg,
      #10263d,
      #081421
    );

  border: 1px solid var(--line);

  padding: 14px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.3);
}

.card-top,
.card-bottom {
  display: flex;

  justify-content: space-between;

  font-size: 10px;

  letter-spacing: 0.13em;

  color: var(--muted);

  padding: 8px;
}

.blueprint {
  height: 390px;

  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(54, 163, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(54, 163, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 25px 25px;

  border: 1px solid rgba(54, 163, 255, 0.15);
}

.crosshair {
  position: absolute;

  inset: 20%;

  border: 1px solid rgba(54, 163, 255, 0.2);

  border-radius: 50%;
}

.beam {
  position: absolute;

  background: var(--accent);

  box-shadow:
    0 0 20px rgba(54, 163, 255, 0.25);
}

.beam-a {
  height: 9px;

  width: 75%;

  left: 12%;

  top: 47%;
}

.beam-b {
  height: 75%;

  width: 9px;

  left: 47%;

  top: 12%;
}

.column {
  position: absolute;

  width: 34px;

  height: 220px;

  border: 3px solid var(--accent);

  bottom: 25px;
}

.column-a {
  left: 24%;
}

.column-b {
  right: 24%;
}

.dimension {
  position: absolute;

  font: 10px monospace;

  color: var(--accent2);

  letter-spacing: 0.12em;
}

.d1 {
  top: 20px;
  left: 20px;
}

.d2 {
  bottom: 18px;
  right: 18px;
}


/* STATS */

.stats-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  border-block: 1px solid var(--line);
}

.stat {
  padding: 28px 20px;

  border-right: 1px solid var(--line);
}

.stat:last-child {
  border: 0;
}

.stat strong {
  display: block;

  font-size: 30px;

  color: var(--accent);
}

.stat span {
  font-size: 11px;

  color: var(--muted);
}


/* ABOUT */

.two-col {
  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  gap: 90px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 58px);

  line-height: 1.05;

  margin-top: 12px;

  letter-spacing: -0.04em;
}

.about-copy > p {
  font-size: 20px;

  color: #cad6e5;

  max-width: 700px;
}

.mini-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;

  margin-top: 35px;
}

.mini-grid > div {
  padding: 20px;

  border: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.025);
}

.mini-grid strong {
  font-size: 13px;
}


/* DARK SECTIONS */

.dark-section {
  background: #050d18;

  border-block: 1px solid var(--line);
}


/* EXPERIENCE */

.timeline {
  max-width: 900px;

  margin: 60px auto 0;
}

.timeline-item {
  display: grid;

  grid-template-columns: 70px 1fr;

  gap: 28px;

  padding-bottom: 50px;
}

.timeline-marker {
  width: 52px;
  height: 52px;

  border: 1px solid var(--accent);

  display: grid;

  place-items: center;

  color: var(--accent);

  font: 12px monospace;
}

.timeline-content {
  border-left: 1px solid var(--line);

  padding-left: 30px;
}

.timeline-date {
  font: 11px monospace;

  color: var(--accent);

  margin-bottom: 8px;
}

.timeline h3 {
  font-size: 28px;
}

.timeline h4 {
  color: #d7e4f3;

  font-weight: 500;

  margin: 4px 0;
}

.location {
  color: var(--muted);

  font-size: 12px;
}

.timeline ul {
  margin-top: 18px;

  padding-left: 18px;

  color: var(--muted);
}

.timeline li {
  margin: 6px 0;
}


/* EDUCATION */

.education-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

  margin-top: 55px;
}

.edu-card {
  position: relative;

  padding: 28px;

  border: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.025);

  min-height: 230px;
}

.edu-card .year {
  font: 11px monospace;

  color: var(--accent);
}

.edu-icon {
  color: var(--accent);

  margin: 20px 0;
}

.edu-card h3 {
  font-size: 21px;
}

.edu-card p {
  color: #d8e4f1;

  margin-top: 5px;
}

.edu-card small {
  display: block;

  color: var(--muted);

  margin-top: 8px;
}

.edu-card > strong {
  position: absolute;

  right: 24px;
  bottom: 24px;

  color: var(--accent);

  font-size: 13px;
}


/* SKILLS */

.skills-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 55px;

  border-top: 1px solid var(--line);

  border-left: 1px solid var(--line);
}

.skill {
  padding: 22px;

  border-right: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  min-height: 125px;
}

.skill span {
  display: block;

  font: 10px monospace;

  color: var(--accent);

  margin-bottom: 25px;
}

.skill strong {
  font-size: 14px;
}

.language-row {
  display: flex;

  gap: 12px;

  align-items: center;

  flex-wrap: wrap;

  margin-top: 30px;
}

.language-row > span {
  font-size: 10px;

  letter-spacing: 0.16em;

  color: var(--muted);

  margin-right: 10px;
}

.language-row b {
  padding: 7px 12px;

  border: 1px solid var(--line);

  font-size: 11px;
}


/* CONTACT */

.contact-box {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  border: 1px solid var(--line);

  padding: 45px;

  background:
    linear-gradient(
      145deg,
      rgba(54, 163, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
}

.contact-box h2 {
  font-size: clamp(34px, 5vw, 55px);

  line-height: 1.05;

  margin: 12px 0;
}

.contact-box p {
  color: var(--muted);
}

.reference {
  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 6px;

  border-left: 1px solid var(--line);

  padding-left: 35px;
}

.reference strong {
  font-size: 22px;
}

.reference span,
.reference a {
  color: var(--muted);

  font-size: 13px;
}

.reference a:hover {
  color: var(--accent);
}


/* FOOTER */

footer {
  border-top: 1px solid var(--line);

  padding: 25px 0;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 0.08em;
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  gap: 20px;
}

.footer-inner a {
  color: var(--accent);
}


/* ANIMATION */

.reveal {
  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* TABLET */

@media (max-width: 850px) {

  .container {
    width: min(
      calc(100% - 28px),
      var(--max)
    );
  }

  .menu-btn {
    display: block;
  }

  nav {
    display: none;

    position: absolute;

    top: 76px;

    left: 0;
    right: 0;

    background: #07111f;

    border-bottom: 1px solid var(--line);

    padding: 20px;

    flex-direction: column;

    gap: 15px;
  }

  nav.open {
    display: flex;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-grid,
  .two-col,
  .contact-box {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .hero {
    min-height: auto;
  }

  .engineering-card {
    max-width: 650px;

    width: 100%;

    margin: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 75px 0;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reference {
    border-left: 0;

    border-top: 1px solid var(--line);

    padding: 25px 0 0;
  }
}


/* MOBILE */

@media (max-width: 520px) {

  h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-meta {
    gap: 18px;

    flex-direction: column;
  }

  .blueprint {
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;

    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 45px 1fr;

    gap: 14px;
  }

  .timeline-marker {
    width: 42px;

    height: 42px;
  }

  .timeline-content {
    padding-left: 18px;
  }

  .timeline h3 {
    font-size: 22px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .btn {
    width: 100%;

    text-align: center;
  }
}
