/* CV-Style Portfolio Stylesheet */

:root {
    --sidebar-bg: #2d3e50;
    --main-bg: #f5f5f0;
    --accent-teal: #7cb5a0;
    --accent-coral: #d48b8b;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #888888;
    --border-light: #e0e0e0;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== SIDEBAR ===== */
.cv-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    overflow-y: auto;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-teal);
    object-fit: cover;
    margin-bottom: 25px;
}

.sidebar-name {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.sidebar-tagline {
    color: var(--accent-teal);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.sidebar-contact {
    width: 100%;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.contact-item i {
    width: 20px;
    color: var(--accent-teal);
    margin-right: 12px;
    text-align: center;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-teal);
}

/* ===== MAIN CONTENT ===== */
.cv-main {
    margin-left: var(--sidebar-width);
    padding: 40px 50px;
    min-height: 100vh;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.section-header.teal {
    background-color: var(--accent-teal);
}

.section-header.teal::after {
    border-left: 15px solid var(--accent-teal);
}

.section-header.coral {
    background-color: var(--accent-coral);
}

.section-header.coral::after {
    border-left: 15px solid var(--accent-coral);
}

.section-header i {
    margin-left: 10px;
    font-size: 16px;
}

/* ===== PROFILE SECTION ===== */
.cv-section {
    margin-bottom: 40px;
}

.profile-text {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 150px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 130px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-coral);
    border-radius: 50%;
    transform: translateX(-50%);
    margin-left: 5px;
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: 0;
    background-color: var(--accent-coral);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--accent-coral);
}

.timeline-content {
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.7;
}

.timeline-description ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-description li {
    margin-bottom: 5px;
}

/* ===== GROUPED TIMELINE ROLES ===== */
.timeline-role {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.timeline-role-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.timeline-role-date {
    background-color: var(--accent-teal);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-role-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.skills-column {
    flex: 1;
    min-width: 300px;
}

.skills-category {
    margin-bottom: 25px;
}

.skills-category h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid var(--text-muted);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}


/* ===== LANGUAGES SECTION ===== */
.languages-container {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.language-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.language-bar-container {
    height: 8px;
    background-color: #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
}

.language-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-coral), #e8a8a8);
    border-radius: 4px;
}

/* ===== HOBBIES/INTERESTS ===== */
.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hobby-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hobby-item i {
    font-size: 24px;
    color: var(--accent-teal);
    margin-right: 15px;
}

.hobby-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ===== PIXEL MOSAIC FOOTER ===== */
.pixel-footer {
    margin-top: 50px;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pixel {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.pixel.teal {
    background-color: var(--accent-teal);
}

.pixel.coral {
    background-color: var(--accent-coral);
}

.pixel.navy {
    background-color: var(--sidebar-bg);
}

.pixel.gray {
    background-color: #ccc;
}

.pixel.light {
    background-color: #e8e8e8;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-column {
    display: flex;
    gap: 40px;
}

.two-column .column {
    flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cv-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }

    .sidebar-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .cv-main {
        margin-left: 0;
        padding: 30px 20px;
    }

    .timeline {
        padding-left: 120px;
    }

    .timeline::before {
        left: 100px;
    }

    .timeline-item::before {
        left: -19px;
        margin-left: 0;
    }

    .timeline-date {
        left: -120px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .two-column {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-date {
        position: relative;
        left: 0;
        display: inline-block;
        margin-bottom: 10px;
    }

    .timeline-date::after {
        display: none;
    }

    .timeline-item::before {
        left: -14px;
        margin-left: 0;
    }
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-teal);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 25px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #6aa58f;
    color: white;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-teal);
}