/*--------------------------------------------------
 # Project Page Animations
 # Entrance animations for technology cards and CTA section
--------------------------------------------------*/

/*--------------------------------------------------
 # 1. Tech Cards Animations
--------------------------------------------------*/

/* Pre-animation hidden state */
.tech-card-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

/* Animation properties */
.technology-card {
    transition: opacity 0.6s cubic-bezier(0.5, 1, 0.89, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

/* Animated state */
.technology-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effect for animated cards */
.technology-card.animate:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Icon animation on hover after entrance */
.technology-card.animate:hover i {
    transform: scale(1.1);
    color: var(--color-primary); /* Utiliser le violet primaire au lieu d'une variable non définie */
}

.technology-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Additional subtle animation for text */
.technology-card.animate h3 {
    transition: transform 0.2s ease 0.1s;
}

.technology-card.animate:hover h3 {
    transform: translateY(-2px);
}

/* Grid layout for technology cards */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/*--------------------------------------------------
 # 2. Project CTA Section Animations
--------------------------------------------------*/

/* Pre-animation hidden state for CTA elements */
.cta-item-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

/* Animation for section title */
.project-cta .section-title {
    transition: opacity 0.7s cubic-bezier(0.5, 1, 0.89, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation for paragraph */
.project-cta p {
    transition: opacity 0.6s cubic-bezier(0.5, 1, 0.89, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation for button */
.project-cta .btn {
    transition: opacity 0.5s cubic-bezier(0.5, 1, 0.89, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

/* Animated state for all CTA elements */
.project-cta .section-title.animate,
.project-cta p.animate,
.project-cta .btn.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button animation */
.project-cta .btn.animate {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(123, 31, 162, 0.25);
    }
    50% {
        box-shadow: 0 8px 30px rgba(123, 31, 162, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(123, 31, 162, 0.25);
    }
}
