/**
 * NICEWISE – Animations Stylesheet
 * Gradients, floating, parallax, particles, music notes
 */

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(255, 215, 0, 0.2); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes note-float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    50% { opacity: 0.6; }
    100% {
        transform: translateY(-100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes border-glow {
    0%, 100% { border-color: rgba(255, 215, 0, 0.15); }
    50% { border-color: rgba(255, 215, 0, 0.4); }
}

/* ============================================
   ANIMATED GRADIENT TEXT
   ============================================ */
.gradient-text-animated {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700, #FFE55C);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* ============================================
   MUSIC NOTES
   ============================================ */
.music-notes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.music-notes .note {
    position: absolute;
    color: rgba(255, 215, 0, 0.15);
    font-size: 1.5rem;
    animation: note-float 15s linear infinite;
    bottom: -50px;
}

.note-1 { left: 10%; animation-delay: 0s; font-size: 1.2rem; }
.note-2 { left: 30%; animation-delay: 4s; font-size: 1.8rem; }
.note-3 { left: 60%; animation-delay: 8s; font-size: 1rem; }
.note-4 { left: 80%; animation-delay: 12s; font-size: 1.5rem; }

@media (max-width: 768px) {
    .music-notes { display: none; }
}

/* ============================================
   PARTICLES
   ============================================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float linear infinite;
    pointer-events: none;
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-animated:hover::before {
    left: 100%;
}

/* ============================================
   PULSE GLOW
   ============================================ */
.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   HOVER LIFT
   ============================================ */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ============================================
   IMAGE ZOOM ON HOVER
   ============================================ */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   PARALLAX
   ============================================ */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================
   SHIMMER LOADING
   ============================================ */
.shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   TYPING CURSOR
   ============================================ */
.typing-cursor::after {
    content: '|';
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   REVEAL ON SCROLL HELPERS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   GLASSMORPHISM ENHANCED
   ============================================ */
.glass-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-lg);
    transition: border-color 0.35s, box-shadow 0.35s;
}

.glass-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.05);
}

/* ============================================
   NEON BORDER ANIMATION
   ============================================ */
.neon-border {
    animation: border-glow 3s ease-in-out infinite;
}

/* ============================================
   REDUCE MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .music-notes,
    .particle {
        display: none !important;
    }
}
