/* Public Profile Design System - "Lux Glass Premium v2" */
:root {
    --p-brand: #930000;
    --p-brand-hover: #b30000;
    --p-brand-light: #fff0f0;
    --p-bg: #f8fafc;
    --p-surface: #ffffff;
    --p-text: #0f172a;
    --p-text-muted: #64748b;
    --p-border: rgba(0,0,0,0.06);
    --p-glass: rgba(255, 255, 255, 0.7);
    --p-radius-lg: 32px;
    --p-radius-md: 20px;
    --p-radius-sm: 12px;
    --p-shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --p-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --p-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --p-accent: #c9820a;
}

body {
    background: var(--p-bg);
    color: var(--p-text);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.p-nav {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.inner { display: flex; align-items: center; justify-content: space-between; }

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--p-text);
}

.brand-ico {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--p-brand), #cc0000);
    color: #fff;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(147, 0, 0, 0.2);
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.brand span { font-weight: 800; font-size: 18px; display: block; line-height: 1.1; }
.brand-sub { font-size: 11px !important; color: var(--p-text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--p-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--p-brand); transform: translateY(-1px); }

/* ── HERO SECTION ── */
.p-hero {
    background: #0f172a;
    color: #fff;
    padding: 80px 0 140px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.p-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(147, 0, 0, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(201, 130, 10, 0.15) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-43c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm20-46c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-inner { 
    display: flex; 
    align-items: center; 
    gap: 64px; 
    position: relative; 
    z-index: 2; 
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-box { position: relative; }
.avatar-img, .avatar-fallback {
    width: 220px; height: 220px; border-radius: 64px;
    border: 8px solid rgba(255,255,255,0.08);
    object-fit: cover; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.avatar-box:hover .avatar-img { transform: scale(1.05) translateY(-5px); border-color: rgba(255,255,255,0.15); }

.avatar-fallback {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    display: grid; place-items: center; font-size: 72px; font-weight: 900;
}

.verified-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: #fff; color: #10b981; width: 48px; height: 48px;
    border-radius: 18px; display: grid; place-items: center; font-size: 26px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border: 4px solid #0f172a;
    animation: pulse 2s infinite;
}

.hero-info h1 { 
    font-size: 52px; font-weight: 900; letter-spacing: -1.5px; 
    margin-bottom: 16px; line-height: 1.1; 
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-pos { font-size: 20px; color: rgba(255,255,255,0.8); font-weight: 600; display: flex; align-items: center; gap: 14px; }
.hero-pos .dot { width: 6px; height: 6px; background: var(--p-accent); border-radius: 50%; box-shadow: 0 0 10px var(--p-accent); }

.h-tags { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.h-tag {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 12px; font-size: 12px; font-weight: 700;
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255,255,255,0.7);
}
.h-tag i { font-size: 14px; color: var(--p-accent); }
.h-tag:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); color: #fff; border-color: rgba(255,255,255,0.2); }

/* ── HERO LINKS ── */
.hero-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.h-link-box {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.h-link-box i { font-size: 16px; }

.h-link-box.sinta:hover { background: #930000; border-color: #930000; box-shadow: 0 8px 20px rgba(147,0,0,0.3); }
.h-link-box.scholar:hover { background: #4285f4; border-color: #4285f4; box-shadow: 0 8px 20px rgba(66,133,244,0.3); }
.h-link-box.scopus:hover { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 8px 20px rgba(245,158,11,0.3); }
.h-link-box.website:hover { background: #0ea5e9; border-color: #0ea5e9; box-shadow: 0 8px 20px rgba(14,165,233,0.3); }

.h-link-box:hover {
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

/* ── STATS FLOAT ── */
.stats-float { margin-top: -60px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    background: rgba(255, 255, 255, 0.9); padding: 28px; border-radius: var(--p-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08); 
    border: 1px solid rgba(255,255,255,0.8);
    display: flex; align-items: center; gap: 24px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 35px 60px -15px rgba(0,0,0,0.15); border-color: #fff; }

.s-ico { 
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-card:hover .s-ico { transform: scale(1.15) rotate(8deg); }

.s-ico.purple { background: #f5f3ff; color: #8b5cf6; }
.s-ico.gold { background: #fffbeb; color: #f59e0b; }
.s-ico.blue { background: #eff6ff; color: #3b82f6; }
.s-ico.green { background: #ecfdf5; color: #10b981; }

.s-num { font-size: 32px; font-weight: 900; line-height: 1; color: #1e293b; letter-spacing: -1px; }
.s-lbl { font-size: 10px; color: var(--p-text-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }

/* ── MAIN CONTENT ── */
.main-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; margin-top: 60px; align-items: start; }

.tabs-card {
    background: #fff;
    border-radius: 0 0 var(--p-radius-lg) var(--p-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--p-border);
    border-top: none; /* disambung dengan nav-wrapper di atasnya */
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.tabs-nav-wrapper {
    position: sticky;
    top: 85px;
    z-index: 50;
    background: rgba(241, 245, 249, 0.98);
    padding: 10px 56px;
    border: 1px solid var(--p-border);
    border-bottom: 2px solid rgba(147,0,0,0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-radius: var(--p-radius-lg) var(--p-radius-lg) 0 0;
    margin-top: 40px; /* Diubah menjadi positif agar turun jauh ke bawah */
}

.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--p-border);
    background: #fff;
    color: var(--p-brand);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--p-shadow-sm);
}
.nav-scroll-btn:hover { background: var(--p-brand); color: #fff; transform: translateY(-50%) scale(1.1); }
.nav-scroll-btn.left { left: 10px; }
.nav-scroll-btn.right { right: 10px; }

.tabs-nav {
    display: flex; gap: 8px; 
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 4px;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 12px 24px; border-radius: 16px; border: none; background: transparent;
    font-weight: 700; font-size: 14px; color: var(--p-text-muted); cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    white-space: nowrap;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
}
.tab-btn i { font-size: 18px; transition: 0.3s; }
.tab-btn:hover { background: rgba(255,255,255,0.8); color: var(--p-text); border-color: rgba(0,0,0,0.05); }
.tab-btn.active { 
    background: #fff; color: var(--p-brand); 
    box-shadow: 0 4px 12px rgba(147,0,0,0.1);
    transform: translateY(-1px);
    border-color: rgba(147,0,0,0.1);
}
.tab-btn.active i { color: var(--p-brand); }

.tab-pane { 
    padding: 40px 52px 72px; 
    display: none; 
    animation: fadeIn 0.5s ease-out;
}
.tab-pane.active { display: block; }

/* ── BIO GRID ── */
.bio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bio-item { 
    padding: 24px; border-radius: 20px; background: #f8fafc; 
    border: 1px solid rgba(0,0,0,0.02); transition: 0.3s;
}
.bio-item:hover { background: #fff; border-color: var(--p-border); box-shadow: var(--p-shadow-sm); }
.bio-item label { display: block; font-size: 11px; font-weight: 800; color: var(--p-text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.bio-item p { font-size: 17px; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.4; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; font-size: 12px; font-weight: 800;
}
.status-aktif { background: #dcfce7; color: #166534; border: 1px solid rgba(22,101,52,0.1); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 48px; }
.timeline::after {
    content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px;
    background: #e2e8f0;
}
.tl-item { position: relative; margin-bottom: 48px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
    content: ''; position: absolute; left: -48px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--p-brand);
    z-index: 2; transition: 0.3s;
}
.tl-item:hover::before { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(147,0,0,0.1); }

.tl-year { font-size: 13px; font-weight: 800; color: var(--p-brand); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.tl-title { font-size: 19px; font-weight: 800; color: #1e293b; margin-bottom: 8px; line-height: 1.3; }
.tl-sub { color: var(--p-text-muted); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tl-meta { 
    display: inline-block; padding: 6px 14px; background: #f1f5f9; border-radius: 8px;
    font-size: 12px; color: var(--p-text-muted); font-weight: 600;
}
.tl-meta strong { color: #1e293b; font-weight: 800; }

/* ── SIDEBAR ── */
.side-card {
    background: #fff; border-radius: var(--p-radius-md); padding: 32px;
    border: 1px solid var(--p-border); box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 24px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-card:hover { transform: translateY(-5px); box-shadow: var(--p-shadow-lg); border-color: rgba(147,0,0,0.1); }

.side-title {
    font-size: 12px; font-weight: 800; color: var(--p-text-muted);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.side-title i { color: var(--p-brand); font-size: 18px; }

.edu-box { display: flex; gap: 20px; align-items: center; }
.edu-badge {
    width: 52px; height: 52px; background: var(--p-brand-light); color: var(--p-brand);
    border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0;
}
.edu-info { flex-grow: 1; }
.edu-prodi { font-weight: 800; font-size: 16px; color: #1e293b; line-height: 1.3; }
.edu-pt { font-size: 13px; font-weight: 600; color: var(--p-text-muted); margin-top: 2px; }

.info-list { display: grid; gap: 16px; }
.info-item-lux {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.info-item-lux:hover {
    background: #fff;
    border-color: var(--p-border);
    transform: translateX(5px);
    box-shadow: var(--p-shadow-sm);
}

.lux-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}
.lux-ico.sinta { background: #fff1f2; color: #930000; }
.lux-ico.scholar { background: #eff6ff; color: #4285f4; }
.lux-ico.scopus { background: #fffbeb; color: #f59e0b; }
.lux-ico.website { background: #f0f9ff; color: #0ea5e9; }

.lux-txt label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.lux-txt p {
    font-size: 14px;
    font-weight: 700;
    color: var(--p-text);
    margin: 0;
}

/* ── FOOTER ── */
.p-footer {
    background: #0f172a; color: rgba(255,255,255,0.4); padding: 60px 0;
    margin-top: 100px; text-align: center; border-top-left-radius: 40px; border-top-right-radius: 40px;
}
.p-footer strong { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; letter-spacing: -0.5px; }
.p-footer p { font-size: 14px; margin: 4px 0; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .main-grid { grid-template-columns: 1fr; }
    .side-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .p-nav { padding: 16px 0; }
    .nav-links { display: none; }
    .p-hero { padding: 60px 0 100px; border-radius: 0 0 40px 40px; }
    .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
    .avatar-img, .avatar-fallback { width: 180px; height: 180px; border-radius: 52px; }
    .hero-info h1 { font-size: 36px; }
    .hero-pos { justify-content: center; font-size: 17px; }
    .h-tags { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; margin-top: -40px; }
    .bio-grid { grid-template-columns: 1fr; gap: 20px; }
    .tab-pane { padding: 32px 20px; }
    .tab-btn { padding: 10px 20px; font-size: 13px; }
}

/* ── UTILITIES ── */
.empty-state { text-align: center; padding: 60px 0; color: var(--p-text-muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 20px; opacity: 0.3; }

.btt {
    position: fixed; bottom: 30px; right: 30px; width: 52px; height: 52px;
    background: var(--p-brand); color: #fff; border: none; border-radius: 16px;
    display: grid; place-items: center; font-size: 20px; cursor: pointer;
    box-shadow: 0 10px 25px rgba(147,0,0,0.3);
    opacity: 0; visibility: hidden; transition: 0.4s; z-index: 100;
}
.btt:hover { background: var(--p-brand-hover); transform: translateY(-5px); }
