/* ==========================================================================
1. CORE VARIABLES & RESET
========================================================================== */
:root {
    --bg-black:      #050505;
    --panel-bg:      #0d0d0d;
    --text-white:    #ffffff;
    --text-dim:      #888888;
    --border-dim:    #222222;
    --border-bright: #444444;
    --smooth:        0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-black);
    background-image: radial-gradient(circle at 50% 50%, #151515 0%, #050505 100%);
    color: var(--text-white);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    padding-top: 60px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
2. NAVIGATION (TOP BAR)
========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #000;
    border-bottom: 1px solid var(--border-dim);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--smooth);
}

@media (max-width: 850px) {
    .main-nav {
        display: none; /* Menyembunyikan nav teks pada layar kecil untuk menjaga UI */
    }
}

/* Status & Clock */
.pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: pulse-anim 1.5s infinite;
}

@keyframes pulse-anim {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.time-module {
    font-size: 0.8rem;
    color: #444;
}

/* ==========================================================================
3. PANEL SYSTEM (BASE)
========================================================================== */
.panel-box {
    position: relative;
    width: 100%;
    padding: 30px;
    margin-bottom: 40px;
    background: var(--panel-bg);
    border: 1px solid var(--border-dim);
    transition: border-color var(--smooth);
}

.panel-box:hover {
    border-color: var(--border-bright);
}

.panel-label {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 0 10px;
    background: var(--bg-black);
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
    font-size: 0.65rem;
}

/* ==========================================================================
4. SECTION: IDENTITY
========================================================================== */
.main-title {
    font-size: 3rem;
    letter-spacing: -2px;
    line-height: 1;
}

.sub-title {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.terminal-block {
    padding: 25px;
    background: #000;
    border-left: 3px solid #fff;
}

.cmd { color: #555; }
.res { color: #ccc; margin-bottom: 15px; font-size: 0.9rem; }

@media (max-width: 850px) {
    .main-title { font-size: 2rem; }
    .sub-title { font-size: 0.8rem; }
}

/* ==========================================================================
5. SECTION: SKILLS
========================================================================== */
.skill-row { margin-bottom: 25px; }

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: var(--text-white);
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* ==========================================================================
6. SECTION: EDUCATION & CERTIFICATES
========================================================================== */
.edu-card { margin-bottom: 30px; }

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

@media (max-width: 850px) {
    .edu-header { flex-direction: column; gap: 5px; }
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #000;
    border: 1px solid #1a1a1a;
}

.cert-info a{
    color: var(--text-white);
    text-decoration: none;
    transition: var(--smooth);
    padding-top: 10px;
}

.cert-info a:hover {
    color: var(--text-dim);
}

/* ==========================================================================
7. SECTION: WORK LOGS
========================================================================== */
.work-entry {
    padding-bottom: 25px;
    border-bottom: 1px solid #151515;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.work-meta { display: flex; flex-direction: column; gap: 10px; }

.work-date { font-size: 0.75rem; color: #444; font-weight: bold; }

.work-tasks { list-style: none; }

.work-tasks li::before {
    content: ">";
    margin-right: 10px;
    color: #555;
}

@media (max-width: 768px) {
    .work-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .work-meta {
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px solid #111;
        padding-bottom: 10px;
    }
}

/* ==========================================================================
8. SECTION: PROJECTS
========================================================================== */
.proj-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.proj-card {
    padding: 25px;
    background: #000;
    border: 1px solid #1a1a1a;
}

.p-status {
    font-size: 0.6rem;
    color: #888;
    border: 1px solid #333;
    padding: 2px 8px;
}

/* ==========================================================================
9. SECTION: CONNECT (CONTACT FORM)
========================================================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.sys-form input, 
.sys-form textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid var(--border-dim);
    color: var(--text-white);
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--text-white);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
8. SECTION: SOCIAL_PROTOCOLS (.social-panel)
========================================================================== */
#social-panel .panel-content {
    display: block;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.social-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #000;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: all var(--smooth);
}

.social-item:hover {
    border-color: var(--text-white);
    background: #080808;
    transform: translateX(5px);
}

.soc-label {
    font-size: 0.6rem;
    color: #444;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.soc-val {
    font-size: 0.85rem;
    color: var(--text-dim);
    word-break: break-all;
}

.social-item:hover .soc-val {
    color: var(--text-white);
}

@media (max-width: 600px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-item {
        padding: 12px;
    }
    
    .social-item:hover {
        transform: none;
        background: #111;
    }

    .soc-val {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
11. FOOTER
========================================================================== */
.footer-sys {
    padding: 40px 0;
    border-top: 1px solid var(--border-dim);
    font-size: 0.7rem;
    color: #444;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}