﻿:root {
    --siteBGColor: #003764;
    --siteFColor: #fff200;
    --textColor: #34495e;
    --headingColor: #002a4c;
    --lightBg: #f8f9fa;
    --borderColor: #e9ecef;
    --white: #ffffff;
}

body {
    background-color: var(--lightBg);
    color: var(--textColor);
    line-height: 1.8;
    margin: 0;
}
/* --- New Profile Header --- */
.profile-header-v2 {
    background: linear-gradient(135deg, var(--siteBGColor), #002a4c);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 42, 76, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: right;
    border-bottom: 5px solid var(--siteFColor);
}

.profile-picture-v2 {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    margin-left: 2rem; /* RTL */
    flex-shrink: 0;
}

.profile-info-v2 {
    flex-grow: 1;
}

.profile-name-v2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.profile-specialty-main-v2 {
    font-size: 1.1rem;
    color: #e0e8f3;
    opacity: 0.9;
}

/* --- Main Content --- */
.profile-main-content .content-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 30px rgba(0, 55, 100, 0.07);
    border: 1px solid var(--borderColor);
}

.section-title-profile {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--headingColor);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

    .section-title-profile i {
        font-size: 2rem;
        margin-left: 1rem;
        color: var(--siteBGColor);
    }

/* --- Section Specific Styles --- */
.about-me-text {
    border-right: 4px solid var(--siteFColor);
    padding-right: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

    .about-me-text p {
        margin-bottom: 1rem;
    }

        .about-me-text p:last-child {
            margin-bottom: 0;
        }

.timeline {
    position: relative;
    padding-right: 2rem;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 10px;
        right: 8px;
        bottom: 10px;
        width: 4px;
        background-color: var(--borderColor);
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        right: -32px;
        top: 8px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--siteFColor);
        border: 4px solid var(--siteBGColor);
    }

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--headingColor);
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.certificate-accordion .cert-item {
    border: 1px solid var(--borderColor);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.cert-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdfdff;
    transition: background-color 0.2s;
}

    .cert-header:hover {
        background-color: #f8f9fa;
    }

.cert-title {
    font-weight: 500;
    color: var(--headingColor);
}

.cert-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cert-item.active .cert-icon {
    transform: rotate(180deg);
}

.cert-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

    .cert-body img {
        width: 100%;
        height: auto;
        display: block;
        padding: 1.5rem;
    }

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    text-decoration: none;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 55, 100, 0.1);
    }

    .portfolio-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.portfolio-card-title {
    padding: 1rem;
    background-color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--headingColor);
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .profile-header-v2 {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture-v2 {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 120px;
        height: 120px;
    }

    .profile-name-v2 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .section-title-profile {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
