@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #080d1a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

:root {
    --blue: #3987ff;
    --purple: #925cff;
    --muted: #9ba8c3;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 9%;
    background: rgba(8, 13, 26, 0.95);
    border-bottom: 1px solid #202b43;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--blue);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #c5cee0;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

nav a:hover {
    color: var(--blue);
}

.hero {
    min-height: 590px;
    padding: 100px 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 50%, #18295b 0%, transparent 35%),
        #080d1a;
}

.hero-content {
    max-width: 600px;
}

.tag {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span,
.quiz-section h2 span {
    background: linear-gradient(90deg, #3987ff, #a16aff);
    -webkit-background-clip: text;
    color: transparent;
}

.description {
    color: var(--muted);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    border: none;
    padding: 15px 25px;
    background: linear-gradient(90deg, #347eff, #8555ff);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px #3987ff55;
}

.hero-visual {
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
    position: relative;
}

.circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid #3987ff;
    box-shadow: 0 0 40px #3987ff66, inset 0 0 40px #3987ff33;
    animation: pulse 3s infinite;
}

.hero-icon {
    position: absolute;
    font-size: 100px;
    color: #8cbaff;
    text-shadow: 0 0 30px #3987ff;
}

@keyframes pulse {
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 70px #3987ff99;
    }
}

.materi {
    padding: 90px 9%;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2,
.quiz-section h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.section-heading > p:last-child,
.quiz-section > p:not(.tag) {
    color: var(--muted);
    line-height: 1.7;
}

.search-box {
    max-width: 550px;
    margin: 35px auto 45px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    background: #111b30;
    border: 1px solid #263958;
    border-radius: 8px;
    outline: none;
    color: white;
    font-size: 14px;
}

.search-box input:focus {
    border-color: var(--blue);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    background: linear-gradient(145deg, #111c32, #0c1425);
    border: 1px solid #243653;
    padding: 30px;
    border-radius: 14px;
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: 0 10px 35px #3987ff22;
}

.card-icon {
    font-size: 35px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 19px;
    margin-bottom: 13px;
}

.category-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    min-height: 70px;
    margin-bottom: 20px;
}

.category-card a {
    color: #65a4ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.quiz-section {
    padding: 90px 9%;
    text-align: center;
    background: radial-gradient(circle at center, #192956, #080d1a 65%);
}

.quiz-section .btn {
    margin-top: 25px;
}

#quizArea {
    max-width: 600px;
    margin: 30px auto 0;
}

footer {
    padding: 45px 9%;
    text-align: center;
    border-top: 1px solid #202b43;
}

footer p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

.copyright {
    font-size: 11px;
    margin-top: 25px;
}

@media (max-width: 850px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 75px;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .navbar {
        padding: 20px 5%;
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 22px;
    }

    .hero, .materi, .quiz-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero-visual {
        transform: scale(.8);
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .quiz-section h2 {
        font-size: 29px;
    }
}/* Kartu kategori warna pink */
.category-card {
    background: linear-gradient(
        135deg,
        rgba(255, 105, 180, 0.22),
        rgba(255, 182, 193, 0.12)
    );
    border: 1px solid rgba(255, 182, 193, 0.45);
    transition: 0.3s ease;
}

.category-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 105, 180, 0.32),
        rgba(255, 182, 193, 0.22)
    );
    border-color: #ff8fc7;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    transform: translateY(-5px);
}
