/* CV Page Styles Block Theme */
:root {
    --color-gray-light-1: #f8f8f8;
    --color-gray-light-2: #e9e9e9;
    --color-gray-light-3: #dedede;
    --color-gray-dark-1: #545454;
    --color-gray-dark-2: #737373;
    --color-gray-dark-3: #9a9a9a;
    --color-blue-dark-1: #00387f;
    --color-tiffany: #00a6a6;
    --profile-theme: #3498db;
    --timeline-circle-theme: #14253e;
    --pgbar-length: 100%;
    --MATH-PI: 3.1415px;
    --percent: 100;
}


/* Homepage structure*/
.wrapper {
    margin: 0 auto;
    background-color: white;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar (Personal Information) */
.intro {
    flex: 0 0 300px;
    background-color: var(--color-gray-light-1);
    border-right: 1px solid var(--color-gray-light-2);
    padding: 0 0 1.5rem;
}

.profile {
    position: relative;
    background-color: var(--profile-theme);
    padding: 1.8rem 1rem 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    user-select: none;
}

.photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
     object-fit: unset;

}

.bio .name {
    font-size: 1.8rem;
    color: white;
    margin: 0.8rem 0 0.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bio .profession {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.intro-section {
    padding: 0 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--color-gray-dark-1);
}

.intro-section .title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--profile-theme);
    margin-bottom: 1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-gray-light-2);
}

.about .paragraph {
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-gray-dark-2);
}

/* Communication patterns */
.info-section {
    margin: 0.9rem 0;
    display: flex;
    align-items: flex-start;
}

.info-section i {
    min-width: 22px;
    color: var(--profile-theme);
    font-size: 0.95rem;
    margin-right: 8px;
    margin-top: 3px;
}

.link a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
}

.link a:hover {
    color: var(--profile-theme);
}

.link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--profile-theme);
    transition: width 0.3s;
}

.link a:hover::after {
    width: 100%;
}

/* Main section (detailed content)*/
.detail {
    flex: 1;
    background-color: white;
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2.2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.title-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--profile-theme);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s;
}

.title-icon i {
    color: white;
    font-size: 1.1rem;
}

.detail-section:hover .title-icon {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.title-icon+span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-dark-1);
    transition: all 0.3s;
}

.detail-section:hover .title-icon+span {
    letter-spacing: 0.5px;
}

.detail-content {
    padding-left: 52px;
}

/* EXPERIENCE part */
.timeline-block {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1.8rem;
}

.timeline-block:last-child {
    margin-bottom: 0;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 12px;
    background-color: white;
    border: 3px solid #00a6a6;
    border-radius: 50%;
    z-index: 2;
}

.timeline-block::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 25px;
    width: 2px;
    height: calc(100% - 15px);
    background-color:#00a6a6;
    z-index: 1;
    margin-top: 1rem;
    margin-left: 0.15rem;
}

.timeline-block:last-child::after {
    display: none;
}

.timeline-block h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--profile-theme);
    margin-bottom: 4px;
    transition: all 0.3s;
}

.timeline-block:hover h1 {
    color: var(--color-tiffany);
}

.timeline-block .company {
    font-weight: 600;
    color: var(--color-blue-dark-1);
    font-size: 1rem;
    margin-bottom: 4px;
}

.timeline-block time {
    display: block;
    color: var(--color-gray-dark-2);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-block .description {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-dark-2);
}

.timeline-block .responsibilities {
    padding-left: 20px;
    margin: 12px 0;
}

.timeline-block .responsibilities li {
    margin-bottom: 6px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.timeline-block .responsibilities li::before {

    position: absolute;
    left: 0;
    color: var(--profile-theme);
    font-weight: bold;
}

.timeline-block .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-gray-light-2);
}

.timeline-block .technologies span:first-child {
    font-weight: 600;
    color: var(--color-gray-dark-1);
    margin-right: 8px;
}

.tech-tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--profile-theme);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s;
}

.tech-tag:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

/* EDUCATION Part*/
.edu .timeline-block {
    padding-left: 35px;
}

.edu .timeline-block h1 {
    font-size: 1.15rem;
    color: var(--color-gray-dark-1);
    margin-bottom: 3px;
}

.edu .timeline-block p {
    font-weight: 600;
    color: var(--profile-theme);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.edu .timeline-block time {
    font-size: 0.85rem;
    color: var(--color-gray-dark-2);
}

/* skill category part*/

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(52, 152, 219, 0.15);
    color: var(--profile-theme);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}


.skill-category {
    margin-bottom: 1.25rem;
}

.skill-category h4 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    color: var(--color-gray-dark-1);
    border-bottom: 1px dashed var(--color-gray-light-2);
}

#tech-skills .skills-list {
    row-gap: 10px;
}


