css
    /* =====================================================
       PROFILE PAGE
       Abdelhafid Dahhani
    ===================================================== */


    /* =====================================================
       PROFILE HERO
    ===================================================== */

.profile-hero {

    padding: 100px 40px;

    border-bottom: 1px solid var(--border);

}


.profile-hero h1 {

    max-width: 1000px;

    margin: 30px 0 15px;

    font-size: clamp(65px, 9vw, 125px);

    line-height: .85;

    letter-spacing: -.075em;

}


.profile-hero h2 {

    font-size: 23px;

    font-weight: 400;

    color: var(--text);

    opacity: .72;

}


.profile-hero > p {

    max-width: 720px;

    margin-top: 40px;

    font-size: 19px;

    line-height: 1.65;

    color: var(--text);

    opacity: .68;

}


.profile-links {

    display: flex;

    gap: 30px;

    margin-top: 40px;

}


.profile-links a {

    font-size: 12px;

    font-weight: 700;

    border-bottom: 1px solid var(--text);

    padding-bottom: 4px;

}



/* =====================================================
   GENERIC SECTION
===================================================== */

.profile-section {

    padding: 110px 40px;

    border-bottom: 1px solid var(--border);

}



/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {

    display: grid;

    grid-template-columns: 200px 1fr;

    margin-bottom: 70px;

}


.section-heading > span {

    font-size: 11px;

    color: var(--muted);

}


.section-heading h2 {

    margin: 0;

    max-width: 800px;

    font-size: clamp(50px, 7vw, 90px);

    line-height: .88;

    letter-spacing: -.07em;

}



/* =====================================================
   EXPERIENCE
===================================================== */

.experience {

    display: grid;

    grid-template-columns: 200px 1fr;

    padding: 60px 0;

    border-top: 1px solid var(--border);

}


.experience-date {

    font-size: 12px;

    color: var(--text);

    opacity: .55;

}


.company {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;

    color: var(--text);

    opacity: .65;

}


.experience h3 {

    margin: 12px 0;

    font-size: 40px;

    letter-spacing: -.05em;

}


.client {

    font-size: 12px;

    color: var(--text);

    opacity: .55;

}


.experience-summary {

    max-width: 750px;

    font-size: 18px;

    line-height: 1.7;

    color: var(--text);

    opacity: .68;

}


.experience ul {

    max-width: 850px;

    padding-left: 22px;

    margin-top: 30px;

}


.experience li {

    margin-bottom: 13px;

    font-size: 15px;

    line-height: 1.65;

    color: var(--text);

    opacity: .72;

}


.experience li::marker {

    color: var(--text);

    opacity: .45;

}



/* =====================================================
   TECHNOLOGY FOOTER
===================================================== */

.tech {

    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 12px;

    line-height: 1.8;

    color: var(--text);

    opacity: .55;

}



/* =====================================================
   EDUCATION
===================================================== */

.education-item {

    display: grid;

    grid-template-columns: 200px 1fr;

    padding: 35px 0;

    border-top: 1px solid var(--border);

}


.education-item > span {

    font-size: 12px;

    color: var(--text);

    opacity: .55;

}


.education-item h3 {

    margin: 0;

    font-size: 28px;

    letter-spacing: -.04em;

}


.education-item p {

    font-size: 15px;

    line-height: 1.6;

    color: var(--text);

    opacity: .58;

}



/* =====================================================
   PUBLICATIONS
===================================================== */

.publication {

    display: grid;

    grid-template-columns: 80px 1fr;

    padding: 25px 0;

    border-top: 1px solid var(--border);

}


.publication > span {

    font-size: 11px;

    color: var(--text);

    opacity: .45;

}


.publication h3 {

    margin: 0;

    font-size: 19px;

    line-height: 1.4;

}


.publication p {

    font-size: 14px;

    color: var(--text);

    opacity: .55;

}



/* =====================================================
   DOCTORAL CONTRIBUTION
===================================================== */

.doctoral-contribution {

    margin-top: 50px;

    padding: 35px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.doctoral-contribution > span {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .12em;

    color: var(--text);

    opacity: .55;

}


.doctoral-contribution h3 {

    font-size: 27px;

    letter-spacing: -.04em;

}


.doctoral-contribution p {

    font-size: 15px;

    color: var(--text);

    opacity: .55;

}



/* =====================================================
   TECHNICAL EXPERTISE
===================================================== */

.technical-expertise {

    position: relative;

}


.expertise-list {

    width: 100%;

}



/* =====================================================
   EXPERTISE ITEM
===================================================== */

.expertise-item {

    border-top: 1px solid var(--border);

}


.expertise-item:last-child {

    border-bottom: 1px solid var(--border);

}



/* =====================================================
   EXPERTISE HEADER / TOGGLE
===================================================== */

.expertise-toggle {

    width: 100%;

    min-height: 105px;

    padding: 25px 0;

    display: grid;

    grid-template-columns: 90px 1fr 45px;

    align-items: center;

    gap: 25px;

    border: 0;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    text-align: left;

    cursor: pointer;

}


.expertise-toggle:hover {

    opacity: .78;

}



/* NUMBER */

.expertise-number {

    font-size: 11px;

    letter-spacing: .15em;

    color: var(--text);

    opacity: .42;

}



/* TITLE */

.expertise-title {

    font-size: clamp(25px, 3vw, 40px);

    line-height: 1.1;

    letter-spacing: -.04em;

    font-weight: 500;

}



/* PLUS */

.expertise-icon {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    font-size: 19px;

    font-weight: 300;

    opacity: .65;

    transition:
            transform .3s ease,
            background .3s ease,
            border-color .3s ease;

}



/* =====================================================
   OPEN STATE
===================================================== */

.expertise-item.open
.expertise-icon {

    transform: rotate(45deg);

    background: var(--surface);

    border-color: var(--text);

}



/* =====================================================
   EXPERTISE CONTENT
===================================================== */

.expertise-content {

    max-height: 0;

    overflow: hidden;

    transition:
            max-height .45s ease,
            opacity .3s ease;

    opacity: 0;

}


.expertise-item.open
.expertise-content {

    opacity: 1;

}



/* =====================================================
   CONTENT INNER
===================================================== */

.expertise-content {

    padding-left: 115px;

    padding-right: 45px;

    padding-bottom: 38px;

}



/* =====================================================
   SUBSECTION
===================================================== */

.expertise-subsection {

    margin-top: 25px;

}


.expertise-subsection:first-child {

    margin-top: 0;

}


.expertise-label {

    display: block;

    margin-bottom: 15px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .16em;

    color: var(--text);

    opacity: .42;

}



/* =====================================================
   EXPERTISE TAGS
===================================================== */

.expertise-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}


