/* ===================== RESET CSS ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* mudah atur ukuran elemen */
}

/* ===================== BODY ===================== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* ===================== NAVBAR ===================== */
header nav {
    display: flex; /* flex container */
    justify-content: space-between; /* kiri-kanan */
    align-items: center; /* vertikal rata tengah */
    background-color: #f2f2f2;
    padding: 10px 20px;
    border-bottom: 2px solid #000;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header nav a {
    text-decoration: none;
    color: black;
    padding: 10px 15px;
}

header nav .left, header nav .right {
    display: flex;
    gap: 15px;
}

/* ===================== HERO SECTION ===================== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 50px;
    background: #f5f5f5;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 5vw, 3rem); /* responsive font */
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
}

.hero img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
}

/* ===================== BIODATA ===================== */
.biodata {
    background: #fff;
    padding: 50px 20px;
}

.biodata h2 {
    text-align: center;
    margin-bottom: 30px;
}

.biodata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.biodata-box {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

/* ===================== PORTFOLIO ===================== */
.portfolio {
    background: #fafafa;
    padding: 50px 20px;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.portfolio-box h3 {
    margin-bottom: 15px;
}

/* ===================== RESPONSIVE DESIGN ===================== */
/* ===================== RESPONSIVE DESIGN ===================== */
@media screen and (max-width: 768px) {

    /* Navbar responsive */


    /* Hero responsive */
    .hero {
        flex-direction: column; /* teks di atas, gambar di bawah */
        height: auto; /* otomatis menyesuaikan isi */
        text-align: center; /* teks di tengah */
        padding: 80px;
        height: 100vh;
    }

    .hero img {
        max-width: 100%; /* gambar menyesuaikan layar */
        margin-top: 20px;
    }

    /* Biodata responsive */
    .biodata-grid {
        grid-template-columns: 1fr; /* satu kolom */
        gap: 15px; /* jarak antar box */
        width: 80%;
        margin: 0 auto;
    }

    /* Portfolio responsive */
    .portfolio-grid {
        grid-template-columns: 1fr; /* satu kolom */
        gap: 15px; /* jarak antar box */
    }

    /* Hero font scaling */
    .hero-text h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* ===================== MAIN PADDING UNTUK NAVBAR FIXED ===================== */
main {
    padding-top: 70px; /* tinggi navbar agar hero tidak tertutup */
}


