/* =========================================================
   FILE      : css/beranda-hero.css
   ISI       : Banner utama beranda (gambar pesawat, judul, tombol, teks berputar).
   DIPAKAI DI: index.html
   ========================================================= */

.hero {
    position: relative;

    min-height: 420px;

    color: #fff;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(3, 20, 48, .98),
            rgba(4, 36, 82, .88) 46%,
            rgba(4, 43, 88, .25)
        ),

        url("../images/banner-beranda-pesawat.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Cahaya pada Hero */

.hero:before {
    content: "";

    position: absolute;

    right: -8%;
    top: -35%;

    width: 640px;
    height: 640px;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            var(--p),
            var(--p2),
            var(--p)
        );

    filter: blur(90px);

    opacity: .35;

    animation:
        spin 20s linear infinite;

    pointer-events: none;

    z-index: 0;
}

/*
   Garis miring Hero
   Sekarang menggunakan warna background,
   bukan putih.
*/

.hero:after {
    content: "";

    position: absolute;

    left: -5%;
    right: -5%;

    bottom: -65px;

    height: 100px;

    background:
        linear-gradient(
            135deg,
            #07152f,
            #0b1736
        );

    transform: skewY(-4deg);

    z-index: 1;

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    padding:
        60px 0 85px;
}

.eyebrow {
    letter-spacing: 3px;

    font-size: 11px;

    color: var(--p2);
}

.hero h1 {
    font-weight: 800;

    line-height: 1.08;

    font-size:
        clamp(
            2.3rem,
            5.5vw,
            4rem
        );

    max-width: 610px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            var(--p2),
            #fff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 480px;

    color: #d6e3f6;

    font-size: 14px;
}

/* Layar kecil */
@media (max-width: 767px) {

    .hero-content {
        padding:
            48px 0 80px;
    }

    .hero {
        min-height: 390px;
    }
}

/* Pengguna yang mematikan animasi di perangkatnya */
@media (prefers-reduced-motion: reduce) {

    .hero:before,
    .caret {
        animation: none;
    }
}
