* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 450px;
    overflow: hidden;
}

.carousel-container,
.carousel-inner {
    height: auto !important;
    overflow: visible;
}


.section-about .container {
    max-width: 80%;
    padding-left: 0;
    padding-right: 0;
}


.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-card-content {
    position: relative;
    left: 100%;
    opacity: 0;
    min-width: 100%;
    height: auto;
    min-height: 500px;
    transition: transform 0.5s ease-in-out, opacity 0.5s;
    display: none;
    align-items: center;
    background-color: rgb(252, 252, 252);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    align-items: stretch;
}

.carousel-card-content.active {
    display: flex;
    left: 0;
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

/* Slide baru masuk */
.carousel-card-content.active {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

/* Slide lama keluar ke kiri */
.carousel-card-content.previous-left {
    opacity: 1;
    z-index: 1;
    animation: slideOutLeft 0.5s forwards;
}

/* Slide lama keluar ke kanan */
.carousel-card-content.previous-right {
    opacity: 1;
    z-index: 1;
    animation: slideOutRight 0.5s forwards;
}

/* ANIMASI */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.card {
    display: flex;
    flex-direction: row; 
    align-items: stretch;
    width: 100%;
    gap: 30px;
    height: 100%;
    padding: 20px;
}

.carousel-pic {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.info {
    padding: 20px;
    text-align: left;
    width: 60%;
}

.carousel-info h2 {
    font-size: 24px;
    font-weight: bold;
}

.carousel-info p {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-item {
    background: black;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.skill-item i {
    font-size: 24px;
    color: #181818;
}

.skill-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.carousel-controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    gap: 20px;
    z-index: 10;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: black;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background-color: #B60213;
}

.carousel-prev,
.carousel-next {
    background: none;
    border: none;
    font-size: 24px;
    width: 10%;
    height: 40px;
    cursor: pointer;
    color: black;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-container {
        width: 95%;
        height: 520px;
    }

    .carousel-item {
        flex-direction: column;
        height: 520px;
        min-height: 450px;
        padding: 15px;
    }

    .carousel-pic {
        width: 60%;
        height: auto;
        margin: 0 auto; 
        display: block;
        border-radius: 10px 10px 0 0;
    }

    .info {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .skills {
        justify-content: center;
    }

    .skill-item {
        size: 20%;
    }

    .card {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .carousel-pic {
        width: 30%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }

    .info {
        width: 100%;
        padding: 20px;
    }

    .skills {
        justify-content: center;
    }

    .carousel-info h2{
        font-size: 18px;
    }
     
    .carousel-info p {
        font-size: 12px;
    }

    .carousel-info h3 {
        font-size: 17px;
    }
}