/* ===== SECTION PROJETS ===== */

.projects-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.projects-timeline {
    position: relative;
    margin-top: 80px;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--sage-green), transparent);
    transform: translateX(-50%);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 120px;
    position: relative;
}

.project-item::before {
    content: attr(data-index);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
    background: var(--bg-primary);
    width: 60px;
    height: 60px;
    line-height: 54px;
    text-align: center;
    border-radius: 50%;
    border: 3px solid var(--sage-green);
    z-index: 10;
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even) .project-info {
    direction: ltr;
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gradient-green-ocean {
    background: linear-gradient(135deg, var(--mint-light) 0%, var(--sage-green) 50%, var(--deep-green) 100%);
}

.gradient-green-forest {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 50%, var(--deep-green) 100%);
}

.gradient-green-mint {
    background: linear-gradient(135deg, var(--mint-light) 0%, var(--sage-green) 50%, var(--deep-green) 100%);
}

.project-year {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 16px;
    background-color: var(--mint-light);
    color: var(--forest-green);
    border-radius: 20px;
    border: 1px solid var(--sage-green);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-green);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 15px;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: rotate(45deg);
}


/* ===== RESPONSIVE ===== */


/* tablette  1200px */
@media (max-width: 1200px) {

    .project-item { grid-template-columns: 1fr; }
    .project-item::before,
    .projects-timeline::before { display: none; }

    .projects-timeline::before { left: 30px; }
    .project-item:nth-child(even) { direction: ltr; }
    
}

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

    .projects-section {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 0;
    }
}
