:root {
    --text: #1d1d1f;
    --secondary: #6e6e73;
    --accent: #0071e3;
    --linkedin: #0077b5;
    --bg: #ffffff;
    --border: #d2d2d7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    height: 4rem;
}

h1 { font-size: 1.5rem; margin: 0 0 0.1rem 0; font-weight: 600; line-height: 1; }

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
}

nav a:hover { color: var(--accent); }

.print-btn {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
}

.print-btn:hover {
    background: #0077ed;
    transform: translateX(-50%) translateY(-2px);
}

main {
    margin-top: 0;
}

/* Grid layout for index page */
.grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.single-main {
    max-width: 700px;
    margin: 0 auto;
}

.ai-abstract {
    background: #f5f5f7;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #0077ed;
}

section { margin-bottom: 2.5rem; }

h2 { font-size: 1.8rem; margin-top: 0; letter-spacing: -0.02em; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 0.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-top: 0; color: var(--text); font-weight: 700; border-left: 4px solid var(--accent); padding-left: 1rem; margin-bottom: 1.2rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.exp-item h4 { margin-bottom: 0; line-height: 1.1; }
.exp-item .subtitle { margin-top: -0.1rem; }

.subtitle {
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin: 0;
}

.subtitle-group .subtitle {
    margin-top: 0;
}

p { color: #333; margin-bottom: 1.5rem; }
.exp-item p {
    margin-left: 1.5rem;
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}

address a, .direct-link a {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.exp-item {
    margin-bottom: 2rem;
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

li { margin-bottom: 0.5rem; color: #444; }

aside {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
}

.skill-tag {
    display: inline-block;
    background: #f5f5f7;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    border: 1px solid var(--border);
}

footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    color: var(--secondary);
    font-size: 0.8rem;
    text-align: center;
}

.print-url {
    display: none;
}

@media (max-width: 768px) {
    .grid-main { grid-template-columns: 1fr; }
    aside { border-left: none; padding-left: 0; padding-top: 2rem; }
    header { height: auto; flex-direction: column; align-items: flex-start; gap: 1rem; }
    
    .print-btn {
        top: 1rem;
        right: 1rem;
        left: auto;
        transform: none;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .print-btn:hover {
        transform: translateY(-2px);
    }
}

@media print {
    @page {
        margin: 0.8cm;
        size: A4;
    }
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 9pt;
        line-height: 1.25;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .grid-main {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
        gap: 1.5rem !important;
    }
    aside {
        border-left: 1px solid var(--border) !important;
        padding-left: 1.2rem !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
    nav, footer, .print-btn, .copy-btn {
        display: none !important;
    }
    header {
        margin-bottom: 0.6rem;
        height: auto;
        padding-bottom: 0.4rem;
    }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
    h3 { font-size: 1rem; margin-top: 0.8rem; margin-bottom: 0.4rem; }
    h4 { font-size: 0.95rem; margin-top: 0.6rem; }
    section {
        margin-bottom: 0.8rem;
    }
    .exp-item {
        margin-bottom: 0.5rem;
    }
    p {
        margin-bottom: 0.4rem;
    }
    .subtitle {
        margin-bottom: 0.2rem;
    }
    .subtitle-group .subtitle {
        margin-top: 0;
    }
    .print-url {
        display: block !important;
        position: fixed;
        top: 1.2cm;
        font-size: 8pt;
        color: var(--secondary);
        z-index: 9999;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: right;
        width: 100%;
        left: 0;
        box-sizing: border-box;
    }
}
e: 8pt;
        color: var(--secondary);
        z-index: 9999;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: right;
        width: 100%;
        left: 0;
        box-sizing: border-box;
    }
}
