body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #282c34;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;       /* Membuat sticky */
    top: 0;                 /* Posisi di atas */
    z-index: 1000;          /* Agar di atas konten lain */
}

section h2 {
    border-bottom: 2px solid #61dafb;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #282c34;
    text-align: center;   
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 35px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #61dafb;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #61dafb 30%, #f4f4f9 100%);
    padding: 40px 20px;
    gap: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: #282c34;
}

.hero-text p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

#about {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

#about h2 {
    border-bottom: 2px solid #61dafb;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #282c34;
    text-align: center; /* Sesuai permintaan sebelumnya */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-text {
    max-width: 600px;
    font-size: 1.1em;
    color: #444;
    line-height: 1.6;
}

/* Responsive untuk tampilan mobile */
@media (max-width: 700px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        margin-bottom: 20px;
    }
}


section {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

section h2 {
    border-bottom: 2px solid #61dafb;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #282c34;
}

.projects-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background: #f9f9fb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 20px;
    width: 270px;
    text-align: center;
}

.project-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.skills-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    background: #f9f9fb;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.skill-img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.certificates-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.certificate-card {
    background: #f9f9fb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 15px;
    width: 250px;
    text-align: center;
}

.certificate-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

form label {
    font-weight: bold;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1em;
}

form button {
    background: #61dafb;
    color: #282c34;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #21a1f3;
    color: #fff;
}

#formMessage {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
    color: #21a1f3;
}

/* Responsive */
@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .projects-grid, .skills-grid, .certificates-grid {
        flex-direction: column;
        align-items: center;
    }
}
