@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.categories {
    align-items: center;
    flex-wrap: wrap;
    padding: 30px;
    background: linear-gradient(to right, #2c3e50, #101f33f6, #2c3e50);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.categories h2 {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.category-buttonss {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-buttonn.active {
    background-color: #ff9a5f; /* Warna tombol saat aktif */
    color: white;
}

.category-buttonn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    min-width: 120px;
    text-align: center;
    background-color:  #0f0f0fe3; /* Warna default biru */
    animation: fadeInUp 2s ease forwards;
    overflow: hidden;
    position: relative; /* Tambahkan ini untuk ::after */
}

.category-buttonn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: 0;
}

.category-buttonn:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

.category-buttonn:hover::after {
    transform: scale(4);
}

.category-buttonn i {
    margin-right: 8px;
    font-size: 18px;
}

.category-description h2 {
    margin-bottom: 20px;
    margin-top: 7px;
    animation: fadeInUp 2s ease forwards;
}

.category-description p {
    animation: fadeInUp 2s ease forwards;
}

.category-description {
    margin: 0%;
    padding: 100px;
    background-color: #2c3e50;
    color: white;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
}

.category-description[style="display: block;"] {
    opacity: 1;
    transform: scale(1);
}

/* scrol langung ke atas */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #feb47b, #ff7e5f);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ukuran hp */

@media (max-width: 768px) {
    .category-description h2 {
        margin-bottom: 10px;
        margin-top: 10px;
        font-size: 20px;
    }

    .category-description {
        padding: 20px;
        font-size: 15px;
    }
}

/* untuk keunggulan card */
.containers {
    text-align: center;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Pastikan elemen tidak membungkus ke baris berikutnya */
    gap: 20px; /* Tambahkan jarak antar elemen jika diperlukan */
}

.title {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background: rgba(0, 0, 0, .6);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    transition: transform 0.3s, background 0.3s;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.feature:nth-child(odd) {
    animation-delay: 0.2s;
}

.feature:nth-child(even) {
    animation-delay: 0.4s;
}

.feature:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
    color: #ff9a5f;
}

h2 {
    font-size: 1.5rem;
    margin: 10px 0;
}

p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Animasi Ikon */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animasi Muncul */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gkeunggulan {
    position: relative;
    background: url('https://cdn.pixabay.com/photo/2016/06/24/18/30/businessman-1477601_960_720.jpg') no-repeat center center/cover;
    color: white;
    height: 590px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Tambahkan ini untuk memastikan gambar berada di bawah */
}

.gkeunggulan h1 {
    font-size: 3em;
    margin-bottom: 100px;
    color: white;
}

.gkeunggulan p {
    font-size: 1.2em;
}

/* Gaya untuk konten keunggulan */
.keunggulanz {
    padding: 50px 20px;
    text-align: center;
    background-color: #2c3e50;
}

.keunggulanz h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: rgb(255, 255, 255);
}

.keunggulanz p {
    font-size: 1.1em;
    margin-bottom: 50px;
    color: rgb(255, 255, 255);
}

/* Gaya untuk keunggulan individual */
.keunggulan-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: -120px; /* Menyentuh gambar di atas sekitar 20% */
    position: relative;
    z-index: 2; /* Tambahkan ini untuk memastikan elemen berada di atas gambar */
}

.keunggulan-item {
    background-color: #121d29;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 280px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Tambahkan transition untuk efek yang lebih halus */
}

.keunggulan-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Tambahkan efek bayangan saat hover */
}

.keunggulan-item i {
    font-size: 3em;
    color:  #ff9a5f;
    margin-bottom: 20px;
}

.keunggulan-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.keunggulan-item p {
    font-size: 1em;
    color: #ffffffd8;
    margin-bottom: 5px;
}

/* Responsif */
@media (max-width: 768px) {
    .gkeunggulan {
        height: 500px;
    }

    .keunggulan-list {
        flex-direction: column;
        align-items: center;
    }

    .keunggulan-item {
        width: 100%;
        max-width: 400px;
    }

    .gkeunggulan h1 {
        font-size: 2em;
        padding: 50px;
    }
}
