:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --accent-green: #00ff9d;
    --accent-green-dim: #00ff9d40;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-red: #ff3e3e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-dim: #52525b;
    --border-color: #27272a;
    --glow-green: 0 0 20px rgba(0, 255, 157, 0.3);
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Scanlines - excluded from PDF via class toggle */
body.show-scanlines::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
    z-index: 9999;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo::before { content: '>'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent-green); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CV Page Layout */
.cv-page-wrapper {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.cv-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cv-page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cv-page-header h1 span { color: var(--accent-green); text-shadow: var(--glow-green); }

.cv-page-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--accent-green);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
}
.btn-primary:hover {
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
}
.btn-secondary:hover { background: var(--accent-green-dim); }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* CV Document - The printable content */
.cv-document {
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* ===== CV INTERNAL STYLES =====
   All styles below use ONLY hardcoded values.
   NO css variables, NO css grid, NO ::before pseudo-elements.
   This ensures html2canvas renders everything correctly. */

.cv-content {
    padding: 32px 36px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.45;
    color: #2d2d2d;
    background: #ffffff;
}

.cv-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 12px;
}

.cv-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.cv-title {
    font-size: 12px;
    color: #555;
    font-weight: 400;
    margin-bottom: 6px;
}

.cv-contact-row {
    text-align: center;
    font-size: 9px;
    color: #444;
    line-height: 1.6;
}

.cv-contact-row a {
    color: #1a5276;
    text-decoration: none;
}

.cv-contact-sep { color: #999; }

/* Sections */
.cv-section {
    margin-bottom: 10px;
}

.cv-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    margin-bottom: 6px;
}

.cv-summary-text {
    font-size: 9.5px;
    color: #333;
    line-height: 1.5;
}

/* Experience */
.cv-exp-item {
    margin-bottom: 8px;
}

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

.cv-exp-header {
    overflow: hidden;
    margin-bottom: 0;
}

.cv-exp-role {
    font-size: 10.5px;
    font-weight: 700;
    color: #1a1a2e;
    float: left;
}

.cv-exp-date {
    font-size: 9px;
    color: #666;
    float: right;
}

.cv-exp-company {
    clear: both;
    font-size: 9.5px;
    color: #555;
    font-style: italic;
    margin-bottom: 3px;
}

.cv-exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-exp-list li {
    font-size: 9px;
    color: #444;
    padding-left: 10px;
    line-height: 1.5;
}

/* Bullet character is in the HTML itself, no ::before needed */

/* Skills - use table layout instead of CSS grid */
.cv-skills-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-skills-table td {
    font-size: 9px;
    line-height: 1.6;
    padding: 1px 8px 1px 0;
    vertical-align: top;
    width: 50%;
}

.cv-skill-label {
    font-weight: 700;
    color: #1a1a2e;
}

.cv-skill-value {
    color: #444;
}

/* Certifications - use table layout instead of CSS grid */
.cv-certs-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-certs-table td {
    font-size: 9px;
    color: #333;
    padding: 1px 6px;
    vertical-align: top;
    width: 50%;
    line-height: 1.5;
}

.cv-cert-issuer {
    color: #777;
    font-size: 8px;
}

/* Education & Languages */
.cv-edu-header {
    overflow: hidden;
}

.cv-edu-degree {
    font-size: 10.5px;
    font-weight: 700;
    color: #1a1a2e;
    float: left;
}

.cv-edu-year {
    font-size: 9px;
    color: #666;
    float: right;
}

.cv-edu-school {
    clear: both;
    font-size: 9.5px;
    color: #555;
    font-style: italic;
}

.cv-langs-row {
    font-size: 9.5px;
}

.cv-lang-name {
    font-weight: 700;
    color: #1a1a2e;
}

.cv-lang-level {
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Notification */
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

/* ===== Scale CV: applied during PDF generation ===== */
body.scale-cv .cv-page-wrapper {
    padding: 0;
    max-width: 695px;
    margin: 0 auto;
}

body.scale-cv .cv-page-header,
body.scale-cv nav,
body.scale-cv footer {
    display: none;
}

body.scale-cv .cv-document {
    box-shadow: none;
    border-radius: 0;
}

body.scale-cv .cv-content {
    padding: 28px 32px;
    font-size: 9px;
}

body.scale-cv .cv-name { font-size: 20px; }
body.scale-cv .cv-title { font-size: 11px; }
body.scale-cv .cv-contact-row { font-size: 8.5px; }
body.scale-cv .cv-section-title { font-size: 10px; }
body.scale-cv .cv-summary-text { font-size: 9px; }
body.scale-cv .cv-exp-role { font-size: 10px; }
body.scale-cv .cv-exp-date { font-size: 8.5px; }
body.scale-cv .cv-exp-company { font-size: 9px; }
body.scale-cv .cv-exp-list li { font-size: 8.5px; }
body.scale-cv .cv-skills-table td { font-size: 8.5px; }
body.scale-cv .cv-certs-table td { font-size: 8.5px; }
body.scale-cv .cv-cert-issuer { font-size: 7.5px; }
body.scale-cv .cv-edu-degree { font-size: 10px; }
body.scale-cv .cv-edu-year { font-size: 8.5px; }
body.scale-cv .cv-edu-school { font-size: 9px; }
body.scale-cv .cv-langs-row { font-size: 9px; }

body.scale-cv.show-scanlines::before {
    display: none;
}

/* Print styles */
@media print {
    body, body.show-scanlines { background: #fff !important; }
    body.show-scanlines::before { display: none !important; }
    nav, .cv-page-header, footer { display: none !important; }
    .cv-page-wrapper { padding: 0; max-width: none; }
    .cv-document { box-shadow: none; border-radius: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .cv-page-wrapper { padding: 5rem 1rem 2rem; }
    .cv-content { padding: 24px 20px; }
}
