/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

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

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

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

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

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

/* Active states (triggered by JS intersection observer) */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger reveals for list/grid items */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.8s; }

/* ==========================================================================
   FLOATING ELEMENTS (HERO SECTIONS)
   ========================================================================== */
@keyframes floatUp {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.float-slow {
  animation: floatUp 8s ease-in-out infinite;
}

.float-medium {
  animation: floatDown 6s ease-in-out infinite;
}

.float-fast {
  animation: floatUp 4s ease-in-out infinite;
}

/* ==========================================================================
   SKYLINE SVG SPECIAL ANIMATIONS
   ========================================================================== */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes shootingStar {
  0% {
    transform: translateX(0) translateY(0) rotate(-35deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateX(-50px) translateY(35px) rotate(-35deg) scale(1);
  }
  30% {
    transform: translateX(-200px) translateY(140px) rotate(-35deg) scale(0);
    opacity: 0;
  }
  100% {
    transform: translateX(-200px) translateY(140px) rotate(-35deg) scale(0);
    opacity: 0;
  }
}

@keyframes skylineGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.15)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.05));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.3)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.15));
  }
}

@keyframes lightBeam {
  0%, 100% {
    transform: rotate(15deg) scaleY(0.9);
    opacity: 0.1;
  }
  50% {
    transform: rotate(-15deg) scaleY(1.1);
    opacity: 0.25;
  }
}

/* Skyline CSS Binding Classes */
.skyline-glow-effect {
  animation: skylineGlow 10s ease-in-out infinite;
}

.twinkle-star {
  animation: twinkle 3s ease-in-out infinite;
}

.twinkle-star:nth-child(2n) {
  animation-delay: 0.5s;
  animation-duration: 4s;
}

.twinkle-star:nth-child(3n) {
  animation-delay: 1.2s;
  animation-duration: 2.5s;
}

.shooting-star-1 {
  animation: shootingStar 12s linear infinite;
  animation-delay: 2s;
}

.shooting-star-2 {
  animation: shootingStar 16s linear infinite;
  animation-delay: 7s;
}

.skyline-beam {
  transform-origin: bottom center;
  animation: lightBeam 15s ease-in-out infinite;
}

.skyline-beam-delayed {
  transform-origin: bottom center;
  animation: lightBeam 20s ease-in-out infinite;
  animation-delay: 4s;
}

/* ==========================================================================
   GLOW & INTERACTIVE MICRO-ANIMATIONS
   ========================================================================== */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.35);
  }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes gradientBgMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg-animate {
  background-size: 200% 200%;
  animation: gradientBgMove 12s ease infinite;
}

/* Card item internal highlights */
.hover-glow-border {
  position: relative;
}

.hover-glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  z-index: -2;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.hover-glow-border:hover::after {
  opacity: 0.35;
}

/* Custom interactive service items hover translate */
.service-list li {
  transition: transform var(--transition-fast) ease;
}

.service-list li:hover {
  transform: translateX(5px);
  color: var(--text-main);
}
