/* Math equations animations */
@keyframes floatTop {
    0% {
        transform: translateX(-100vw) translateY(-50%) rotate(-15deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-50%) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes floatBottom {
    0% {
        transform: translateX(-100vw) translateY(50%) rotate(15deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(50%) rotate(15deg);
        opacity: 0;
    }
}

.hero-background::before {
    animation: floatTop 15s linear infinite;
    will-change: transform;
}

.hero-background::after {
    animation: floatBottom 15s linear infinite;
    will-change: transform;
}

/* Hover animations */
.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.about-item {
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.achievement-card {
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 178, 255, 0.4);
}

/* Form animations */
input, textarea {
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--color-accent);
}

.submit-button {
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-primary);
}

/* Footer animations */
.footer-links a, .social-link {
    transition: color 0.3s ease;
}

.footer-links a:hover, .social-link:hover {
    color: var(--color-accent);
}

/* Download button animation */
.download-cv {
    transition: background-color 0.3s ease;
}

.download-cv:hover {
    background-color: var(--color-accent);
}
