/* -------------------------------------------------------------------
    // 🎨 CSS: STYLE GUIDE & UTILITIES
    // ------------------------------------------------------------------- */
:root {
    --primary-color: #000000;
    /* Hitam untuk Dominasi/Aksen */
    --secondary-color: #d7d7d7;
    /* Abu-abu Terang untuk Posisi/Aksen Lembut */
    --bg-primary: #f8f9fa;
    /* Latar Belakang Utama */
    --bg-card: #ffffff;
    /* Latar Belakang Card */
    --text-dark: #1f2937;
    /* Teks Utama Gelap */
    --text-medium: #4b5563;
    /* Teks Sekunder/Deskripsi */
    --border-color: #e5e7eb;
    /* Warna Border/Garis */
    --gradient-hero: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

body {
    background-color: var(--bg-primary);
}

/* -------------------------------------------------------------------
    // 🧱 HERO SECTION (HEADER PROFILE)
    // ------------------------------------------------------------------- */
.profile-hero {
    position: relative;
    height: 350px;
    /* Sedikit lebih pendek */
    background: var(--gradient-hero);
    border-radius: 18px;
    /* Konsisten */
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Shadow lebih halus */
}

.profile-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    filter: grayscale(100%) blur(2px);
    /* Blur lebih halus */
    transition: opacity 0.5s ease;
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 100%
    );
}

.profile-avatar {
    width: 130px;
    /* Ukuran yang pas */
    height: 130px;
    border-radius: 50%;
    border: 5px solid var(--bg-card);
    /* Border warna putih */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.profile-name {
    color: var(--bg-card);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-position {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}


/* -------------------------------------------------------------------
    // 📱 RESPONSIVENESS (PERBAIKAN TOTAL AGAR TIDAK KEPOTONG)
    // ------------------------------------------------------------------- */

@media (max-width: 768px) {
    .profile-hero {
        height: auto !important;
        min-height: 420px !important; /* Beri ruang lebih agar tidak sesak */
        display: flex;
    }

    .profile-hero-content {
        padding: 40px 60px;
        display: flex;
        align-items: center; 
        justify-content: center;
        width: 100%;
        
        /* SOLUSI: Mengubah gradient agar menutupi seluruh background dari atas ke bawah */
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,   /* Gelap di atas */
            rgba(0, 0, 0, 0.7) 50%,  /* Tetap gelap di tengah */
            rgba(0, 0, 0, 0.8) 100%  /* Lebih gelap di bawah */
        ) !important;
    }

    .profile-hero-inner {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
        border-width: 4px;
    }

    .profile-name {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .profile-position {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 25px;
    }

    .profile-avatar {
        width: 130px;
        height: 130px;
        border-width: 4px;
        margin: 0; /* Reset semua margin */
        position: relative;
        z-index: 3;
    }

    .profile-info-text {
        width: 100%;
        padding-bottom: 0; /* Reset padding */
    }

    .btn-container {
        justify-content: center;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* -------------------------------------------------------------------
    // 💳 MODERN CARD (KONTEN UTAMA)
    // ------------------------------------------------------------------- */
.modern-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
    /* Efek lift lembut */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.modern-card-header {
    background: var(--text-dark);
    /* Header Gelap untuk Kontras */
    padding: 15px 25px;
}

.modern-card-title {
    color: var(--bg-card);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.modern-card-title i {
    margin-right: 10px;
    color: var(--secondary-color);
    /* Ikon warna sekunder */
    font-size: 1.5rem;
}

.modern-card-body {
    padding: 25px;
}

/* -------------------------------------------------------------------
    // 📞 INFO ITEM (KONTAK & SERTIFIKASI)
    // ------------------------------------------------------------------- */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-primary);
    /* Background sangat terang */
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    /* Garis aksen kiri */
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0f0f0;
    /* Hover lebih jelas */
    transform: translateX(3px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.info-icon svg,
.info-icon i {
    color: var(--bg-card);
    font-size: 20px;
}

.info-content h5 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* -------------------------------------------------------------------
    // 🔗 SOCIAL MEDIA
    // ------------------------------------------------------------------- */
.social-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover .social-icon {
    color: var(--bg-card);
}

.social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* -------------------------------------------------------------------
    // 🛠️ SKILLS
    // ------------------------------------------------------------------- */
.skill-badge {
    display: inline-block;
    padding: 8px 15px;
    background: var(--text-dark);
    color: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: var(--primary-color);
    transform: scale(1.03);
}

.skill-level {
    display: inline-block;
    padding: 2px 7px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 6px;
    font-weight: 600;
}

/* -------------------------------------------------------------------
    // 📝 BIO TEXT
    // ------------------------------------------------------------------- */
.bio-text {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0;
}

/* -------------------------------------------------------------------
    // ⏳ TIMELINE (RIWAYAT & PENGALAMAN)
    // ------------------------------------------------------------------- */
.timeline-item {
    position: relative;
    padding-left: 30px;
    /* Padding lebih ramping */
    margin-bottom: 25px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    /* Posisi Garis Vertikal */
    top: 30px;
    bottom: -25px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    /* Dot lebih kecil */
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary-color);
    /* Aksen kecil */
    z-index: 1;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.timeline-content:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.timeline-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.timeline-meta {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.timeline-meta.date {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 5px;
}

.timeline-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
}

/* Tombol Read More */
.read-more-btn {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #374151;
}

/* -------------------------------------------------------------------
    // 🚫 EMPTY STATE
    // ------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-medium);
    background: var(--border-color);
    border-radius: 10px;
    opacity: 0.7;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-medium);
}

/* -------------------------------------------------------------------
    // 💻 RESPONSIVENESS
    // ------------------------------------------------------------------- */
@media (max-width: 991px) {
    .col-lg-4,
    .col-lg-8,
    .col-lg-6 {
        padding-left: 8px;
        padding-right: 8px;
    }

    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    .modern-card-body {
        padding: 15px;
    }

    /* Grid pada Pengalaman Kerja & Organisasi akan bertumpuk secara default (col-lg-6) */
}
