/* PROJECTS SECTION */
#projects {
    padding: 2rem;
    background-color: var(--color-bg);
    color: var(--color-blue);
    font-family: var(--font-main);
    text-align: center;
}

.project-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.nav-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-blue);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}

.project-container {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}

.project-card {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    margin-bottom: 1rem;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-info {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, var(--color-blue), var(--color-blue));
    color: var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    margin-top: -12px;
    min-height: 2.5rem;
}

.project-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.8;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    /* Hide title in bar on small screens */
    .project-info .project-title {
        display: none;
    }

    .nav-btn {
        display: none;
    }

    .project-info {
        justify-content: flex-end;
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    }
}

/* Pagination Dots */
.project-dots {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.project-dots .dot {
    width: 30px;
    height: 5px;
    border-radius: 3px;
    background: var(--color-blue);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-dots .dot.active {
    opacity: 1;
    background: var(--color-red);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .project-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .project-header {
        font-size: 1.5rem;
    }
}
