/* warna dasar */
:root {
    --primary-color: #2563eb;
    --text-dark: #1f2937;
    --text-normal: #374151;
    --text-light: #6b7280;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
}

/* reset dan base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-normal);
    line-height: 1.6;
    padding: 40px 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* container dan print button */
.print-btn-container {
    max-width: 850px;
    margin: 0 auto 15px auto;
    text-align: right;
}

.btn-print {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-print:hover {
    background-color: #1d4ed8;
}

.cv-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* header section */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #e5e7eb;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.header-info h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.header-info .subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item svg {
    width: 16px;
    height: 16px;
}

/* sections */
.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
}

.summary-text {
    text-align: justify;
    color: var(--text-normal);
}

/* items (contoh: education, experience) */
.item {
    margin-bottom: 20px;
    position: relative;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.item-location {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.item-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background-color: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
}

.item-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.item-list {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 0.95rem;
}

.item-list li {
    margin-bottom: 5px;
}

/* timeline untuk organisational experience */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-left: 5px;
}

.timeline .item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: #d1d5db;
    border: 2px solid white;
    border-radius: 50%;
}

.timeline .item:first-child::before {
    background-color: var(--primary-color);
}

/* certifications */
.cert-list {
    list-style: none;
    margin-left: 0;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.cert-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

/* print specific styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }

    .cv-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    .no-print,
    .print-btn-container {
        display: none;
    }

    .item,
    .section {
        page-break-inside: avoid;
    }
}

/* responsive design */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .item-header {
        flex-direction: column;
    }

    .item-date {
        margin-top: 5px;
        display: inline-block;
    }

    .cv-container {
        padding: 30px 20px;
    }
}