/* PROJECT NAV */
.project-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 50px;
}

/* CARD */
.project-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 220px;
}

/* IMAGE */
.project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* OVERLAY */
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.2)
    );
    z-index: 1;
}

/* CONTENT */
.project-content {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
    z-index: 2;
}

/* LABEL */
.project-label {
    font-size: 14px;
    color: var(--accent-secondary-color);
    display: block;
    margin-bottom: 6px;
}

/* TITLE */
.project-content h3 {
    font-size: 22px;
    color: var(--white-color);
    margin: 0;
    font-weight: 600;
}

/* HOVER EFFECT */
.project-card:hover img {
    transform: scale(1.08);
}

.project-card:hover::after {
    background: linear-gradient(
        to top,
        rgba(50,30,19,0.85),
        rgba(0,0,0,0.3)
    );
}

/* SLIDE IN ANIMATION */
.project-card {
    opacity: 0;
    transform: translateY(40px);
    animation: projectFadeUp 0.7s ease forwards;
}

.project-card.next {
    animation-delay: 0.2s;
}

@keyframes projectFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DIRECTION ALIGNMENT */
.project-card.prev .project-content {
    text-align: left;
}

.project-card.next .project-content {
    text-align: right;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .project-card {
        height: 180px;
    }

    .project-content {
        left: 15px;
        right: 15px;
    }

    .project-card.next .project-content {
        text-align: left;
    }
}