/* Full Screen Animations - Cursy Framework Extended */

/* Particle Animation */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes particle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cursy-primary);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite, particle-pulse 2s ease-in-out infinite;
}

.particle:nth-child(2n) {
    background: var(--cursy-secondary);
    animation-duration: 8s, 3s;
}

.particle:nth-child(3n) {
    background: var(--cursy-accent);
    animation-duration: 12s, 4s;
}

.particle:nth-child(4n) {
    width: 12px;
    height: 12px;
    animation-duration: 15s, 5s;
}

/* Wave Animation */
@keyframes wave-flow {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(100vw) skewX(-15deg);
    }
}

.wave {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 107, 157, 0.3) 20%,
        rgba(78, 205, 196, 0.5) 50%,
        rgba(255, 230, 109, 0.3) 80%,
        transparent 100%);
    border-radius: 2px;
    animation: wave-flow linear infinite;
}

.wave:nth-child(1) {
    top: 20%;
    width: 200px;
    animation-duration: 8s;
}

.wave:nth-child(2) {
    top: 40%;
    width: 300px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.wave:nth-child(3) {
    top: 60%;
    width: 250px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.wave:nth-child(4) {
    top: 80%;
    width: 180px;
    animation-duration: 15s;
    animation-delay: 1s;
}

/* Sparkle Animation */
@keyframes sparkle-twinkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

@keyframes sparkle-float {
    0% {
        transform: translateY(0px) translateX(0px) scale(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1);
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(0.8);
    }
    75% {
        transform: translateY(-20px) translateX(5px) scale(1.2);
    }
    100% {
        transform: translateY(0px) translateX(0px) scale(0);
    }
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--cursy-accent) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-twinkle ease-in-out infinite, sparkle-float ease-in-out infinite;
}

.sparkle:nth-child(odd) {
    animation-duration: 3s, 6s;
}

.sparkle:nth-child(even) {
    animation-duration: 4s, 8s;
    animation-delay: 1s;
}

.sparkle:nth-child(5n) {
    width: 10px;
    height: 10px;
    animation-duration: 5s, 10s;
}

/* Logo Rotation Animation */
@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logo-fade-out {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) rotate(10deg);
    }
}

.logo-rotator .current-logo {
    animation: logo-fade-in var(--animation-speed-normal) ease-out;
}

.logo-rotator .next-logo {
    animation: logo-fade-out var(--animation-speed-normal) ease-out;
}

/* Pulse Animation for Interactive Elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 157, 0.8);
    }
}

.pulse-active {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Rainbow Text Animation */
@keyframes rainbow-text {
    0% { color: #ff6b9d; }
    16.66% { color: #4ecdc4; }
    33.33% { color: #ffe66d; }
    50% { color: #ff6b9d; }
    66.66% { color: #4ecdc4; }
    83.33% { color: #ffe66d; }
    100% { color: #ff6b9d; }
}

.rainbow-text {
    animation: rainbow-text 3s linear infinite;
}

/* Morphing Background */
@keyframes morph-bg {
    0%, 100% {
        background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    }
    25% {
        background: linear-gradient(135deg, #4ecdc4, #ffe66d);
    }
    50% {
        background: linear-gradient(135deg, #ffe66d, #ff6b9d);
    }
    75% {
        background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    }
}

.morph-bg {
    animation: morph-bg 10s ease-in-out infinite;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--cursy-primary); }
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--cursy-primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Bounce In Animation */
@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounce-in var(--animation-speed-normal) ease-out;
}

/* Slide In Animations */
@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slide-in-left var(--animation-speed-normal) ease-out;
}

.slide-in-right {
    animation: slide-in-right var(--animation-speed-normal) ease-out;
}

.slide-in-up {
    animation: slide-in-up var(--animation-speed-normal) ease-out;
}

/* Utility Classes for Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--animation-speed-normal) ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }