:root {
    --dark: #3e3e3e;
    --light: #ffffff;
    --muted: #777;
    --line: #e5e5e5;
    --accent: #555;

    /* Purple palette based on sidebar background #2C2C54 */
    --purple-dark: #2C2C54;
    --purple-medium: #4A4A7A;
    --purple-light: #6B6B9E;
    --purple-lighter: #8C8CC2;
    --purple-accent: #5A5A8A;
}

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    transition: background-color 0.3s ease;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    transition: background-color 0.3s ease;
    min-height: 100%;
}

/* Dark mode */
html.dark-mode,
body.dark-mode {
    background: #1a1a1a !important;
}

/* Light mode */
html.light-mode,
body.light-mode {
    background: #f4f4f4 !important;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(42, 42, 42, 0.9);
    border-color: #555;
    color: #fff;
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(42, 42, 42, 1);
}

.resume {
    max-width: 816px;
    width: 816px;
    margin: 40px auto;
    background: var(--light);
    display: grid;
    grid-template-columns: 260px 1fr;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =====================
     LEFT SIDEBAR
  ====================== */

.sidebar {
    background: #2C2C54;
    color: #fff;
    padding: 40px 30px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px auto;
    border: 3px solid #fff;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-section {
    margin-bottom: 48px;
    margin-top: 0;
}

.sidebar-section:first-of-type {
    margin-top: 0;
}

.sidebar h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar p,
.sidebar li,
.sidebar a {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
}

.sidebar a {
    text-decoration: none;
    color: #ddd;
    word-break: break-all;
}

.sidebar ul {
    padding-left: 18px;
}

/* Strengths Section */
.strength-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

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

.strength-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.8);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Subtle bullet for items without specific icons */
.strength-icon {
    width: 18px;
    height: 18px;
    background-image: url("icons/checkmark.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    filter: brightness(0) invert(1) opacity(0.85);
    margin-top: 3px;
    margin-left: 3px;
    mask-image: none;
    -webkit-mask-image: none;
}

.strength-content {
    flex: 1;
}

.strength-title {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.strength-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Passions Section */
.passion-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

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

.passion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.8);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Subtle bullet for items without specific icons */
.passion-icon {
    width: 18px;
    height: 18px;
    background-image: url("icons/checkmark.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    filter: brightness(0) invert(1) opacity(0.85);
    margin-top: 3px;
    margin-left: 3px;
    mask-image: none;
    -webkit-mask-image: none;
}

.passion-content {
    flex: 1;
}

.passion-title {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.passion-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* =====================
     MAIN CONTENT
  ====================== */

.content {
    padding: 48px 30px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.name-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.name-title h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Roboto', sans-serif;
    font-weight: 500;
}

.name-title h2 {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Roboto', sans-serif;
    font-weight: 500;
}

.name-title .location-text {
    margin: 10px 0 0;
    font-size: 13px;
    color: #999;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-right: 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 200px;
}

.contact li {
    margin: 0;
    position: relative;
    padding-left: 32px;
    min-height: 28px;
    display: flex;
    align-items: center;
    width: 100%;
    align-self: stretch;
}

.contact li::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.contact li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--purple-light);
    opacity: 0.3;
}

.contact .email {
    &::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 0.5px solid #333;
        border-radius: 6px;
        background-image: url("icons/email.svg");
        background-size: 16px 16px;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
        margin-right: 8px;
    }
}

.contact .linkedin {
    &::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 0.5px solid #333;
        border-radius: 6px;
        background-image: url("icons/linkedin.svg");
        background-size: 16px 16px;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
        margin-right: 8px;
    }
}

.contact .github {
    &::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 0.5px solid #333;
        border-radius: 6px;
        background-image: url("icons/github.svg");
        background-size: 16px 16px;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
        margin-right: 8px;
    }
}

.contact .website {
    &::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 0.5px solid #333;
        border-radius: 6px;
        background-image: url("icons/website.svg");
        background-size: 16px 16px;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
        margin-right: 8px;
    }
}

.contact li a {
    color: var(--muted);
    text-decoration: none;
}

.contact li a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

.section {
    margin-top: 0;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* =====================
     TIMELINE
  ====================== */

/* ===== CLEAN EXPERIENCE LIST (NO WEIRD TIMELINE) ===== */

/* ===== TIMELINE LAYOUT ===== */

.timeline {
    position: relative;
    margin-top: 30px;
}

/* Vertical line - positioned at center of middle column (40px) */
.timeline::before {
    content: "";
    position: absolute;
    left: 35.3%;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: var(--purple-medium);
}

/* Timeline row */
.timeline-item {
    display: grid;
    grid-template-columns: 1.5fr 36px 3fr;
    column-gap: 12px;
    margin-bottom: 36px;
    position: relative;
}

/* LEFT SIDE */
.timeline-left {
    text-align: left;
    font-size: 13px;
    color: #777;
}

.timeline-left .org {
    font-weight: 600;
    color: #000;
}

.timeline-left .meta {
    margin-top: 4px;
}

/* CENTER MARKER */
.timeline-marker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2px;
}

.timeline-marker .dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2.5px solid var(--purple-dark);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    z-index: 2;
    flex-shrink: 0;
}


/* RIGHT SIDE */
.timeline-right {
    font-size: 14px;
}

.timeline-right .job-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-right ul {
    margin: 0;
    padding-left: 18px;
}

.timeline-right li {
    margin-bottom: 6px;
}


/* =====================
     SKILLS & LANGUAGES
  ====================== */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
}

.skill {
    font-size: 14px;
}

.bar {
    height: 6px;
    background: var(--line);
    margin-top: 6px;
    position: relative;
}

.bar span {
    position: absolute;
    height: 100%;
    background: var(--accent);
    left: 0;
    top: 0;
}

/* Languages Section */
.sidebar .language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.sidebar .language-name {
    font-weight: normal;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    flex: 1;
}

.sidebar .language-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.sidebar .language-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sidebar .language-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar .language-dots .dot.filled {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .resume {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        margin: 0;
        size: 816px 2112px;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 816px;
        height: 2112px;
    }

    .dark-mode-toggle {
        display: none !important;
    }

    .resume {
        margin: 0 !important;
        padding: 0 !important;
        width: 816px !important;
        max-width: 816px !important;
        height: 2112px !important;
        box-shadow: none;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 2112px !important;
        min-height: 2112px !important;
    }

    .profile-img {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        transform: none !important;
        scale: 1 !important;
    }

    .profile-img img {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
        display: block !important;
        box-sizing: border-box !important;
        transform: none !important;
        scale: 1 !important;
    }
}