/* GEMSDEV: Microsite Styling (Mobile-First) */

:root {
    --primary-color: #0056b3; 
    --light-bg: #f4f7f6;
    --dark-text: #333;
    --light-text: #ffffff;
    --border-color: #ddd;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 680px;
    width: 100%;
    background: var(--light-text);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* --- Profil --- */
.profile {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.profile h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile p {
    font-size: 1.1rem;
    color: #555;
}

/* --- Tautan --- */
.links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.link-icon {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

/* Styling Ikon (Stroke & Fill) */
.link-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color); 
    stroke: none;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.link-icon.icon-instagram svg,
.link-icon.icon-linkedin svg,
.link-icon.icon-website svg {
    fill: none;
    stroke: var(--primary-color);
}

.link-card:hover .link-icon svg {
    fill: var(--light-text);
    stroke: var(--light-text);
}


/* --- Galeri Slider --- */
.gallery {
    padding: 20px 0; 
    border-top: 1px solid var(--border-color);
}

.gallery h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 0 20px; 
}

.gallery-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px; 
}

/* INI KUNCI #1: Mengatur track galeri agar horizontal */
.gallery-track {
    display: flex;
}

/* INI KUNCI #2: Mengatur item galeri agar ukurannya benar (130px) */
.gallery-item {
    flex-shrink: 0; /* Wajib agar item tidak menyusut */
    width: 130px; /* Lebar tetap untuk kalkulasi JS */
    margin-right: 10px; /* Jarak antar item */
    
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1; /* Membuatnya kotak 130x130 */
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini yang membuat foto mengisi kotak 130x130 */
    display: block;
}


/* --- BAGIAN PARTNER --- */
.partners {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg); /* Sedikit beda background */
}

.partners h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 0 20px;
}

.partner-slider-container {
    position: relative;
    overflow: hidden;
    /* Masking pudar di tepi */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* INI KUNCI #3: Mengatur track partner agar horizontal */
.partner-track {
    display: flex;
    align-items: center; /* Vertikal di tengah */
}

/* INI KUNCI #4: Mengatur item partner agar ukurannya benar */
.partner-item {
    flex-shrink: 0;
    width: 120px; /* Lebar logo */
    height: 60px; /* Tinggi logo seragam */
    margin-right: 40px; /* Jarak antar logo */
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Pastikan seluruh logo terlihat, tidak terpotong */
    filter: grayscale(100%); /* Efek abu-abu */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%); /* Kembali berwarna */
    opacity: 1;
    transform: scale(1.1);
}
/* --- AKHIR BAGIAN PARTNER --- */


/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- Error Box --- */
.error-box {
    padding: 30px;
    background-color: #fff0f0;
    color: #d8000c;
    border: 1px solid #d8000c;
    border-radius: 10px;
    text-align: center;
}

/* --- Modal (Tidak Berubah) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}
.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}
.modal-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2rem;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: #bbb;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }