/* ========================================
   Keyframes
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

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

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

@keyframes arcRotate {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(335deg); }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes techScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes techScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
    opacity: 0.8;
  }
}

/* ========================================
   Scroll Reveal
   ======================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* Hero cascade */
.hero__card[data-reveal] { transition-delay: 0.05s; }
.hero__badge[data-reveal] { transition-delay: 0.1s; }
.hero__title-block[data-reveal] { transition-delay: 0.2s; }
.hero__desc[data-reveal] { transition-delay: 0.35s; }
.hero__stats[data-reveal] { transition-delay: 0.5s; }

/* ========================================
   Visual Effects
   ======================================== */

/* Card gradient overlay */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle shimmer on project cards */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.8s var(--ease);
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  left: 130%;
}

/* Arc slow rotation */
.hero__arc {
  animation: arcRotate 50s linear infinite;
}

/* Profile card float */
.hero__card-inner {
  animation: subtleFloat 7s ease-in-out infinite;
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__card-inner { animation: none; }
  .hero__arc { animation: none; }
  .marquee__track { animation: none; }
  .hero__badge-dot { animation: none; }
  .tech-row--left, .tech-row--right { animation: none; }
}
