@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  background-color: rgba(1, 0, 2, 0.063);
  visibility: visible;
  transform: translateY(0);
}

.login-btn a {
  animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {

  0%,
  100% {
    border-color: #8c00ff00;
    box-shadow:
      0 0 10px #8c00ff00,
      inset 0 0 10px #8c00ff00;
  }

  50% {
    border-color: #8c00ffb2;
    box-shadow:
      0 0 20px #8c00ffb2,
      inset 0 0 20px #8c00ffb2;
  }
}

.contact-form-input:focus,
.contact-form-textarea:focus,
.contact-form-select:focus {
  border-color: #3f0f6a;
}

.animate-custom-scroll {
  animation: rightToLeftScroll 20s linear infinite;
}

@keyframes rightToLeftScroll {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(-50px) rotate(0deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.animate-marquee {
  animation: marqueeScroll 60s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* INDEX CARDS ANIMATION */

@keyframes leftToCenter {
  0% {
    transform: translateX(-24px) scale(0.9) rotate(-3deg);
    opacity: 0.92;
    filter: blur(0.4px);
  }

  40% {
    transform: translateX(calc(-50% - 30px)) translateY(-50px) scale(0.6) rotate(-38deg);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes currentToRightBack {
  0% {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
    z-index: 30;
  }

  50% {
    transform: translateX(calc(50% + 40px)) translateY(-45px) scale(0.58) rotate(36deg);
    opacity: 0.7;
    filter: blur(2px);
  }

  100% {
    transform: translateX(80px) scale(0.82) rotate(8deg);
    opacity: 0.5;
    filter: blur(3px);
    z-index: 10;
  }
}

@keyframes rightToCenter {
  0% {
    transform: translateX(24px) scale(0.9) rotate(3deg);
    opacity: 0.92;
    filter: blur(0.4px);
  }

  40% {
    transform: translateX(calc(50% + 30px)) translateY(-50px) scale(0.6) rotate(38deg);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes currentToLeftBack {
  0% {
    transform: translateX(0) scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translateX(calc(-50% - 40px)) translateY(-45px) scale(0.58) rotate(-36deg);
    opacity: 0.7;
    filter: blur(2px);
  }

  100% {
    transform: translateX(-80px) scale(0.82) rotate(-8deg);
    opacity: 0.5;
    filter: blur(3px);
    z-index: 10;
  }
}

/* Классы для навешивания анимации */
.animate-from-left {
  animation: leftToCenter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 40 !important;
}

.animate-current-to-right {
  animation: currentToRightBack 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-from-right {
  animation: rightToCenter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 40 !important;
}

.animate-current-to-left {
  animation: currentToLeftBack 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ==========================================
   PREMIUM SCROLL-REVEAL SYSTEM
   ========================================== */

/* Base values before reveal (opacity 0 + initial transform) */
.reveal-heading,
.reveal-text,
.reveal-btn,
.reveal-card,
.reveal-img {
  opacity: 0 !important;
  transition-property: opacity, transform, filter !important;
  transition-duration: 1.4s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  /* Elegant easeOutExpo timing */
  transition-delay: var(--reveal-delay, 0ms) !important;
  will-change: transform, opacity;
}

/* Specific starting states for a natural feel */
.reveal-heading {
  transform: translateY(40px) !important;
}

.reveal-text {
  transform: translateY(25px) !important;
}

.reveal-btn {
  transform: translateY(20px) scale(0.96) !important;
}

.reveal-card {
  transform: translateY(50px) scale(0.97) !important;
}

.reveal-img {
  transform: translateY(35px) scale(0.96) !important;
}

/* Active states when their parent section enters the viewport */
.reveal-section.reveal-active .reveal-heading,
.reveal-section.reveal-active .reveal-text,
.reveal-section.reveal-active .reveal-btn,
.reveal-section.reveal-active .reveal-card,
.reveal-section.reveal-active .reveal-img {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Clean up classes once the reveal completes to allow original hover animations to work */
.reveal-heading.reveal-complete,
.reveal-text.reveal-complete,
.reveal-btn.reveal-complete,
.reveal-card.reveal-complete,
.reveal-img.reveal-complete {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  transition-delay: 0ms !important;
}

/* Parallax zoom & offset container */
.parallax-img-container {
  overflow: hidden !important;
  position: relative !important;
}

/* Parallax image transitions and initial state */
.parallax-img {
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  will-change: transform;
}