
/* Prevent scrolling while loading */
body.loading-active {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

/* Loading section - fullscreen overlay */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.watereffect {
  isolation: isolate; 
  mix-blend-mode: multiply;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.watereffect img {
  max-width: 40%;
  max-height: 120%;
  object-fit: contain;
}
  
.watereffect::before {
  content: "";
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 30%;
  width: 30%;
  position: absolute;
  background-image: url(https://media0.giphy.com/media/3oEdvaxmd15YTHy6Uo/giphy.gif?cid=ecf05e47azzm1vgxel8zf4vjfphwcu5m9h4lfy1p27sko8uc&ep=v1_gifs_related&rid=giphy.gif&ct=g);
  filter: saturate(0);
  background-size: cover;
  background-position: center;
  background-repeat: none;
  animation: darken 2s 1s;
  opacity: 1;
  animation-fill-mode: forwards;
}
  
  
.watereffect > * {
  font-size: clamp(40px, 5vw, 201px);
  position: relative;
  padding: 20px;
  margin: -20px;
  mix-blend-mode: screen;
  background-color: white;
  color: #0BD3D3;
  overflow: hidden;
  animation: blur 3s;
}
  
.watereffect > *::after {
  content: "";
  display: block;
  top: 0;
  height: 100%;
  width: 200%;
  position: absolute;
  background-image: linear-gradient(315deg, #000000 0%, #ffffff 50%);
  mix-blend-mode: screen;
  animation: move 10s;
  animation-fill-mode: forwards;
}
  
@keyframes move {
  from {
    transform: translateX(0);
  }
  
  to {
    transform: translateX(-100%)
  }
}
  
@keyframes darken {
  from {
    opacity: 1
  }
  
  to {
    opacity: 0;
  }
}
  
@keyframes blur {
  from {
    filter: blur(3px);
  }
  
  to {
    filter: blur(0px);
  }
}

@media (max-width: 1024px) {
  .watereffect::before {
    height: 20%;
  }
}

@media (max-width: 768px) {
  .watereffect::before {
    height: 10%;
  }

}

@media (max-width: 425px) {
  .watereffect img {
    max-width: 100%;
  }
  .watereffect::before {
    width: 60%;
    height: 20%;
  }
}