/* =========================================================
   MIMA ASIK
   OPENING WEBSITE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   LAYAR OPENING
========================================================= */

.opening {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    /* Langit biru cerah */
    background:
        linear-gradient(
            180deg,
            #bdeeff 0%,
            #dff8ff 55%,
            #ffffff 100%
        );
}


/* =========================================================
   DEKORASI BACKGROUND
========================================================= */

.opening::before {
    content: "";
    position: absolute;

    width: 520px;
    height: 520px;

    top: -230px;
    left: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    filter: blur(5px);

    z-index: 0;
}


.opening::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -170px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);

    filter: blur(8px);

    z-index: 0;
}


/* =========================================================
   AWAN PNG
========================================================= */

.cloud {
    position: absolute;
    z-index: 1;

    width: 150px;

    pointer-events: none;

    opacity: 0.75;
}

.cloud img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   AWAN PERTAMA
========================================================= */

.cloud-2 {
    top: 18%;
    left: -60px;

    animation: awanJalan 40s linear infinite;
}


/* =========================================================
   AWAN KEDUA
========================================================= */

.cloud-4 {
    top: 42%;
    left: -60px;

    width: 120px;

    opacity: 0.55;

    animation: awanJalan 45s linear infinite;
    animation-delay: -20s;
}


/* =========================================================
   ANIMASI
========================================================= */

@keyframes awanJalan {

    0% {
        transform: translateX(-60px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }

}
/* =========================================================
   LINGKARAN DEKORATIF
========================================================= */

.opening::marker {
    display: none;
}


/* dekorasi menggunakan pseudo tambahan
   pada teks welcome */

.welcome-text::before,
.welcome-text::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    z-index: -1;
}


/* lingkaran pink */

.welcome-text::before {
    width: 130px;
    height: 130px;

    left: -100px;
    top: -70px;

    background: rgba(255, 170, 205, 0.28);
}


/* lingkaran kuning */

.welcome-text::after {
    width: 100px;
    height: 100px;

    right: -80px;
    bottom: -40px;

    background: rgba(255, 220, 100, 0.3);
}


/* =========================================================
   ELEMEN SPARKLE
========================================================= */

.opening::before {
    animation: cahayaBergerak 8s ease-in-out infinite alternate;
}

@keyframes cahayaBergerak {

    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 20px) scale(1.08);
    }
}


/* =========================================================
   MASKOT
========================================================= */

.maskot {
    position: absolute;

    bottom: 0;

    width: min(32vw, 420px);

    z-index: 5;
}


.maskot img {
    display: block;

    width: 100%;
    height: auto;

    user-select: none;
    pointer-events: none;
}


/* =========================================================
   MI
   MASUK DARI KIRI
========================================================= */

.maskot-mi {

    left: 7%;

    transform: translateX(-130%);

    animation:
        miMasuk 1.5s cubic-bezier(.22,.61,.36,1) 0.4s forwards,
        miMelambai 1s ease-in-out 2.8s 2;
}


/* =========================================================
   MA
   MASUK DARI KANAN
========================================================= */

.maskot-ma {

    right: 7%;

    transform: translateX(130%);

    animation:
        maMasuk 1.5s cubic-bezier(.22,.61,.36,1) 1.8s forwards,
        maMelambai 1s ease-in-out 4.1s 2;
}


/* =========================================================
   ANIMASI MASUK MI
========================================================= */

@keyframes miMasuk {

    0% {
        transform: translateX(-130%);
    }

    70% {
        transform: translateX(8%);
    }

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


/* =========================================================
   ANIMASI MASUK MA
========================================================= */

@keyframes maMasuk {

    0% {
        transform: translateX(130%);
    }

    70% {
        transform: translateX(-8%);
    }

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


/* =========================================================
   GERAKAN KARAKTER
========================================================= */

@keyframes miMelambai {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-1deg);
    }

    50% {
        transform: translateY(0) rotate(1deg);
    }

    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
}


@keyframes maMelambai {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(1deg);
    }

    50% {
        transform: translateY(0) rotate(-1deg);
    }

    75% {
        transform: translateY(-3px) rotate(1deg);
    }
}


/* =========================================================
   TEKS SAMBUTAN
========================================================= */

.welcome-text {

    position: absolute;

    left: 50%;
    top: 45%;

    transform: translate(-50%, -50%);

    width: min(90%, 700px);

    text-align: center;

    z-index: 10;

    opacity: 0;

    animation:
        welcomeMuncul 1s ease 4.8s forwards;
}


