/* ==========================================================================
   MITSUBISHI ELECTRIC ISRAEL CLONE — ANIMATIONS STYLESHEET
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(230, 0, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 18, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Intersection Observer Classes */
.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-active {
  opacity: 1;
  transform: none !important;
}

.reveal-fade {
  transform: scale(0.96);
}

.reveal-fade-up {
  transform: translateY(40px);
}

.reveal-fade-right {
  transform: translateX(50px);
}

.reveal-fade-left {
  transform: translateX(-50px);
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Micro-animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-red {
  animation: pulse 2s infinite;
}

/* Hover Accent Lines */
.animate-line {
  position: relative;
}
.animate-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}
.animate-line:hover::after {
  width: 100%;
}

/* Brand scrolling text marquee */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background-color: rgba(230, 0, 18, 0.03);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.brands-marquee {
  display: flex;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee-slide 25s linear infinite;
}
.marquee-badge {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.35;
  transition: opacity var(--transition-fast);
}
.marquee-badge:hover {
  opacity: 0.8;
  color: var(--color-primary);
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%); /* For RTL direction scrolling */
  }
}

/* Preloader custom animation values */
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
