/* ===== ANIMATIONS ===== */

/* Fade Up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade Left */
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.3); }
  50%       { box-shadow: 0 0 50px rgba(59,130,246,0.6); }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* Shimmer */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scan Line */
@keyframes scanLine {
  0%   { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== UTILITY ANIMATION CLASSES ===== */
.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
}
.animate-fade-left {
  animation: fadeLeft 0.7s ease forwards;
  opacity: 0;
}

/* Delays */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SHIELD PULSE ===== */
.shield-inner {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ===== FLOATING FEATURE CARDS ===== */
.fc-1 { animation: float 4s ease-in-out infinite; }
.fc-2 { animation: float 4s ease-in-out infinite 1s; }
.fc-3 { animation: float 4s ease-in-out infinite 2s; }
.fc-4 { animation: float 4s ease-in-out infinite 3s; }

/* ===== GRADIENT TEXT SHIMMER ===== */
.gradient-text {
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* ===== PARTICLES ===== */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; border-radius: 50%;
  background: var(--accent-blue);
  animation: particleFloat linear infinite;
  opacity: 0;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ===== NAVBAR HAMBURGER ACTIVE ===== */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HOVER CARD GLOW ===== */
.service-card::before,
.portfolio-card::before,
.tech-detail-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,130,246,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.service-card, .portfolio-card, .tech-detail-card { position: relative; }
.service-card:hover::before,
.portfolio-card:hover::before,
.tech-detail-card:hover::before { opacity: 1; }

/* ===== TYPING CURSOR ===== */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent-blue);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== PAGE TRANSITION ===== */
body { animation: fadeIn 0.4s ease; }
