* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.page-about {
  font-family: "Segoe UI", system-ui, sans-serif;

  /* FULL-PAGE BACKGROUND */
  background-image: url("fall2025.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #222;
}

body.page-projects {
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Dark overlay so text is readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* ===== NAVIGATION (About / Projects) ===== */
.nav {
  position: absolute;
  top: 1.25rem;
  width: 100%;
  z-index: 20;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;

  display: flex;
  gap: 1rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;

  font-size: 1.2rem;      /* bigger */
  font-weight: 700;       /* bolder */
  letter-spacing: 0.02em;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(6px);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.45);
}

/* Optional: if you add class="nav-link active" on the current page link */
.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
}

/* HERO (one definition only) */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;

  /* move the box upward */
  align-items: flex-start;
  padding-top: 10vh;        /* was 8vh; smaller = higher */
  padding-left: 2rem;
  padding-right: 2rem;
}

/* THE PURPLE BOX */
.hero-box {
  display: flex;
  align-items: center;
  gap: 2rem;

  width: min(900px, 100%);
  padding: 2.5rem 3rem;

  background: rgba(112, 98, 111, 0.7);
  backdrop-filter: blur(6px);

  color: #f8f5f2;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Profile image (left) */
.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;

  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.6);

  display: block;
}

/* Text takes remaining space */
.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text h1 {
  margin: 0 0 1rem 0;
  font-size: 2.6rem;
  font-weight: 600;
}

.hero-text p {
  margin: 0 0 1.1rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: none;
}

/* Main paragraph below */
main {
  padding: 3rem 1.5rem;
}

main p {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  line-height: 1.7;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  color: #eee;
}

/* Mobile */
@media (max-width: 700px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
  }
}

