/* about.css - Hanya untuk halaman profil */

.about-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 80px; 
    padding: 100px 10%; 
    min-height: 70vh;
}

.about-image { flex: 1; max-width: 400px; }
.about-image img { width: 100%; border-radius: 4px; display: block; }
.about-content { flex: 1; max-width: 500px; }
.about-content h1 { font-size: 2rem; font-weight: 300; margin-bottom: 30px; line-height: 1.2; }
.about-content p { font-size: 1rem; color: #666; line-height: 1.8; margin-bottom: 20px; }


.email-btn { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 12px 30px; 
    border: 1px solid #111; 
    color: #111; 
    text-decoration: none; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    transition: 0.3s;
}
.email-btn:hover { background: #111; color: #fff; }


/* Modal Overlay */
.modal {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

/* Carousel/Images */
.modal-carousel {
    display: flex;
    overflow-x: auto; /* Bisa digeser kiri-kanan */
    gap: 20px;
    padding: 20px;
    max-width: 90%;
}

.modal-carousel img {
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

/* Tombol X */
.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Update pada bagian ini di about.css */
.modal-carousel {
    display: flex;
    overflow-x: auto; 
    gap: 20px;
    padding: 20px;
    max-width: 90%;
    
    /* INI KUNCI AGAR RASANYA SEPERTI CAROUSEL */
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; /* Kelancaran di iOS/iPhone */
    scrollbar-width: none; /* Menghilangkan scrollbar biar bersih */
}

/* Sembunyikan scrollbar di Chrome/Safari */
.modal-carousel::-webkit-scrollbar { display: none; }

.modal-carousel img {
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
    
    /* Setiap gambar akan 'snap' ke tengah saat di-scroll */
    scroll-snap-align: center; 
}

.testimonial-link {
    color: #111 !important;         /* Memaksa warna jadi hitam */
    text-decoration: none !important; /* Memaksa hilangkan garis bawah default */
    border-bottom: 1px solid #111;  /* Garis bawah custom */
    padding-bottom: 1px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.testimonial-link:hover {
    opacity: 0.5 !important;
    cursor: pointer;
}

/* Responsive khusus About */
@media (max-width: 900px) {
    .about-container { flex-direction: column; text-align: center; gap: 40px; padding: 50px 5%; }
    .about-content { max-width: 100%; }
}

/* Update agar foto profil bulat sempurna */
.about-image { 
    flex: 1; 
    max-width: 350px; /* Ukuran bisa kamu sesuaikan */
}

.about-image img { 
    width: 100%; 
    aspect-ratio: 1 / 1;    /* Memaksa gambar jadi kotak 1:1 */
    object-fit: cover;      /* Memastikan gambar tidak gepeng saat jadi kotak */
    border-radius: 50%;     /* Membuat gambar jadi bulat */
    display: block; 
    border: 1px solid #eee; /* Opsional: garis tipis agar terlihat rapi */
}


@media (max-width: 900px) {
    .about-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
        padding: 50px 5%; 
    }

    /* Tambahkan ini agar bulatan foto ada di tengah */
    .about-image {
        margin: 0 auto; 
        max-width: 250px; /* Ukuran lebih pas untuk layar HP */
    }

    .about-content { max-width: 100%; }
}

/* --- MODAL TESTIMONIAL FINAL (HP & IPAD) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    /* Mencegah seluruh halaman ikut geser saat carousel di-swipe */
    touch-action: none; 
}

.modal.active { 
    display: flex; 
}

.modal-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;           /* Jarak antar gambar */
    padding: 0 50px;     /* Memberi ruang di kiri-kanan agar gambar berikutnya mengintip */
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

/* 1. ATURAN UNTUK HP (Layar Kecil) */
.modal-carousel img {
    width: 70vw;           /* Di HP, kita buat lebih ramping agar sampingnya kelihatan */
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* 2. KHUSUS UNTUK IPAD & LAYAR LEBAR (Tablet) */
@media screen and (min-width: 768px) {
    .modal-carousel img {
        width: 450px;      /* Di iPad, pakai ukuran pixel tetap agar teks besar */
        /* Kita tidak pakai 'vw' di iPad supaya 'intipan' sampingnya konsisten */
    }
}

/* 3. JARAK ANTAR KOTAK */
.modal-carousel {
    display: flex;
    gap: 15px;             /* Jarak antar kotak */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 15px;    /* Padding samping agar kotak pertama tidak nempel tembok */
    -webkit-overflow-scrolling: touch;
}


/* 4. JARAK ANTAR GAMBAR */
.modal-carousel {
    display: flex;
    gap: 15px;             /* Beri jarak antar kotak agar terlihat terpisah saat mengintip */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px;         /* Ruang agar bayangan (shadow) tidak terpotong */
}





.modal-carousel::-webkit-scrollbar { display: none; }


/* Tombol Tutup di HP */
.close-modal {
    position: absolute;
    top: 20px; 
    right: 25px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10001;
}

.modal {
    /* ... kode lainnya tetap ... */
    cursor: zoom-out; /* Memberi tanda visual bisa diklik untuk keluar */
}

.modal-carousel img {
    /* ... kode lainnya tetap ... */
    cursor: default; /* Saat di atas gambar, kursor kembali normal agar tidak bingung */
}

/* Opsional: Sembunyikan tombol X jika kamu ingin benar-benar bersih */
.close-modal {
    opacity: 0.5; /* Buat agak samar agar tidak mengganggu karya */
    transition: 0.3s;
}
.close-modal:hover {
    opacity: 1;
}

