/* ==========================================
   CATEGORY CARD
========================================== */

.category-card {
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}


/* Hover */

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}


/* Icon */

.category-icon {
    width: 110px;
    height: 110px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 60px;

    background: #fff3cd;

    transition: transform 0.3s ease;
}


/* Icon ketika card hover */

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}


/* Judul */

.category-card h3 {
    font-size: 28px;
}


/* Deskripsi */

.category-card p {
    font-size: 16px;
    min-height: 48px;
}

/* ==========================================
   BACKGROUND HALAMAN
========================================== */

body {
    margin: 0;
    min-height: 100vh;

    font-family: 'Baloo 2', cursive;

    /* Background utama */
    background:
        linear-gradient(
            135deg,
            #fff9e6 0%,
            #eef8ff 45%,
            #fff0f7 100%
        );

    position: relative;
    overflow-x: hidden;
}


/* ==========================================
   HIASAN BACKGROUND
========================================== */

/* Lingkaran besar kiri atas */
body::before {
    content: "";

    position: fixed;

    width: 220px;
    height: 220px;

    top: -80px;
    left: -70px;

    background: #ffd166;

    border-radius: 50%;

    opacity: 0.35;

    z-index: -1;
}


/* Lingkaran besar kanan atas */
body::after {
    content: "";

    position: fixed;

    width: 280px;
    height: 280px;

    top: 80px;
    right: -130px;

    background: #74c0fc;

    border-radius: 50%;

    opacity: 0.30;

    z-index: -1;
}


/* ==========================================
   TAMBAHAN HIASAN DENGAN GRADIENT
========================================== */

.container {
    position: relative;
    z-index: 1;
}


/* ==========================================
   CATEGORY CARD
========================================== */

.category-card {
    border-radius: 25px;

    transition:
        all 0.3s ease;

    cursor: pointer;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(8px);

    border: 3px solid rgba(255, 255, 255, 0.8);

}


/* ==========================================
   HOVER CARD
========================================== */

.category-card:hover {

    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.12) !important;

}


/* ==========================================
   ICON
========================================== */

.category-icon {

    width: 110px;
    height: 110px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 60px;

    background: #fff3cd;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


/* ==========================================
   ICON HOVER
========================================== */

.category-card:hover
.category-icon {

    transform:
        scale(1.1)
        rotate(5deg);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.10);

}


/* ==========================================
   JUDUL
========================================== */

.category-card h3 {

    font-size: 28px;

    font-weight: 800;

}


/* ==========================================
   DESKRIPSI
========================================== */

.category-card p {

    font-size: 16px;

    min-height: 48px;

}


/* ==========================================
   HIASAN WARNA PADA CARD
========================================== */


/* Card pertama - Hewan */

.category-card:nth-child(1) {

    border-top:
        6px solid #ff922b;

}


/* Card kedua - Buah */

.category-card:nth-child(2) {

    border-top:
        6px solid #ff6b6b;

}


/* Card ketiga - Angka */

.category-card:nth-child(3) {

    border-top:
        6px solid #4dabf7;

}


/* ==========================================
   ICON BERWARNA SESUAI KATEGORI
========================================== */


/* Hewan */

.category-card:nth-child(1)
.category-icon {

    background:
        #fff0db;

}


/* Buah */

.category-card:nth-child(2)
.category-icon {

    background:
        #ffe3e3;

}


/* Angka */

.category-card:nth-child(3)
.category-icon {

    background:
        #e3f2ff;

}


/* ==========================================
   DEKORASI BULAT DI DALAM HALAMAN
========================================== */

.category-card::before {

    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background:
        rgba(255, 214, 102, 0.18);

    top: -25px;
    right: -25px;

}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .category-icon {

        width: 90px;
        height: 90px;

        font-size: 48px;

    }


    .category-card h3 {

        font-size: 24px;

    }


    body::before {

        width: 150px;
        height: 150px;

    }


    body::after {

        width: 180px;
        height: 180px;

    }

}