:root {
    --bg-color: #060913;
    --text-main: #a9bada;
    --text-muted: #5e7294;
    --neon-cyan: #00f0ff;
    --neon-purple: #9d00ff;
    --neon-yellow: #f3e600;
    --card-bg: rgba(13, 20, 36, 0.75);
    --border-color: rgba(0, 240, 255, 0.2);
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #151a2f 0%, #060913 60%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scanline effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05), inset 0 0 20px rgba(0, 240, 255, 0.05);
    position: relative;
    z-index: 3;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

header {
    text-align: center;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Thumbnail Logo */
.mini-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
    border: 2px solid var(--neon-cyan);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    margin-bottom: 15px;
}

h1 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    word-wrap: break-word;
}

.subtitle-container {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-cyan);
    font-size: 1.3rem;
    min-height: 30px;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

h2 {
    font-family: 'Chakra Petch', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2::before {
    content: '>';
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.section {
    margin-bottom: 40px;
}

.sidebar .section {
    background: rgba(0, 240, 255, 0.02);
    padding: 25px 20px;
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 4px 4px 0;
    box-shadow: inset 20px 0 20px -20px rgba(0, 240, 255, 0.1);
}

.avatar-container {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-box {
    width: 130px;
    height: 130px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
    background: rgba(0, 240, 255, 0.05);
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.avatar-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: inline-block;
}

.contact-list, .skills-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    word-break: break-word;
}

.contact-list li span {
    color: var(--neon-purple);
    font-weight: bold;
    min-width: 50px;
}

.print-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 0.85rem;
    padding: 10px;
    text-align: center;
}

.visitor-widget {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visitor-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
}

.visitor-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.visitor-display span {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.1rem;
    background-color: var(--neon-cyan);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.skill-info span:last-child {
    color: var(--neon-cyan);
}

.skill-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 8px var(--neon-cyan);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 25px;
    border-left: 1px dashed var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--bg-color);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: 0.3s;
}

.timeline-item:hover::before {
    background: var(--neon-cyan);
}

.timeline-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 0.5px;
}

.timeline-title.small {
    font-size: 1rem;
}

