.portfolio-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    /* Changed from 40px */
}

.portfolio-carousel {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid var(--card-border);
}

.carousel-wrapper {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

/* Animation keyframes */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Carousel items */
.carousel-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-item.slide-left {
    animation: slideOutLeft 0.5s ease-in-out forwards;
}

.carousel-item.slide-right {
    animation: slideOutRight 0.5s ease-in-out forwards;
}

.carousel-item.slide-in-left {
    animation: slideInLeft 0.5s ease-in-out forwards;
}

.carousel-item.slide-in-right {
    animation: slideInRight 0.5s ease-in-out forwards;
}

/* Progress and indicators */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 7%;
    width: 90%;
    height: 2px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.1s linear;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent);
}

/* Content styles */
.project-title {
    font-size: 24px;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.6;
    font-size: 16px;
}

.portfolio-gif {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    transition: all 0.3s ease;
}

.carousel-item.active .portfolio-gif {
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.25));
}