/* ==========================================================
   FILE: style_visitor_resume.css
   TEMA: Complete Resume, Certificates, Profile Header
========================================================== */

:root {
    --bg-dark: #070a13;
    --card-bg: rgba(13, 18, 30, 0.7);
    --cyan-glow: #00f0ff;
    --orange-glow: #ff8c00;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --border-glass: rgba(0, 240, 255, 0.2);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hide-element { display: none !important; }
.show-flex { display: flex !important; }

.resume-page { padding-top: 130px; padding-bottom: 100px; min-height: 100vh; }
.page-header { text-align: center; margin-bottom: 50px; }
.page-header h1 { font-size: 3.5rem; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.text-gradient { background: linear-gradient(90deg, var(--cyan-glow), var(--orange-glow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }
.mt-huge { margin-top: 100px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Tombol Back */
.btn-back { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); text-decoration: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; transition: 0.3s; margin-bottom: 20px; }
.btn-back:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--cyan-glow); color: var(--cyan-glow); transform: translateX(-5px); box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }

/* ==========================================================
   1. HEADER PROFIL CV (BARU)
========================================================== */
.resume-profile-header {
    display: flex; align-items: center; gap: 40px; margin-bottom: 60px;
    background: var(--card-bg); padding: 40px; border-radius: 20px;
    border: 1px solid var(--border-glass); box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.rp-image-box {
    position: relative; width: 220px; height: 220px; flex-shrink: 0;
    border-radius: 20px; border: 3px solid var(--cyan-glow);
    box-shadow: 0 0 25px rgba(0,240,255,0.2); overflow: hidden;
    background: #070a13; display: flex; align-items: center; justify-content: center;
}
.rp-img { width: 100%; height: 100%; object-fit: cover; }
.fallback-icon-rp { font-size: 5rem; color: rgba(255,255,255,0.1); }

.rp-info-box { flex: 1; }
.rp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 140, 0, 0.1); border: 1px solid var(--orange-glow); color: var(--orange-glow); padding: 6px 15px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
.rp-name { font-size: 3rem; font-weight: 900; color: var(--text-main); margin-bottom: 5px; line-height: 1.1;}
.rp-profession { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; }
.rp-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 25px; max-width: 800px;}

.rp-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.rp-social-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); font-size: 1.1rem; text-decoration: none; transition: 0.3s; }
.rp-social-icon:hover { background: var(--cyan-glow); border-color: var(--cyan-glow); color: #000; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,240,255,0.4); }


/* ==========================================================
   2. BAGIAN RESUME (TIMELINE)
========================================================== */
.resume-full-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.resume-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.mt-card { margin-top: 40px; }
.column-title { font-size: 1.5rem; color: var(--text-main); margin-bottom: 30px; display: flex; align-items: center; gap: 12px; font-weight: 800;}
.column-title i { color: var(--cyan-glow); font-size: 1.6rem; }

.timeline { border-left: 2px dashed rgba(0, 240, 255, 0.4); padding-left: 25px; margin-left: 10px; position: relative; }
.timeline-item { position: relative; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.timeline-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.timeline-item:hover { transform: translateX(5px); }
.highlight-border { border-left: 3px solid var(--orange-glow); border-radius: 4px;}

.timeline-dot { position: absolute; left: -34px; top: 5px; width: 14px; height: 14px; background: var(--bg-dark); border: 3px solid var(--cyan-glow); border-radius: 50%; box-shadow: 0 0 10px var(--cyan-glow); }
.timeline-item:hover .timeline-dot { background: var(--cyan-glow); }

.timeline-date { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--orange-glow); margin-bottom: 10px; background: rgba(255, 140, 0, 0.1); padding: 4px 12px; border-radius: 6px;}
.timeline-item h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text-main); font-weight: 800;}
.timeline-location { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.timeline-location i { color: var(--cyan-glow); }

/* ==========================================================
   3. PROGRESS BAR SKILLS (FIX PRESISI 100%)
========================================================== */
.skills-list { display: flex; flex-direction: column; gap: 25px; }
.skill-item { width: 100%; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; color: var(--text-main); font-size: 0.95rem;}

/* Container track hitam */
.progress-bg { 
    width: 100%; height: 8px; 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 10px; 
    position: relative; /* Penting untuk dasar posisi */
}

/* Warna isi (Width dari JS) */
.progress-fill { 
    height: 100%; width: 0; 
    border-radius: 10px; 
    background: linear-gradient(90deg, var(--cyan-glow), var(--orange-glow)); 
    box-shadow: 0 0 10px var(--orange-glow); 
    position: relative; /* PENTING: Titik glow akan diposisikan relatif terhadap isi warna ini */
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* Titik Cahaya (Knob) menempel AKURAT diujung persentase */
.progress-glow { 
    position: absolute; 
    right: -7px; /* Geser persis ke tengah garis potong */
    top: 50%; transform: translateY(-50%); 
    width: 14px; height: 14px; 
    background: #fff; border-radius: 50%; 
    box-shadow: 0 0 10px #fff, 0 0 20px var(--orange-glow); 
    z-index: 2;
}

.skills-personal-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.skill-tag { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(0, 240, 255, 0.05); border: 1px solid var(--border-glass); border-radius: 10px; font-weight: 600; font-size: 1rem; color: var(--text-main); cursor: default;}
.skill-tag i { color: var(--cyan-glow); }


/* ==========================================================
   4. BAGIAN SERTIFIKAT (GRID)
========================================================== */
.cert-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 35px; }

.cert-card { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-glass); overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.cert-card:hover { border-color: var(--cyan-glow); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15); }

