/* Homepage specific styles */
body {
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-section {
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: space-around;
  height: 85vh;
  width: 100%;
}

.loop-container {
  margin-top: 500px;
  white-space: nowrap;
  font-size: 5vw;
  letter-spacing: 1px;
  max-width: 100%;
}

.image-section {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 75vh;
  max-width: 100%;
}

.second-loop-container {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  overflow-x: hidden;
}

.images-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding-right: 2rem;
  position: absolute;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 300px;
  height: 440px;
}

.image-container img {
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}

.item {
  position: absolute;
  color: white;
  font-size: 14vw;
  font-weight: 500;
  line-height: 1;
}

.item2 {
  position: absolute;
  bottom: 20%;
  color: white;
  font-size: 14vw;
  font-weight: 500;
  line-height: 1;
}

.paragraph {
  letter-spacing: -0.015em;
  font-size: 4vw;
  font-weight: 300;
  line-height: 1.25;
}

.box {
  width: 10rem;
  height: 10rem;
  background: white;
  border-radius: 50%;
  transform: translateX(var(--tx, 0)) translateY(var(--ty, 0))
    scale(var(--scale, 1));
  transition: transform 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #121212;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.box a {
  color: #121212 !important;
}

.box:hover {
  --scale: 1.05;
}

.projects {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 100px;
}

.projects li {
  font-size: 20rem;
  z-index: 3;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transform: translateX(var(--tx, 0)) translateY(var(--ty, 0))
    scale(var(--scale, 1));
  transition: transform 0.1s ease;
  line-height: 1;
}

.projects li a {
  color: white;
  text-decoration: none;
}

/* Tablets & Small Laptops (768px - 1100px) */
@media (min-width: 768px) and (max-width: 1100px) {
  .item,
  .item2 {
    font-size: 18vw;
  }

  .paragraph {
    font-size: 5vw;
    padding: 0 3rem;
  }

  .projects li {
    font-size: 12vw;
  }

  .box {
    width: 9rem;
    height: 9rem;
  }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
  body {
    min-height: 150vh;
  }

  .hero-section {
    height: 70vh;
  }

  .item {
    font-size: 20vw;
    top: 20%;
  }

  .item2 {
    font-size: 20vw;
    bottom: auto;
    top: 50%;
  }

  .paragraph {
    font-size: 6vw;
    padding: 2rem 1.5rem;
    line-height: 1.4;
  }

  .box {
    width: 8rem;
    height: 8rem;
    margin: 0 1rem;
    font-size: 0.9rem;
  }

  .projects {
    gap: 40px;
    padding: 0 1rem;
    margin-bottom: 60px;
  }

  .projects li {
    font-size: 18vw;
  }

  footer {
    padding: 2rem 1rem !important;
    font-size: 0.8rem !important;
  }

  footer p {
    margin-bottom: 0.5rem;
  }

  footer a {
    margin: 0 0.5rem;
  }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .item {
    font-size: 22vw;
  }

  .item2 {
    font-size: 22vw;
  }

  .paragraph {
    font-size: 7vw;
    padding: 1.5rem 1rem;
  }

  .box {
    width: 7rem;
    height: 7rem;
    font-size: 0.8rem;
  }

  .projects li {
    font-size: 20vw;
  }

  .projects {
    gap: 30px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    height: 120vh;
  }

  .item {
    top: 15%;
  }

  .item2 {
    top: 45%;
  }
}
