/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Apply animations to sections */
.section {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.section.active {
    animation: fadeIn 1s ease forwards;
}

/* Animate content elements */
.content > * {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.content > *:nth-child(1) { animation-delay: 0.2s; }
.content > *:nth-child(2) { animation-delay: 0.4s; }
.content > *:nth-child(3) { animation-delay: 0.6s; }
.content > *:nth-child(4) { animation-delay: 0.8s; }

/* Hover animations */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Button hover animation */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Burger menu animation */
.burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active div:nth-child(2) {
    opacity: 0;
}

.burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Experience card hover effect */
.experience {
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.5s;
}

.experience:hover::before {
    transform: translateX(100%);
}

/* Animations pour l'apparition progressive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title h1:first-child {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-title h1:last-child {
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
}

.hero-content p {
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease forwards 0.9s;
    opacity: 0;
}

/* Animation pour les éléments de décoration */
.decoration-circle {
    animation: fadeInUp 1s ease forwards 1.2s;
    opacity: 0;
}

.decoration-line {
    animation: fadeInUp 1s ease forwards 1.4s;
    opacity: 0;
}

.decoration-dots {
    animation: fadeInUp 1s ease forwards 1.6s;
    opacity: 0;
} 