/* ============================================
   MODERN ANIMATIONS & EFFECTS SYSTEM
   Cyberpunk/Gaming Theme
   ============================================ */

/* ====== GLOW EFFECTS ====== */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.8),
            0 0 60px rgba(0, 212, 255, 0.4);
    }
}

@keyframes glow-pulse-purple {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(188, 19, 254, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(188, 19, 254, 0.8),
            0 0 60px rgba(188, 19, 254, 0.4);
    }
}

@keyframes glow-pulse-pink {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.8),
            0 0 60px rgba(255, 0, 255, 0.4);
    }
}

/* ====== FLOAT ANIMATIONS ====== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(1deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* ====== GRADIENT ANIMATIONS ====== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-border {

    0%,
    100% {
        border-color: rgba(0, 212, 255, 0.5);
    }

    50% {
        border-color: rgba(188, 19, 254, 0.5);
    }
}

/* ====== SHINE EFFECTS ====== */
@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ====== NEON FLICKER ====== */
@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 20px currentColor;
    }

    20%,
    24%,
    55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

@keyframes neon-subtle {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

/* ====== PULSE ANIMATIONS ====== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ====== SLIDE ANIMATIONS ====== */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== ROTATE ANIMATIONS ====== */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* ====== BORDER ANIMATIONS ====== */
@keyframes border-flow {

    0%,
    100% {
        border-image: linear-gradient(90deg, #00d4ff, #bc13fe, #ff00ff) 1;
    }

    33% {
        border-image: linear-gradient(90deg, #bc13fe, #ff00ff, #00d4ff) 1;
    }

    66% {
        border-image: linear-gradient(90deg, #ff00ff, #00d4ff, #bc13fe) 1;
    }
}

/* ====== BACKGROUND ANIMATIONS ====== */
@keyframes bg-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* ====== SCALE ANIMATIONS ====== */
@keyframes scale-up {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scale-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(0.95);
    }

    75% {
        transform: scale(1.05);
    }
}

/* ====== UTILITY CLASSES ====== */
.animate-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-glow-purple {
    animation: glow-pulse-purple 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-slide-up {
    animation: slide-up 0.5s ease forwards;
}

.animate-slide-down {
    animation: slide-down 0.5s ease forwards;
}

.animate-scale-up {
    animation: scale-up 0.3s ease forwards;
}

/* ====== HOVER EFFECTS ====== */
.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-5px);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::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: none;
}

.hover-shine:hover::before {
    animation: shine 0.6s ease forwards;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ====== GLASS MORPHISM ====== */
.glass {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ====== NEON BORDERS ====== */
.neon-border {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--dark-card), var(--dark-card)),
        linear-gradient(135deg, #00d4ff, #bc13fe, #ff00ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.neon-border-animated {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--dark-card), var(--dark-card)),
        linear-gradient(135deg, #00d4ff, #bc13fe, #ff00ff, #00d4ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    animation: bg-pan 3s linear infinite;
}

/* ====== TEXT EFFECTS ====== */
.text-gradient {
    background: linear-gradient(135deg, #00d4ff, #bc13fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(135deg, #00d4ff, #bc13fe, #ff00ff, #00d4ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bg-pan 3s linear infinite;
}

.text-glow {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

.text-neon-blue {
    color: #00d4ff;
    text-shadow:
        0 0 5px #00d4ff,
        0 0 10px #00d4ff,
        0 0 20px #00d4ff;
}

.text-neon-purple {
    color: #bc13fe;
    text-shadow:
        0 0 5px #bc13fe,
        0 0 10px #bc13fe,
        0 0 20px #bc13fe;
}

.text-neon-pink {
    color: #ff00ff;
    text-shadow:
        0 0 5px #ff00ff,
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
}

/* ====== BUTTON EFFECTS ====== */
.btn-cyber {
    position: relative;
    background: linear-gradient(135deg, #00d4ff, #bc13fe);
    border: none;
    padding: 12px 30px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: none;
}

.btn-cyber:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.btn-cyber:hover::before {
    animation: shine 0.5s ease forwards;
}

.btn-cyber:active {
    transform: translateY(-1px);
}

/* ====== CARD 3D TILT PREPARATION ====== */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* ====== LOADING STATES ====== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== STAGGER ANIMATIONS ====== */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}