@font-face {
  src: url("https://fonts.cdnfonts.com/css/pp-neue-montreal") format("woff2");
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "PP Neue Montreal", sans-serif, "Hakidame";;
  background-color: #131211;
  color: #f0ede8;
  padding: 1rem;
}

.projects-component {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.projects-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-list::-webkit-scrollbar {
  display: none;
}

.project-item {
  width: 100%;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  position: relative;
}

.project-title-container {
  position: relative;
  display: inline-block;
  z-index: 5;
  pointer-events: auto;
  will-change: transform, opacity, filter;
}

.project-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.hover-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #f0ede8;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  will-change: width, opacity;
}

.hover-indicator.left {
  left: -20px;
}

.hover-indicator.right {
  right: -20px;
}

.project-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  margin: 0;
  pointer-events: none;
}

.project-details {
  width: 25%;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  font-weight: 500;
}

.project-details .line-wrapper {
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.project-details.right {
  text-align: right;
}

.detail-label {
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.05rem;
}

.detail-year {
  margin-top: 0.5rem;
}

.project-image {
  width: 40%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (max-height: 700px) {
  .project-title {
    font-size: 2.5rem;
  }

  .project-item {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 768px) {
  .project-content {
    flex-direction: column;
  }

  .project-details {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .project-details.right {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .project-image {
    width: 80%;
  }

  .project-title {
    font-size: 2rem;
  }
}