/* Mouse Trail Animation */
@keyframes trail-fade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Background Animation */
@keyframes space-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.space-bg {
    background: linear-gradient(-45deg, #0f0f1a, #1a1a2e, #2d2d5a, #4d44db);
    background-size: 400% 400%;
    animation: space-animation 15s ease infinite;
}

/* Theme Transition */
.theme-transition {
    animation: theme-change 0.5s ease;
}

@keyframes theme-change {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Project Backgrounds */
.red-developing {
    background: linear-gradient(-45deg, #ff0000, #990000, #660000, #330000);
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
}

.minecraft {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="50" height="50" x="0" y="0" fill="%2344aa33"/><rect width="50" height="50" x="50" y="0" fill="%2344aa33"/><rect width="50" height="50" x="0" y="50" fill="%2355bb44"/><rect width="50" height="50" x="50" y="50" fill="%2355bb44"/></svg>');
    background-size: 50px;
}

/* Skill Bars Animation */
@keyframes skill-fill {
    from { width: 0; }
    to { width: attr(data-width); }
}

/* Mobile Menu Animation */
@keyframes dot-animation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.mobile-menu-toggle.active .dot:nth-child(1) {
    animation: dot-animation 0.5s infinite;
}

.mobile-menu-toggle.active .dot:nth-child(2) {
    animation: dot-animation 0.5s infinite 0.1s;
}

.mobile-menu-toggle.active .dot:nth-child(3) {
    animation: dot-animation 0.5s infinite 0.2s;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}
