/* ==========================================================================
   ANIMATIONS.CSS — Keyframes and transition utilities
   ========================================================================== */

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

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

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

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glitch-skew {
    0%   { transform: skew(0deg); }
    10%  { transform: skew(-1deg); }
    12%  { transform: skew(1deg); }
    14%  { transform: skew(0deg); }
    90%  { transform: skew(0deg); }
    91%  { transform: skew(0.5deg); }
    93%  { transform: skew(-0.5deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitch-clip {
    0%   { clip-path: inset(0 0 100% 0); }
    5%   { clip-path: inset(20% 0 60% 0); }
    10%  { clip-path: inset(60% 0 20% 0); }
    15%  { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

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

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

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

@keyframes nebula-drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.15; }
    33%  { transform: translate(30px, -20px) scale(1.05); opacity: 0.25; }
    66%  { transform: translate(-20px, 15px) scale(0.95); opacity: 0.2; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

/* Glitch effect (applied per reality) */
[data-effect="glitch"] .hero-headline {
    animation: glitch-skew 4s ease-in-out infinite;
}
[data-effect="glitch"] .hero-headline::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    color: var(--accent-b);
    clip-path: inset(30% 0 60% 0);
    animation: glitch-clip 3s steps(1) infinite;
}
[data-effect="glitch"] .hero-headline { position: relative; }

/* Nebula blobs (applied per reality) */
[data-effect="nebula"]::before,
[data-effect="nebula"]::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
[data-effect="nebula"]::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-a) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: nebula-drift 12s ease-in-out infinite;
}
[data-effect="nebula"]::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-c) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    animation: nebula-drift 16s ease-in-out infinite reverse;
}

/* Scroll hint animation */
.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-a), transparent);
    margin: 0 auto 0.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}
