/* ============================================================
   منصة الصقر الجريء — Animations & Keyframes
   ============================================================ */

/* ════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════ */

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

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

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes floatYSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-24px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.97); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.2); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

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

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes borderSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

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

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  33%  { transform: translateY(-40px) translateX(20px) scale(1.1); opacity: 0.6; }
  66%  { transform: translateY(-20px) translateX(-15px) scale(0.9); opacity: 0.4; }
  100% { transform: translateY(-80px) translateX(5px) scale(0.5); opacity: 0; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

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

@keyframes navbarSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

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

@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-8px); }
  60%       { transform: translateY(-4px); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(201,168,76,0.4)); }
  50%       { filter: drop-shadow(0 0 16px rgba(201,168,76,0.8)); }
}

/* ════════════════════════════════════════
   UTILITY ANIMATION CLASSES
════════════════════════════════════════ */

.animate-float      { animation: floatY 4s ease-in-out infinite; }
.animate-float-slow { animation: floatYSlow 6s ease-in-out infinite; }
.animate-pulse      { animation: pulse 2s ease-in-out infinite; }
.animate-glow       { animation: pulseGlow 2.5s ease-in-out infinite; }
.animate-spin       { animation: rotateSlow 20s linear infinite; }
.animate-spin-rev   { animation: rotateSlowReverse 15s linear infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, var(--gold-400) 0%, var(--gold-200) 40%, var(--gold-400) 80%);
  background-size: 200% auto;
  animation: shimmer 2.5s linear infinite;
}
.animate-fade-in    { animation: fadeIn 0.5s ease forwards; }
.animate-fade-up    { animation: fadeInUp 0.6s ease forwards; }
.animate-glow-icon  { animation: glowPulse 2s ease-in-out infinite; }

/* ════════════════════════════════════════
   PARTICLE SYSTEM
════════════════════════════════════════ */

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-400);
  animation: particleFloat 6s ease-in infinite;
  pointer-events: none;
}

/* ════════════════════════════════════════
   HERO GEOMETRIC SHAPES
════════════════════════════════════════ */

.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
}

.hero-shape-1 {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  animation: rotateSlow 40s linear infinite;
  border-color: rgba(201,168,76,0.08);
}

.hero-shape-2 {
  width: 400px; height: 400px;
  top: 50px; left: 50px;
  animation: rotateSlowReverse 30s linear infinite;
  border-color: rgba(201,168,76,0.12);
}

.hero-shape-3 {
  width: 200px; height: 200px;
  top: 200px; left: 200px;
  animation: rotateSlow 20s linear infinite;
  border-color: rgba(201,168,76,0.2);
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.hero-shape-right-1 {
  width: 500px; height: 500px;
  bottom: -100px; right: -80px;
  animation: rotateSlowReverse 45s linear infinite;
  border-color: rgba(74,144,226,0.08);
}

.hero-shape-right-2 {
  width: 300px; height: 300px;
  bottom: 50px; right: 50px;
  animation: rotateSlow 25s linear infinite;
  border-color: rgba(201,168,76,0.1);
}

/* ════════════════════════════════════════
   GLOW ORBS
════════════════════════════════════════ */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

.glow-orb-gold {
  background: radial-gradient(circle, #C9A84C, #B8922A);
}

.glow-orb-blue {
  background: radial-gradient(circle, #4A90E2, #2A4D8A);
  opacity: 0.1;
}

/* ════════════════════════════════════════
   TYPING ANIMATION
════════════════════════════════════════ */

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-left: 3px solid var(--gold-400);
  animation: typewriter 3s steps(30, end) forwards,
             blink 0.75s step-end infinite;
  max-width: fit-content;
}

/* ════════════════════════════════════════
   LOADING SKELETON
════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ════════════════════════════════════════
   HOVER TILT EFFECT
════════════════════════════════════════ */

.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* ════════════════════════════════════════
   SCROLL PROGRESS
════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--grad-gold);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  box-shadow: var(--shadow-gold-sm);
}

/* ════════════════════════════════════════
   PAGE TRANSITIONS
════════════════════════════════════════ */

.page-enter {
  animation: fadeIn 0.4s ease forwards;
}

/* ════════════════════════════════════════
   REDUCE MOTION
════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
