/*
  File: style.css
  Deskripsi: CSS terpisah untuk resume
*/

:root {
    --primary-color: #00b894;
    --secondary-color: #222f3e;
    --accent-color: #0984e3;
    --light-grey-color: #f8fafc;
    --text-color: #222f3e;
    --light-text-color: #f8f9fa;
    --shadow: 0 6px 32px rgba(34,47,62,0.10);
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background: linear-gradient(120deg, #e0f7fa 0%, #f8fafc 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.cv-container {
    max-width: 1000px;
    margin: 32px auto 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    border: 1.5px solid #e0e0e0;
}

.download-container {
    text-align: center;
    padding: 24px 0 10px 0;
}
.download-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.08em;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,184,148,0.10);
    transition: background 0.3s, transform 0.2s;
    font-family: 'Poppins', sans-serif;
}
.download-btn:hover {
    background: linear-gradient(90deg, #00997a, #0a6fd6);
    transform: translateY(-2px) scale(1.03);
}

.sidebar {
    width: 34%;
    background: linear-gradient(120deg, #e0f7fa 0%, #d0e6f6 100%);
    padding: 48px 32px 40px 32px;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-right: 1.5px solid #e0e0e0;
}
.profile-pic-container {
    text-align: center;
    margin-bottom: 32px;
}
.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 16px rgba(0,184,148,0.10);
    background: #e0f7fa;
}
.sidebar h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 7px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 1.08em;
    letter-spacing: 1.2px;
    font-weight: 700;
}
.kontak p {
    margin-bottom: 13px;
    font-size: 0.97em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.kontak i {
    width: 22px;
    margin-right: 7px;
    color: var(--primary-color);
    font-size: 1.13em;
}
.kontak a {
    color: var(--secondary-color);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}
.kontak a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.keterampilan-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 10px;
}
.keterampilan-list li {
    background: linear-gradient(90deg, #e0f7fa 60%, #d0e6f6 100%);
    color: var(--secondary-color);
    border-radius: 16px;
    padding: 6px 16px;
    font-size: 0.93em;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,184,148,0.07);
}
.list-unstyled {
    list-style: none;
    padding: 0;
    font-size: 0.98em;
}
.list-unstyled li {
    margin-bottom: 9px;
}

.main-content {
    width: 66%;
    padding: 48px 40px 40px 40px;
    background: #fff;
}
.header {
    text-align: left;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 2.5em;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 1.2px;
}
.header .jabatan {
    font-size: 1.18em;
    color: var(--primary-color);
    margin-top: 7px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.main-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 7px;
    margin-bottom: 22px;
    text-transform: uppercase;
    font-size: 1.13em;
    letter-spacing: 1.1px;
    font-weight: 700;
}
.item {
    margin-bottom: 24px;
}
.item h3 {
    font-size: 1.13em;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 700;
}
.item .info {
    font-size: 0.97em;
    font-style: italic;
    color: #6c757d;
    margin: 5px 0 10px 0;
}
.item ul {
    padding-left: 20px;
    margin: 0;
}
.timeline-section .item {
    position: relative;
    padding-left: 32px;
    border-left: 2.5px solid #e0e0e0;
}
.timeline-section .item:last-child {
    border-left: 2.5px solid transparent;
}
.timeline-section .item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,184,148,0.10);
}
.achievements-list li {
    margin-bottom: 13px;
    line-height: 1.5;
}
.achievements-list li strong {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
}

#sertifikasi .list-unstyled li {
    cursor: pointer;
    transition: color 0.2s, background 0.2s, font-weight 0.2s;
    border-radius: 8px;
    padding: 6px 10px;
}
#sertifikasi .list-unstyled li:hover {
    color: var(--primary-color);
    background: #e0f7fa;
    font-weight: 600;
}

.publikasi-list li {
    margin-bottom: 13px;
    line-height: 1.5;
}
.publikasi-list li strong a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}
.publikasi-list li strong a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.publikasi-list li em {
    color: #555;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}
.modal-content-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}
.modal-close-btn:hover {
    color: #bbb;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.qr-code-container {
    text-align: center;
}
#qrcode {
    margin: 0 auto;
    padding: 7px;
    background: #fff;
    border: 1.5px solid #ddd;
    display: inline-block;
    border-radius: 8px;
}
.qr-code-container p {
    font-size: 0.88em;
    color: #666;
    margin-top: 10px;
}

@media print {
    .download-container, .modal-overlay { display: none !important; }
    body, .cv-container { margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
    section { page-break-inside: avoid; }
    .sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .fade-in-section, .fade-in-section.is-visible { opacity: 1 !important; transform: translateY(0) !important; }
    .publikasi-list li strong a { text-decoration: none !important; color: var(--secondary-color) !important; }
}

@media screen and (max-width: 900px) {
    body { background: #fff; }
    .download-container { padding: 15px; }
    .cv-container { flex-direction: column; width: 100%; margin: 0; box-shadow: none; border-radius: 0; border: none; }
    .sidebar, .main-content { width: 100%; box-sizing: border-box; padding: 28px 14px; }
    .sidebar { padding-bottom: 10px; border-right: none; border-bottom: 1.5px solid #e0e0e0; }
    .main-content { padding-top: 10px; }
    .profile-pic { width: 100px; height: 100px; }
    .header h1 { font-size: 1.6em; }
    .header .jabatan { font-size: 1em; }
    .timeline-section .item { border-left: 2px solid #e0e0e0; padding-bottom: 13px; }
    .timeline-section .item:last-of-type { border-left: 2px solid transparent; padding-bottom: 0; }
}
@media screen and (max-width: 600px) {
    .sidebar, .main-content { padding: 14px 4vw; }
    .profile-pic { width: 70px; height: 70px; }
}
