/* --- RESET & DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

header {
    background-color: #b1b2d8;
    padding: 60px 20px;
    text-align: center;
    color: #4a4a4a;
}

nav {
    background-color: #e9e9e9;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    padding: 15px 25px;
    display: block;
    font-weight: bold;
}

nav ul li a.active {
    background-color: #9495c2;
    color: white;
}

.main-content {
    background-color: white;
    padding: 50px 10%;
    text-align: center;
    min-height: 500px;
}

/* --- KOMPONEN UMUM --- */
.img-container {
    margin: 20px auto;
    max-width: 600px;
}

.img-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* --- HALAMAN PROFIL --- */
.profile-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: inline-block;
    width: 100%;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

.profile-pic {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 50% !important;
}

.info-table-container {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.info-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 500px;
    text-align: left;
    background: #fdfdfd;
    border-radius: 10px;
    overflow: hidden;
}

.info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eeeeee;
    color: #444;
}

.bio {
    font-style: italic;
    margin-top: 20px;
    color: #888 !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HALAMAN KARYA & MEDIA --- */
.karya-grid, .media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.karya-item, .video-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.karya-item:hover { transform: translateY(-10px); }

.karya-item img, .media-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* --- TAB MEDIA --- */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-link {
    padding: 12px 30px;
    border: 2px solid #b1b2d8;
    background: white;
    color: #5d5d8d;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.tab-link.active { background: #b1b2d8; color: white; }

.tab-content { display: none; animation: fadeIn 0.6s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* --- PUSAT INFORMASI & FAQ (BAGIAN YANG DIPERBAIKI) --- */
.faq-container {
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
}

.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    background: #fff;
    border: none;
    outline: none;
}

.faq-question:hover { background: #f9f9f9; }

/* Animasi Panah */
.faq-question i {
    transition: transform 0.4s ease; /* Kunci putaran panah */
    color: #b1b2d8;
}

/* Class 'rotate' akan dipanggil lewat JS */
.rotate {
    transform: rotate(180deg);
    color: #9495c2 !important;
}

/* Animasi Jawaban Slide Down */
.faq-answer {
    max-height: 0; /* Awalnya tertutup */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

/* Class 'show' akan dipanggil lewat JS */
.faq-answer.show {
    max-height: 500px; /* Biar meluncur turun */
    border-top: 1px solid #eee;
}

.faq-content {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* --- KONTAK --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .karya-grid, .media-grid, .video-grid {
        grid-template-columns: 1fr;
    }
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ini yang bikin jadi 3 kolom */
    gap: 15px;
}
.video-item {
    position: relative;
    cursor: pointer;
}
.video-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
/* --- Style untuk Modal (Pop-up) --- */
.modal {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Latar belakang hitam transparan */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
}

/* Tombol Tutup (Close) */
.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Animasi Masuk */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Styling Grid Video & Foto */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.media-grid img, .video-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.media-grid img:hover, .video-item:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.video-item {
    position: relative;
    background: #000;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
}
/* --- Animasi Dasar untuk Kartu Kontak --- */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-card {
    text-decoration: none;
    color: #333;
    width: 200px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek membal (bounce) */
    position: relative;
    overflow: hidden;
}

/* --- Efek Hover (Saat Disentuh Kursor) --- */
.contact-card:hover {
    transform: translateY(-10px) scale(1.05); /* Naik ke atas dan membesar sedikit */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.contact-card i {
    font-size: 40px;
    margin-bottom: 10px;
    transition: transform 0.4s;
}

.contact-card:hover i {
    transform: rotate(360deg); /* Icon berputar saat di-hover */
}

/* --- Warna Khusus & Animasi Warna --- */
.email:hover { background-color: #fce4e4; color: #d93025; }
.instagram:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white; 
}
.whatsapp:hover { background-color: #e8f5e9; color: #25d366; }

/* --- Animasi Muncul Saat Halaman Dibuka --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.8s ease backwards;
}

/* Memberikan delay agar tombol muncul bergantian */
.contact-card.email { animation-delay: 0.2s; }
.contact-card.instagram { animation-delay: 0.4s; }
.contact-card.whatsapp { animation-delay: 0.6s; }