/* =========================================================
   HI
========================================================= */

.welcome-title {

    font-size: clamp(32px, 5vw, 58px);

    font-weight: 800;

    margin-bottom: 12px;
}


/* =========================================================
   SELAMAT DATANG
========================================================= */

.welcome-main {

    font-size: clamp(24px, 3.5vw, 44px);

    font-weight: 600;

    line-height: 1.25;
}


/* =========================================================
   SUBTITLE
========================================================= */

.welcome-sub {

    margin-top: 12px;

    font-size: clamp(17px, 2vw, 25px);

    font-weight: 400;

    line-height: 1.4;
}


/* =========================================================
   ANIMASI TEKS
========================================================= */

@keyframes welcomeMuncul {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -40%)
            scale(0.95);
    }

    100% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .maskot {
        width: min(42vw, 280px);
    }

    .maskot-mi {
        left: -2%;
    }

    .maskot-ma {
        right: -2%;
    }

    .welcome-text {
        top: 38%;
    }
}

/* =========================================================
   ELEMEN EDUKASI MELINGKAR
========================================================= */

.edu-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 430px;
    height: 300px;

    transform: translate(-50%, -50%);

    z-index: 2;
    pointer-events: none;
}


/* =========================================================
   BUSUR
========================================================= */

.edu-arc {
    position: absolute;

    left: 50%;

    width: 360px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 25px;

    white-space: nowrap;
}


/* =========================================================
   BUSUR ATAS
========================================================= */

.edu-arc-top {
    top: 0;

    transform: translateX(-50%);
}


/* =========================================================
   BUSUR BAWAH
========================================================= */

.edu-arc-bottom {
    bottom: 0;

    transform: translateX(-50%);
}


/* =========================================================
   BENTUK LENGKUNG ATAS
========================================================= */

.edu-arc-top span:nth-child(1) {
    transform: translateY(35px) rotate(-12deg);
}

.edu-arc-top span:nth-child(2) {
    transform: translateY(12px) rotate(-6deg);
}

.edu-arc-top span:nth-child(3) {
    transform: translateY(0);
}

.edu-arc-top span:nth-child(4) {
    transform: translateY(12px) rotate(6deg);
}

.edu-arc-top span:nth-child(5) {
    transform: translateY(35px) rotate(12deg);
}


/* =========================================================
   BENTUK LENGKUNG BAWAH
========================================================= */

.edu-arc-bottom span:nth-child(1) {
    transform: translateY(-35px) rotate(12deg);
}

.edu-arc-bottom span:nth-child(2) {
    transform: translateY(-12px) rotate(6deg);
}

.edu-arc-bottom span:nth-child(3) {
    transform: translateY(0);
}

.edu-arc-bottom span:nth-child(4) {
    transform: translateY(-12px) rotate(-6deg);
}

.edu-arc-bottom span:nth-child(5) {
    transform: translateY(-35px) rotate(-12deg);
}

/* =========================================================
   BUBBLE SEMBURAN
========================================================= */

.bubble-burst {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 40%;

    z-index: 2;

    pointer-events: none;

    overflow: hidden;

    opacity: 0;
    
    animation: bubbleSembur 3s ease-out infinite;
}


/* =========================================================
   BUBBLE
========================================================= */

.burst-bubble {
    position: absolute;

    bottom: -50px;

    width: 35px;
    height: auto;

    opacity: 0;

    animation:
        bubbleSembur 2.8s ease-out infinite;
}


/* =========================================================
   BUBBLE GELEMBUNG SABUN
   BESAR + RAPAT
========================================================= */

.b1  { left: -2%; width: 90px;  animation-delay: 0s; }
.b2  { left: 4%;  width: 125px; animation-delay: .3s; }
.b3  { left: 10%; width: 75px;  animation-delay: .7s; }
.b4  { left: 16%; width: 140px; animation-delay: .2s; }
.b5  { left: 23%; width: 95px;  animation-delay: .6s; }
.b6  { left: 29%; width: 130px; animation-delay: .1s; }

.b7  { left: 36%; width: 80px;  animation-delay: .5s; }
.b8  { left: 42%; width: 145px; animation-delay: .3s; }
.b9  { left: 49%; width: 90px;  animation-delay: .8s; }
.b10 { left: 55%; width: 135px; animation-delay: .4s; }
.b11 { left: 62%; width: 75px;  animation-delay: .1s; }
.b12 { left: 67%; width: 125px; animation-delay: .7s; }

