* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;

    --background: #ffffff;
    --card: #f5f5f7;

    --text: #171717;
    --muted: #666666;

    --border: #e5e7eb;
}

body {
    font-family: "Poppins", sans-serif;

    background: var(--background);
    color: var(--text);

    transition:
        background 0.3s,
        color 0.3s;
}


/* ================= DARK MODE ================= */

body.dark {
    --background: #0f172a;
    --card: #1e293b;

    --text: #f8fafc;
    --muted: #cbd5e1;

    --border: #334155;
}


/* ================= NAVBAR ================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    transition: 0.3s;
}

body.dark header {
    background: rgba(15,23,42,0.85);
}

.navbar {
    width: 90%;

    max-width: 1200px;

    height: 75px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    color: var(--text);

    text-decoration: none;

    font-size: 25px;

    font-weight: 700;
}

.nav-menu {
    display: flex;

    align-items: center;

    gap: 23px;

    list-style: none;
}

.nav-menu a {
    color: var(--text);

    text-decoration: none;

    font-size: 13px;

    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;

    align-items: center;

    gap: 10px;
}

#themeButton,
.menu-button {
    border: none;

    background: transparent;

    color: var(--text);

    font-size: 20px;

    cursor: pointer;
}

.menu-button {
    display: none;
}


/* ================= HERO ================= */

.hero {
    width: 90%;

    max-width: 1200px;

    min-height: 100vh;

    margin: auto;

    padding-top: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 70px;
}

.hero-text {
    flex: 1;
}

.greeting {
    color: var(--primary);

    font-size: 20px;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);

    line-height: 1.15;

    margin-bottom: 20px;
}

.hero h1 span {
    display: block;

    color: var(--primary);
}

.hero h2 {
    font-size: 23px;

    font-weight: 500;

    margin-bottom: 10px;
}

.hero-text > p {
    color: var(--muted);

    margin-bottom: 7px;
}

.button {
    display: inline-block;

    margin-top: 25px;

    padding: 13px 25px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    border-radius: 10px;

    transition: 0.3s;
}

.button:hover {
    background: var(--primary-dark);

    transform: translateY(-3px);
}


/* ================= HERO FOTO ================= */

.hero-image {
    flex: 1;

    display: flex;

    justify-content: center;
}

.image-circle {
    width: 360px;
    height: 360px;

    padding: 8px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 20px 50px rgba(99,102,241,0.25);
}

.image-circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid var(--background);
}


/* ================= SECTION ================= */

.section {
    width: 90%;

    max-width: 1100px;

    margin: auto;

    padding: 100px 0;
}

.section-title {
    text-align: center;

    margin-bottom: 55px;
}

.section-title p {
    color: var(--primary);

    font-size: 14px;
}

.section-title h2 {
    font-size: 38px;
}


/* ================= ABOUT ================= */

.about-content {
    display: flex;

    align-items: center;

    gap: 60px;
}

.about-image {
    width: 350px;

    flex-shrink: 0;
}

.about-image img {
    width: 100%;

    display: block;

    border-radius: 20px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;

    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);

    line-height: 1.9;

    margin-bottom: 15px;
}


/* ================= PENDIDIKAN ================= */

.education-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.education-card {
    overflow: hidden;

    border-radius: 18px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: 0.3s;
}

.education-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08);
}

.education-image {
    width: 100%;

    height: 260px;

    overflow: hidden;
}

.education-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

.education-card:hover img {
    transform: scale(1.05);
}

.education-info {
    padding: 25px;
}

.education-info span {
    color: var(--primary);

    font-size: 14px;
}

.education-info h3 {
    margin: 8px 0;

    font-size: 21px;
}

.education-info p {
    color: var(--muted);

    font-size: 14px;
}


/* ================= SOFTWARE ================= */

.software-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.software-card {
    padding: 30px 15px;

    text-align: center;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: 0.3s;
}

.software-card:hover {
    transform: translateY(-7px);

    border-color: var(--primary);
}

.software-icon {
    width: 55px;
    height: 55px;

    margin: auto auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    font-size: 13px;

    font-weight: 700;
}

.software-card h3 {
    font-size: 16px;

    margin-bottom: 5px;
}

.software-card p {
    color: var(--muted);

    font-size: 12px;
}


/* ================= PROJECT ================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    border-radius: 18px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08);
}

.project-image {
    height: 220px;

    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    margin-bottom: 10px;

    font-size: 20px;
}

.project-info p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* ================= SERTIFIKAT ================= */

.certificate-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.certificate-card {
    overflow: hidden;

    border-radius: 18px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: 0.3s;
}

.certificate-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.1);
}

.certificate-image {
    width: 100%;

    height: 300px;

    overflow: hidden;

    background: #eeeeee;
}

body.dark .certificate-image {
    background: #111827;
}

.certificate-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition: 0.4s;
}

.certificate-card:hover img {
    transform: scale(1.03);
}

.certificate-info {
    padding: 18px;

    text-align: center;
}

.certificate-info h3 {
    font-size: 16px;
}


/* ================= THANKS ================= */

.thanks {
    padding: 120px 20px;

    text-align: center;

    background: var(--primary);

    color: white;
}

.thanks h2 {
    font-size: 42px;

    margin-bottom: 10px;
}


/* ================= CONTACT ================= */

.contact-list {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    color: var(--text);

    text-decoration: none;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);

    border-color: var(--primary);
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-size: 13px;

    font-weight: 600;
}

.contact-item strong {
    display: block;
}

.contact-item small {
    color: var(--muted);
}


/* ================= FOOTER ================= */

footer {
    padding: 30px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;

    line-height: 2;

    border-top: 1px solid var(--border);
}


/* ================= TABLET ================= */

@media (max-width: 950px) {

    .nav-menu {
        display: none;

        position: absolute;

        top: 75px;

        left: 5%;

        width: 90%;

        padding: 25px;

        flex-direction: column;

        background: var(--background);

        border: 1px solid var(--border);

        border-radius: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .hero {
        flex-direction: column-reverse;

        justify-content: center;

        text-align: center;

        padding-top: 120px;

        gap: 40px;
    }

    .image-circle {
        width: 280px;
        height: 280px;
    }

    .about-content {
        flex-direction: column;

        text-align: center;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-list {
        grid-template-columns: 1fr;
    }
}


/* ================= HP ================= */

@media (max-width: 600px) {

    .navbar {
        height: 65px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 19px;
    }

    .image-circle {
        width: 230px;
        height: 230px;
    }

    .section {
        padding: 75px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .about-image {
        width: 100%;

        max-width: 330px;
    }

    .education-grid,
    .software-grid,
    .project-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .education-image {
        height: 220px;
    }

    .project-image {
        height: 210px;
    }

    .certificate-image {
        height: auto;

        min-height: 220px;
    }

    .thanks h2 {
        font-size: 32px;
    }
}