@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Frijole&family=Lexend+Deca:wght@100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&family=Rowdies:wght@300;400;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", serif;
    /* Seperti di video */
    background: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* old Edge */
}

section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #090909;
}

.sticky-header {
    position: absolute;
    top: 15%;
    padding-bottom: 80px;
    /* Sesuaikan posisi di atas kartu */
    left: 50%;
    transform: translate(-50%, 20px);
    /* Mulai dari bawah (slide up) */
    opacity: 0;
    /* Mulai dari transparan */
    text-align: center;
    width: 100%;
    pointer-events: none;
    /* Biar nggak ganggu scroll/klik */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    /* Transisi halus */
}

/* Class tambahan yang akan dipicu via JS */
.sticky-header.show {
    opacity: 1;
    transform: translate(-50%, -50%);
    /* Naik ke posisi asli */
}

.card-container {
    display: flex;
    /* Rasio 15:7 untuk 3 kartu (total) */
    width: 900px;
    aspect-ratio: 15 / 7;
    gap: 0;
    /* Mulai dari menempel */
    perspective: 2000px;
}

.card {
    position: relative;
    flex: 1;
    height: 100%;
    /* Rasio 5:7 per kartu */
    aspect-ratio: 5 / 7;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Border radius awal agar terlihat menyatu sempurna */
#card-1 .card-front,
#card-1 .card-back {
    border-radius: 20px 0 0 20px;
}

#card-2 .card-front,
#card-2 .card-back {
    border-radius: 0;
}

#card-3 .card-front,
#card-3 .card-back {
    border-radius: 0 20px 20px 0;
}

.card-back {
    transform: rotateY(180deg);
    background: #dceaec;
    color: black;
    padding: 20px;
}

#card-1 .card-back {
    background-color: #4b747a;
}

#card-3 .card-back {
    background-color: #4b5f7a;
}

/* Pastikan kursor berubah saat hover */
.card.is-flipped {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efek Hover: Hanya aktif jika class .is-flipped ada */
.card.is-flipped:hover {
    transform: rotateY(180deg) scale(1.08) !important;
    z-index: 10;
    /* Agar kartu yang di-hover berada paling depan */
}

/* Sedikit pencerahan warna saat hover */
.card.is-flipped:hover .card-back {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    /* Glow sesuai warna kuning tadi */
    transition: all 0.2s;
}

.card-back {
    transition: all 0.3s ease;
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    overflow: hidden;
    /* Supaya gambar tidak keluar dari border-radius */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Styling gambar latar belakang kartu */
.back-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Menjaga rasio 5:7 gambar */
    z-index: -1;
    /* Berada di belakang teks */
    transition: transform 0.5s ease;
}

/* Overlay agar teks di atas gambar lebih mudah dibaca */
.card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    /* Di atas overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    /* Teks jadi putih karena backgroundnya gambar */
}

/* Efek Hover Tambahan: Gambar di dalam kartu ikut zoom sedikit */
.card.is-flipped:hover .back-bg-img {
    transform: scale(1.1);
}


.intro {
    display: flex;
    flex-direction: row;
    height: 120vh;
    img {
        position: absolute;
        top: 0;
        z-index: 999;
        width: 100vw;
        filter:
            drop-shadow(0px 39px 15px #000000) drop-shadow(0px 39px 25px #000000e6) drop-shadow(0px 39px 35px #1b1b1b65) drop-shadow(0px 39px 45px #35353500);

    

    }
}



/* Responsif Mobile */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    /* Animasi biasanya dimatikan di mobile sesuai video */
}












