/* homepage.css */
body {
  display: flex;
  flex-direction: row;
  height: 100vh;
  max-width: 100vw;
  position: relative;
}

/* sidebar.css */
.sidebar {
  display: flex;
  /* position: sticky; */
  justify-content: center;
  /* min-width: 180px; */
  gap: 1rem;
}

.nav-link {
  color: black;
  padding: 1rem 1.5rem;
  text-decoration: none;
}

.nav-link:hover {
  font-style: italic;
  font-weight: bold;
}

.active {
  font-weight: bold;
}

/* Medium screen responsive styles */
@media (min-width: 768px) {
  .sidebar {
    flex-direction: column;
    width: 9rem; /* md:w-36 = 36 * 0.25rem = 9rem */
  }

  .nav-link {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
  }
}

/* content.css */
.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  align-items: center;
  padding: 64px 32px 64px 32px;
}

/* old website banner */
.old-site-banner {
  position: absolute;
  right: 16px;
  font-size: 0.8em;
  z-index: 100;
}

/* math posts */
ol a,
ol a:visited,
ol a:active {
  color: black;
  text-decoration: none;
}

ol li {
  margin-bottom: 16px;
  font-weight: bold;
}
ol li:hover,
ol li:active {
  opacity: 0.8;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background-color: #000;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #000;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 250px;
    background: white;
    flex-direction: column;
    padding: 60px 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .sidebar.active {
    left: 0;
  }

  .nav-link {
    width: auto;
    text-align: left;
    padding: 15px;
  }

  .hamburger.active .hamburger-inner {
    transform: rotate(45deg);
  }

  .hamburger.active .hamburger-inner::before {
    transform: translateY(8px) rotate(-90deg);
  }

  .hamburger.active .hamburger-inner::after {
    opacity: 0;
  }
}

/* software projects */
.project-list {
  display: block;
  box-sizing: border-box;
  width: 100%;
}

.project-list hr {
  width: 90%;
}

.project-item {
  display: flex;
  width: 100%;
  height: 320px;
  gap: 8px;
  align-items: center;
  justify-content: space-around;
  margin: 12px 0;
}

.only-text {
  height: 160px;
}

.project-item-image {
  flex: 1;
}
.project-item-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

.project-item-details {
  flex: 1;
  height: 100%;
  padding-left: 8px;
  overflow: scroll;
}

.project-item-details ul li {
  margin: 4px 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .project-list hr {
    width: 100%;
  }

  .project-item {
    height: auto;
    max-height: 480px;
    flex-direction: column;
  }

  .only-text {
    height: auto;
  }
}
