/* Refonte propre de la page Tech Stack */

.mxd-page-content {
    padding-top: 100px;
}

/* Grid des catégories */
.mxd-category-section {
    margin-bottom: 8rem;
}

.mxd-category-title {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.mxd-category-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mxd-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: currentColor;
}

.mxd-category-description {
    font-size: 1.1rem;
    max-width: 800px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Grid des cards */
.mxd-tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Card design */
.mxd-tech-stack-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.mxd-tech-stack-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mxd-tech-stack-card__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Icon styling */
.mxd-tech-stack-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mxd-tech-stack-card__icon svg,
.mxd-tech-stack-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5);
    transition: all 0.4s ease;
}

.mxd-tech-stack-card:hover .mxd-tech-stack-card__icon svg,
.mxd-tech-stack-card:hover .mxd-tech-stack-card__icon img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/* Content styling */
.mxd-tech-stack-card__content {
    width: 100%;
}

.mxd-tech-stack-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mxd-tech-stack-card__description {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.7;
    margin: 0;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .mxd-tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .mxd-category-title h2 {
        font-size: 2rem;
    }
}
