* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #080d18;
    color: #fff;
    font-family: Arial, sans-serif;
}

:root {
    --blue: #2878ff;
    --light: #a9b5ca;
    --dark: #080d18;
}

/* NAVBAR */

header {
    width: 100%;
    background: #080d18;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1c293d;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar h2,
footer h2 {
    font-size: 26px;
    letter-spacing: 2px;
}

.navbar h2 span,
footer h2 span {
    color: var(--blue);
}

.navbar ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar ul a {
    color: #c2ccdc;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.navbar ul a:hover {
    color: var(--blue);
}

.nav-button {
    background: var(--blue);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
}

/* HERO */

.hero {
    max-width: 1200px;
    margin: auto;
    min-height: 620px;
    padding: 100px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.subtitle {
    color: var(--blue);
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span,
.about h2 span,
.contact h2 span {
    color: var(--blue);
}

.description {
    color: var(--light);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: #155bd1;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid #43516a;
    color: white;
}

.btn-secondary:hover {
    border-color: var(--blue);
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 55px;
}

.stats h2 {
    font-size: 24px;
}

.stats p {
    color: var(--light);
    margin-top: 8px;
    font-size: 13px;
}

/* CODE CARD */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.code-card {
    background: #111d31;
    border: 1px solid #273957;
    border-radius: 15px;
    width: 100%;
    max-width: 430px;
    padding: 25px;
    box-shadow: 0 20px 80px #164d9a33;
}

.dots {
    color: #ff5f57;
    letter-spacing: 5px;
    padding-bottom: 30px;
}

.code-card pre {
    color: #60a5fa;
    font-size: 16px;
    line-height: 2;
    white-space: pre-wrap;
}

.card-bottom {
    border-top: 1px solid #273957;
    padding-top: 20px;
    color: #9eabc0;
    margin-top: 25px;
}

.card-bottom span {
    color: var(--blue);
}

/* LATIHAN */

.services {
    padding: 100px 25px;
    background: #0d1423;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading > p:first-child {
    color: var(--blue);
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.section-heading > p:last-child {
    color: var(--light);
}

.service-container {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 30px 25px;
    border: 1px solid #26344c;
    border-radius: 12px;
    background: #111c2e;
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
}

.service-icon {
    font-size: 35px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 21px;
}

.service-card p {
    color: var(--light);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 25px;
}

/* BUTTON LATIHAN */

.latihan-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.latihan-button {
    display: inline-block;
    margin-top: auto;
    text-align: center;
    padding: 12px 18px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
}

.latihan-button:hover {
    background: #155bd1;
    transform: translateY(-3px);
}

/* TENTANG */

.about {
    max-width: 1200px;
    margin: auto;
    padding: 120px 25px;
}

.about-content {
    max-width: 700px;
}

.about h2 {
    font-size: 42px;
    line-height: 1.4;
    margin-bottom: 25px;
}

.about-content > p:not(.subtitle) {
    color: var(--light);
    line-height: 1.9;
    margin-bottom: 30px;
}

/* KONTAK */

.contact {
    background: #101c30;
    padding: 100px 25px;
    text-align: center;
}

.contact h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.contact > p:not(.subtitle) {
    color: var(--light);
    margin: 25px 0 35px;
}

/* FOOTER */

footer {
    padding: 35px 20px;
    text-align: center;
    background: #060a12;
}

footer p {
    color: var(--light);
    font-size: 13px;
    margin-top: 15px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        width: 100%;
    }

    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .navbar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .navbar ul {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .navbar ul a {
        font-size: 12px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

    .stats {
        gap: 25px;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .contact h2 {
        font-size: 30px;
    }

    .about h2 {
        font-size: 32px;
    }
}