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

:root {
  --brand: #00aaff;
  --bg: #000;
  --text: #e6f7ff;
  --muted: #8bbbd1;
  --nav-h: 72px;
  --card: #0a0f12;
  --border: rgba(0, 170, 255, .35);
  --purple: rgba(85, 26, 139, 255);
  --grey: #b4b4b4;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Subtle cyber grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80vmax 80vmax at 80% -10%, rgba(0, 170, 255, .2), transparent 50%),
    radial-gradient(60vmax 60vmax at -10% 110%, rgba(0, 170, 255, .12), transparent 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, .05), transparent 20%);
}


body::after {
  /* grid overlay */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 170, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 170, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  mask: linear-gradient(#000, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, .3));
}

#intro-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--brand);
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: monospace;
  position: relative;
}

#intro-screen::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  z-index: -1;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.skip-btn {
  position: absolute;
  top: 80%;
  left: 80%;
  text-decoration: none;
  padding: 10px 50px;
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--muted);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 170, 255, .08) inset;
  z-index: 1;
  font-size: 1rem;
}

.skip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18) inset;
  cursor: pointer;
}

/* Stops blinking and hides the cursor */
#intro-screen.done::after {
  content: none;
  animation: none;
}

.navbar {
  position: fixed;
  inset: 0 auto auto 0;
  height: var(--nav-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
}

.nav-left a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .4px;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  position: relative;
  font-size: .98rem;
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease
}

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

.nav-right a:hover::after {
  transform: scaleX(1);
}

.nav-right a.active {
  color: var(--text);
}

.nav-right a.active::after {
  transform: scaleX(1);
}

.page {
  min-height: 100dvh;
}


#home-screen {
  display: block;
  padding-top: var(--nav-h);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: min(5vw, 48px);
  align-items: center;
  min-height: calc(100dvh - var(--nav-h));
  padding: 8vh min(10vw, 80px) 6vh;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 10vh
  }
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(0, 170, 255, .08) inset;
  background: linear-gradient(180deg, rgba(10, 15, 18, .8), rgba(10, 15, 18, .6));
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand)
}

.header {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: .4px;
  margin: 16px 0 12px;
  color: var(--text);
}

.sub {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  will-change: transform
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18)
}

.btn.primary {
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--muted)
}

.btn.primary span {
  color: #00121a
}

.btn.ghost {
  background: rgba(0, 0, 0, .35);
  color: var(--text)
}

.btn.link {
  border-color: transparent;
  text-align: center;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center
}

.avatar {
  position: relative;
  max-width: min(420px, 80vw)
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 28px;
  z-index: -1;
  filter: blur(18px);
  background: radial-gradient(60% 60% at 50% 40%, rgba(0, 170, 255, .45), rgba(0, 170, 255, .08) 60%, transparent 70%);
  animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .75;
    transform: scale(.98)
  }

  50% {
    opacity: 1;
    transform: scale(1.03)
  }
}

.character {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 15, 18, .9), rgba(10, 15, 18, .7));
  box-shadow: 0 8px 40px rgba(0, 170, 255, .14)
}

.eye {
  position: absolute;
  width: clamp(1.5%, 4vw, 6%);
  height: clamp(1.5%, 4vw, 6%);
  border: 2px solid #00aaff;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.eye-left {
  top: 25%;
  left: 44%;
  transform: translate(-50%, -50%);
}

.eye-right {
  top: 25%;
  left: 56%;
  transform: translate(-50%, -50%);
}

.pupil {
  width: clamp(20%, 1.5vw, 35%);
  height: clamp(20%, 1.5vw, 35%);
  background: #00aaff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
}

.section {
  min-height: 100dvh;
  display: grid;
  justify-content: center;
  padding: 8vh 6vw;
  border-top: 1px solid #0f1b22;
}

.about {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  grid-template-rows: 4fr 1fr;
  column-gap: min(15vw, 80px);
  row-gap: 30px;
  justify-items: center;
  padding: 8vh min(14vw, 80px) 6vh;
  border-top: 1px solid #0f1b22;
  align-items: start;
}

.about-profile-card {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 0;
}


.about-profile-photo {
  position: relative;
  width: 80%;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .25s ease;
  will-change: transform;
  z-index: 0;
}

/* The glow */
.about-profile-photo::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 20px;
  filter: blur(18px);
  background: radial-gradient(60% 60% at 50% 40%,
      rgba(0, 170, 255, .45),
      rgba(0, 170, 255, .08) 60%,
      transparent 70%);
  animation: glowPulse 4.5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.about-profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 170, 255, .45);
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}

.about-profile-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18);
}

.about-profile-photo:hover::after {
  opacity: 0;
}

.about-profile-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}



.about-profile-short {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-profile-name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: bold;
}

.about-profile-role {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
}

.about-profile-location {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 50px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  will-change: transform;
  margin-top: 16px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18)
}

.download-btn.primary {
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--text);
}

.about-info {
  margin-top: 5px;
}

.about-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 18px;
  color: var(--text);
}

.about-description {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
  margin-block: 12px;
}

.about-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about-block {
  display: flex;
  flex-direction: column;
}

.about-block-title {
  font-size: clamp(18px, 2vw, 22px);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: clamp(12px, 1.5vw, 14px);
}

