.main-slider-area {
  position: relative;
  overflow: hidden;
}

#particles-js {
  mix-blend-mode: plus-lighter;
}

.main-slider-item {
  position: relative;
  z-index: 0;
}

.main-slider-content {
  position: relative;
  z-index: 2;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansX-Bold.woff2") format("woff2");
  font-weight: bold;
}

.slider-title {
  font-family: "IRANSansX", sans-serif;
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: right;
  direction: rtl;
}

.text-wrapper {
  font-size: 3.5rem;
  font-weight: bold;
  min-height: 200px;
  position: relative;
  padding: 10px;
}

.animated-text {
  display: block;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.text-line {
  position: absolute;
  bottom: 2;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

.shine {
  position: relative;
  overflow: hidden;
  z-index: 5;
}
/* .fl-bg-video {
  height: 87vh;
} */
.shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.fade-in {
  animation: fadeInUp 1s forwards;
}

.fade-out {
  animation: fadeOut 1s forwards;
}

.line-animate {
  animation: lineGrow 0.8s forwards;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/fonts/IRANSansX-Bold.woff2") format("woff2");
  font-weight: bold;
}

.slider-title {
  font-family: "IRANSansX", sans-serif;
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: right;
  direction: rtl;
  width: 80%;
  max-width: 1200px;
}

.text-wrapper {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  min-height: min(200px, 30vh);
  position: relative;
  padding: clamp(5px, 2vw, 10px);
  margin: 0 auto;
}

.animated-text {
  display: block;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  word-wrap: break-word;
  line-height: 1.3;
}

@media screen and (max-width: 1200px) {
  .slider-title {
    right: 5%;
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  .text-wrapper {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    min-height: min(150px, 25vh);
  }

  .slider-title {
    right: 5%;
    width: 90%;
    bottom: -60px;
  }
}

@media screen and (max-width: 480px) {
  .text-wrapper {
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    min-height: min(100px, 20vh);
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .slider-title {
    display: none;
  }
  #particles-js {
    display: none;
  }
  .slider-title {
    right: 3%;
    width: 94%;
    right: 3%;
    width: 94%;
    top: 211px;
  }
}

@media screen and (max-width: 320px) {
  .text-wrapper {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }
}

.text-line {
  position: absolute;
  bottom: 10;
  right: 0;
  width: 0;
  height: clamp(2px, 0.5vw, 3px);
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.fade-in {
  animation: fadeInUp 1s forwards;
}

.fade-out {
  animation: fadeOut 1s forwards;
}

.line-animate {
  animation: lineGrow 0.8s forwards;
}
