/* BACKGROUND GRID ANIMATION */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(50px);
  }
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

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

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

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0);
}

/* STATS MOBILE CENTERED */
@media (max-width: 480px) {
  .stats-grid {
    gap: 60px !important;
  }

  .stats-grid .reveal-left,
  .stats-grid .reveal-right {
    text-align: center;
    padding: 0;
  }

  .stats-grid .flex {
    justify-content: center !important;
  }

  .stats-grid .stat-num {
    font-size: 3.2rem !important;
  }
}

/* INFINITE CAROUSEL */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollCarousel 40s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  padding: 0 40px;
}

.carousel-slide img {
  filter: grayscale(100%) brightness(180%);
  opacity: 0.6;
  transition: all 0.4s ease;
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
}

.carousel-slide:hover img {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

.carousel-slide .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-slide:hover .logo-text {
  color: #fff;
}

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

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

/* HOVER MICRO-INTERACTIONS */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

a:hover .arrow-icon {
  transform: translateX(5px);
}

/* SCROLL DOWN INDICATOR */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-down.active {
  transform: translateX(-50%) translateY(0);
}

.scroll-down-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--text-secondary);
  border-radius: 10px;
  position: relative;
}

.scroll-down-arrow::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  100% {
    top: 18px;
    opacity: 0;
  }
}

/* SECTOR CARD ANIMATIONS */
@keyframes gradientShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.3;
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px 2px rgba(232, 93, 4, 0.15);
  }
}