.cert-frame { position: relative; width: 100%; aspect-ratio: 16 / 11; background-color: #0b0f19; border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cert-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; opacity: 0.85; filter: grayscale(20%);}
.cert-card:hover .cert-img { transform: scale(1.05); opacity: 1; filter: grayscale(0%);}

.fallback-icon { position: absolute; inset: 0; align-items: center; justify-content: center; background: #070a13; font-size: 5rem; color: rgba(255,255,255,0.1); transition: 0.3s; }
.cert-card:hover .fallback-icon { color: var(--cyan-glow); transform: scale(1.05); }

.cert-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; backdrop-filter: blur(2px);}
.cert-card:hover .cert-overlay { opacity: 1; }
.btn-view-cert { background: linear-gradient(45deg, var(--cyan-glow), var(--orange-glow)); color: #000; padding: 12px 25px; border-radius: 30px; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 8px; transform: translateY(20px); transition: 0.4s; }
.cert-card:hover .btn-view-cert { transform: translateY(0); box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4); }

.cert-info { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.cert-info h3 { font-size: 1.25rem; color: var(--text-main); margin-bottom: 8px; font-weight: 800; line-height: 1.4; transition: 0.3s;}
.cert-card:hover .cert-info h3 { color: var(--cyan-glow); }
.cert-issuer { color: var(--orange-glow); font-size: 0.95rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.cert-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05);}
.cert-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--text-muted); font-size: 1.2rem; background: var(--card-bg); border-radius: 16px; border: 1px dashed var(--border-glass); }

.btn-gradient-glow { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(45deg, var(--cyan-glow), var(--orange-glow)); color: #000; padding: 14px 35px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; text-decoration: none; transition: 0.3s; box-shadow: 0 0 20px rgba(0,240,255,0.3);}
.btn-gradient-glow:hover { background: #fff; box-shadow: 0 0 30px rgba(255,255,255,0.7); transform: translateY(-3px);}


/* ==========================================================
   5. RESPONSIVE DESIGN (RApih Multi-Layar)
========================================================== */
@media (max-width: 1024px) {
    .resume-full-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .mt-card { margin-top: 40px; }
}

@media (max-width: 768px) {
    .resume-profile-header { flex-direction: column; text-align: center; padding: 30px 20px; }
    .rp-socials { justify-content: center; }
    .page-header h1 { font-size: 2.8rem; }
    .resume-card { padding: 25px; }
    .cert-gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
}

@media (max-width: 576px) {
    .page-header h1 { font-size: 2.2rem; }
    .rp-name { font-size: 2.2rem; }
    .rp-profession { font-size: 1.3rem; }
    .rp-image-box { width: 180px; height: 180px; }
    .fallback-icon-rp { font-size: 4rem; }
    
    .column-title { font-size: 1.3rem; }
    .timeline-item h4 { font-size: 1.15rem; }
    
    .cert-gallery { grid-template-columns: 1fr; }
    .cert-frame { aspect-ratio: 4/3; }
}