/* ============================================
   ZIYO INTERNATIONAL - ADVANCED ANIMATIONS
   Netflix/Hollywood Elite Animation System
   Version: 1.0 | January 2026
   ============================================ */

/* ============================================
   1. KEYFRAME ANIMATIONS
   ============================================ */

/* Subtle Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(184, 115, 51, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(184, 115, 51, 0.5);
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

/* Subtle Float */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-5px) rotate(1deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

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

/* Scale Pulse */
@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Gradient Shift */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Text Reveal */
@keyframes textReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Line Draw */
@keyframes lineDraw {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Typewriter Cursor */
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

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

/* ============================================
   2. SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Reveal from Bottom */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reveal from Left */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from Right */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal Scale */
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Reveal Rotate */
.reveal-rotate {
  opacity: 0;
  transform: perspective(1000px) rotateX(30deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center bottom;
}

.reveal-rotate.visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0);
}

/* Blur Reveal */
.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transition: all 0.8s ease-out;
}

.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
}

/* Clip Reveal */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
}

/* Stagger Animation Classes */
.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }
.stagger-item:nth-child(7) { transition-delay: 0.7s; }
.stagger-item:nth-child(8) { transition-delay: 0.8s; }
.stagger-item:nth-child(9) { transition-delay: 0.9s; }
.stagger-item:nth-child(10) { transition-delay: 1s; }

/* ============================================
   3. HOVER EFFECTS
   ============================================ */

/* Magnetic Hover Effect */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tilt Effect */
.tilt-effect {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

/* Glow Hover */
.glow-hover {
  position: relative;
  transition: all 0.4s ease;
}

.glow-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--copper-gradient);
  opacity: 0;
  filter: blur(30px);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.glow-hover:hover::before {
  opacity: 0.5;
}

/* Shine Hover */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.shine-hover:hover::after {
  left: 150%;
}

/* Border Glow */
.border-glow {
  position: relative;
  background: var(--dark-card);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.border-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--copper-gradient);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.border-glow:hover::before {
  opacity: 1;
}

/* Underline Animation */
.underline-hover {
  position: relative;
  display: inline-block;
}

.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--copper-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   4. BUTTON ANIMATIONS
   ============================================ */

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Button Slide Fill */
.btn-slide-fill {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-slide-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--copper-gradient);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-slide-fill:hover::before {
  width: 100%;
}

/* ============================================
   5. CARD ANIMATIONS
   ============================================ */

/* Card 3D Lift */
.card-3d-lift {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.card-3d-lift:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(184, 115, 51, 0.15);
}

/* Card Expand */
.card-expand {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-expand:hover {
  transform: scale(1.02);
  z-index: 10;
}

/* Card Content Reveal */
.card-content-reveal .card-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.card-content-reveal:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   6. TEXT ANIMATIONS
   ============================================ */

/* Split Text Animation Placeholder (JS Required) */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

.split-text.visible .char {
  animation: charReveal 0.6s ease forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Effect */
.typing-text {
  overflow: hidden;
  border-right: 2px solid var(--copper-gold);
  white-space: nowrap;
  animation:
    typing 3.5s steps(40, end),
    blink 1s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Gradient Text Animation */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--copper-gold),
    var(--copper-light),
    var(--accent-gold),
    var(--copper-light),
    var(--copper-gold)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

/* ============================================
   7. LOADING ANIMATIONS
   ============================================ */

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--dark-border);
  border-top-color: var(--copper-gold);
  border-radius: 50%;
  animation: rotateSlow 1s linear infinite;
}

/* Pulse Loader */
.pulse-loader {
  display: flex;
  gap: 8px;
}

.pulse-loader span {
  width: 12px;
  height: 12px;
  background: var(--copper-gold);
  border-radius: 50%;
  animation: pulseLoader 1.4s ease-in-out infinite;
}

.pulse-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.pulse-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulseLoader {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--dark-card) 25%,
    var(--dark-tertiary) 50%,
    var(--dark-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================
   8. PAGE TRANSITIONS
   ============================================ */

/* Fade Page Transition */
.page-transition {
  animation: pageFadeIn 0.5s ease-out;
}

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

/* Slide Up Entrance */
.slide-up-entrance {
  animation: slideUpEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ============================================
   9. SPECIAL EFFECTS
   ============================================ */

/* Particles Background */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--copper-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatSubtle 8s ease-in-out infinite;
}

/* Copper Shimmer Line */
.shimmer-line {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--copper-gold),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* Glow Orb */
.glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(184, 115, 51, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

/* ============================================
   10. ICON ANIMATIONS
   ============================================ */

/* Icon Bounce */
.icon-bounce:hover i,
.icon-bounce:hover svg {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
}

/* Icon Spin */
.icon-spin:hover i,
.icon-spin:hover svg {
  animation: iconSpin 0.6s ease;
}

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

/* Icon Scale */
.icon-scale {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.icon-scale:hover {
  transform: scale(1.2);
}

/* ============================================
   11. MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767.98px) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateX(0) translateY(0);
  }

  .tilt-effect:hover {
    transform: none;
  }

  .card-3d-lift:hover {
    transform: translateY(-10px);
  }
}

/* ============================================
   12. SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--copper-gradient);
  z-index: 9999;
  width: 0;
  transition: width 0.1s ease-out;
}

/* ============================================
   13. REDUCED MOTION SUPPORT
   ============================================ */

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

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-rotate,
  .reveal-blur,
  .reveal-clip {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