.skill-category[data-collapsible] .skills-list {
    transition: max-height .25s ease;
    overflow: hidden;
    position: relative;
}


.skill-category.is-collapsed .skills-list {
    /* data-collapsed-height */
}


.skill-category.is-collapsed .skills-list::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
    pointer-events: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Show more/less */
.skills-toggle {
    margin-top: 10px;
    font-size: .9rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d3e2ff;
    background: #e7f1ff;
    color: #0f315a;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.skills-toggle:hover {
    background: #dceaff;
    transform: translateY(-1px);
}

.skills-toggle:focus {
    outline: 2px solid #99c3ff;
    outline-offset: 2px;
}




/* أنماط قسم نقاط القوة */
.strengths-section {
    margin-top: 2rem;
}

.strengths-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.strengths-header .strengths-icon {
    width: 42px;
    height: 42px;
    background: var(--profile-theme);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.strengths-header h2 {
    font-size: 1.6rem;
    color: var(--color-gray-dark-1);
    font-weight: 700;
}

.strengths-container {
    background: var(--color-gray-light-1);
    border-radius: 8px;
    padding: 15px;
}

.strengths-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.strength-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
    background: white;
    border: 1px solid var(--color-gray-light-2);
    flex: 1;
    min-width: 80px;
}

.strength-tab i {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--profile-theme);
    transition: all 0.3s;
}

.strength-tab span {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.strength-tab:hover,
.strength-tab.active {
    background: var(--profile-theme);
    border-color: var(--profile-theme);
}

.strength-tab:hover i,
.strength-tab.active i,
.strength-tab:hover span,
.strength-tab.active span {
    color: white;
}

.strengths-content {
    background: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-height: 130px;
    transition: all 0.4s ease;
}

.content-item {
    display: none;
}

.content-item.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.content-item h3 {
    font-size: 1.3rem;
    color: var(--profile-theme);
    margin-bottom: 8px;
    font-weight: 700;
}

.content-item p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-gray-dark-2);
}

.language-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.language-list li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.language-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--profile-theme);
    font-weight: bold;
}

/* Moving*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes circle {
    0% {
        box-shadow: 0 0 0 0px rgba(51, 52, 57, 1);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(51, 52, 57, 0);
    }
}

@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }

    .intro {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-gray-light-2);
    }

    .detail-content {
        padding-left: 15px;
    }

    .timeline-block {
        padding-left: 25px;
    }

    .detail-section {
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: inherit;
        padding-bottom: 3rem;
    }

    .photo img {
        width: 120px;
        height: 120px;
    }

    .bio .name {
        font-size: 1.6rem;
    }

    .bio .profession {
        font-size: 1rem;
    }

    .intro-section {
        padding: 0 1.5rem;
    }

    .title-icon {
        width: 36px;
        height: 36px;
    }

    .strength-tab {
        min-width: 70px;
        padding: 8px 10px;
    }

    .strength-tab i {
        font-size: 1.2rem;
    }

    .strength-tab span {
        font-size: 0.85rem;
    }

    .timeline-block .responsibilities li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        border-radius: 6px;
    }

    .photo img {
        width: 100px;
        height: 100px;
    }

    .bio .name {
        font-size: 1.5rem;
    }

    .intro-section .title {
        font-size: 1rem;
    }

    .title-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .title-icon+span {
        font-size: 1.4rem;
    }


    .skills-list {
        gap: 6px;
    }

    .strengths-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .strength-tab {
        flex: none;
        width: 100%;
    }
}

/* arabic-content (RTL) */
.arabic-content {
    direction: rtl;
    text-align: right;
}

.arabic-content .detail-content {
    padding-right: 52px;
    padding-left: 0;
}

.arabic-content .timeline-block {
    padding-right: 30px;
    padding-left: 0;
}

.arabic-content .timeline-block::before {
    right: 0;
    left: auto;
}

.arabic-content .timeline-block::after {
    right: 5px;
    left: auto;
    margin-right: 0.15rem;
    margin-left: 0;
}

.arabic-content .title-icon {
    margin-right: 0;
    margin-left: 12px;
}

.arabic-content .timeline-block .responsibilities {
    padding-right: 20px;
    padding-left: 0;
}

.arabic-content .timeline-block .responsibilities li {
    padding-right: 15px;
    padding-left: 0;
}

.arabic-content .timeline-block .responsibilities li::before {
    right: 0;
    left: auto;
}

.arabic-content .skills-list {
    justify-content: flex-start;
}

.arabic-content .intro {
    border-right: none;
    border-left: 1px solid var(--color-gray-light-2);
}

.arabic-content .timeline-block .description {
    margin-right: 8px;
    margin-left: 0;
}

.arabic-content .title-icon + span {
    margin-right: 5px; 
    margin-left: 0;
}