/* ========================================
   PREMIUM STAGES & PROJETS SECTIONS
   Cards with Glassmorphism & 3D Effects
   ======================================== */

/* Premium Grid Container */
#stages-list,
#projets-list {
    gap: 2rem !important;
}

/* Premium Glassmorphism Cards */
#stages-list>div,
#projets-list>div,
.stage-card,
.project-card {
    position: relative !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(160, 82, 45, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-style: preserve-3d !important;
}

body.dark-mode #stages-list>div,
body.dark-mode #projets-list>div,
body.dark-mode .stage-card,
body.dark-mode .project-card {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(160, 82, 45, 0.3) !important;
}

/* Animated Shimmer Overlay */
#stages-list>div::before,
#projets-list>div::before,
.stage-card::before,
.project-card::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(160, 82, 45, 0.1) 50%,
            transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: opacity 0.4s ease !important;
    opacity: 0 !important;
    animation: shimmer-card 3s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes shimmer-card {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

#stages-list>div:hover::before,
#projets-list>div:hover::before,
.stage-card:hover::before,
.project-card:hover::before {
    opacity: 1 !important;
}

/* Glowing Animated Border */
#stages-list>div::after,
#projets-list>div::after,
.stage-card::after,
.project-card::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg,
            var(--color-accent-main),
            var(--color-primary-dark),
            var(--color-accent-main)) !important;
    border-radius: 24px !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    animation: rotate-border 3s linear infinite !important;
    filter: blur(10px) !important;
}

@keyframes rotate-border {
    0% {
        filter: blur(10px) hue-rotate(0deg);
    }

    100% {
        filter: blur(10px) hue-rotate(360deg);
    }
}

#stages-list>div:hover::after,
#projets-list>div:hover::after,
.stage-card:hover::after,
.project-card:hover::after {
    opacity: 0.8 !important;
}

/* 3D Hover Transform */
#stages-list>div:hover,
#projets-list>div:hover,
.stage-card:hover,
.project-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Card Titles with Gradient */
#stages-list h3,
#projets-list h3,
.stage-card h3,
.project-card h3 {
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
    transition: transform 0.3s ease !important;
}

#stages-list>div:hover h3,
#projets-list>div:hover h3,
.stage-card:hover h3,
.project-card:hover h3 {
    transform: translateX(5px) !important;
}

/* Premium Badge Styling */
#stages-list .badge,
#projets-list .badge,
.stage-card .badge,
.project-card .badge,
.tech-badge,
.status-badge {
    display: inline-block !important;
    padding: 6px 14px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.15), rgba(92, 70, 54, 0.15)) !important;
    color: var(--color-accent-main) !important;
    border: 1px solid rgba(160, 82, 45, 0.3) !important;
    transition: all 0.3s ease !important;
    margin: 4px !important;
}

#stages-list .badge:hover,
#projets-list .badge:hover,
.tech-badge:hover,
.status-badge:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.3) !important;
}

/* Premium Button Styling */
#stages-list button,
#projets-list button,
#stages-list a.btn,
#projets-list a.btn,
.stage-card button,
.project-card button,
.stage-card a.btn,
.project-card a.btn {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3) !important;
}

#stages-list button:hover,
#projets-list button:hover,
#stages-list a.btn:hover,
#projets-list a.btn:hover,
.stage-card button:hover,
.project-card button:hover,
.stage-card a.btn:hover,
.project-card a.btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4) !important;
}

/* Icon Rotation on Hover */
#stages-list button svg,
#projets-list button svg,
.stage-card button svg,
.project-card button svg {
    transition: transform 0.3s ease !important;
}

#stages-list button:hover svg,
#projets-list button:hover svg,
.stage-card button:hover svg,
.project-card button:hover svg {
    transform: rotate(15deg) scale(1.1) !important;
}

/* Company/Institution Name Styling */
#stages-list .company-name,
#projets-list .project-type,
.stage-card .company-name,
.project-card .project-type {
    font-weight: 700 !important;
    color: var(--color-accent-main) !important;
    font-size: 1.1rem !important;
}

/* Date/Duration Styling */
#stages-list .duration,
#projets-list .duration,
.stage-card .duration,
.project-card .duration {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Description Text */
#stages-list p,
#projets-list p,
.stage-card p,
.project-card p {
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
}

/* Technology Tags Container */
.tech-tags,
.technologies {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 1rem !important;
}

/* Links Styling */
#stages-list a:not(.btn),
#projets-list a:not(.btn),
.stage-card a:not(.btn),
.project-card a:not(.btn) {
    color: var(--color-accent-main) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

#stages-list a:not(.btn)::after,
#projets-list a:not(.btn)::after,
.stage-card a:not(.btn)::after,
.project-card a:not(.btn)::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--color-accent-main) !important;
    transition: width 0.3s ease !important;
}

#stages-list a:not(.btn):hover::after,
#projets-list a:not(.btn):hover::after,
.stage-card a:not(.btn):hover::after,
.project-card a:not(.btn):hover::after {
    width: 100% !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    #stages-list,
    #projets-list {
        gap: 1.5rem !important;
    }

    #stages-list>div,
    #projets-list>div,
    .stage-card,
    .project-card {
        padding: 1.5rem !important;
    }

    /* Simplify 3D effects on mobile */
    #stages-list>div:hover,
    #projets-list>div:hover,
    .stage-card:hover,
    .project-card:hover {
        transform: translateY(-5px) !important;
    }

    /* Hide animated border on mobile for performance */
    #stages-list>div::after,
    #projets-list>div::after,
    .stage-card::after,
    .project-card::after {
        display: none !important;
    }
}

/* Section Titles */
#stages h2,
#projets h2 {
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}