/* RESET */
body {
  margin: 0;
  font-family: sans-serif;
  background: brown;
  color: rgb(197, 197, 197);
}

/* TYPOGRAPHY */
p {
  font-size: 12px;
  margin: 0 0 25px;
  line-height: 1.4;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  font-size: 12px;
  list-style: none;
  margin-bottom: 4px;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid rgba(227, 227, 227, 0.4);
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: black;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.name {
  font-weight: bold;
}

.bio {
  margin-top: 10px;
}

/* MAIN */
.main {
  margin-left: 280px;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  background: black;
  border-left: 1px solid rgba(227, 227, 227, 0.4);
}

/* LAYOUT */
.projectText {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.leftText {
  width: 35%;
}

.rightText {
  width: 65%;
}

.rightText ul {
  text-align: right;
  margin-bottom: 10px;
}

.rightText p {
  text-align: left;
}

/* PROJECT */
.project {
  margin-bottom: 100px;
}

.project img {
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

/* TITLE */
.projectTitle {
  font-weight: bold;
}

/* META */
.meta li {
  opacity: 0.7;
}

/* FOOTER */
.footer p {
  opacity: 0.8;
}

/* BASE LINK */
a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease, font-style 0.25s ease;
}

/* HOVER STATE (text behavior) */
a:hover {
  font-style: italic;
  opacity: 0.5;
}

/* UNDERLINE */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* adjust spacing under text */
  width: 100%;
  height: 1px;
  background: currentColor;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* UNDERLINE ANIMATION ON HOVER */
a:hover::after {
  transform: scaleX(1);
}

/* =========================
   MOBILE NAV BUTTON
========================= */

.menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 10000;

  background: black;
  color: rgb(197, 197, 197);
  border: 1px solid rgba(227,227,227,0.4);
  padding: 8px 12px;
  font-size: 12px;
}

/* overlay behind sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

/* =========================
   MOBILE BREAKPOINT
========================= */

@media (max-width: 768px) {

  /* show menu button */
  .menu-btn {
    display: block;
  }

  /* sidebar becomes hidden by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* main becomes full width */
  .main {
    margin-left: 0;
    padding: 15px;
  }

  /* images become 1 column */
  .image-grid {
    grid-template-columns: 1fr;
  }

  /* center text blocks */
  .projectText {
    flex-direction: column;
    gap: 20px;
  }

  .leftText,
  .rightText {
    width: 100%;
    text-align: center;
  }

  .rightText ul {
    text-align: center;
  }
}