/* ============================================ */
/* RESET & BASE */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.6;
    padding: 2rem 1rem;
    min-height: 100vh;
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */
.container {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    padding: 2.5rem 3rem;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.container:hover {
    box-shadow: 0 12px 56px rgba(0,0,0,0.10);
}

/* ============================================ */
/* GRAFIS DEKORATIF (DI DALAM CONTAINER) */
/* ============================================ */
.grafis-atas {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 50vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.grafis-bawah {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    max-width: 50vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 640px) {
    .grafis-atas,
    .grafis-bawah {
        width: 200px;
        max-width: 40vw;
    }
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero:hover {
    border-bottom-color: #3b82f6;
}

.hero-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-avatar:hover {
    border-color: #3b82f6;
    transform: scale(1.02);
}

.hero-avatar .zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.hero-avatar:hover .zoom-hint {
    opacity: 1;
}

.hero-info h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.hero-info .title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 0.2rem;
}

.hero-info .sub {
    font-size: 0.95rem;
    color: #64748b;
}

/* ============================================ */
/* CONTACT BADGE */
/* ============================================ */
.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #1e293b;
    background: #f1f5f9;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-badge:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.contact-badge .icon {
    font-size: 0.8rem;
}

/* ============================================ */
/* SECTION */
/* ============================================ */
.section {
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.section:hover .section-title {
    border-bottom-color: #3b82f6;
}

/* ============================================ */
/* EXPERIENCE */
/* ============================================ */
.exp-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.exp-item:last-child {
    margin-bottom: 0;
}

.exp-item:hover {
    border-color: #3b82f6;
    background: #f8faff;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.exp-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.exp-header .position {
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
}

.exp-header .company {
    font-weight: 500;
    color: #1e293b;
}

.exp-header .period {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
}

.exp-location {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* ============================================ */
/* EDUCATION */
/* ============================================ */
.edu-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.7rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-item:hover {
    border-color: #3b82f6;
    background: #f8faff;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.edu-item .edu-name {
    font-weight: 500;
    color: #0f172a;
}

.edu-item .edu-field {
    font-size: 0.9rem;
    color: #475569;
}

/* ============================================ */
/* ORGANISASI */
/* ============================================ */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}

.org-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    background: #fafbfc;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
    text-align: center;
}

.org-item:hover {
    border-color: #3b82f6;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

/* ============================================ */
/* LIGHTBOX */
/* ============================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.7;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer:hover {
    color: #3b82f6;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .hero-info h1 {
        font-size: 1.5rem;
    }

    .hero-info .title {
        font-size: 0.95rem;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-header .period {
        white-space: normal;
    }

    .org-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .edu-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

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

/* ============================================ */
/* PRINT FRIENDLY */
/* ============================================ */
@media print {
    body {
        background: white;
        padding: 0.2in;
    }
    .container {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    .exp-item,
    .edu-item {
        page-break-inside: avoid;
        border-color: #d1d5db !important;
        background: white !important;
        transform: none !important;
    }
    .exp-item:hover,
    .edu-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .org-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .hero:hover {
        border-bottom-color: #e2e8f0 !important;
    }
    .section:hover .section-title {
        border-bottom-color: #e2e8f0 !important;
    }
    .hero-avatar .zoom-hint {
        display: none !important;
    }
    .grafis-atas,
    .grafis-bawah {
        display: none !important;
    }
}