﻿.cv-overview-summary {
    background: #f4f6fa;
    /* border-left: 5px solid #007bff; */
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    color: #333;
}

body.dark-theme .cv-overview-summary {
    background: #2a2a2a;
    /* border-left: 5px solid #4ea3ff; */
    color: #ddd;
}
.project-slideshow-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

    .project-slideshow-box iframe {
        width: 100%;
        height: 550px;
        border: none;
        border-radius: 10px;
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }

.slideshow-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

    .slideshow-controls-top button {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        border-radius: 6px;
        cursor: pointer;
    }

        .slideshow-controls-top button:hover {
            background-color: #0056b3;
        }

.nav-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav-btn:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

/* --- Dot Indicators --- */
.project-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .project-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #d0d0d0;
        transition: background 0.3s ease;
    }

        .project-dots .dot.active {
            background: #007bff;
            transform: scale(1.2);
        }

.tag {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin: 0.2rem;
    display: inline-block;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.project-card {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    width: 100%;
    max-width: 500px;
    transition: transform 0.2s;
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .project-card h3 {
        margin: 0 0 10px;
        font-size: 1.3rem;
        color: #333;
    }

    .project-card p {
        margin: 0 0 5px;
        color: #666;
    }

    .project-card .skills {
        font-size: 0.9rem;
        color: #888;
    }

    .project-card button {
        margin-top: 12px;
        padding: 8px 14px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .project-card button:hover {
            background: #0056b3;
        }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    height: 90%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

    .modal-content iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

#close-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
}

    #close-modal:hover {
        color: #000;
    }
.cv-tab-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.education-entry {
    background-color: var(--section-bg);
    color: var(--section-text);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

    .education-entry:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .education-entry h4 {
        margin-bottom: 0.5rem;
    }

.achievements-btn {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
    line-height: 1;
    user-select: none;
}

    .achievements-btn:hover {
        background-color: #d5d5d5;
    }



.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

.modal-content-box {
    background: #fff;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}


.job-details {
    display: none;
    margin-top: 1rem;
}

.job-toggle {
    cursor: pointer;
    transition: color 0.2s ease;
}

    .job-toggle:hover {
        color: #0056b3;
    }

.cv-profile {
    display: flex;
    align-items: center;
    justify-content: center; /* <-- Centers horizontally */
    gap: 1rem;
    text-align: center;
    margin: 0 auto;
}


.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 3px solid #007bff;*/
    cursor: pointer;
    transition: transform 0.2s;
}

    .profile-pic:hover {
        transform: scale(1.50);
    }

.cv-app {
    font-family: sans-serif;
    background: var(--cv-bg, #fff);
    /* padding: 2rem; */
    /* border-radius: 1rem; */
    /* box-shadow: 0 0 20px rgba(0,0,0,0.1); */
    margin: 0;
    color: inherit;
    width: 100%;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.timeline {
    background: #f9fbff;
    /* border-left: 6px solid #007bff; */
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.dark-theme .timeline {
    background: #242424;
    /* border-left-color: #4ea3ff; */
}

.timeline-item {
    display: block;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-date {
    display: none !important;
    /*             display: flex;
            align-items: center;
            justify-content: flex-end;
            font-weight: bold;
            color: #4aa3ff;
            gap: 0.75rem; */
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: #4aa3ff;
    border-radius: 50%;
    flex-shrink: 0;
}


.timeline-content {
    background: #1f1f1f;
    border-left: 4px solid #4aa3ff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

/*    .timeline-content:hover {
        background: #292929;
    }*/

    .timeline-content h3 {
        margin: 0 0 0.5rem 0;
        color: #000;

    }




.company-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid #007bff;
}
/* Header */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-header-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo-inline {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.job-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .job-text h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .job-text .job-date {
        font-size: 0.95rem;
        color: #007bff;
        font-weight: 600;
    }

/* Tabs */
body.light-theme .cv-tabs {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.05);
    justify-content: center;
}

body.dark-theme .cv-tabs {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 2px solid #444;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: inset 0 -1px 3px rgba(255, 255, 255, 0.05);
    justify-content: center;
}


.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease-in-out;
    color: inherit;
}

    .tab-btn.active {
        border-color: #007bff;
        font-weight: bold;
        color: #007bff;
    }

/* Tab content container */
.cv-tab-content {
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

/*     @@keyframes fadeIn {
        from

    {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

    }
 */
/* Skill tags */
.tag {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Job section */
.job {
    background: var(--cv-job-bg, #f9f9f9);
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
    color: inherit;
}

    .job:hover {
        background: var(--cv-job-hover, #f1f9ff);
    }

    .job h4 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        color: inherit;
    }

    .job ul {
        padding-left: 1.2rem;
        margin: 0;
        list-style-type: disc;
    }

        .job ul li {
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }

/* Projects */
.project {
    border: 1px solid var(--cv-project-border, #ccc);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--cv-project-bg, #f8f9fa);
    color: inherit;
}

/* Modal for profile image */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

    .image-modal img.modal-content {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.6);
    }

body.light-theme .cv-app {
    --cv-bg: #ffffff;
    --cv-tab-border: #ccc;
    --cv-job-bg: #f9f9f9;
    --cv-job-hover: #f1f9ff;
    --cv-project-bg: #f8f9fa;
    --cv-project-border: #ccc;
}

body.dark-theme .cv-app {
    --cv-bg: #1e1e1e;
    --cv-tab-border: #444;
    --cv-job-bg: #2b2b2b;
    --cv-job-hover: #333;
    --cv-project-bg: #2a2a2a;
    --cv-project-border: #444;
}

body.dark-theme .tag {
    background: #3390ff;
    color: #fff;
}

body.dark-theme .tab-btn {
    color: #f8f9fa;
}

    body.dark-theme .tab-btn.active {
        color: #3390ff;
    }

body.light-theme .timeline-content {
    background: #ffffff; /* white background */
    border-left: 4px solid #007bff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

    body.light-theme .timeline-content h3 {
        color: #000;
    }

    body.light-theme .timeline-content p,
    body.light-theme .timeline-content ul,
    body.light-theme .timeline-content li {
        color: #444;
    }

body.light-theme .job-details {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}
/* Dark mode modal styles */
body.dark-theme .modal-content-box {
    background: #2a2a2a;
    color: #f8f9fa;
    border: 1px solid #444;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

body.dark-theme .close-modal {
    color: #f8f9fa;
}

body.dark-theme .modal-content-box h2 {
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

body.dark-theme .modal-content-box ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
    color: #ddd;
}

    body.dark-theme .modal-content-box ul li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

/* LinkedIn-style job card layout */
.linkedin-style-job {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--cv-bg);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--cv-tab-border, #ccc);
    gap: 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

body.dark-theme .linkedin-style-job {
    border: 1px solid #444;
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.linkedin-style-job .logo-box {
    flex-shrink: 0;
}

.linkedin-style-job .linkedin-logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid #007bff;
}

.linkedin-style-job .job-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.linkedin-style-job .job-title {
    color: #0a66c2;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    cursor: pointer;
}



.linkedin-style-job .job-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}


.linkedin-style-job .job-tags {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.linkedin-style-job .job-status {
    font-weight: bold;
    color: #0a66c2;
}

.linkedin-style-job .dot {
    width: 6px;
    height: 6px;
    background: #0a66c2;
    border-radius: 50%;
}

.linkedin-style-job .badge {
    background: #f1f1f1;
    border-radius: 12px;
    padding: 0.25rem 0.6rem;
    color: #555;
}

.linkedin-style-job .linkedin-badge {
    background: #eaf4ff;
    color: #0a66c2;
    font-weight: 500;
}

body.dark-theme .linkedin-style-job .badge {
    background: #444;
    color: #ddd;
}

body.dark-theme .linkedin-style-job .linkedin-badge {
    background: #113c5b;
    color: #8cc8ff;
}

.linkedin-style-job .achievements-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    margin-top: auto;
    align-self: flex-start;
    color: #0a66c2;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

    .linkedin-style-job .achievements-btn:hover {
        color: #0056b3;
        transform: scale(1.05);
    }

/* Make job details inside LinkedIn-style job toggle */
.linkedin-style-job .job-toggle {
    cursor: pointer;
}

.linkedin-style-job .job-details {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: inherit;
}

    .linkedin-style-job .job-details ul {
        padding-left: 1.2rem;
    }

    .linkedin-style-job .job-details li {
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }

.job-title.job-toggle {
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Hover text color */
/* Arrow icon on hover */
.job-title.job-toggle::after {
    /* content: '▼'; */
    font-size: 0.7rem;
    position: absolute;
    right: -1.2rem;
    top: 0.15rem;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: inherit;
}

.job-title.job-toggle:hover::after {
    opacity: 1;
    transform: translateY(1px);
}
/* timeline-colors.css */

.timeline-item.edf .timeline-content {
    border-left: 4px solid #FF5618; /* EDF orange */
}

.timeline-item.gunvor .timeline-content {
    border-left: 4px solid #006B73; /* Corrected Gunvor teal */
}

.timeline-item.cognizant .timeline-content {
    border-left: 4px solid #3D6ABB; /* Cognizant blue */
}

.timeline-item.greenergy .timeline-content {
    border-left: 4px solid #032A4B; /* Blue from Greenergy logo */
}

@media (max-width: 768px) {
    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

        .timeline-item.edf .timeline-content {
            border-top: 4px solid #FF5618; /* EDF orange */
        }

        .timeline-item.gunvor .timeline-content {
            border-top: 4px solid #006B73; /* Corrected Gunvor teal */
        }

        .timeline-item.cognizant .timeline-content {
            border-top: 4px solid #3D6ABB; /* Cognizant blue */
        }

        .timeline-item.greenergy .timeline-content {
            border-top: 4px solid #032A4B; /* Blue from Greenergy logo */
        }


    .timeline-date {
        justify-content: flex-start;
        font-size: 0.9rem;
        padding-left: 0.25rem;
        order: -1; /* Move date above content */
    }

    .timeline-dot {
        width: 8px;
        height: 8px;
    }

    .timeline-content {
        width: 100%;
        padding: 1rem;
        border-left: none !important; /* remove left border */
        border-top: 3px solid #007bff; /* optional: new mobile-style border */
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

        .timeline-content h3 {
            font-size: 1rem;
        }

    .linkedin-style-job {
        flex-direction: column;
        align-items: flex-start;
    }

        .linkedin-style-job .logo-box {
            margin-bottom: 0.5rem;
        }

        .linkedin-style-job .job-meta {
            width: 100%;
        }

    .job-title.job-toggle::after {
        right: 0;
        top: 0.2rem;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .cv-app {
        width: 100%;
        max-width: 100%;
        /* padding: 1rem 0.5rem; */
        margin: 0;
        border-radius: 0;
        /* box-sizing: border-box; */
    }

    .cv-tab-content,
    .timeline-content,
    .linkedin-style-job {
        width: 100%;
        max-width: 100%;
    }

    .timeline {
        background: #ffffff; /* white background */
        border-left: 4px solid #007bff;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    }

    .cv-tabs {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        gap: 0.5rem;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0;
        font-size: 0.95rem;
        border-bottom: 2px solid transparent;
        min-width: 80px; /* Optional: ensures tabs aren't too narrow */
    }


        .tab-btn.active {
            border-color: #007bff;
            font-weight: bold;
            color: #007bff;
        }

    .cv-header {
        flex-direction: column;
        align-items: center;
    }
}
