/* ==========================================================
   PROJECTS SECTION
========================================================== */

.projects {
    background: var(--color-background);
}

.projects .section-header {
    margin-bottom: 5rem;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

/* ==========================================================
   PROJECT CARD
========================================================== */

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
/* ==========================================================
   IMAGE
========================================================== */

.project-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

/* ==========================================================
   CONTENT
========================================================== */

.project-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2.5rem;
}

.project-card__title {
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
}

.project-card__description {
    flex: 1;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ==========================================================
   FOOTER
========================================================== */

.project-card__footer {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================
   LINK
========================================================== */

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-card__link::after {
    content: "→";
    transition: transform .25s ease;
}

.project-card__link:hover {
    color: var(--color-primary-dark);
}

.project-card__link:hover::after {
    transform: translateX(4px);
}

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

@media (max-width:768px){

    .projects__grid{
        grid-template-columns:1fr;
    }
}