:root{
  --bg:#0b1020;
  --bg-gradient:
    radial-gradient(1200px circle at 15% 10%, rgba(59,130,246,.22), transparent 55%),
    radial-gradient(900px circle at 85% 20%, rgba(124,58,237,.18), transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  --text:#ffffff;
  --muted:#ffffff;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.10);
  --border:rgba(255,255,255,.12);
  --max:1100px;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:12px;
  --radius-sm:10px;

  --curtainY: 100%;
  --heroShift: 0px;

  --nav-offset: 110px;

  --badge-size: 72px;

  --h2-size: clamp(22px, 2.2vw, 30px);
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top: var(--nav-offset);
}
html, body{ font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
body, button, input, textarea{ font-family: inherit; }
body{
  margin:0;
  font-size:20px;
  font-weight: 500;
  color:var(--text);
  background: var(--bg-gradient);
  min-height:100vh;
  position:relative;
}

section[id]{
  scroll-margin-top: var(--nav-offset);
}

p{
  font-weight: 400;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(180deg, rgba(11,16,32,.40), rgba(11,16,32,.25)),
    url("./Background.jpg");
  background-size: cover;
  background-position: center;
  z-index:-2;
  pointer-events:none;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background: var(--bg-gradient);
  transform: translateY(var(--curtainY));
  transition: none;
  z-index:-1;
  pointer-events:none;
  will-change: transform;
}

.nav{
  position:sticky; top:0; z-index:100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,16,32,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  position:relative;
}
.brand{ display:none; }
.nav-links{
  display:flex;
  gap:18px;
  padding:0;
  border-radius:0;
  border:none;
  background: transparent;
}
.navlink{
  text-decoration:none;
  color:var(--muted);
  padding:10px 2px;
  border-radius:0;
  font-weight:700;
  font-size:18px;
  letter-spacing:.2px;
  border-bottom:2px solid transparent;
}
.navlink:hover{
  color:var(--text);
  border-bottom-color: rgba(255,255,255,.35);
}
.navlink.active{
  color:var(--text);
  border-bottom-color: rgba(255,255,255,.70);
}


.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:28px 18px 80px;
  position:relative;
  z-index:1;
}

.card{
  border:none;
  background: transparent;
  border-radius:0;
  box-shadow:none;
  margin-top:34px;
  padding:0;
}

.hero{
  padding:26px;
  min-height: calc(100vh - 92px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;

  background: transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
}
.hero-inner{
  transform: translateY(var(--heroShift));
  will-change: transform;
}
h1{
  margin:14px 0 10px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height:1.06;
  letter-spacing:-.6px;
}
.grad{
  background: linear-gradient(135deg, rgba(59,130,246,1), rgba(124,58,237,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.subtitle{
  margin:0 0 18px;
  color: var(--text);
  font-weight:800;
  letter-spacing:.2px;
}

.section-head{
  display:flex;
  justify-content:flex-start;
  align-items:baseline;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.section-head h2{ margin:0; font-size:var(--h2-size); letter-spacing:.2px; }
.section-head p{ margin:0; color:var(--muted); font-size:13px; }

.section-body{
  margin-top:14px;
}
.section-body p{
  margin:0 0 12px;
  color: var(--muted);
  line-height:1.7;
}
.section-body p:last-child{ margin-bottom:0; }

#education .media-copy p,
#certifications .media-copy p{
  margin: 0;
}

.degree-block + .degree-block{
  margin-top: 12px;
}

#education .year,
#certifications .year{
  color: rgba(255,255,255,.72);
  font-weight: 400;
}

.section-body h3{
  margin:16px 0 8px;
  font-size:20px;
  letter-spacing:.2px;
}
.section-body h3:first-child{ margin-top:0; }

.media-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.media-row:last-child{ border-bottom:none; padding-bottom:0; }
.media-row.reverse{ flex-direction:row-reverse; }

.media-copy{ flex: 1 1 60%; }

.media-copy h2{
  margin:0 0 8px;
  font-size: var(--h2-size);
  letter-spacing:.2px;
}

.media-images{
  flex: 0 0 auto;
  display:grid;
  gap:12px;
  width: var(--badge-size);
}
.media-images.two{ grid-template-columns: 1fr; }
.media-images.one{ grid-template-columns: 1fr; }

.media-image{
  width: var(--badge-size);
  height: var(--badge-size);
  display:block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  border:1px solid rgba(255,255,255,.10);
}

.media-image.left{
  object-position: left center;
}


.footer{
  margin-top:22px;
  text-align:center;
  color: var(--text);
  font-size:16px;
}

@media (max-width:640px){
  :root{ --nav-offset: 140px; }
  :root{ --badge-size: 64px; }
  .nav-inner{ flex-wrap:wrap; justify-content:space-between; }
  .brand{ display:none; }
  .nav-links{
    display:flex;
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:12px 16px;
  }
  .navlink{ font-size:16px; padding:10px 0; }
  .media-row, .media-row.reverse{ flex-direction:column; }
  .media-images{ width: var(--badge-size); }
}
