/* ==========================================================================
   WAVE.CSS
   Semua pengaturan Wave website berada di file ini.
   
   WAVE 1
   → Wave animasi di bawah Hero Carousel
   
   WAVE 2
   → Wave pemisah section menuju bagian dark/footer
   ========================================================================== */


/* ==========================================================================
   WAVE 1 — HERO CAROUSEL
   ========================================================================== */

   .hero-wave {
    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    width: 100%;
    max-width: 100%;

    height: 60px;

    overflow: hidden;

    margin: 0;
    padding: 0;

    line-height: 0;

    /*
     * Wave hanya dekorasi.
     * Tidak mengganggu tombol carousel,
     * klik maupun swipe HP.
     */
    pointer-events: none;

    z-index: 3;
}


/* SVG Wave 1 */

.hero-wave svg {
    position: absolute;

    left: 0;
    bottom: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;

    overflow: hidden;
}


/* Layer */

.hero-wave .parallax {
    width: 100%;
}


/* ==========================================================================
   ANIMASI WAVE 1
   ========================================================================== */

.hero-wave .parallax > use {
    animation-name: hero-wave-animation;

    animation-timing-function: cubic-bezier(
        .55,
        .5,
        .45,
        .5
    );

    animation-iteration-count: infinite;
}


/* Layer 1 */

.hero-wave .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}


/* Layer 2 */

.hero-wave .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}


/* Layer 3 */

.hero-wave .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}


/* Layer 4 */

.hero-wave .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}


/* Keyframe khusus Wave 1 */

@keyframes hero-wave-animation {

    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }

}


/* ==========================================================================
   WAVE 1 — RESPONSIVE
   ========================================================================== */

@media (max-width: 767.98px) {

    .hero-wave {
        height: 22px;
    }

}


@media (max-width: 375px) {

    .hero-wave {
        height: 18px;
    }

}


@media (min-width: 768px) and (max-width: 991.98px) {

    .hero-wave {
        height: 35px;
    }

}


@media (min-width: 992px) and (max-width: 1199.98px) {

    .hero-wave {
        height: 45px;
    }

}


@media (min-width: 1200px) {

    .hero-wave {
        height: 60px;
    }

}


/* ==========================================================================
   WAVE 2 — SECTION / FOOTER
   ========================================================================== */

.section-wave {
    position: relative;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    margin-bottom: -1px;
    padding: 0;

    line-height: 0;
}


/* SVG Wave 2 */

.section-wave svg {
    position: relative;

    display: block;

    width: 100%;
    height: 90px;

    max-width: 100%;

    overflow: hidden;
}


/* Warna Wave 2 */

.section-wave path {
    fill: #0f172a;
    fill-opacity: 1;
}


/* ==========================================================================
   WAVE 2 — MOBILE
   ========================================================================== */

@media (max-width: 767.98px) {

    .section-wave svg {
        height: 45px;
    }

}


/* ==========================================================================
   WAVE 2 — HP KECIL
   ========================================================================== */

@media (max-width: 375px) {

    .section-wave svg {
        height: 35px;
    }

}


/* ==========================================================================
   WAVE 2 — TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {

    .section-wave svg {
        height: 60px;
    }

}


/* ==========================================================================
   WAVE 2 — DESKTOP
   ========================================================================== */

@media (min-width: 1200px) {

    .section-wave svg {
        height: 90px;
    }

}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-wave .parallax > use {
        animation: none;
    }

}