/* ================= GLOBAL STYLE ================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7; /* Abu-abu Apple */
    color: #1d1d1f;
    line-height: 1.6;
}

/* ================= NAVIGASI ================= */
nav {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #6e6e73;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover { color: #000; }

/* ================= LAYOUT UTAMA ================= */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ================= SECTION PROFILE ================= */
.profile-card { text-align: center; }

.foto-bulat {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f5f5f7;
}

.bio-singkat {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    padding: 0 20px;
}

.info-pribadi {
    text-align: left;
    max-width: 500px;
    margin: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child { border-bottom: none; }

/* ================= SECTION PROJECT & MEDIA (GRID) ================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.card-project, .card-media {
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Agar gambar tidak keluar kotak */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card-project:hover, .card-media:hover {
    transform: translateY(-5px);
}

.img-project {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-info { padding: 15px; }
.project-info h3 { margin: 0 0 10px 0; font-size: 1.1rem; }
.project-info p { font-size: 0.9rem; color: #666; }

/* ================= TAMBAHAN KHUSUS MEDIA ================= */

/* Mengatur keterangan di bawah media */
.media-caption {
    padding: 15px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    border-top: 1px solid #f0f0f0;
    background-color: #fff;
}

/* Wrapper agar Video, Audio, PDF ukurannya seragam */
.media-wrapper {
    background-color: #f9f9f9;
    height: 180px; /* Tinggi kotak media disamakan agar rapi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Khusus Video agar memenuhi kotak */
.media-wrapper video {
    width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Khusus tampilan Audio & PDF biar estetik */
.audio-box, .pdf-box {
    background-color: #f0f0f5; /* Warna abu-abu soft */
}

/* Tombol kecil khusus PDF */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    display: inline-block;
}

/* Pastikan gambar di media juga rapi */
.card-media img {
    width: 100%;
    height: 180px; /* Samakan tinggi dengan wrapper video/audio */
    object-fit: cover; /* Agar gambar tidak gepeng */
    display: block;
}

/* Styling khusus Media */
.card-media { padding: 15px; text-align: center; }
.media-content { width: 100%; border-radius: 8px; margin-bottom: 10px; }

/* ================= SECTION CONTACT ================= */
.contact-card { text-align: center; }

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-social {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: opacity 0.2s;
}

.github { background-color: #333; }
.linkedin { background-color: #0077b5; }
.email { background-color: #ea4335; }

.btn-social:hover { opacity: 0.8; }

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #fafafa;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0071e3;
    background-color: white;
}

.btn-utama {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.full-width { width: 100%; }

.garis-pemisah {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* ================= ANIMASI & FOOTER ================= */
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 40px;
    color: #86868b;
    font-size: 0.8rem;
}