:root {
    --bg-color: #0d1117;
    --sidebar-bg: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --text-heading: #f0f6fc;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    --accent-color: #58a6ff;
    --border-color: #30363d;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

/* Resume Container */
.resume-container {
    max-width: 1100px;
    margin: 40px auto;
    background-color: var(--bg-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    min-height: 1122px; /* Approx A4 height at 96dpi */
}

/* Sidebar */
.sidebar {
    width: 320px;
    background-color: var(--sidebar-bg);
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-section {
    text-align: left;
}

.image-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
    margin-bottom: 24px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--sidebar-bg);
}

.name {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.title {
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
    font-size: 20px;
    letter-spacing: 1px;
}

/* Contact Info */
.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-main);
}

.contact-info svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

/* Languages */
.languages ul {
    list-style: none;
}

.languages li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.languages .proficiency {
    color: var(--text-muted);
}

/* Education */
.edu-item h4 {
    font-size: 14px;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.edu-item .institution {
    font-size: 13px;
    color: var(--text-main);
}

.edu-item .date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.summary p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-main);
}

/* Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.job {
    position: relative;
}

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

.job-info h4 {
    font-size: 18px;
    color: var(--text-heading);
    font-weight: 700;
}

.job-info h5 {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 2px;
}

.job-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.job-bullets {
    list-style-type: none;
    padding-left: 0;
}

.job-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.job-bullets li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Editor Styles */
.editing-active {
    outline: 2px dashed rgba(88, 166, 255, 0.5);
    outline-offset: 4px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 4px;
    transition: all 0.2s;
    min-height: 1em;
    min-width: 2em;
    display: inline-block;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 16px;
    z-index: 1000;
}

.fab-btn {
    background-color: var(--sidebar-bg);
    color: var(--text-heading);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.fab-primary {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
}

.fab-active {
    background: #2ea043;
    border-color: #2ea043;
    color: white;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background-color: #0d1117 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .resume-container {
        margin: 0;
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        min-height: auto;
    }
    @page {
        margin: 0;
        size: A4;
    }
}
