/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY (background hanya untuk HERO feel) */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #5a0000; /* warna dasar bawah */
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #7a0c0c;
    padding: 15px 40px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 45px;
}

/* MENU */
.menu a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover,
.menu .active {
    color: #facc15;
}

/* HERO (PAKAI FOTO, GA DOBEL) */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
                url("foto3.png") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: white;
}

.hero-content {
    max-width: 700px;
    animation: fadeUp 1s ease forwards;
}

.hero h1 {
    font-size: 42px;
}

.hero p {
    margin-top: 15px;
}

/* TRANSISI HALUS (biar ga nabrak) */
.wave {
    height: 120px;
    background: linear-gradient(to bottom, transparent, #5a0000);
    margin-top: -60px;
}

/* MAIN (beda warna dari hero) */
main {
    background: #5a0000;
    padding: 80px 20px;
    text-align: center;
}

/* TEXT */
h2 {
    color: white;
    margin-bottom: 10px;
}

.desc {
    color: #eee;
    margin-bottom: 30px;
}

/* CONTAINER GRID (ANTI NABRAK) */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */
.card {
    display: block;
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    transition: 0.3s;

    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s forwards;
}

/* DELAY */
.card:nth-child(1){animation-delay:0.2s;}
.card:nth-child(2){animation-delay:0.4s;}
.card:nth-child(3){animation-delay:0.6s;}

/* HOVER */
.card:hover {
    transform: translateY(-10px) scale(1.03);
}

/* KLIK */
.card:active {
    transform: scale(0.95);
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #a11212;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.9);
}

/* FOOTER */
footer {
    background: #4a0404;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

/* ANIMASI */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 28px;
    }
}
/* biar animasi lebih smooth */
.card {
    will-change: transform, opacity;
}

/* biar teks ga terlalu mepet */
.hero p {
    line-height: 1.6;
}

/* spacing biar lega */
main {
    padding: 100px 20px;
}
/* HERO QUIZ */
.quiz-hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
                url("foto3.png") center/cover no-repeat;

    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* BUTTON QUIZ */
.play-btn {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 25px;
    background: #facc15;
    color: black;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.9);
}
/* HERO QUIZ ANIMATION */
.quiz-hero {
    animation: fadeZoom 1s ease forwards;
}

/* TEXT HERO */
.quiz-hero h1 {
    animation: fadeUp 1s ease forwards;
}

.quiz-hero p {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
}

/* BUTTON MUNCUL */
.play-btn {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
}

/* CARD MUNCUL SAAT LOAD */
.container .card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s forwards;
}

.container .card:nth-child(1){animation-delay:0.3s;}
.container .card:nth-child(2){animation-delay:0.5s;}
.container .card:nth-child(3){animation-delay:0.7s;}

/* ANIMASI BARU */
@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* === KONTAK LEBIH ELEGAN === */

/* Biar konten di tengah */
.kontak-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Box jadi fokus di tengah */
.kontak-box {
    max-width: 420px;
    width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    /* animasi halus */
    animation: fadeUp 0.8s ease;
}

/* Judul lebih rapi */
.kontak-box h3 {
    margin-bottom: 15px;
    color: #7a0c0c;
}

/* Isi lebih lega */
.kontak-box p {
    margin: 10px 0;
    font-size: 15px;
}

/* Hover dikit biar hidup */
.kontak-box:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}
/* === PROFIL CONTAINER === */
.profil-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 40px auto;
}

/* === CARD PROFIL === */
.profil-card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    width: 260px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    transition: 0.3s;

    /* animasi halus */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s forwards;
}

/* DELAY BIAR MUNCUL SATU2 */
.profil-card:nth-child(1){animation-delay:0.2s;}
.profil-card:nth-child(2){animation-delay:0.4s;}
.profil-card:nth-child(3){animation-delay:0.6s;}

/* FOTO */
.profil-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #7a0c0c;
    margin-bottom: 10px;
}

/* NAMA */
.profil-card h2 {
    color: #7a0c0c;
    font-size: 18px;
}

/* JUDUL KECIL */
.profil-card h3 {
    color: #7a0c0c;
    margin-bottom: 10px;
}

/* TEKS */
.profil-card p {
    font-size: 14px;
    margin: 6px 0;
}

/* CARD FULL (DESKRIPSI) */
.profil-card.full {
    width: 550px;
    text-align: left;
}

/* HOVER */
.profil-card:hover {
    transform: translateY(-8px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profil-card.full {
        width: 100%;
    }
}
/* FIX KHUSUS HEADER (PROFIL & HALAMAN LAIN) */
.sub-hero {
    text-align: center;
    padding: 60px 20px;
}

/* PAKSA JADI PUTIH & TENGAH */
.sub-hero h1 {
    color: white !important;
    text-align: center;
    margin-bottom: 10px;
}

.sub-hero p {
    color: #eee !important;
    text-align: center;
}
/* FIX CATATAN BIAR PUTIH */
.box {
    color: white;
}

.box h3 {
    color: white;
}

.box p {
    color: #eee;
}
/* FIX CLICK 1x LANGSUNG */
.container .card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
    z-index: 2;
}
/* pastikan seluruh area card bisa diklik */
.card {
    display: block;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.04) !important;
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}
/* FOOTER ATAS */
.footer-top {
    background: #6b0000;
    padding: 50px 20px;
    color: white;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-box h3 {
    margin-bottom: 15px;
    color: #facc15;
}

.footer-box p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-box a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #facc15;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-kiri {
    width: 40px;
}

.logo-kanan {
    width: 35px;
    border-radius: 50%;
}
.logo-main {
    width: 45px;
}

.logo-respira {
    width: 40px;
    margin-left: 5px;
}
/* NAVBAR FIX BERSIH */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu a {
    display: inline-block;
    margin: 0;
}
/* === FIX FINAL NAVBAR (WAJIB PALING BAWAH) === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo kiri */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* gambar logo */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* menu kanan */
.menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* link menu */
.menu a {
    display: inline-block;
    line-height: normal;
    margin: 0;
}