body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('naon.jpg'); /* Ganti dengan nama dan path gambar kamu */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}


header {
    background-color: #282c34;
    color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;     /* Sticky/fixed navbar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;        /* Supaya selalu di atas konten */
}

/* Tambahkan margin-top pada main supaya konten tidak tertutup navbar */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 70px;    /* Sesuaikan dengan tinggi header */
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #61dafb;
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px 20px 20px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 40px;
    border: 4px solid #61dafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 500px;
    text-align: center;
}

.hero-content h1 {
    margin: 0;
    font-size: 2.5rem;
}

.hero-content h2 {
    margin-top: 10px;
    font-size: 1.3rem;
    color: #61dafb;
}


section {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    margin-top: 0;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.project-item {
    flex: 1 1 45%;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 400px;
    margin: 0 auto;
}

.project-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #61dafb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.09);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    min-width: 100px;
}

.skill-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 7px;
}

.certificates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.certificate-item {
    flex: 1 1 45%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.certificate-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 7px;
    border: 2px solid #61dafb;
}

form#contactForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

form#contactForm label {
    font-weight: 500;
}

form#contactForm input,
form#contactForm textarea {
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
}

form#contactForm button {
    background: #61dafb;
    color: #282c34;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

form#contactForm button:hover {
    background: #21a1f3;
    color: #fff;
}

#formMessage {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #21a1f3;
}

footer {
    width: 100%;
    background: #282c34;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 30px;
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
    section, .hero-section {
        max-width: 99vw;
    }
}

@media (max-width: 768px) {
    .project-list, .certificates-list, .skills-list {
        flex-direction: column;
        align-items: center;
    }
    .project-item, .certificate-item, .skill-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .profile-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    text-align: left;
}

.about-list li {
    margin-bottom: 7px;
    font-size: 1rem;
}

.skill-desc, .project-desc {
    font-size: 0.95em;
    color: #555;
    margin-top: 4px;
}
