.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-overlay h1 {
  font-family: "classico", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 1000px;
  margin: 0 auto;
  letter-spacing: 0.05em;
  color: white;
  text-decoration: none;
  cursor: default;
}

.hero-overlay h1 {
  font-size: 4rem;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid #41cc3f;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5px;
  z-index: 3;
  opacity: 0.8;
}

.scroll-indicator span {
  width: 6px;
  height: 6px;
  background-color: #41cc3f;
  border-radius: 50%;
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.profiili-container {
  display: flex;
  justify-content: center;
  background-color: #000;
}

.profiili-container img {
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.container {
  background-color: #000;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#works {
  scroll-margin-top: 100px;
}

.work-inner {
  position: relative;
  overflow: hidden;
}

.works-title {
  font-family: sans-serif;
  text-align: center;
  color: #41cc3f;
  font-size: 2.5rem;
  margin: 2rem 0;
}

.work-container {
  position: relative;
  color: white;
  z-index: 0;
}

.work-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/artturi2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.triangle-pyramid {
  position: relative;
  width: 1440px;
  height: 1110px;
  margin: 3rem auto;
}

.triangle {
  position: absolute;
  width: 480px;
  height: 390px;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  overflow: hidden;
  cursor: pointer;
}

.triangle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.triangle-overlay {
  font-family: sans-serif;
  position: absolute;
  font-weight: 600;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 82, 21, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding-bottom: 4rem;
}

.triangle:hover img {
  transform: scale(1.05);
}

.triangle:hover .triangle-overlay {
  opacity: 1;
}

/* Responsiivisuus */

@media (max-width: 768px) {
  .profiili-container,
  .about-artturi {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .profiili-container img {
    max-height: none;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 425px) {
  .hero-overlay h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .scroll-indicator {
    bottom: 80px;
  }

  .video-container {
    aspect-ratio: 16 / 9;
    width: 50%;
  }
}

/* Hide mobile carousel by default */
.mobile-carousel {
  display: none;
}

/* Show on mobile only */
@media (max-width: 1024px) {
  .triangle-pyramid {
    display: none;
  }

  .mobile-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
  }

  .mobile-carousel .triangle {
    flex: 0 0 auto;
    width: 250px;
    height: 220px;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    overflow: hidden;
    scroll-snap-align: center;
    position: relative;
  }

  .mobile-carousel .triangle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .mobile-carousel .triangle:hover img {
    transform: scale(1.05);
  }

  .mobile-carousel .triangle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem 2rem 5rem 2rem;
  }

  .mobile-carousel .triangle:hover .triangle-overlay {
    opacity: 1;
  }
}
