/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f0f5;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    padding: 15px 10%;
    color: white;
}

.brand {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
    background: white;
}

.hero-text {
    max-width: 50%;
}

.hero h1 {
    font-size: 32px;
    color: #333;
}

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

.hero button {
    margin-top: 10px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hero-image img {
    width: 250px;
    border-radius: 10px;
}

/* About Me - Disamakan dengan Hero Section */
.about {
    text-align: center;
    padding: 50px 10%;
    background: white;
}

.about h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 20px;
    max-width: 100%;
    text-align: left;
}

.info div {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
}

/* Portfolio Section */
.portfolio {
    text-align: center;
    padding: 50px 10%;
    background: white;
}

.portfolio h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.projects {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project {
    flex: 1;
    text-align: center;
}

.project img {
    width: 100%; /* Gedein gambar */
    max-width: 350px;
    border-radius: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #007bff;
    color: white;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-image img {
        width: 200px;
    }

    .info {
        grid-template-columns: repeat(2, 1fr); /* Jadi 2 kolom di layar kecil */
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .info {
        grid-template-columns: repeat(1, 1fr); /* Jadi 1 kolom di layar kecil */
    }
}