/* ============================================
   ANIMATIONS.CSS — Keyframes и CSS-анимации
   ============================================ */

/* === FLOATING PARTICLES === */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-30px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(-3deg); }
    66% { transform: translateY(-10px) rotate(3deg); }
}

/* === GLOW PULSE === */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
        filter: brightness(1.15);
    }
}

@keyframes glow-pulse-red {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(139, 0, 0, 0.5);
    }
}

/* === TEXT SHIMMER === */
@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--accent-gold) 0%,
        var(--accent-gold-light) 25%,
        var(--accent-gold) 50%,
        var(--accent-gold-light) 75%,
        var(--accent-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
}

/* === STAR ROTATION === */
@keyframes star-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* === PARTICLE SPARKLE === */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* === LINE DRAW === */
@keyframes line-draw {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* === FADE VARIATIONS === */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fade-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* === GRADIENT MOVE === */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* === BORDER GLOW ROTATE === */
@keyframes border-rotate {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

/* === MYSTICAL ORB === */
@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, -60px) scale(0.95);
        opacity: 0.4;
    }
    75% {
        transform: translate(10px, -30px) scale(1.05);
        opacity: 0.35;
    }
}

/* === HERO BACKGROUND PARTICLES (CSS) === */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

.hero-particles .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 0.5s; }
.hero-particles .particle:nth-child(3) { left: 40%; top: 35%; animation-delay: 1s; }
.hero-particles .particle:nth-child(4) { left: 55%; top: 75%; animation-delay: 1.5s; }
.hero-particles .particle:nth-child(5) { left: 70%; top: 15%; animation-delay: 2s; }
.hero-particles .particle:nth-child(6) { left: 85%; top: 50%; animation-delay: 0.3s; }
.hero-particles .particle:nth-child(7) { left: 15%; top: 80%; animation-delay: 0.8s; }
.hero-particles .particle:nth-child(8) { left: 60%; top: 45%; animation-delay: 1.3s; }
.hero-particles .particle:nth-child(9) { left: 90%; top: 70%; animation-delay: 1.8s; }
.hero-particles .particle:nth-child(10) { left: 35%; top: 10%; animation-delay: 2.3s; }
.hero-particles .particle:nth-child(11) { left: 50%; top: 90%; animation-delay: 0.6s; }
.hero-particles .particle:nth-child(12) { left: 75%; top: 30%; animation-delay: 1.1s; }

/* Mystical orbs in background */
.mystical-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.mystical-orb--red {
    background: radial-gradient(circle, rgba(139, 0, 0, 0.3), transparent);
    animation: orb-float 12s ease-in-out infinite;
}

.mystical-orb--gold {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
    animation: orb-float 15s ease-in-out infinite reverse;
}

.mystical-orb--purple {
    background: radial-gradient(circle, rgba(75, 0, 130, 0.2), transparent);
    animation: orb-float 18s ease-in-out infinite;
    animation-delay: -5s;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fade-in-up 1s ease 1.5s both;
}

.scroll-indicator__mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* === SECTION DECORATORS === */
.section-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.section-glow--top-left {
    top: -200px;
    left: -200px;
    background: var(--primary-red);
}

.section-glow--bottom-right {
    bottom: -200px;
    right: -200px;
    background: var(--accent-gold);
}

/* === COUNTER ANIMATION === */
.counter {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter__label {
    font-family: var(--font-accent);
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

/* === MARQUEE TEXT === */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.marquee__inner {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee__text {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 4px;
    padding: 0 40px;
}

.marquee__text .gold {
    color: var(--accent-gold);
}

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