* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* HEADER */
header {
    background: #ff6b81;
    color: white;
    justify-content: space-between;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 40px;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin-right: 40px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: 0.3s;
}

.navbar ul li a:hover {
    background: #a80c39;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* === Responsive Navbar === */
@media (max-width: 768px) {
    .navbar ul {
        display: none; /* sembunyikan menu di mobile */
        flex-direction: column;
        background: #ff6b81;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px 0;
    }

    .navbar ul.show {
        display: flex; /* tampilkan menu jika class show aktif */
    }

    .navbar ul li {
        text-align: center;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* tampilkan tombol menu di mobile */
    }
}


/* BANNER */
.banner {
    display: flex;
    align-items: center;
    padding: 70px;
    background: #fef1f2;
    flex-wrap: wrap;
}

.banner-left img {
    width: 500px;
    border-radius: 30px;
}

.banner-right {
    flex: 1;
    padding: 40px;
    text-align: justify;
}

/* PROFILE */
.profile,
.portfolio,
.contact {
    padding: 40px;
    text-align: center;
}

.profile,
h2 {
    padding: 50px;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.profile-images {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.profile-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.teksprofile {
    flex: 1;
    text-align: justify;
    margin-left: 50px;
    margin-right: 100px;
}

/* PORTFOLIO */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom di desktop */
    gap: 40px;
    /* Jarak antar card */
    max-width: 1000px;
    margin: auto;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.card img {
    width: 100%;
    border-radius: 5px;
}

.card h3 {
    margin-top: 10px;
}

.card p {
    margin: 10px 0;
}

.card .btn {
    display: inline-block;
    padding: 8px 12px;
    background: #ff6b81;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.card .btn:hover {
    background: #ff4d68;
}

/* CONTACT */
.contact form {
    max-width: 500px;
    margin: auto;
    text-align: left;
}

.contact label {
    display: block;
    margin-top: 10px;
}

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

.contact button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background: #ff6b81;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #ff4d68;
}

.gender-group {
    display: flex;
    gap: 50px;
    margin: 5px 0 15px;
}

.gender-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}


.pesan {
    padding: 50px;
}

#messageTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

#messageTable th, #messageTable td {
    border: 1px solid #ddd;
    padding: 10px;

}

#messageTable th {
    background-color: #ff6b81;
    color: white;
}

#messageTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#messageTable tr:hover {
    background-color: #f1f1f1;
}



/* FOOTER */
footer {
    background: #333;
    color: white;
    padding: 15px;
    text-align: center;
}

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

    .banner-left img {
        width: 80%;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
        /* jadi 1 kolom di HP */
    }
}

section {
    border-bottom: 2px solid #ccc;
    padding-bottom: 40px;
    margin-bottom: 40px;
}