.hero-section {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 5rem;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: hidden;
}

.hero-container {
    width: 100%;
    min-height: 100dvh; /* Tetap satu layar penuh */
    display: flex;
    justify-content: flex-start; /* KUNCINYA: Paksa konten ke ATAS, bukan ke tengah */
    margin-top: 13rem;
}

.left-hero, .right-hero {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    margin-inline: auto;
}

/* LEFT CONTENT */
.left-hero h1 {
    font-size: 2.25rem;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: var(--primary);
    /* text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4); */

    /* Animating */
    opacity: 0;
    transform: translateY(10px);
}
.left-hero p {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    /* text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4); */

    /* Animating */
    opacity: 0;
    transform: translateY(10px);
}

.buttons {
    display: flex;
    gap: 2rem;

    /* Animating */
    opacity: 0;
    transform: translateY(10px);
}

.btn-1, .btn-2 {
    margin-top: 2rem;
}

.btn-1 a, .btn-2 button {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.left-hero .btn-1 a {
    display: inline-block;
    padding: 10px 15px;
    width: 6rem;
    text-align: center;
    border: 1px solid var(--primary);
    background-color: var(--primary);
    border-radius: 0.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.left-hero .btn-1 a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -150%; 
    transform: translateY(-50%);
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background-color: white;
    z-index: -1;
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.left-hero .btn-1 a:hover::before {left: -4%;}
.left-hero .btn-1 a:hover {border-color: var(--primary); color: var(--primary);}
.left-hero .btn-1 a span {text-align: center;}

.left-hero .btn-2 button {
    padding: 10px 15px;
    width: 9rem;
    text-align: center;
    font: inherit;
    border: 1px solid var(--primary);
    background-color: white;
    border-radius: 0.25rem;
    color: var(--primary);
    font-size: 16px;
    display: inline;
}

/* RIGHT CONTENT */
.right-hero {
    position: relative;

    /* Animating */
    opacity: 0;
    transform: translateY(10px);
}

.right-hero .card {
    width: 15rem;
    height: 20rem;
    border-radius: 5px;
    border: 1px solid black;
    background-color: white;
    position: absolute;
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.right-hero .card:first-child.p {
    /* top: -3rem;
    left: 12rem;
    z-index: 2; */
    animation: FlipCardToFirst 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.right-hero .card:last-child.p {
    /* top: -3rem;
    left: 12rem;
    z-index: 2; */
    animation: FlipCardToFirst 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.right-hero .card:first-child {
    /* top: 1rem;
    left: 18rem;
    z-index: 1; */
    animation: FlipCardToBack 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;

}

.right-hero .card:last-child {
    /* top: 1rem;
    left: 18rem;
    z-index: 1; */
    animation: FlipCardToBack 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;

}

.card img {
    width: 100%;
}

@keyframes FlipCardToFirst {
    0% {
        top: 1rem;
        left: 18rem;
        z-index: 1;
    }
    35% {
        top: 3rem;
        left: 20rem;
    }
    100% {
        top: -3rem;
        left: 12rem;
        z-index: 2;
        scale: 1.2;
    }
}

@keyframes FlipCardToBack {
    0% {
        top: -3rem;
        left: 12rem;
        z-index: 2;
        scale: 1.2;
    }
    35% {
        top: -5rem;
        left: 10rem;
    }
    100% {
        top: 1rem;
        left: 18rem;
        z-index: 1;
        scale: 1;
    }
}

/* @media (max-width: 1200px) {
    .right-hero {
        display: none;
    }
    .buttons {
        justify-content: center;
    }
    .left-hero h1 {
        font-size: 2.25rem;
        margin: 0;
        padding: 0;
        font-weight: 600;
        color: var(--primary);
        text-align: center;
    }
    .left-hero p {
        font-size: .75rem;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .hero-container {
        width: 100%;
        min-height: 100dvh; 
        display: flex;
        justify-content: center; 
        margin-top: 13rem;
    }
    .hero-section {
        width: 100%;
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 1.5rem;
        height: 100dvh;
        min-height: 100dvh;
        overflow-y: hidden;
        padding-bottom: 4rem;
    }
}
 */

 @media (max-width: 1200px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-inline: 1.5rem;
        padding-top: .75rem;
        padding-bottom: 3rem;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 0; /* ❗ ini penting banget */
        gap: 2rem;
    }

    .left-hero {
        align-items: center;
        text-align: center;
    }

    .left-hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .left-hero p {
        font-size: 1rem;
        max-width: 400px;
    }

    .buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .right-hero {
        display: none;
    }
}

/* HP kecil */
@media (max-width: 600px) {
    .left-hero h1 {
        font-size: 2.2rem;
    }

    .left-hero p {
        font-size: 1rem;
        margin-top: 1rem;
    }
    .left-hero {
        max-width: 300px;
        width: 100%;
    }
    .hero-section {
        padding-inline: 0;
    }
}

/* Fade Animating */
.hero-section.show h1, p, .right-hero, .buttons {
    animation: fadeTop .4s ease-in-out forwards;
}

.hero-section.show p {
    animation-delay: .2s;
}

.hero-section.show .right-hero {
    animation-delay: .6s;
}

.hero-section.show .buttons {
    animation-delay: .3s;
}