.b13 { left: 73%; width: 95px;  animation-delay: 1.1s; }
.b14 { left: 79%; width: 140px; animation-delay: 1.4s; }
.b15 { left: 85%; width: 80px;  animation-delay: 1.7s; }
.b16 { left: 90%; width: 125px; animation-delay: 1.2s; }
.b17 { left: 95%; width: 90px;  animation-delay: 1.6s; }

.b18 { left: 2%;  width: 70px;  animation-delay: 1.3s; }
.b19 { left: 14%; width: 115px; animation-delay: 1.8s; }
.b20 { left: 27%; width: 85px;  animation-delay: 1.5s; }
.b21 { left: 40%; width: 110px; animation-delay: 1.9s; }
.b22 { left: 53%; width: 75px;  animation-delay: 1.4s; }
.b23 { left: 66%; width: 120px; animation-delay: 1.8s; }
.b24 { left: 88%; width: 100px; animation-delay: 1.5s; }


/* =========================================================
   BUBBLE MUNCUL
========================================================= */

@keyframes burstMuncul {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =========================================================
   BUBBLE MENYEMBUR
========================================================= */

@keyframes bubbleSembur {

    0% {
        transform:
            translate(0, 0)
            scale(0.5);

        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    70% {
        opacity: 0.65;
    }

    100% {
        transform:
            translate(
                var(--arah, 0px),
                -220px
            )
            scale(1);

        opacity: 0;
    }

}

/* Angka 1 */

.edu-number {
    left: 6%;
    top: 60%;

    font-size: 25px;
    font-weight: 800;

    animation-duration: 4s;
}


/* Angka 2 */

.edu-number-two {
    right: 7%;
    top: 55%;

    font-size: 22px;
    font-weight: 800;

    animation-duration: 5.5s;
    animation-delay: -2s;
}


/* =========================================================
   GERAKAN
========================================================= */

@keyframes eduMelayang {

    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-12px) rotate(5deg);
    }

}
/* =========================================================
   BUBBLE WARNA-WARNI
========================================================= */

.color-burst {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 40%;

    z-index: 3;

    pointer-events: none;

    overflow: hidden;
}


.color-bubble {
    position: absolute;

    bottom: -40px;

    border-radius: 50%;

    opacity: 0;

    animation: colorBubbleSembur 2.5s ease-out infinite;
}


/* =========================================================
   WARNA + POSISI
========================================================= */

.cb1 {
    left: 5%;
    width: 28px;
    height: 28px;
    background: #ff8fc7;
    animation-delay: .2s;
}

.cb2 {
    left: 13%;
    width: 45px;
    height: 45px;
    background: #ffd85c;
    animation-delay: .7s;
}

.cb3 {
    left: 21%;
    width: 25px;
    height: 25px;
    background: #65d9ff;
    animation-delay: .4s;
}

.cb4 {
    left: 31%;
    width: 40px;
    height: 40px;
    background: #b98cff;
    animation-delay: 1s;
}

.cb5 {
    left: 40%;
    width: 30px;
    height: 30px;
    background: #ff9f68;
    animation-delay: .5s;
}

.cb6 {
    left: 49%;
    width: 48px;
    height: 48px;
    background: #ff8fc7;
    animation-delay: .9s;
}

.cb7 {
    left: 58%;
    width: 25px;
    height: 25px;
    background: #ffd85c;
    animation-delay: .3s;
}

.cb8 {
    left: 67%;
    width: 42px;
    height: 42px;
    background: #65d9ff;
    animation-delay: .8s;
}

.cb9 {
    left: 75%;
    width: 30px;
    height: 30px;
    background: #b98cff;
    animation-delay: .5s;
}

.cb10 {
    left: 83%;
    width: 45px;
    height: 45px;
    background: #ff9f68;
    animation-delay: 1.1s;
}

.cb11 {
    left: 90%;
    width: 25px;
    height: 25px;
    background: #ff8fc7;
    animation-delay: .6s;
}

.cb12 {
    left: 96%;
    width: 35px;
    height: 35px;
    background: #65d9ff;
    animation-delay: .9s;
}


/* =========================================================
   ANIMASI SEMBURAN
========================================================= */

@keyframes colorBubbleSembur {

    0% {
        transform: translateY(0) scale(.5);
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    70% {
        opacity: .65;
    }

    100% {
        transform: translateY(-200px) scale(1);
        opacity: 0;
    }

}