* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7f7;
    color: #333;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    text-align: center;
    font-size: 36px;
}

h2 {
    color: #0f766e;
}

a {
    text-decoration: none;
}


/* HEADER */

header {
    padding: 50px 20px;
    color: white;
    text-align: center;
    background:
        linear-gradient(#0f766ecc, #0f766ecc),
        url("gambar/background.jpg") center/cover;
}


/* NAVBAR */

#navbar {
    position: sticky;
    top: 0;
    background: #0f766e;
}

#menu {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu li {
    position: relative;
}

#menu a {
    display: block;
    padding: 15px 20px;
    color: white;
}

#menu a:hover {
    background: #115e59;
}


/* DROPDOWN */

#menu ul {
    display: none;
    position: absolute;
    padding: 0;
    margin: 0;
    min-width: 160px;
    list-style: none;
    background: white;
}

#menu li:hover ul {
    display: block;
}

#menu ul a {
    color: #333;
}

#menu ul a:hover {
    color: white;
    background: #0f766e;
}


/* MAIN */

main {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

section {
    margin: 30px 0;
}


/* HERO */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 20px;
}

.hero-content {
    flex: 1;
}

.hero-content p {
    font-size: 18px;
    color: #555;
}


/* FOTO */

.foto-profil {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 5px solid #0f766e;
    border-radius: 50%;
}

.foto-profil:hover {
    transform: scale(1.03);
}


/* BUTTON */

button,
.tombol {
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: #0f766e;
    cursor: pointer;
}

button:hover,
.tombol:hover {
    background: #115e59;
}


/* CARD */

.card-container,
.project-container,
.tiga-kolom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card,
.kartu,
.project-card {
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.card:hover,
.kartu:hover,
.project-card:hover {
    transform: translateY(-4px);
}


/* STATUS */

#status,
#statistik,
#aktivitas,
#kelola-project {
    padding: 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#status p,
#statistik p,
#aktivitas p {
    padding: 10px;
    background: #f0fdfa;
    border-left: 4px solid #0f766e;
}


/* STATISTIK */

#statistik {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

#statistik h2 {
    grid-column: 1 / -1;
}


/* PROJECT CRUD */

#kelola-project input {
    width: 45%;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#project-crud p {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #ddd;
}


/* ABOUT */

.about-section {
    padding: 40px 20px;
    text-align: center;
}

#about-skill {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

#about-skill p {
    padding: 15px;
    color: #0f766e;
    font-weight: bold;
    background: white;
    border: 1px solid #ddd;
    border-radius: 7px;
}

#tujuan {
    padding: 15px;
    background: white;
    border-left: 5px solid #0f766e;
}


/* CONTACT */

.contact-section {
    max-width: 800px;
    margin: 40px auto;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-section textarea {
    height: 120px;
}

#hasil-pesan {
    padding: 15px;
    color: #115e59;
    background: #ccfbf1;
}


/* CLASS TAMBAHAN */

.subjudul,
.highlight {
    color: #0f766e;
    font-weight: bold;
}

.nama {
    color: #115e59;
    font-weight: bold;
}

.tombol {
    display: inline-block;
}


/* FOOTER */

footer {
    margin-top: 40px;
    padding: 20px;
    color: white;
    text-align: center;
    background: #0f766e;
}


/* TABLET */

@media (max-width: 900px) {

    .card-container,
    .project-container,
    .tiga-kolom {
        grid-template-columns: repeat(2, 1fr);
    }

    #about-skill {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* HP */

@media (max-width: 600px) {

    #menu {
        display: block;
    }

    #menu li {
        text-align: center;
    }

    #menu ul {
        position: static;
        width: 100%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .foto-profil {
        width: 180px;
        height: 180px;
    }

    .card-container,
    .project-container,
    .tiga-kolom,
    #about-skill,
    #statistik {
        grid-template-columns: 1fr;
    }

    #kelola-project input {
        width: 100%;
        margin: 5px 0;
    }

    #project-crud p {
        display: block;
    }

    main {
        width: 92%;
    }

    button,
    .tombol {
        width: 100%;
    }
}