/* ========== LOGO ANIMATION (D3 Cinematic) ========== */
@keyframes logoDrawRing {
  0% { stroke-dashoffset: 300; opacity: 0; }
  60% { stroke-dashoffset: 0; opacity: 0.25; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

@keyframes logoTraceLoop {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

@keyframes logoTraceIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes logoXGlow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(59,130,246,0)); }
  50% { filter: drop-shadow(0 0 12px rgba(59,130,246,0.6)); }
}

.logo-ring-base {
  stroke-dasharray: 300;
  animation: logoDrawRing 2s ease forwards;
}

.logo-ring-trace {
  stroke-dasharray: 45 255;
  opacity: 0;
  animation: logoTraceIn 0.5s ease 1.5s forwards, logoTraceLoop 2.5s linear 1.5s infinite;
  filter: drop-shadow(0 0 10px rgba(239,68,68,1)) drop-shadow(0 0 25px rgba(239,68,68,0.5));
}

.logo-x-glow {
  animation: logoXGlow 3s ease-in-out 2s infinite;
}

/* Navbar logo: skip draw-on, just trace */
.nav .logo-ring-base {
  stroke-dasharray: none;
  animation: none;
  opacity: 0.2;
}

.nav .logo-ring-trace {
  animation: logoTraceLoop 2.5s linear infinite;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(239,68,68,0.9));
}

/* ========== FADE IN UP ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ========== FADE IN ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* ========== SLIDE IN LEFT ========== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  opacity: 0;
  animation: slideInLeft 0.7s ease forwards;
}

/* ========== SCALE IN ========== */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.5s ease forwards;
}

/* ========== SCROLL-TRIGGERED ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== HERO PARALLAX OVERLAY ========== */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

/* ========== BEFORE/AFTER SLIDER ========== */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ba-slider__before,
.ba-slider__after {
  display: block;
  width: 100%;
}

.ba-slider__before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider__after {
  display: block;
  width: 100%;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  cursor: ew-resize;
  z-index: 2;
}

.ba-slider__handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
