/*================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    overflow-x: hidden;
}


/* ==============================
   NAVBAR
================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 8%;

    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.55);
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.nav a:hover {
    color: #60a5fa;
}

.logo {
    font-weight: 700;
}


/* ==============================
   HERO
================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;
    gap: 40px;
}

.left {
    max-width: 650px;
}

.left h1 {
    font-size: 56px;
    line-height: 1.1;
}

.tag {
    color: #f59e0b;
}

.left h2 {
    color: #60a5fa;
    height: 40px;
}

.buttons {
    margin-top: 24px;
}


/* ==============================
   BUTTON
================================= */

.btn {
    background: #f59e0b;
    color: #fff;

    padding: 12px 24px;

    border-radius: 8px;

    text-decoration: none;

    margin-right: 12px;
}

.outline {
    background: transparent;
    border: 2px solid #f59e0b;
}


/* ==============================
   PHOTO HERO
================================= */

.photo {
    width: 410px;
    height: 410px;

    flex-shrink: 0;

    border-radius: 50%;
    border: 3px solid #60a5fa;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);

    box-shadow: 0 0 50px rgba(96, 165, 250, 0.4);
}

.photo img {
    width: 400px;
    max-width: 100%;
    height: auto;
}


/* ==============================
   SECTION
================================= */

section {
    padding: 100px 10%;
}


/* ==============================
   GALERI MATERI
================================= */

.gallery1 {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 30px auto;

    padding: 0;

    text-align: center;
}


/* Kartu gambar */

.card1 {
    width: 650px;
    max-width: 650px;

    margin: 0 auto;

    padding: 0;
}


/* Gambar materi */

.card1 img {
    display: block;

    width: 100%;
    max-width: 650px;

    height: auto;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 15px;
}


/* ==============================
   JUDUL MATERI
================================= */

#reaksi > h2,
#bilangan-oksidasi > h2,
#penyetaraan-redoks > h2,
#glosarium > h2 {
    text-align: center;

    margin-bottom: 25px;

    font-size: 32px;
}

.latihan {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 20px;
}

.latihan h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.subjudul {
    text-align: center;
    margin-bottom: 40px;
}

.soal {
    background: white;
	color: #1e293b;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.soal h2 {
	color: #1e293b;
    font-size: 20px;
    margin-bottom: 20px;
}

.jawaban {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
	color: #1e293b;
    background: white;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.jawaban:hover {
    background: #f1f1f1;
}

/* JAWABAN BENAR */
.jawaban.benar {
    color: green;
    background: #e8f8e8;
    border-color: green;
}

/* JAWABAN SALAH */
.jawaban.salah {
    color: red;
    background: #ffe8e8;
    border-color: red;
}

/* HASIL */
.hasil {
    text-align: center;
    margin: 40px 0;
}

#ulang {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background: #333;
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

#ulang:hover {
    opacity: 0.8;
}

/* ==============================
   PENJELASAN SOAL
================================= */

.penjelasan {
    display: none;

    margin-top: 20px;
    padding: 15px;

    background: #eef6ff;
    color: #1e293b;

    border-left: 5px solid #2563eb;
    border-radius: 8px;

    line-height: 1.6;
}

.penjelasan.muncul {
    display: block;
}

/* ==============================
   CONTACT
================================= */

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    color: #00d4ff;
}


/* ==============================
   FOOTER
================================= */

footer {
    text-align: center;

    padding: 30px;

    background: #020617;
}


/* ==============================
   TABLET
================================= */

@media (max-width: 1000px) {

    .hero {
        padding: 100px 6% 50px;

        flex-direction: column;

        text-align: center;
    }

    .left {
        max-width: 800px;
    }

    .left h1 {
        font-size: 45px;
    }

    .photo {
        width: 320px;
        height: 320px;
    }

    .photo img {
        width: 310px;
    }

    .card1 {
        width: 600px;
        max-width: 90%;
    }

    .card1 img {
        max-width: 100%;
    }
}


/* ==============================
   HP
================================= */

@media (max-width: 768px) {

    /* NAVBAR */

    .nav {
        padding: 15px 5%;

        flex-direction: column;

        gap: 10px;
    }

    .nav a {
        margin-left: 8px;
        margin-right: 8px;

        font-size: 13px;
    }


    /* HERO */

    .hero {
        min-height: 100vh;

        padding: 150px 5% 60px;

        flex-direction: column;

        text-align: center;

        gap: 40px;
    }

    .left {
        width: 100%;
    }

    .left h1 {
        font-size: 34px;
    }

    .left h2 {
        font-size: 20px;
    }

    .tag {
        font-size: 14px;
    }

    .left p {
        font-size: 14px;
    }

    /* FOTO HERO */

    .photo {
        width: 280px;
        height: 280px;
    }

    .photo img {
        width: 270px;
    }


    /* SECTION */

    section {
        padding: 80px 5%;
    }


    /* JUDUL */

    #reaksi > h2,
    #bilangan-oksidasi > h2,
    #penyetaraan-redoks > h2,
    #glosarium > h2 {
        font-size: 25px;

        text-align: center;
    }


    /* GALERI */

    .gallery1 {
        width: 100%;

        margin: 20px auto;

        padding: 0;
    }

    .card1 {
        width: 100%;
        max-width: 500px;

        margin: 0 auto;
    }

    .card1 img {
        width: 100%;
        max-width: 100%;

        height: auto;

        margin: 0 auto;
    }


.menu-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
    max-width: 600px;
}

.menu-btn {
    display: inline-block;
    padding: 11px 18px;
	text-align: center;
    background: #2563eb;
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;

    transition: 0.3s;
}

.menu-btn:hover {
    background: #60a5fa;
    transform: translateY(-3px);
}
}

/* ==============================
   HP KECIL
================================= */

@media (max-width: 480px) {

    .nav {
        padding: 12px 3%;
    }

    .logo {
        font-size: 15px;
    }

    .nav a {
        font-size: 11px;

        margin-left: 4px;
        margin-right: 4px;
    }

    .hero {
        padding-top: 140px;
    }

    .left h1 {
        font-size: 28px;
    }

    .photo {
        width: 230px;
        height: 230px;
    }

    .photo img {
        width: 220px;
    }

    section {
        padding: 70px 4%;
    }

    #reaksi > h2,
    #bilangan-oksidasi > h2,
    #penyetaraan-redoks > h2,
    #glosarium > h2 {
        font-size: 22px;
    }

    .card1 {
        width: 100%;
        max-width: 100%;
    }

    .card1 img {
        width: 100%;
    }


.menu-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
    max-width: 600px;
}

.menu-btn {
    display: inline-block;
    padding: 11px 18px;
	text-align: center;
    background: #2563eb;
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;

    transition: 0.3s;
}

.menu-btn:hover {
    background: #60a5fa;
    transform: translateY(-3px);
}
 }
