:root {
    --primary: #ec4899; /* Pink Modern */
    --primary-dark: #be185d;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* --- NAVBAR --- */
nav { background: rgba(15,23,42,0.95); padding: 1rem; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #334155; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: bold; color: white; text-decoration: none; }
.logo span { color: var(--primary); }
.nav-menu { list-style: none; display: flex; gap: 10px; }
.nav-menu button {
    background: transparent; border: none; color: var(--text-muted); 
    font-size: 0.95rem; padding: 8px 12px; cursor: pointer; border-radius: 6px; transition: 0.3s;
}
.nav-menu button:hover, .nav-menu button.active { color: var(--primary); background: rgba(236, 72, 153, 0.1); }

/* --- SECTIONS UMUM --- */
.page-section { display: none; padding: 60px 0; animation: fadeIn 0.5s; }
.page-section.active { display: block; }
@keyframes fadeIn { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }

/* --- 1. HOME SECTION --- */
#home {
    height: 90vh; display: none; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
#home.active { display: flex; } 

.home-title { font-size: 4rem; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.home-title span { color: var(--primary); display: block; }
.home-subtitle { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 20px; font-weight: 600; }
.home-desc { max-width: 600px; margin: 0 auto 40px auto; color: var(--text-muted); font-size: 1.1rem; }
.home-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* --- 2. PROFILE SECTION --- */
.profile-card {
    background: var(--card-bg); border-radius: 20px; padding: 40px;
    display: flex; align-items: center; gap: 40px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.profile-img { width: 200px; height: 200px; border-radius: 50%; border: 4px solid var(--primary); object-fit: cover; }
.profile-info h1 { font-size: 2.5rem; margin-bottom: 5px; }
.profile-info h3 { color: var(--primary); font-weight: 500; margin-bottom: 15px; }
.profile-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
.detail-item { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.detail-item i { font-size: 1.5rem; color: var(--primary); margin-bottom: 5px; display: block; }
.social-links { display: flex; gap: 15px; }
.social-icon {
    width: 35px; height: 35px; border-radius: 50%; background: #334155; 
    color: white; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s;
}
.social-icon:hover { background: var(--primary); }

/* --- 3. PROJECTS & GALLERY (Format Kartu & Media) --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 15px;
    display: flex;
    flex-direction: column; /* Susun vertikal */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-item:hover { transform: translateY(-5px); }

/* 1. Wrapper untuk Gambar & Video */
.img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* Rasio vertikal */
    cursor: pointer;
    background: #000;
}

.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.img-wrapper:hover img { transform: scale(1.1); }

/* Style untuk Video di dalam img-wrapper */
.img-wrapper video { width: 100%; height: 100%; object-fit: cover; border-radius: 15px 15px 0 0; }

/* Overlay Judul (Untuk Foto) */
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0; transition: 0.3s; transform: translateY(20px);
}
.img-wrapper:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-overlay h3 { font-size: 1.1rem; margin: 0; }

/* 2. Wrapper untuk Audio */
.audio-wrapper {
    background: #111;
    height: 100%;
    min-height: 250px; /* Tinggi minimal agar tidak gepeng */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.audio-wrapper img.album-art {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 0 10px var(--primary);
}

.audio-wrapper audio { width: 100%; }

/* 3. Area Bawah (Tombol/Text) */
.project-actions {
    padding: 15px;
    text-align: center;
    background: var(--card-bg);
    border-top: 1px solid #334155;
}
.project-actions h3 { font-size: 1rem; margin-bottom: 5px; color: var(--text); }

/* Style Tombol Link (Kotak Berwarna) */
.btn-link {
    display: inline-block;
    width: 100%; /* Lebar penuh */
    padding: 12px 0;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0; /* Bentuk Kotak */
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.btn-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* --- 4. CONTACT SECTION (UPDATE: BUTTON RAPIH) --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.contact-info { background: var(--card-bg); padding: 30px; border-radius: 15px; }

/* Style untuk daftar tombol kontak */
.contact-buttons-list {
    display: flex;
    flex-direction: column; /* Susun vertikal */
    gap: 15px; /* Jarak antar tombol */
    margin-top: 20px;
}

/* Style Kartu Tombol Utama */
.contact-btn {
    display: flex; /* Ikon dan Teks sejajar */
    align-items: center;
    gap: 15px;
    
    background-color: rgba(255, 255, 255, 0.05); /* Background semi-transparan */
    border: 1px solid #334155; /* Border tipis */
    padding: 15px;
    border-radius: 10px; /* Sudut melengkung modern */
    text-decoration: none; /* Hilangkan garis bawah link */
    transition: all 0.3s ease; /* Animasi halus */
}

/* Efek saat Hover (Mouse diarahkan) */
.contact-btn:hover {
    background-color: rgba(236, 72, 153, 0.1); /* Background pink transparan */
    border-color: var(--primary); /* Border menjadi pink */
    transform: translateX(5px); /* Geser sedikit ke kanan */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Bayangan */
}

/* Ikon Besar */
.contact-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

/* Teks di dalam tombol */
.btn-text {
    display: flex;
    flex-direction: column; /* Judul di atas, deskripsi di bawah */
}

.btn-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text); /* Teks putih */
}

.btn-desc {
    font-size: 0.8rem;
    color: var(--text-muted); /* Teks abu-abu */
}

/* --- Style Form --- */
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 15px; background: var(--card-bg); 
    border: 1px solid #334155; color: white; border-radius: 8px; outline: none;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

/* --- BUTTONS --- */
.btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: bold; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* --- MODAL & LIGHTBOX --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 200; align-items: center; justify-content: center; }
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 15px; width: 90%; max-width: 500px; text-align: center; position: relative; }
.close-modal { position: absolute; top: 10px; right: 20px; font-size: 24px; cursor: pointer; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 20px var(--primary); }

.toast { visibility: hidden; background: #10b981; color: white; padding: 15px; border-radius: 8px; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); }
.toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* --- RESPONSIVE (HP) --- */
@media (max-width: 768px) {
    .home-title { font-size: 2.5rem; }
    .home-buttons { flex-direction: column; }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-details { grid-template-columns: 1fr; }
    .social-links { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .nav-menu { gap: 5px; }
    .nav-menu button { font-size: 0.8rem; padding: 5px 8px; }
}