/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(79,156,249,0.2); }
  50%       { box-shadow: 0 0 40px rgba(79,156,249,0.5); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================================
   ENTRY ANIMATIONS (Hero)
   ============================================================ */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.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 REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   HERO IMAGE FLOAT
   ============================================================ */
.image-frame {
  animation: float 6s ease-in-out infinite;
}

/* ============================================================
   BADGE ANIMATIONS
   ============================================================ */
.hero-badge {
  animation: fadeInUp 0.8s ease forwards;
}
.badge-1 { animation-delay: 0.9s;  opacity: 0; }
.badge-2 { animation-delay: 1.1s;  opacity: 0; }
.badge-3 { animation-delay: 1.3s;  opacity: 0; }

/* ============================================================
   GRADIENT TEXT SHIFT
   ============================================================ */
.gradient-text {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

/* ============================================================
   TIMELINE DOT GLOW
   ============================================================ */
.timeline-dot {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ============================================================
   PROJECT PLACEHOLDER SHIMMER
   ============================================================ */
.project-img-placeholder {
  background: linear-gradient(
    90deg,
    rgba(79,156,249,0.05) 25%,
    rgba(79,156,249,0.12) 50%,
    rgba(79,156,249,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f9cf9, #a78bfa);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.92rem;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(45,212,191,0.4); }
.toast.success i { color: var(--accent-teal); }
.toast.error   { border-color: rgba(244,114,182,0.4); }
.toast.error i { color: var(--accent-pink); }
