﻿/* ===== Body & Font ===== */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.role {
    font-size: 16px;
    font-weight:bold;
}

.task {
    font-size: 16px;
}

/* ===== Header ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #004080;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-info h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #004080;
}

.profile-info h3 {
    margin: 5px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.profile-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}


/* ===== Main Sections ===== */
.profile-main {
    max-width: 850px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-section {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .profile-section h2 {
        border-bottom: 2px solid #004080;
        padding-bottom: 0.3rem;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

/* ===== Skills Progress Bars ===== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between skill boxes */
    margin-top: 1rem;
}

.skill {
    background-color: #004080; /* highlight color */
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

    /* Hover effect */
    .skill:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }




/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== Contact Links ===== */
.profile-section a {
    color: #004080;
    text-decoration: none;
}

    .profile-section a:hover {
        text-decoration: underline;
    }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .profile-main {
        padding: 0 0.5rem;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-section h2 {
        font-size: 1.3rem;
    }

    .progress-bar {
        width: 100%; /* full width on small screens */
    }
}

/* ===== Timeline Container ===== */
/* Timeline container with vertical line */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}

    .timeline-container::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px; /* thick vertical line */
        background-color: #004080;
        top: 0;
        bottom: 0;
        z-index: 0;
    }

/* Timeline items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 0rem;
}

    /* Left / Right */
    .timeline-item.left {
        left: -1%;
        text-align: right;
    }

    .timeline-item.right {
        left: 51%;
        text-align: left;
    }

/* Timeline content box */
.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: inline-block;
    width: 90%;
    position: relative;
    z-index: 1;
}

/* Year on the center line */
/*position: absolute;*/
/*left: 50%;
    top: 25px;*/
.timeline-year {    
    transform: translateX(-50%);
    background-color: #004080;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        margin-bottom: 2rem;
    }

    .timeline-year {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
}

/*margin: 0.5rem 0 0 1.2rem; */ /* space from paragraph, indent */
/*padding: 0;*/
.timeline-item.right .timeline-content ul.responsibilities {
    list-style-type: disc; /* default bullet */
    color: #333;
    font-size: 12px;
    direction: rtl;
    padding-left:10px;
}

    /*margin-bottom: 0.3rem; */ /* spacing between bullets */
    .timeline-item.right .timeline-content ul.responsibilities li {
        direction: ltr;
        text-align: justify;
        line-break: strict;
        word-break: keep-all;
        white-space: normal;
    }


.timeline-item.left .timeline-content ul.responsibilities {
    list-style-type: disc; /* default bullet */
    color: #333;
    font-size: 12px;
    direction: ltr;
    padding-right: 10px;
}

    /*margin-bottom: 0.3rem; */ /* spacing between bullets */
    .timeline-item.left .timeline-content ul.responsibilities li {
        /*direction: rtl;*/
        text-align: justify;
        line-break: strict;
        word-break: keep-all;
        white-space: normal;
    }

/* === Certificates  ==== */

.certificate-album {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

.certificate {
    width: calc(30% - 10px); /* 3 per row */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .certificate img {
        width: 100%; /* fill container width */
        aspect-ratio: 1 / 1; /* height equals width */
        object-fit: cover; /* crop to fit square without distortion */
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .certificate p {
        font-size: 0.85rem;
        color: #004080;
        font-weight: 500;
    }

    /* Hover effect */
    .certificate:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    }

/* Responsive: 2 per row on medium screens */
@media (max-width: 768px) {
    .certificate {
        width: calc(50% - 10px);
    }
}

/* Responsive: 1 per row on small screens */
@media (max-width: 480px) {
    .certificate {
        width: 100%;
    }
}



/* Begin: Scrolling text*/

.marquee-container {
    width: 100%;
    overflow: hidden; /* Hides content outside the container */
    white-space: nowrap; /* Prevents text from wrapping */
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite; /* Apply animation */
}

@keyframes scroll-left {
    0% {
        transform: translateX(150%); /* Start off-screen right */
    }

    100% {
        transform: translateX(-150%); /* End off-screen left */
    }
}

/* End: Scrolling text*/


/* Begin: Scrolling image*/

.marquee__image__container {
    border: 2px solid black;
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    /*width: 40%;*/
}

.marquee__image__container__slider {
    display: flex;
    flex-direction: row;
    object-fit: cover;
    padding: 5px;
    animation: marquee__image__container linear 20s infinite;
}

.marquee__image__container__slider img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.marquee__image__container:hover .marquee__image__container__slider {
    animation-play-state: paused;
}

@keyframes marquee__image__container {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* End: Scrolling image*/


