/* Effet de glitch */
@keyframes glitch {
    0% {
        text-shadow: 2px 2px var(--glitch-color);
    }
    25% {
        text-shadow: -2px -2px var(--primary-color);
    }
    50% {
        text-shadow: 2px -2px var(--secondary-color);
    }
    75% {
        text-shadow: -2px 2px var(--accent-color);
    }
    100% {
        text-shadow: 2px 2px var(--glitch-color);
    }
}

.glitch-text {
    animation: glitch 2s infinite;
}

/* Effet de scanline */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 157, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

/* Effet de typing */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

/* Effet de hover sur les cartes */
@keyframes cardHover {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
    100% {
        box-shadow: 0 0 20px 0 rgba(0, 255, 157, 0.3);
    }
}

.personnel-card:hover,
.project-card:hover,
.level-card:hover,
.download-card:hover {
    animation: cardHover 0.3s ease forwards;
}

/* Effet de pulsation pour le bouton */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

.glitch-button {
    animation: pulse 2s infinite;
}

/* Effet de transition pour l'overlay de sécurité */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.security-overlay {
    animation: fadeIn 0.5s ease;
}

/* Effet de glitch sur les images */
@keyframes imageGlitch {
    0% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(-20px, -10px);
    }
    20% {
        clip-path: inset(15% 0 65% 0);
        transform: translate(20px, 10px);
    }
    40% {
        clip-path: inset(80% 0 1% 0);
        transform: translate(-20px, 10px);
    }
    60% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(20px, -10px);
    }
    80% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(-20px, 10px);
    }
    100% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(0);
    }
}

.avatar-placeholder:hover {
    animation: imageGlitch 0.5s infinite;
}

/* Effet de terminal */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.terminal-content::after {
    content: "|";
    animation: blink 1s infinite;
    color: var(--terminal-green);
}

/* Effet de watermark */
@keyframes watermarkFade {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.1;
    }
}

.watermark {
    animation: watermarkFade 3s infinite;
} 