/* Animations and Visual Effects */

/* Keyframe Animations */
@keyframes scanlines {
    0% { transform: translateY(0px); }
    100% { transform: translateY(4px); }
}

@keyframes occultPulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px var(--color-error),
            0 0 20px var(--color-error),
            0 0 40px var(--color-error);
        transform: rotate(180deg) scale(1);
    }
    50% { 
        text-shadow: 
            0 0 20px var(--color-error),
            0 0 40px var(--color-error),
            0 0 80px var(--color-error),
            0 0 120px var(--color-error);
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes floatSymbol {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 1; }
}

@keyframes logoPulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px var(--color-accent-3),
            0 0 20px var(--color-accent-3),
            0 0 40px var(--color-accent-1);
    }
    50% { 
        text-shadow: 
            0 0 20px var(--color-accent-3),
            0 0 40px var(--color-accent-3),
            0 0 80px var(--color-accent-1),
            0 0 120px var(--color-accent-1);
    }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes occultDrift {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes drift {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typeIn {
    to { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Cursor Effect */
.cursor {
    animation: blink 1s infinite;
}

/* Glitch Effects */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--color-error);
    animation: glitch 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    filter: blur(1.5px);
    opacity: 0.7;
}

.glitch-text::after {
    color: var(--color-accent-2);
    animation: glitch 0.3s infinite reverse;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    filter: blur(2px);
    opacity: 0.7;
}

/* Hover Effects */
.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    text-shadow: var(--shadow-glow);
    filter: brightness(1.2);
}

.hover-float {
    transition: transform var(--transition-normal);
}

.hover-float:hover {
    transform: translateY(-5px);
}

/* Loading Effects */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Particle Effects */
.particle-container {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-accent-3);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

/* Pulse Effects */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Shake Effect */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Fade Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Scale Transitions */
.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide Transitions */
.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Picture Effects */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-1);
    box-shadow: 0 0 15px rgba(152, 245, 225, 0.3);
    transition: all var(--transition-normal);
    filter: brightness(1) contrast(1.1);
}

.profile-pic:hover {
    border-color: var(--color-accent-3);
    box-shadow: 0 0 25px rgba(152, 245, 225, 0.5);
    transform: scale(1.05);
}

.profile-glitch {
    animation: profileGlitch 0.5s infinite;
    position: relative;
}

.profile-glitch::before,
.profile-glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('../images/pfp.jpg');
    background-size: cover;
    background-position: center;
}

.profile-glitch::before {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    filter: hue-rotate(90deg) saturate(1.5);
    animation: glitch 0.3s infinite;
    opacity: 0.7;
}

.profile-glitch::after {
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    filter: hue-rotate(-90deg) saturate(1.5);
    animation: glitch 0.3s infinite reverse;
    opacity: 0.7;
}

/* Profile Card Styles */
.profile-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-accent-1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(152, 245, 225, 0.3);
    border-color: var(--color-accent-3);
}

.profile-info {
    margin-top: 1rem;
    text-align: center;
}

.profile-name {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.profile-bio {
    color: var(--color-accent-2);
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes profileGlitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}