:root {
  --bg: #03090d;
  --panel: #07151b;
  --panel-2: #0a1b22;
  --line: #17414a;
  --text: #ecf8fa;
  --muted: #8ca3a9;
  --cyan: #22d8ee;
  --green: #35efad;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, #22d8ee0b, transparent 25%),
    radial-gradient(circle at 15% 70%, #35efad07, transparent 25%);
  z-index: -3;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 20;
}

/* =========================
   GENERAL
========================= */

.section {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

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

button {
  font-family: inherit;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--cyan);
  font-weight: 700;
  margin: 0 0 20px;
}

.head {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #9fb1b5;
  margin-bottom: 40px;
  font-weight: 700;
}

h2 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 22px;
}

h2 em {
  font-style: normal;
  color: var(--cyan);
}

/* =========================
   NAVBAR
========================= */

.nav {
  height: 76px;
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - var(--max)) / 2));
  background: #03090de6;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #ffffff0d;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.brand b {
  font-weight: 800;
}

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

.mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 10px;
  box-shadow: 0 0 18px #22d8ee18;
}

.nav nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav nav a {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #aabcc0;
  transition: 0.25s ease;
}

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

.navbtn {
  font-size: 9px;
  letter-spacing: 0.12em;
  border: 1px solid var(--cyan);
  padding: 12px 15px;
  border-radius: 4px;
  transition: 0.25s ease;
}

.navbtn:hover {
  background: var(--cyan);
  color: #031015;
}

.menu {
  display: none;
  background: none;
  color: var(--cyan);
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 850px;
  padding-top: 170px;
  position: relative;
  overflow: hidden;
  border-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 76px 0 0;
  background:
    radial-gradient(
      circle at 75% 45%,
      #12cde52b,
      transparent 30%
    );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 60%;
}

.hero h1 {
  font-size: clamp(44px, 5.7vw, 78px);
  line-height: 0.97;
  letter-spacing: -0.055em;
  margin: 25px 0;
  max-width: 900px;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero h1 strong {
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--green)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

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

.btn {
  display: inline-block;
  padding: 14px 17px;
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 800;
  border-radius: 4px;
  transition: 0.25s ease;
}

.primary {
  background: linear-gradient(
    100deg,
    var(--cyan),
    #16b9dd
  );
  color: #031015;
  box-shadow: 0 0 25px #22d8ee22;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #22d8ee30;
}

.ghost {
  border: 1px solid #536a70;
}

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

.socials {
  display: flex;
  gap: 18px;
  margin-top: 25px;
  color: #9db0b5;
  font-size: 10px;
}

.socials a {
  transition: 0.25s ease;
}

.socials a:hover {
  color: var(--cyan);
}

/* =========================
   MAP VISUAL
========================= */

.map {
  position: absolute;
  width: 62%;
  height: 600px;
  right: -5%;
  top: 130px;
  opacity: 0.75;
  pointer-events: none;
}

.map svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(
    0 0 9px #22d8ee77
  );
}

.map path {
  fill: none;
  stroke: #22d8ee55;
  stroke-width: 2;
}

.map path:first-child {
  stroke: var(--cyan);
  stroke-width: 4;
}

.pin {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px #35efad11,
    0 0 25px var(--green);
}

.pin.a {
  right: 42%;
  top: 42%;
}

.pin.b {
  right: 27%;
  top: 55%;
}

.coord,
.maptag {
  position: absolute;
  padding: 10px;
  background: #061117dd;
  border: 1px solid #39c8db33;
  font: 9px monospace;
  color: #9bb1b7;
}

.coord {
  left: 10%;
  bottom: 15%;
}

.maptag {
  right: 29%;
  top: 38%;
  color: var(--cyan);
}

.hero-stats {
  position: absolute;
  bottom: 45px;
  left: 0;
  display: flex;
  gap: 40px;
  z-index: 2;
}

.hero-stats b {
  font-size: 10px;
  color: var(--cyan);
  border-left: 1px solid var(--cyan);
  padding-left: 10px;
}

.hero-stats small {
  display: block;
  color: #687d82;
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 0.13em;
}

/* =========================
   ABOUT
========================= */

.about {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
}

.about > div {
  min-width: 0;
}

.about > div > p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
}

.metrics {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.metrics b {
  font-size: 24px;
  color: var(--cyan);
}

.metrics small {
  display: block;
  color: #6e8388;
  font-size: 7px;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.about-grid article {
  background: var(--panel);
  padding: 28px;
  min-height: 170px;
  transition: 0.3s;
}

.about-grid article:hover {
  background: #0b1c23;
  transform: translateY(-3px);
}

.about-grid span {
  font: 10px monospace;
  color: var(--green);
}

.about-grid h3 {
  font-size: 14px;
  margin: 20px 0 10px;
}

.about-grid p,
.project-body p,
.timeline p {
  font-size: 10px;
  line-height: 1.75;
  color: var(--muted);
}

/* =========================
   SKILLS
========================= */

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

.skill {
  padding: 28px;
  background: linear-gradient(
    145deg,
    #0b1b22,
    #061015
  );
  border: 1px solid #3ec6da33;
  min-height: 250px;
  transition: 0.3s;
}

.skill:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 15px 40px #0006;
}

.skill .icon {
  font-size: 27px;
  color: var(--cyan);
}

.skill h3 {
  font-size: 13px;
  margin: 20px 0;
}

.skill ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill li {
  font-size: 9px;
  color: #81979c;
  border-top: 1px solid #ffffff0c;
  padding: 7px 0;
}

.skill li::before {
  content: "•";
  color: var(--green);
  margin-right: 8px;
}

/* =========================
   PROJECTS
========================= */

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

.project {
  background: #061117;
  border: 1px solid #3ec6da33;
  overflow: hidden;
  transition: 0.3s;
  min-width: 0;
}

.project:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 20px 50px #0007;
}

