/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Page load animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitchFlicker {
  0%, 100% { opacity: 1; }
  33%      { opacity: 0.8; }
  66%      { opacity: 0.95; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  }
}

@keyframes pulseWhite {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Apply animations */
.navbar {
  animation: slideDown 0.8s ease forwards;
}

.hero-bg-img {
  opacity: 0;
  animation: fadeIn 1.5s ease 0.1s forwards;
}

.hero-text {
  opacity: 0;
  animation: fadeInRight 1s ease 0.5s forwards;
}

.title-line:first-child {
  opacity: 0;
  animation: fadeInRight 0.8s ease 0.6s forwards;
}

.title-line.accent {
  opacity: 0;
  animation: fadeInRight 0.8s ease 0.8s forwards;
}

.scramble-text {
  animation: glitchFlicker 0.15s ease infinite;
  animation-delay: 1s;
  animation-iteration-count: 6;
}

.whatsapp-float {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Service buttons stagger */
.service-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, color 0.3s ease;
}

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

.service-btn:nth-child(1).visible { transition-delay: 0s; }
.service-btn:nth-child(2).visible { transition-delay: 0.15s; }
.service-btn:nth-child(3).visible { transition-delay: 0.3s; }

/* Mobile overlay bg */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
