/* --- PENGATURAN DASAR --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; background-color: #fcfdfe; color: #3a3a3a; line-height: 1.7; }
h1, h2, h3, h4 { font-weight: 600; color: #2c3e50; }

/* --- PENGATURAN MENU ATAS --- */
header { background-color: #ffffff; color: #333; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 10px; z-index: 10000; max-width: 1300px; margin: 0 auto; border-radius: 50px; box-shadow: 0 4px 20px rgba(0, 86, 179, 0.15); }
.logo { font-size: 20px; font-weight: 700; color: #0056b3; text-decoration: none; letter-spacing: 0.5px; }
nav { display: flex; gap: 30px; }
nav a { color: #555; text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #0056b3; }

/* --- PENGATURAN ISI KONTEN UMUM --- */
section { padding: 80px 20px; max-width: 1250px; margin: 0 auto; }
h2.section-title { text-align: center; color: #0056b3; margin-bottom: 50px; font-size: 32px; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
h2.section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: #0056b3; margin: 10px auto 0; border-radius: 10px; }

/* --- PENGATURAN BAGIAN PROFIL (3 KOLOM GRID) --- */
#profile { padding-top: 120px; display: grid; grid-template-columns: 220px 1fr 380px; gap: 40px; align-items: flex-start; }
.profile-photo-container { position: sticky; top: 100px; }
.profile-photo { width: 100%; height: 290px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 25px rgba(0, 86, 179, 0.12); border: 4px solid white; }
.profile-text-container h1 { font-size: 44px; margin-top: 0; margin-bottom: 5px; }
.contact-info { color: #666; margin-bottom: 25px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact-info a { color: #0056b3; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-info a:hover { color: #004494; text-decoration: underline; }
/* profile-action-buttons dihapus karena sudah digabung ke contact-info */
.btn-linkedin { background-color: #0056b3; color: white !important; padding: 4px 12px; border-radius: 20px; text-decoration: none !important; font-weight: 600; font-size: 12px; transition: background-color 0.3s, transform 0.2s; box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2); text-align: center; }
.btn-linkedin:hover { background-color: #004494; transform: translateY(-2px); }
.btn-cv { background-color: transparent; color: #2c3e50 !important; padding: 2px 12px; border-radius: 20px; text-decoration: none !important; font-weight: 600; font-size: 12px; border: 2px solid #2c3e50; transition: all 0.3s ease; text-align: center; }
.btn-cv:hover { background-color: #2c3e50; color: white !important; transform: translateY(-2px); }

/* Kotak Career Overview (Tengah) */
.overview-card { background-color: #fcfdfe; border: 2px solid #e2e8f0; border-left: 6px solid #0056b3; padding: 25px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); }
.overview-card h4 { margin-top: 0; margin-bottom: 10px; font-size: 18px; }
.overview-card p { font-size: 14px; color: #555; margin: 0; line-height: 1.8; }

/* Kotak Skills (Kanan) */
.skills-card { background-color: #ffffff; border: 2px solid #e2e8f0; padding: 25px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); position: sticky; top: 100px; }
.skills-card h4 { margin-top: 0; margin-bottom: 20px; font-size: 18px; color: #0056b3; padding-bottom: 10px; }
.skills-category { margin-bottom: 20px; }
.skills-category:last-child { margin-bottom: 0; }
.skills-category-title { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.skills-container { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-badge { background-color: #e6f0fa; color: #0056b3; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; border: 1px solid #cce0f5; transition: all 0.2s ease; }
.skill-badge:hover { background-color: #0056b3; color: white; transform: translateY(-2px); }

/* --- PENGATURAN KARTU INFORMASI LAINNYA --- */
.info-card { background-color: white; border: 2px solid #e2e8f0; border-left: 8px solid #0056b3; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); padding: 40px; border-radius: 15px; margin-bottom: 35px; width: 100%; transition: transform 0.3s, box-shadow 0.3s; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 86, 179, 0.08); }
.info-card h3 { margin-top: 0; margin-bottom: 8px; font-size: 24px; }
.info-card h3 a { color: #2c3e50; text-decoration: none; transition: color 0.3s ease; }
.info-card h3 a:hover { color: #0056b3; text-decoration: underline; }
.info-card h4 { color: #0056b3; margin-bottom: 8px; font-size: 18px; font-weight: 500; }
.date-text { color: #888; font-size: 13px; margin-top: 0; margin-bottom: 15px; font-weight: 500; }
.bullet-list { margin-top: 10px; padding-left: 20px; color: #555; font-size: 15px; margin-bottom: 20px; }
.bullet-list li { margin-bottom: 10px; }

/* --- GALERI FOTO --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; margin-bottom: 30px; }
.gallery-item { background-color: #f8f9fa; border-radius: 12px; overflow: hidden; border: 2px solid #e2e8f0; display: flex; justify-content: center; align-items: center; height: 170px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 22px rgba(0,0,0,0.12); border-color: #0056b3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- DESAIN PENDIDIKAN --- */
.edu-flex-container { display: flex; gap: 40px; align-items: flex-start; width: 100%; }
.edu-left-link { text-decoration: none; display: block; flex-shrink: 0; }
.edu-left-brand { width: 240px; text-align: center; background-color: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); border: 2px solid #e2e8f0; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.edu-left-link:hover .edu-left-brand { transform: translateY(-5px); border-color: #0056b3; box-shadow: 0 15px 35px rgba(0, 86, 179, 0.08); }
.univ-logo-img { width: 100%; max-width: 180px; height: auto; border-radius: 10px; margin-bottom: 15px; object-fit: cover; }
.univ-name-display { font-size: 15px; font-weight: 700; color: #2c3e50; text-transform: uppercase; margin: 0; letter-spacing: 0.5px; line-height: 1.4; transition: color 0.3s ease; }
.edu-left-link:hover .univ-name-display { color: #0056b3; }
.edu-right-details { flex-grow: 1; background-color: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); border: 2px solid #e2e8f0; border-left: 8px solid #0056b3; }
.org-badge-container { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.org-badge-item { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; padding: 14px 20px; border-radius: 10px; border: 2px solid #e2e8f0; }
.org-role-main { font-size: 15px; font-weight: 500; color: #333; }
.org-year-badge { background-color: white; color: #888; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 2px solid #e2e8f0; }
.cert-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 15px; }
.cert-card-item { background-color: #fcfdfe; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px; text-decoration: none !important; color: inherit; transition: all 0.3s ease; display: flex; flex-direction: column; gap: 8px; }
.cert-card-item:hover { transform: translateY(-4px); border-color: #cce0f5; background-color: #f6faff; box-shadow: 0 8px 20px rgba(0, 86, 179, 0.05); }
.cert-title { font-weight: 600; color: #0056b3; font-size: 14px; margin: 0; line-height: 1.5; }
.cert-provider { font-size: 13px; color: #555; }
.cert-footer { margin-top: 5px; font-size: 12px; color: #888; font-weight: 600; text-align: right; }

/* --- PREVIEW WEB --- */
.web-preview-wrapper { width: 100%; height: 380px; overflow: hidden; border-radius: 12px; border: 2px solid #e2e8f0; position: relative; background-color: #f8f9fa; }
.web-preview-iframe { width: 133.33%; height: 506px; transform: scale(0.75); transform-origin: top left; border: none; }

/* --- KATEGORI FILTER --- */
.portfolio-filter-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background-color: white; color: #2c3e50; border: 2px solid #e2e8f0; padding: 10px 24px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); }
.filter-btn:hover { border-color: #0056b3; color: #0056b3; transform: translateY(-2px); }
.filter-btn.active { background-color: #0056b3; color: white; border-color: #0056b3; box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2); }
.portfolio-item { display: none; }
.portfolio-item.show { display: block; animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- JALUR RESPONSIF (TABLET & HP) --- */
@media (max-width: 1100px) {
    #profile { grid-template-columns: 200px 1fr; }
    .skills-card { grid-column: 1 / -1; position: static; }
}

@media (max-width: 768px) {
    header { padding: 15px 20px; top: 5px; width: 92%; flex-direction: column; gap: 12px; border-radius: 25px; }
    nav { gap: 15px; font-size: 13.5px; width: 100%; justify-content: center; }
    section { padding: 50px 15px; }
    #profile { grid-template-columns: 1fr; padding-top: 130px; gap: 25px; }
    .profile-photo-container { display: flex; justify-content: center; position: static; }
    .profile-photo { width: 170px; height: 225px; }
    .profile-text-container { text-align: center; }
    .profile-text-container h1 { font-size: 28px; }
    .btn-linkedin, .btn-cv { width: auto; }
    .overview-card { text-align: left; }
    .info-card { padding: 22px 20px; border-radius: 12px; margin-bottom: 20px; }
    .info-card h3 { font-size: 18px; }
    .info-card h4 { font-size: 15px; }
    .bullet-list { padding-left: 15px; font-size: 13.5px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .gallery-item { height: 140px; }
    .edu-flex-container { flex-direction: column; align-items: center; gap: 20px; }
    .edu-left-link, .edu-left-brand, .edu-right-details { width: 100%; }
    .edu-right-details { padding: 20px; }
    .org-badge-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 15px; }
    .cert-card-grid { grid-template-columns: 1fr; }
    .web-preview-wrapper { height: 250px; }
    .web-preview-iframe { width: 166.66%; height: 416px; transform: scale(0.6); }
    .portfolio-filter-container { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 12px; }
}