/* style.css */
:root {
    --md-sys-color-background: #1C1B1F;
    --md-sys-color-surface: #262529;
    --md-sys-color-surface-container-high: #3A383D;
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-on-background: #E6E1E5;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-on-surface-variant: #CAC4D0;
    --md-sys-color-outline: #938F99;
}

* { box-sizing: border-box; }

body {
    position: relative;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-bottom: 80px;
}

body::before {
    content: '';
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: url('img/ItoBG.png');
    background-size: cover;
    background-position: center center;
    filter: blur(8px);
    transform: scale(1.1); 
}

/* KONTEN UTAMA */
.content-feed { padding: 16px; max-width: 1200px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { margin-bottom: 0; font-size: 24px; font-weight: 500; }
.sort-button { background-color: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); border: none; border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease; }
.sort-button:hover { background-color: var(--md-sys-color-outline); color: var(--md-sys-color-surface); }
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* KARTU SERTIFIKAT */
.cert-card { background-color: var(--md-sys-color-surface); border-radius: 16px; overflow: hidden; cursor: pointer; transition: background-color 0.3s ease; }
.cert-card:hover { background-color: var(--md-sys-color-surface-container-high); }
.card-thumbnail img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; background-color: #333; }
.card-info { display: flex; align-items: flex-start; padding: 12px; gap: 12px; }
.card-text h3 { font-size: 16px; font-weight: 500; margin: 0 0 4px 0; color: var(--md-sys-color-on-surface); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.card-text p { font-size: 14px; margin: 0; color: var(--md-sys-color-on-surface-variant); }

/* HALAMAN POP-UP */
.page-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--md-sys-color-background); z-index: 1000; overflow-y: auto; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.page-container.open { transform: translateY(0); }
.modal-header { padding: 8px; }
.icon-button { background: none; border: none; color: var(--md-sys-color-on-surface); font-size: 24px; padding: 12px; cursor: pointer; }
.modal-content { max-width: 800px; margin: 0 auto; }
#modal-img { width: 100%; max-height: 60vh; object-fit: contain; }
.modal-details { padding: 24px; }
#modal-title { font-size: 22px; font-weight: 500; margin: 0 0 8px 0; }
.timestamp { font-size: 14px; color: var(--md-sys-color-on-surface-variant); margin-bottom: 16px; }
#modal-description { line-height: 1.6; font-size: 16px; }
.modal-actions { margin-top: 24px; }
.action-button { background-color: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border: none; border-radius: 20px; padding: 10px 24px; font-size: 14px; font-weight: 500; cursor: pointer; }

/* HALAMAN TENTANG (CV) */
.cv-content { max-width: 800px; margin: 0 auto; padding: 0 24px 48px 24px; }
.profile-header { text-align: center; padding: 24px 0; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--md-sys-color-primary); margin-bottom: 16px; }
.profile-name { margin: 0; font-size: 28px; font-weight: 500; }
.profile-title { margin: 4px 0 0 0; font-size: 16px; color: var(--md-sys-color-on-surface-variant); }
.cv-section { margin-top: 32px; border-top: 1px solid var(--md-sys-color-surface-container-high); padding-top: 24px; }
.cv-section h3 { font-size: 18px; font-weight: 500; color: var(--md-sys-color-primary); margin-bottom: 16px; }
.skills-container { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { background-color: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); padding: 6px 14px; border-radius: 16px; font-size: 14px; }
.contact-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.contact-button { text-decoration: none; background-color: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 500; transition: background-color 0.3s ease, color 0.3s ease; }
.contact-button:hover { background-color: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }

/* NAVIGASI BAWAH */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 80px; background-color: rgba(49, 48, 53, 0.75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid rgba(147, 143, 153, 0.3); }
.nav-item { text-decoration: none; color: var(--md-sys-color-on-surface-variant); font-size: 16px; padding: 10px 20px; border-radius: 20px; transition: background-color 0.3s ease, color 0.3s ease; }
.nav-item.active { color: var(--md-sys-color-on-primary); background-color: var(--md-sys-color-primary); }

/* RESPONSIVE DESKTOP */
@media (min-width: 600px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feed-grid { grid-template-columns: repeat(3, 1fr); } }