.check-list li {
  position: relative;
  padding-left: 33px;
  padding-bottom: 3px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 8px;
  color: var(--brand);
}

.edu-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  font-size: clamp(12px, 1.5vw, 14px);

}

.edu-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 33px;
}

.edu-list li::before {
  content: "🎓";
  position: absolute;
  left: 5px;
  color: var(--brand);
}

.degree {
  font-weight: bold;
}

.school {
  color: var(--muted);
}

.technical-skills {
  grid-column: 1 / -1;
}

.box {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--purple);
  color: var(--text);
  padding: 10px 14px;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(0, 170, 255, .08) inset;
  background: linear-gradient(180deg, rgba(10, 15, 18, .8), rgba(10, 15, 18, .6));
}

.experience {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 10vh min(14vw, 140px) 6vh;
  border-top: 1px solid #0f1b22;
  row-gap: 1rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: min(8vw, 20px);
  align-items: start;
  padding: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

a.experience-item:link,
a.experience-item:visited {
  color: color-mix(in srgb, var(--muted) 5%, transparent);
}

.experience-item:hover {
  border: 2px solid color-mix(in srgb, var(--muted) 5%, transparent);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 5%, transparent);
}

.experience-duration {
  color: var(--muted);
  margin-top: 8px;
  justify-items: center;
}

.experience-title {
  color: var(--brand);
}

.experience-company {
  color: var(--muted);
}

.experience-bullets {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.chip {
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: clamp(12px, 1.2vw, 16px);
}


.projects {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  justify-items: stretch;
  align-content: start;
  padding: 6vh min(14vw, 140px) 6vh;
  border-top: 1px solid #0f1b22;
  row-gap: 1rem;
}

.project-title {
  justify-self: center;
}

.project-scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.project-scroller::-webkit-scrollbar {
  display: block;
  height: 8px;
  scrollbar-color: var(--brand) transparent;
}

.project-scroller {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 360px);
  gap: 60px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding: 12px;
  -webkit-overflow-scrolling: touch;

  height: auto;
}

.project-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;

  position: relative;

  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 15, 18, .85), rgba(10, 15, 18, .65));
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  padding: 16px 12px;
  align-items: start;
  margin-bottom: 0.8rem;
  width: clamp(200px, 40vw, 280px);
  height: auto;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 170, 255, .18);
}

.project-card.in-progress {
  border: 2px dashed var(--grey);
}

.project-card.in-progress::before {
  content:"";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    45deg,
    rgba(128, 128, 128, 0.15),
    rgba(128, 128, 128, 0.15) 10px,
    transparent 20px,
    transparent 40px
  );
  pointer-events: none;
  z-index: 1;
}

.project-card.in-progress::after {
  content: "Under Development";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: var(--grey);
  text-transform: uppercase;
  z-index: 1;                         /* above the stripes */
  pointer-events: none;
}

.project-card-thumbnail {
  overflow: hidden;
  border-radius: 24px;
  width: clamp(160px, 40vw, 180px);
  height: auto;
  margin: 0 auto 12px;
  position: relative;
}

.project-card-thumbnail.blurred {
  opacity: 0.2;
}

.project-card-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  justify-self: center;
}


.project-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

.project-card-info.blurred {
  opacity: 0.2;
}

.project-card-title {
  font-size: clamp(15px, 2vw, 16px);
  color: var(--brand);
  margin: 0;
}

.project-card-description {
  color: var(--muted);
  font-size: clamp(12px, 1.5vw, 13px);
  margin-top: 10px;
  margin-bottom: 12px;
}

.project-chip {
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: clamp(8px, 1.2vw, 10px);
  align-content: center;
}



.contact {
  min-height: calc(60dvh - var(--nav-h));
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 10vh min(14vw, 140px) 6vh;
  border-top: 1px solid #0f1b22;
  row-gap: 1rem;
}

.contact-message {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
  text-align: center;
  max-width: 600px;
  margin-bottom: 20px;
}

.contact-chip {
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--brand);
  border-radius: 12px;
  padding: 12px 30px;
  font-size: clamp(18px, 1.2vw, 20px);
  align-content: center;
  text-decoration: none;
  transform: translateY(0);
  justify-self: center;
  display: inline-block;
}

.contact-chip:hover {
  background: linear-gradient(180deg, rgba(0, 170, 255, .35), rgba(0, 170, 255, .25));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 255, .18);
}


.skip-btn {
  position: absolute;
  top: 80%;
  left: 80%;
  text-decoration: none;
  padding: 10px 50px;
  background: linear-gradient(180deg, rgba(0, 170, 255, .25), rgba(0, 170, 255, .15));
  color: var(--muted);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 170, 255, .08) inset;
  z-index: 1;
  font-size: 1rem;
}

.skip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 170, 255, .18) inset;
  cursor: pointer;
}


.social-icon {
  position: relative;
  width: 10%;
}

.social-icon-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 200px;
}

/* Nice reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal .6s ease forwards;
  animation-delay: .15s
}

.reveal-2 {
  animation-delay: .28s
}

.reveal-3 {
  animation-delay: .42s
}

.reveal-4 {
  animation-delay: .56s
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none
  }
}