/* ============================================================
   TIMETORIOT — Animations
   riot-animations.css
   ============================================================ */

/* ── AOS CUSTOM ──────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

[data-aos="riot-fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-aos="riot-fade-right"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-aos="riot-fade-left"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-aos="riot-zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-aos="riot-fade-up"].aos-animate,
[data-aos="riot-fade-right"].aos-animate,
[data-aos="riot-fade-left"].aos-animate,
[data-aos="riot-zoom-in"].aos-animate {
  opacity: 1;
  transform: none;
}

/* ── HERO ANIMATIONS ─────────────────────────── */
@keyframes riot-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes riot-float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes riot-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riot-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riot-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes riot-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

@keyframes riot-morph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  25% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  75% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

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

/* ── FLOATING SHAPES ─────────────────────────── */
.riot-float-shape {
  animation: riot-float 6s ease-in-out infinite;
}

.riot-float-shape-2 {
  animation: riot-float-2 8s ease-in-out infinite;
}

.riot-rotate-shape {
  animation: riot-rotate-slow 20s linear infinite;
}

/* ── HERO TEXT REVEAL ────────────────────────── */
.riot-hero-animate-1 {
  animation: riot-fade-in-up 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.riot-hero-animate-2 {
  animation: riot-fade-in-up 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.riot-hero-animate-3 {
  animation: riot-fade-in-up 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.riot-hero-animate-4 {
  animation: riot-fade-in-up 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.riot-hero-animate-5 {
  animation: riot-fade-in-up 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

/* ── CURSOR ──────────────────────────────────── */
#riot-custom-cursor {
  width: 10px;
  height: 10px;
  background: var(--riot-green);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.1s ease;
}

#riot-cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(95, 245, 170, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

#riot-custom-cursor.riot-cursor-hover,
#riot-cursor-ring.riot-cursor-hover {
  transform: scale(2.5);
}

/* ── CARD HOVER EFFECTS ──────────────────────── */
.riot-card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}

.riot-card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(95,245,170,0.08);
}

/* ── MAGNETIC BUTTON ─────────────────────────── */
.riot-magnetic {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── GRADIENT BG ANIMATION ───────────────────── */
.riot-animated-gradient {
  background: linear-gradient(-45deg, #0a0a0a, #111a14, #0d1a0f, #0a0a0a);
  background-size: 400% 400%;
  animation: riot-gradient-shift 12s ease infinite;
}

/* ── STAGGER CHILDREN ────────────────────────── */
.riot-stagger > *:nth-child(1) { transition-delay: 0s; }
.riot-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.riot-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.riot-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.riot-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.riot-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ── MORPH BLOB ──────────────────────────────── */
.riot-morph-blob {
  animation: riot-morph 8s ease-in-out infinite;
}

/* ── TYPEWRITER CURSOR ───────────────────────── */
.riot-typewriter::after {
  content: '|';
  animation: riot-blink 1s step-end infinite;
  color: var(--riot-green);
}

/* ── SHIMMER LOADING ─────────────────────────── */
.riot-skeleton {
  background: var(--riot-surface);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.riot-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: riot-shimmer 1.5s infinite;
}

/* ── SECTION REVEAL ──────────────────────────── */
.riot-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.riot-reveal.riot-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── IMAGE HOVER ─────────────────────────────── */
.riot-img-hover-zoom {
  overflow: hidden;
}

.riot-img-hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.riot-img-hover-zoom:hover img {
  transform: scale(1.06);
}

/* ── HOVER REVEAL OVERLAY ────────────────────── */
.riot-hover-reveal {
  position: relative;
  overflow: hidden;
}

.riot-hover-reveal-content {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* ── GREEN GLOW ──────────────────────────────── */
.riot-glow-green {
  box-shadow: 0 0 30px rgba(95,245,170,0.15), inset 0 0 30px rgba(95,245,170,0.05);
}

/* ── TEXT SLIDE UP ───────────────────────────── */
.riot-text-slide-up {
  overflow: hidden;
  display: block;
}

.riot-text-slide-up span {
  display: block;
  animation: riot-fade-in-up 0.6s ease forwards;
}

/* ── GRID PATTERN ────────────────────────────── */
.riot-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── DOT PATTERN ─────────────────────────────── */
.riot-dot-bg {
  background-image: radial-gradient(rgba(95,245,170,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