.project-img {
  height: 210px;
  background:
    radial-gradient(
      circle at 30% 30%,
      #22d8ee55,
      transparent 20%
    ),
    linear-gradient(
      135deg,
      #09232c,
      #050d11
    );
  position: relative;
  background-image:
    linear-gradient(#3ec6da0d 1px, transparent 1px),
    linear-gradient(90deg, #3ec6da0d 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px;
  border: 1px solid #ffffff22;
  background: #03090dcc;
  font: 10px monospace;
  color: var(--cyan);
}

.project-body {
  padding: 23px;
}

.tag {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--green);
  border: 1px solid #35efad44;
  padding: 5px 7px;
}

.project h3 {
  font-size: 18px;
  margin: 14px 0 6px;
}

.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip,
.tool {
  font: 8px monospace;
  border: 1px solid #81979c2c;
  padding: 5px 7px;
  color: #91a6ab;
}

/* =========================
   EXPERIENCE
========================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #3ec6da33;
}

.timeline article {
  padding: 30px 24px 10px 0;
  border-right: 1px solid #ffffff10;
  position: relative;
  margin-right: 24px;
  min-width: 0;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
}

.period {
  font: 11px monospace;
  color: var(--cyan);
}

.timeline h3 {
  font-size: 13px;
  margin: 12px 0 5px;
}

.org {
  font-size: 9px;
  color: var(--green);
}

/* =========================
   EDUCATION
========================= */

.lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.lower > div {
  min-width: 0;
}

.card {
  padding: 28px;
  background: linear-gradient(
    135deg,
    #0a1a21,
    #061116
  );
  border: 1px solid #3ec6da33;
}

.card h3 {
  margin: 0;
  font-size: 19px;
}

.card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.certs {
  display: grid;
  gap: 8px;
}

.cert {
  padding: 16px;
  background: #071218;
  border-left: 2px solid var(--green);
}

.cert b {
  font-size: 10px;
}

.cert span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 5px;
}

/* =========================
   TOOLS
========================= */

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

.tool {
  padding: 11px 13px;
  transition: 0.25s ease;
}

.tool:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =========================
   CONTACT
========================= */

.contact {
  background:
    radial-gradient(
      circle at 75% 20%,
      #22d8ee1c,
      transparent 28%
    ),
    #07151b;
  border: 1px solid #3ec6da33;
  margin-bottom: 65px;
  padding-left: clamp(25px, 5vw, 70px);
  padding-right: clamp(25px, 5vw, 70px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-grid > div {
  min-width: 0;
}

.contact-grid > div > p:not(.eyebrow) {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
}

.contact h2 {
  font-size: clamp(45px, 6vw, 74px);
}

.contact .btn {
  margin-top: 12px;
}

.contact-grid > div:last-child {
  padding: 8px 0;
  min-width: 0;
}

.contact-row {
  padding: 18px 0;
  border-bottom: 1px solid #ffffff10;
  border-top: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
}

.contact-row:first-child {
  border-top: 1px solid #ffffff10;
}

.contact-row span {
  font-size: 9px;
  color: #70868b;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.contact-row a {
  font-size: 11px;
  text-align: right;
  color: #d9e9ec;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  min-width: 0;
}

.contact-row a:hover {
  color: var(--cyan);
}

/* =========================
   FOOTER
========================= */

footer {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #60757a;
  font: 9px monospace;
}

/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 1100px) {

  .nav nav {
    gap: 15px;
  }

  .navbtn {
    display: none;
  }

  .hero-copy {
    width: 65%;
  }

  .map {
    width: 65%;
    right: -15%;
  }

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

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

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

@media (max-width: 900px) {

  .nav nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero-copy {
    width: 100%;
  }

  .map {
    width: 100%;
    right: -25%;
    opacity: 0.38;
  }

  .about,
  .lower,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  .contact {
    padding-left: 30px;
    padding-right: 30px;
  }

  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 600px) {

  .section {
    width: calc(100% - 36px);
    padding: 80px 0;
  }

  .nav {
    padding: 0 18px;
  }

  .hero {
    min-height: 790px;
    padding-top: 135px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 13px;
  }

  .hero-stats {
    gap: 16px;
    bottom: 30px;
  }

  .hero-stats b {
    font-size: 9px;
  }

  .map {
    top: 210px;
    right: -45%;
    width: 120%;
    opacity: 0.25;
  }

  .coord {
    display: none;
  }

  .maptag {
    right: 25%;
    top: 40%;
  }

  .about-grid,
  .skill-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .about-grid article {
    min-height: auto;
  }

  .project-img {
    height: 190px;
  }

  .contact {
    width: calc(100% - 24px);
    padding: 65px 22px;
  }

  .contact-grid {
    gap: 35px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }

  .contact-row span {
    font-size: 8px;
  }

  .contact-row a {
    text-align: left;
    font-size: 10px;
  }

  footer {
    width: calc(100% - 36px);
    display: block;
  }

  footer span {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 400px) {

  .hero h1 {
    font-size: 38px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .metrics {
    gap: 20px;
  }
}
/* =================================
   MOBILE NAVIGATION
   ================================= */

.menu {
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

@media (max-width: 768px) {

  .nav {
    position: relative;
  }

  .nav nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 0;

    width: min(260px, calc(100vw - 32px));

    padding: 10px;

    background: rgba(7, 16, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;

    z-index: 1000;
  }

  .nav nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;

    border-radius: 8px;
  }

  .nav nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .menu.active {
    transform: rotate(90deg);
  }
}