.timeline-subtitle {
    color: var(--neon-purple);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-subtitle a {
    background: rgba(157, 0, 255, 0.15);
    border: 1px solid var(--neon-purple);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.timeline-subtitle a:hover {
    background: var(--neon-purple);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 0 10px var(--neon-purple);
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-desc ul {
    padding-left: 20px;
    margin-top: 5px;
    color: var(--text-main);
}

.timeline-desc li {
    margin-bottom: 4px;
}

p.profile-text {
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--neon-purple);
    color: var(--text-main);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Terminal Interactive Styles */
.terminal-box {
    background: #020408;
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    margin-top: 20px;
}

.terminal-header {
    background: #0d1424;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.terminal-body {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-body p {
    margin: 0;
}

.cmd-highlight {
    color: var(--neon-yellow);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    background: rgba(0, 240, 255, 0.05);
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.prompt {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.testimonial-box {
    background: rgba(157, 0, 255, 0.05);
    border-left: 3px solid var(--neon-purple);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.testimonial-box::before {
    content: '"';
    font-size: 3rem;
    color: rgba(157, 0, 255, 0.2);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Chakra Petch', sans-serif;
}

.star-rating {
    color: var(--neon-yellow);
    font-size: 1rem;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(243, 230, 0, 0.5);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    text-align: right;
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    background: rgba(0, 240, 255, 0.02);
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
}

.cyber-form p {
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cyber-input {
    background: rgba(13, 20, 36, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
    transition: 0.3s;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.rating-select-container {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-main);
}

.star-picker {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    justify-content: flex-end;
    cursor: pointer;
}

.star-picker input {
    display: none;
}

.star-picker label {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(243, 230, 0, 0.6);
}

.cyber-button {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 4px;
    margin-top: 5px;
}

.cyber-button:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-purple);
}

.swal2-popup.cyber-swal {
    background: #0d1424 !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
}
.swal2-title {
    font-family: 'Chakra Petch', sans-serif !important;
    color: #fff !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
}
.swal2-html-container {
    color: #a9bada !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 1rem !important;
}
.swal2-confirm {
    background: transparent !important;
    border: 2px solid #9d00ff !important;
    color: #9d00ff !important;
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    padding: 10px 25px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.4) !important;
    transition: 0.3s !important;
}
.swal2-confirm:hover {
    background: #9d00ff !important;
    color: #fff !important;
    box-shadow: 0 0 20px #9d00ff !important;
}

.corner-deco {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--neon-cyan);
}
.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* ========================================= */
/* PREMIUM CORPORATE RESUME TEMPLATE (PRINT) */
/* ========================================= */
@media print {
    @page {
        size: A4;
        margin: 1.2cm 1.5cm;
    }

    body {
        background: #ffffff !important;
        color: #1a1a1a !important;
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 10pt;
        line-height: 1.45;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }

    body::before, 
    .corner-deco, 
    .cyber-button, 
    .cyber-form, 
    .visitor-widget, 
    .terminal-box, 
    .avatar-status {
        display: none !important;
    }

    header {
        background: #f4f6f8 !important;
        border-top: 4px solid #004080 !important;
        border-bottom: 1px solid #dcdcdc !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        text-align: left !important;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    header::after {
        display: none !important;
    }

    .mini-logo {
        display: none !important;
    }

    header h1 {
        font-size: 22pt !important;
        color: #002b49 !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        margin: 0 0 4px 0 !important;
        text-shadow: none !important;
    }

    .subtitle-container {
        font-size: 11pt !important;
        color: #004080 !important;
        font-weight: 600 !important;
    }

    .main-content {
        display: block !important;
    }

    .sidebar, .details {
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .sidebar .section {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin-bottom: 15px;
    }

    .avatar-container {
        position: absolute;
        right: 20px;
        top: 20px;
        margin: 0 !important;
    }

    .avatar-box {
        width: 85px !important;
        height: 85px !important;
        border: 2px solid #004080 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

    .contact-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px 25px;
        font-size: 9pt;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        padding: 10px 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .contact-list li {
        margin-bottom: 0 !important;
    }

    .contact-list li span {
        color: #004080 !important;
        font-weight: bold;
    }

    h2 {
        font-size: 11pt !important;
        color: #002b49 !important;
        background: #f0f4f8 !important;
        border-left: 4px solid #004080 !important;
        border-bottom: 1px solid #dcdcdc !important;
        border-top: 1px solid #dcdcdc !important;
        padding: 5px 10px !important;
        margin-top: 18px !important;
        margin-bottom: 10px !important;
        text-shadow: none !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    h2::before {
        content: '' !important;
    }

    p, .profile-text, .timeline-desc, li {
        color: #333333 !important;
        font-size: 9.5pt !important;
        text-align: justify !important;
    }

    .profile-text {
        border-left: none !important;
        padding-left: 0 !important;
        margin-bottom: 12px !important;
    }

    .timeline-item {
        padding-left: 10px !important;
        border-left: 2px solid #b0c4de !important;
        margin-bottom: 12px !important;
    }

    .timeline-item::before {
        display: none !important;
    }

    .timeline-title {
        font-size: 10pt !important;
        color: #111 !important;
        font-weight: bold;
    }

    .timeline-subtitle {
        color: #555 !important;
        font-size: 9pt !important;
        margin-bottom: 4px !important;
    }

    .timeline-subtitle a {
        background: none !important;
        border: none !important;
        color: #004080 !important;
        padding: 0 !important;
    }

    .skill-item {
        margin-bottom: 6px !important;
    }

    .skill-bar-bg {
        height: 5px !important;
        border: none !important;
        background: #e0e0e0 !important;
        border-radius: 2px;
    }

    .skill-bar-fill {
        background: #004080 !important;
        box-shadow: none !important;
        border-radius: 2px;
    }

    .testimonial-box {
        background: #f9f9f9 !important;
        border-left: 3px solid #004080 !important;
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 0 4px 4px 0;
    }

    .testimonial-box::before {
        display: none !important;
    }

    .star-rating {
        color: #d4af37 !important;
        text-shadow: none !important;
        font-size: 9pt !important;
    }

    .timeline-item, .testimonial-box, .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

@media screen and (max-width: 900px) {
    .container { width: 95%; margin: 30px auto; padding: 30px; }
    .main-content { grid-template-columns: 1fr; gap: 30px; }
    .sidebar .section { border-left: none; border-top: 3px solid var(--neon-cyan); border-radius: 4px; box-shadow: inset 0 10px 20px -20px rgba(0, 240, 255, 0.2); }
    .contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    h1 { font-size: 3rem; }
}

@media screen and (max-width: 600px) {
    .container { width: 100%; margin: 0; padding: 25px 15px; border: none; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); border-radius: 0; }
    .corner-deco { display: none; }
    header { margin-bottom: 30px; }
    h1 { font-size: 2rem; letter-spacing: 3px; }
    .subtitle-container { font-size: 1rem; }
    h2 { font-size: 1.2rem; }
    .contact-list { grid-template-columns: 1fr; }
    p.profile-text { font-size: 0.95rem; padding-left: 10px; }
    .timeline-item { padding-left: 20px; }
    .timeline-title { font-size: 1.05rem; }
    .timeline-desc { font-size: 0.9rem; }
    .timeline-subtitle { font-size: 0.85rem; flex-direction: column; align-items: flex-start; gap: 5px; }
}
