/* ========== KEYFRAMES ========== */

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(10px); opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== LOADER ANIMATIONS ========== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo img {
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* ========== CURSOR ANIMATIONS ========== */
#cursor, #cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease, opacity 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
  #cursor, #cursor-follower { display: none !important; }
}

#cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
}

#cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  background: rgba(0, 242, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#cursor-follower.active {
  transform: scale(1.5);
  background: rgba(0, 242, 255, 0.1);
  border-color: var(--secondary);
}

/* ========== SECTION SPECIFIC ANIMATIONS ========== */
.hero-orb {
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

.orb-2 { animation-delay: -2s; }
.orb-3 { animation-delay: -4s; }

.about-card-main {
  animation: float 6s ease-in-out infinite;
}

.about-card-accent {
  animation: float 8s ease-in-out infinite reverse;
}

/* ========== TRANSITIONS ========== */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-reveal.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-reveal.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-reveal.active > *:nth-child(6) { transition-delay: 0.6s; }

/* Contact Form Success */
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: #00ff88;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.form-success.visible {
  display: flex;
}
