/* ============================================================
   NINJI — Kawaii Animations & Background Effects
   ============================================================ */

/* ---- Keyframes ---- */

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

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

@keyframes drift-right {
    from { transform: translateX(-200px); }
    to { transform: translateX(calc(100vw + 200px)); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.15); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 157, 0.3); }
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.3; }
}

@keyframes rise {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---- Floating Hearts Background ---- */
.bg-hearts {
    position: relative;
}

.bg-hearts::before,
.bg-hearts::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* ---- Cloud Background ---- */
.floating-clouds {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    filter: blur(1px);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: inherit;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 10%;
    animation: drift-right 45s linear infinite;
}
.cloud-1::before {
    width: 100px;
    height: 80px;
    top: -40px;
    left: 30px;
}
.cloud-1::after {
    width: 120px;
    height: 70px;
    top: -30px;
    left: 70px;
}

.cloud-2 {
    width: 160px;
    height: 50px;
    top: 30%;
    animation: drift-right 60s linear infinite;
    animation-delay: -20s;
    opacity: 0.5;
}
.cloud-2::before {
    width: 80px;
    height: 60px;
    top: -30px;
    left: 20px;
}
.cloud-2::after {
    width: 90px;
    height: 55px;
    top: -25px;
    left: 50px;
}

.cloud-3 {
    width: 240px;
    height: 70px;
    top: 55%;
    animation: drift-right 55s linear infinite;
    animation-delay: -35s;
    opacity: 0.3;
}
.cloud-3::before {
    width: 110px;
    height: 90px;
    top: -45px;
    left: 40px;
}
.cloud-3::after {
    width: 130px;
    height: 80px;
    top: -35px;
    left: 90px;
}

/* ---- Floating Hearts (Decorative) ---- */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: fall linear infinite;
}

.heart:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; font-size: 0.8rem; }
.heart:nth-child(2) { left: 15%; animation-duration: 16s; animation-delay: -3s; font-size: 1.2rem; }
.heart:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: -7s; font-size: 0.7rem; }
.heart:nth-child(4) { left: 50%; animation-duration: 18s; animation-delay: -5s; font-size: 1rem; }
.heart:nth-child(5) { left: 65%; animation-duration: 13s; animation-delay: -10s; font-size: 0.9rem; }
.heart:nth-child(6) { left: 80%; animation-duration: 15s; animation-delay: -2s; font-size: 1.1rem; }
.heart:nth-child(7) { left: 92%; animation-duration: 17s; animation-delay: -8s; font-size: 0.6rem; }

/* ---- Sparkle Dots ---- */
.sparkle-dots {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-dot:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; }
.sparkle-dot:nth-child(2) { top: 20%; left: 75%; animation-delay: 0.8s; }
.sparkle-dot:nth-child(3) { top: 45%; left: 90%; animation-delay: 1.6s; }
.sparkle-dot:nth-child(4) { top: 60%; left: 5%; animation-delay: 0.4s; }
.sparkle-dot:nth-child(5) { top: 75%; left: 55%; animation-delay: 2s; }
.sparkle-dot:nth-child(6) { top: 15%; left: 40%; animation-delay: 1.2s; }

/* ---- Interactive Hover Effects ---- */

.wiggle-hover:hover {
    animation: wiggle 0.4s ease;
}

.bounce-hover {
    transition: transform 0.3s var(--bounce);
}

.bounce-hover:hover {
    transform: scale(1.05);
}

.lift-hover {
    transition: var(--transition);
}

.lift-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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