/* Logo Loop Section Styles */
.logo-loop-section {
  background: linear-gradient(135deg, #FCFDFD 0%, #F5F5F5 100%);
  overflow: hidden;
}

.logo-loop-slider {
  display: flex;
  gap: 80px;
}

.logo-loop-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
}

.logo-animation {
  font-family: "Fredoka One", "Baloo 2", "Righteous", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 120%;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
  text-align: center;
  letter-spacing: 2px;
}

.logo-animation span {
  position: relative;
  color: #FFFFFF;
  display: inline-block;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-animation span::after {
  position: absolute;
  top: 0;
  left: 0;
  content: attr(data-text);
  color: #E63946;
  opacity: 0;
  transform: rotateY(-90deg);
  animation: logoFlip 3s ease-in-out infinite;
}

.logo-animation span:nth-child(1) {
  animation-delay: 0s;
}
.logo-animation span:nth-child(1)::after {
  animation-delay: 0s;
}

.logo-animation span:nth-child(2) {
  animation-delay: 0.1s;
}
.logo-animation span:nth-child(2)::after {
  animation-delay: 0.1s;
}

.logo-animation span:nth-child(3) {
  animation-delay: 0.2s;
}
.logo-animation span:nth-child(3)::after {
  animation-delay: 0.2s;
}

.logo-animation span:nth-child(4) {
  animation-delay: 0.3s;
}
.logo-animation span:nth-child(4)::after {
  animation-delay: 0.3s;
}

.logo-animation span:nth-child(5) {
  animation-delay: 0.4s;
}
.logo-animation span:nth-child(5)::after {
  animation-delay: 0.4s;
}

.logo-animation span:nth-child(6) {
  animation-delay: 0.5s;
}
.logo-animation span:nth-child(6)::after {
  animation-delay: 0.5s;
}

.logo-animation span:nth-child(7) {
  animation-delay: 0.6s;
}
.logo-animation span:nth-child(7)::after {
  animation-delay: 0.6s;
}

/* Logo Float Animation */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Logo Flip Animation */
@keyframes logoFlip {
  0%, 20%, 100% {
    transform: rotateY(-90deg);
    opacity: 0;
  }
  30%, 70% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  80% {
    transform: rotateY(90deg);
    opacity: 0;
  }
}

/* Continuous Scroll Animation */
.logo-loop-slider {
  animation: continuousScroll 30s linear infinite;
}

@keyframes continuousScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.logo-loop-section:hover .logo-loop-slider {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-loop-slider {
    gap: 50px;
  }

  .logo-loop-item {
    min-width: 200px;
  }

  .logo-animation {
    font-size: 36px;
    gap: 3px;
  }
}
