* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f6;
}

/* ===== BAGIAN HEADER DENGAN VIDEO LATAR ===== */
.header-bagian {
    position: relative;
    height: 350px; /* Tinggi bagian atas, bisa diubah */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-pembungkus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-latar {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video menutup seluruh area tanpa rusak */
}

/* Lapisan gelap agar tulisan jelas terbaca */
.lapisan-gelap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sedikit gelap di atas video */
}

.isi-header {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.isi-header h1 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.isi-header p {
    font-size: 1.1rem;
    color: #e2e8f0;
}

/* ===== BAGIAN TENTANG SAYA DENGAN GAMBAR LATAR ===== */
.bagian-tentang {
    position: relative;
    background: url('../assets/image.jpg') no-repeat center center;
    background-size: cover; /* Gambar menutup seluruh area */
    padding: 4rem 5%; /* Tambah ruang karena ada gambar latar */
}

/* Lapisan agar tulisan tetap jelas terbaca di atas gambar */
.bagian-tentang::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Putih transparan */
    border-radius: 12px;
    z-index: 0;
}

.bagian-tentang h2,
.bagian-tentang .tentang-diri {
    position: relative;
    z-index: 1;
}

/* ===== NAVIGASI ===== */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2b6cb0;
}

/* ===== BAGIAN LAIN ===== */
section {
    padding: 3rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2b6cb0;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.tentang-diri {
    background: transparent; /* Latar putih diganti jadi transparan karena sudah ada gambar */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.keahlian-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.keahlian-card {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.keahlian-card:hover {
    transform: translateY(-5px);
}

.proyek-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.proyek-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.proyek-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #2d3748;
}

.proyek-card p {
    padding: 0 1rem 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.proyek-link {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.5rem 1rem;
    background: #2b6cb0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
}

.proyek-link:hover {
    background: #2c5282;
}

.kontak-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.kontak-form input,
.kontak-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.kontak-form button {
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.kontak-form button:hover {
    background: #2c5282;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .header-bagian { height: 260px; }
    .isi-header h1 { font-size: 1.6rem; }
    section { padding: 2rem 3%; }
    .bagian-tentang { padding: 3rem 3%; }
}