/* =====================================================
   PREMIUM ANIMATIONS — Keyframe Library
   Include AFTER premium-effects.css
   ===================================================== */

/* ──────────────────────────────────────────────────── */
/* 1. GLITTER SPARKLE TRAIL (hero section)              */
/* ──────────────────────────────────────────────────── */
@keyframes sparkle-burst {
    0%   { transform: scale(0) rotate(0deg);   opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: scale(1.6) rotate(180deg); opacity: 0; }
}
.sparkle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 20%, transparent 80%);
    animation: sparkle-burst 0.8s ease forwards;
    z-index: 200;
}

/* ──────────────────────────────────────────────────── */
/* 2. SKILL RADAR PULSE                                 */
/* ──────────────────────────────────────────────────── */
@keyframes radar-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}
.radar-pulse {
    position: relative;
}
.radar-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--glow-primary);
    animation: radar-pulse 2s ease infinite;
    z-index: -1;
}

/* ──────────────────────────────────────────────────── */
/* 3. CURSOR FOLLOWER SPOTLIGHT                         */
/* ──────────────────────────────────────────────────── */
#cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.04) 0%,
        rgba(16, 185, 129, 0.02) 40%,
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: left 0.18s ease, top 0.18s ease;
    mix-blend-mode: screen;
}
.dark #cursor-spotlight {
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.08) 0%,
        rgba(16, 185, 129, 0.04) 40%,
        transparent 70%);
}

/* ──────────────────────────────────────────────────── */
/* 4. WAVE SEPARATOR                                    */
/* ──────────────────────────────────────────────────── */
.wave-sep {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-sep svg {
    display: block;
    position: relative;
    width: 100%;
}

/* ──────────────────────────────────────────────────── */
/* 5. COUNTER NUMBER ROLLUP                             */
/* ──────────────────────────────────────────────────── */
@keyframes number-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.counter-pop {
    animation: number-pop 0.3s var(--ease-spring);
}

/* ──────────────────────────────────────────────────── */
/* 6. HERO BADGE FLOAT                                  */
/* ──────────────────────────────────────────────────── */
@keyframes badge-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-8px) scale(1.02); }
}
.badge-float {
    animation: badge-float 4s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────── */
/* 7. TYPING BLINK CURSOR                               */
/* ──────────────────────────────────────────────────── */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #2563eb;
    border-radius: 2px;
    animation: cursor-blink 1s step-start infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* ──────────────────────────────────────────────────── */
/* 8. PULSING RING                                      */
/* ──────────────────────────────────────────────────── */
@keyframes ring-pulse {
    0%   { box-shadow: 0 0 0 0 var(--glow-primary); }
    70%  { box-shadow: 0 0 0 14px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.ring-pulse-primary {
    animation: ring-pulse 2.5s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────── */
/* 9. ORBIT DOTS (decorative)                           */
/* ──────────────────────────────────────────────────── */
@keyframes orbit-cw  { from { transform: rotate(0deg)   translateX(60px) rotate(0deg);   } to { transform: rotate(360deg)  translateX(60px) rotate(-360deg);  } }
@keyframes orbit-ccw { from { transform: rotate(0deg)   translateX(80px) rotate(0deg);   } to { transform: rotate(-360deg) translateX(80px) rotate(360deg); } }

.orbit-dot-cw  { animation: orbit-cw  8s linear infinite; }
.orbit-dot-ccw { animation: orbit-ccw 12s linear infinite; }

/* ──────────────────────────────────────────────────── */
/* 10. MORPHING GRADIENT BLOB                           */
/* ──────────────────────────────────────────────────── */
@keyframes morph-blob {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; background-position: 0% 50%; }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; background-position: 50% 0%; }
    50%  { border-radius: 50% 60% 50% 50% / 40% 50% 60% 50%; background-position: 100% 50%; }
    75%  { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; background-position: 50% 100%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; background-position: 0% 50%; }
}
.morph-blob {
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(16,185,129,0.12), rgba(6,182,212,0.10));
    background-size: 300% 300%;
    animation: morph-blob 12s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────── */
/* 11. STAGGERED FADE-IN FOR LISTS                      */
/* ──────────────────────────────────────────────────── */
.list-stagger > * {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.45s ease, transform 0.45s var(--ease-expo);
}
.list-stagger.active > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(2) { transition-delay: 60ms;  opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(4) { transition-delay: 180ms; opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(5) { transition-delay: 240ms; opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(6) { transition-delay: 300ms; opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(7) { transition-delay: 360ms; opacity: 1; transform: none; }
.list-stagger.active > *:nth-child(8) { transition-delay: 420ms; opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────── */
/* 12. NEON GLOW BUTTONS                                */
/* ──────────────────────────────────────────────────── */
.btn-neon-primary {
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.25s var(--ease-spring);
}
.btn-neon-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #10b981, #06b6d4, #2563eb);
    background-size: 300% auto;
    opacity: 0;
    z-index: -1;
    animation: shimmer 3s linear infinite;
    transition: opacity 0.3s ease;
}
.btn-neon-primary:hover {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.5), 0 0 50px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px) scale(1.02);
}
.btn-neon-primary:hover::before {
    opacity: 1;
}

/* ──────────────────────────────────────────────────── */
/* 13. CARD 3D DEPTH TILT SHADOW                        */
/* ──────────────────────────────────────────────────── */
.depth-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.depth-card:hover {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 16px rgba(0,0,0,0.08),
        0 20px 40px rgba(37, 99, 235, 0.12),
        0 1px 0 rgba(255,255,255,0.1) inset;
}

/* ──────────────────────────────────────────────────── */
/* 14. GRADIENT BORDER SHIMMER (cards hover)            */
/* ──────────────────────────────────────────────────── */
.shimmer-border {
    position: relative;
}
.shimmer-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #2563eb, #10b981, #06b6d4, #8b5cf6, #2563eb);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: shimmer 4s linear infinite;
    pointer-events: none;
}
.shimmer-border:hover::after {
    opacity: 1;
}

/* ──────────────────────────────────────────────────── */
/* 15. ZOOM-IN ON HOVER (for project cards/images)      */
/* ──────────────────────────────────────────────────── */
.zoom-container {
    overflow: hidden;
    border-radius: inherit;
}
.zoom-container img,
.zoom-container .zoom-target {
    transition: transform 0.6s var(--ease-expo);
}
.zoom-container:hover img,
.zoom-container:hover .zoom-target {
    transform: scale(1.07);
}
