@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
}

:root {
  --primary-clr: #3d52a0;
  --secondary-clr: #7091e6;
  --white-clr: #fff;
  --gray-clr: #8697c4;
  --light-gray-clr: #adbbda;
  --light-white-clr: #ede8f5;
}

.image_section_wrapper h1 {
  font-size: 50px;
  text-align: center;
  color: #000;
  font-weight: 800;
  margin-bottom: 40px;
}

.image_section_wrapper .secondary_text {
  color: var(--secondary-clr);
  font-weight: 900;
}

.image_section_container {
  position: relative;
}

.image_section_container::before,
.image_section_container::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  position: absolute;
  width: 100%;
  z-index: 99;
}
.image_section_container::before {
  left: 0;
  top: 0;
  height: 15%;
}
.image_section_container::after {
  bottom: 0;
  left: 0;
  transform: rotateX(180deg);
  height: 15%;
}

.image-section {
  display: flex;
  justify-content: space-around;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* background-color: #f3f3f3; */
}

.column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation-duration: 60s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.column img {
  border-radius: 10px;
  width: 220px;
  /* height: auto; */
  height: 300px;
  margin: 10px 0;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative; /* Ensure proper stacking context */
  z-index: 1;
}

.column:nth-child(odd) {
  animation-name: scrollDown;
}

.column:nth-child(even) {
  animation-name: scrollUp;
}

/* Animations */
@keyframes scrollDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

.image-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.908);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply; /* Optional: Use for blending effects */
}

.column:hover {
  animation-play-state: paused;
}

.column:hover img {
  opacity: 1;
}

.column img:hover {
  transform: scale(1.1);
  z-index: 10; /* Bring hovered image above the overlay */
  position: relative; /* Ensure hovered image is above overlay */
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border: 1px solid var(--gray-clr);
}

@media (max-width: 425px) {
  .image_section_wrapper h1 {
    font-size: 20px;
  }

  .column img {
    border-radius: 10px;
    width: 100px;
    /* height: auto; */
    height: 300px;
    margin: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative; /* Ensure proper stacking context */
    z-index: 1;
  }
}

@media (min-width: 426px) and (max-width: 768px) {
  .image_section_wrapper h1 {
    font-size: 32px;
  }

  .column img {
    border-radius: 10px;
    width: 160px;
    /* height: auto; */
    height: 300px;
    margin: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative; /* Ensure proper stacking context */
    z-index: 1;
  }
}