.expertise-tags span {

    display: inline-flex;

    align-items: center;

    min-height: 38px;

    padding: 8px 14px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--text);

    font-size: 13px;

    line-height: 1.35;

    opacity: .78;

    transition:
            background .2s ease,
            border-color .2s ease,
            opacity .2s ease,
            transform .2s ease;

}


.expertise-tags span:hover {

    opacity: 1;

    transform: translateY(-1px);

    border-color: rgba(255,255,255,.25);

}



/* =====================================================
   RECOGNITION
===================================================== */

.recognition {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.recognition > div {

    padding: 35px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.recognition span {

    font-size: 11px;

    color: var(--text);

    opacity: .5;

}


.recognition h3 {

    font-size: 30px;

    letter-spacing: -.04em;

}


.recognition p {

    font-size: 15px;

    color: var(--text);

    opacity: .58;

}



/* =====================================================
   CERTIFICATIONS
===================================================== */

.certifications {

    margin-top: 50px;

}


.certifications p {

    padding: 18px 0;

    margin: 0;

    border-top: 1px solid var(--border);

    color: var(--text);

    opacity: .65;

    font-size: 14px;

    line-height: 1.5;

}



/* =====================================================
   LANGUAGES
===================================================== */

.language-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

}


.language-grid > div {

    padding: 30px 0;

    border-top: 1px solid var(--border);

}


.language-grid strong {

    display: block;

    font-size: 25px;

}


.language-grid span {

    font-size: 13px;

    color: var(--text);

    opacity: .55;

}



/* =====================================================
   RESPONSIVE — TABLET
===================================================== */

@media (max-width: 900px) {

    .profile-hero,
    .profile-section {

        padding-left: 30px;

        padding-right: 30px;

    }


    .section-heading {

        grid-template-columns: 120px 1fr;

    }


    .experience,
    .education-item {

        grid-template-columns: 140px 1fr;

    }


    .expertise-toggle {

        grid-template-columns: 60px 1fr 40px;

        gap: 20px;

    }


    .expertise-content {

        padding-left: 80px;

    }

}



/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 650px) {

    .profile-hero,
    .profile-section {

        padding: 70px 20px;

    }


    .profile-hero h1 {

        font-size: clamp(58px, 16vw, 85px);

    }


    .profile-hero h2 {

        font-size: 19px;

        line-height: 1.4;

    }


    .profile-hero > p {

        font-size: 16px;

    }


    .profile-links {

        flex-wrap: wrap;

        gap: 20px;

    }


    .section-heading {

        grid-template-columns: 1fr;

        gap: 20px;

        margin-bottom: 50px;

    }


    .section-heading h2 {

        font-size: clamp(48px, 14vw, 70px);

    }


    .experience,
    .education-item {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .experience h3 {

        font-size: 32px;

    }


    .experience-summary {

        font-size: 16px;

    }


    .experience li {

        font-size: 14px;

    }


    .skills-grid {

        grid-template-columns: 1fr;

    }


    .recognition {

        grid-template-columns: 1fr;

    }


    .language-grid {

        grid-template-columns: 1fr;

    }



    /* =============================================
       EXPERTISE MOBILE
    ============================================= */

    .expertise-toggle {

        min-height: 88px;

        grid-template-columns: 35px 1fr 35px;

        gap: 12px;

        padding: 22px 0;

    }


    .expertise-number {

        font-size: 9px;

    }


    .expertise-title {

        font-size: 23px;

        line-height: 1.15;

    }


    .expertise-icon {

        width: 28px;

        height: 28px;

        font-size: 17px;

    }


    .expertise-content {

        padding-left: 47px;

        padding-right: 0;

        padding-bottom: 30px;

    }


    .expertise-label {

        font-size: 9px;

    }


    .expertise-tags {

        gap: 8px;

    }


    .expertise-tags span {

        min-height: 35px;

        padding: 7px 11px;

        font-size: 12px;

    }


    .doctoral-contribution {

        padding: 25px;

    }


    footer {

        padding-left: 20px;

        padding-right: 20px;

    }

}

