.projects {
    padding: 6rem 5%;
    background-color: var(--color-a); /* Set to dark green */
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.carousel {
    display: flex;
    animation: slide 15s infinite;
}

.project-card {
    min-width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--color-c); /* Changed from var(--white) */
    padding: 3rem 2.5rem;
}
.project-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 1.1rem;
    max-width: 600px;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.projects .section-title {
    color: var(--color-c); /* White for readability */
}

/* Staggered animation for project cards */
.project-card-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.projects.animated .project-card-animated {
    opacity: 1;
    transform: translateY(0);
}

.projects.animated .project-card-animated:nth-child(1) {
    transition-delay: 0.1s;
}

.projects.animated .project-card-animated:nth-child(2) {
    transition-delay: 0.2s;
}

.projects.animated .project-card-animated:nth-child(3) {
    transition-delay: 0.3s;
}

.projects.animated .project-card-animated:nth-child(4) {
    transition-delay: 0.4s;
}
