/* =========================================================
   RESET DASAR
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7fa;
    color: #222;
    line-height: 1.6;

    /* Mencegah horizontal scrollbar */
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   HEADER & NAVBAR
   FLEXBOX #1
========================================================= */

header {
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    min-height: 70px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #1d4ed8;
}

.nav-menu {
    list-style: none;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;

    flex-wrap: wrap;
}

.nav-menu a {
    color: #333333;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #1d4ed8;
}

/* =========================================================
   HERO / PROFILE
   FLEXBOX #2
========================================================= */

.hero-section {
    background-color: #ffffff;
}

.hero {
    min-height: 500px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    gap: 60px;

    padding: 60px 0;
}

.hero-image {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 280px;
    height: 280px;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid #dbeafe;
}

.hero-content {
    flex: 2;
}

.hero-small-text {
    color: #1d4ed8;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-content h1 {
    font-size: 44px;
    margin-bottom: 5px;
}

.hero-content h2 {
    font-size: 22px;
    color: #666666;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 650px;
    margin-bottom: 25px;
    color: #444444;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;

    flex-wrap: wrap;
}

.button {
    display: inline-block;

    padding: 11px 20px;

    border-radius: 8px;

    background-color: #1d4ed8;
    color: white;

    font-weight: bold;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button:hover {
    background-color: #1e40af;
}

.button-secondary {
    background-color: #374151;
}

.button-secondary:hover {
    background-color: #1f2937;
}

/* =========================================================
   SECTION UMUM
========================================================= */

section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-description {
    color: #666666;
    margin-bottom: 30px;
    max-width: 700px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background-color: #f5f7fa;
}

.about-content {
    background-color: white;

    padding: 30px;

    border-radius: 12px;

    border: 1px solid #e5e7eb;
}

/* =========================================================
   SKILL
   FLEXBOX #3
========================================================= */

.skills-section {
    background-color: #ffffff;
}

.skills-list {
    display: flex;
    flex-direction: row;

    gap: 15px;

    flex-wrap: wrap;
}

.skill-item {
    background-color: #eff6ff;
    color: #1d4ed8;

    padding: 12px 20px;

    border-radius: 8px;

    border: 1px solid #bfdbfe;

    font-weight: bold;
}

/* =========================================================
   PENDIDIKAN & PENGALAMAN
========================================================= */

.education-section {
    background-color: #f5f7fa;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-card {
    background-color: white;

    padding: 25px;

    border-radius: 12px;

    border: 1px solid #e5e7eb;
}

.education-card h3 {
    margin-bottom: 5px;
}

.education-card .year {
    color: #1d4ed8;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.education-card p {
    color: #555555;
}

/* =========================================================
   PROJECT
   FLEXBOX #4
========================================================= */

.projects-section {
    background-color: #ffffff;
}

.project-list {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    align-items: stretch;

    gap: 20px;

    /*
        Card otomatis turun ke baris berikutnya
        jika layar tidak cukup lebar.
    */
    flex-wrap: wrap;
}

.project-card {
    background-color: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 25px;

    /*
        flex-grow: 1
        flex-shrink: 1
        flex-basis: 280px
    */
    flex: 1 1 280px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 20px;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    color: #555555;
}

.project-tag {
    display: flex;
    flex-direction: row;
    gap: 8px;

    flex-wrap: wrap;
}

.project-tag span {
    background-color: #dbeafe;
    color: #1d4ed8;

    padding: 5px 10px;

    border-radius: 6px;

    font-size: 13px;
}

/* =========================================================
   KEGIATAN
========================================================= */

.activities-section {
    background-color: #f5f7fa;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background-color: white;

    padding: 20px;

    border-radius: 10px;

    border-left: 4px solid #1d4ed8;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background-color: #ffffff;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;

    gap: 20px;

    flex-wrap: wrap;
}

.contact-item {
    background-color: #f9fafb;

    border: 1px solid #e5e7eb;

    padding: 20px;

    border-radius: 10px;

    flex: 1 1 250px;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item a {
    color: #1d4ed8;
}

/* =========================================================
   PRIVACY INFORMATION
========================================================= */

.privacy-note {
    margin-top: 30px;

    padding: 20px;

    background-color: #fff7ed;

    border: 1px solid #fed7aa;

    border-radius: 10px;
}

.privacy-note h3 {
    margin-bottom: 10px;
    color: #c2410c;
}

.privacy-note p {
    color: #555555;
}

/* =========================================================
   FOOTER
   FLEXBOX
========================================================= */

footer {
    background-color: #111827;
    color: white;

    padding: 25px 0;
}

.footer-content {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-content p {
    color: #d1d5db;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 800px) {
    .hero {
        gap: 35px;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 650px) {
    /*
        NAVBAR menjadi vertikal
    */

    nav {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        padding: 20px 0;
    }

    .nav-menu {
        justify-content: center;

        gap: 15px;
    }

    /*
        HERO:
        dari horizontal menjadi vertical
    */

    .hero {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        text-align: center;

        padding: 50px 0;
    }

    .hero-image {
        width: 100%;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 19px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /*
        Skill tetap menggunakan flex-wrap
    */

    .skills-list {
        justify-content: center;
    }

    /*
        Footer menjadi vertical
    */

    .footer-content {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        text-align: center;
    }
}

/* =========================================================
   MOBILE KECIL
========================================================= */

@media (max-width: 400px) {
    .container {
        width: 92%;
    }
}