:root {
  --bg1: rgba(0, 0, 0, 1);
  --bg2: rgba(30, 30, 30, 0.5);
  --text-color: rgba(255, 255, 255, 0.85);
}

* {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  color: var(--text-color); 
  background: var(--bg1);
  /* background: url(bg.jpg); */
  font-family: sans-serif;
}

.top-bar {
  z-index: 10000;
  position: fixed;
  left: 10px;
  right: 10px;
  top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  backdrop-filter: blur(6px);
  border-radius: 2rem;
  background: rgba(100, 100, 100, 0.25);
  overflow: hidden;
  flex: 1 1 auto;
  color: var(--lg-text);
  box-shadow: inset 1px 1px 0 rgba(100, 100, 100, 0.75),
    inset 0 0 5px rgba(50, 50, 50, 0.75),
    0 6px 6px rgba(0, 0, 0, 0.2), 
    0 0 20px rgba(0, 0, 0, 0.1);
}

.top-bar img {
  width: 2rem;
  filter: brightness(50%);
}

.top-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 2.5rem;
}
.top-links a {
  display: inline-flex;
  align-items: center;
}

.top-links img {
  width: 1.6rem;
  height: auto;
  filter: brightness(70%);
  transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.top-links a:hover img,
.top-links a:focus img {
  transform: translateY(-2px);
  opacity: 0.95;
  filter: brightness(100%);
}
.name {
  font-family: monospace;
  font-weight: bold;
  font-size: 1.1rem;
  user-select: none;
  cursor: pointer;
  color: var(--text-color);
  text-decoration: none !important;
}

.mountain {
  position: fixed;
  inset: 0;
}

.mountain img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100vh;
  width: auto;
  min-width: 100vw;
  display: block;
  preserveAspectRatio: xMidYMid meet;
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
}

.mountain img:nth-child(1) { filter: brightness(07.5%); }
.mountain img:nth-child(2) { filter: brightness(10.0%); }
.mountain img:nth-child(3) { filter: brightness(12.5%); }
.mountain img:nth-child(4) { filter: brightness(15.0%); }
.mountain img:nth-child(5) { filter: brightness(17.5%); }

.content {
  position: relative;
  z-index: 100;
  padding-top: 10rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20rem;
}

#welcome {
  top: 10rem;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#welcome p {
  width: 35rem;
  max-width: 80%;
  line-height: 1.8rem;
}

#welcome .hi {
  font-size: 3rem;
  font-weight: bold;
}

#welcome .blurb {
  font-size: 1.5rem;
}

#welcome .blurb b {
  color: rgb(75, 150, 255);
}

#welcome .blurb i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

h2 {
  width: 100%;
  text-align: center;
  font-weight: bold;
}

.project-display {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.card.project {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(100, 100, 100, 0.5),
    inset 0 0 5px rgba(50, 50, 50, 0.5),
    0 6px 6px rgba(0, 0, 0, 0.2), 
    0 0 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.5s, background 0.5s;
}

.card.project:hover {
  box-shadow: inset 1px 1px 0 rgba(100, 100, 100, 0.5),
    inset 0 0 5px rgba(50, 50, 50, 0.5),
    0 0 10px #ffffff44;
  background: rgba(255,255,255,0.1);
}

.project-image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  display: block;
}

.project-title {
  font-weight: bold;
  font-size: 1.125rem;
}

.project-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.45rem;
}

#contact {
  max-width: 1100px;
  margin: 0 auto 6rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-direction: row;
  width: 100%;
}

.contact-links a {
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.contact-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(60%);
}

.contact-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  filter: none;
}

#education {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.education-card {
  grid-column: span 3;
  padding: 1rem;
  text-align: center;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  display: grid;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(100, 100, 100, 0.5),
    inset 0 0 5px rgba(50, 50, 50, 0.5),
    0 6px 6px rgba(0, 0, 0, 0.2), 
    0 0 20px rgba(0, 0, 0, 0.1);
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.education-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.education-desc {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45rem;
  color: rgba(255,255,255,0.65);
}

html {
  font-size: clamp(14px, 1.5vw, 16px);
}

body {
  overflow-x: hidden;
}

/* ---------- PROJECT GRID ---------- */
@media (max-width: 700px) {
  .project-display {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .card.project {
    padding: 0.9rem;
  }

  .project-image {
    height: 9rem;
  }
}

/* ---------- EDUCATION CARD ---------- */
@media (max-width: 700px) {
  .education-card {
    width: 100%;
    max-width: 34rem;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .education-info {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .education-card {
    padding: 0.9rem;
  }

  .education-desc {
    font-size: 0.9rem;
    line-height: 1.35rem;
  }
}
