@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

@font-face {
    font-family: 'LyonArabicSlantedText';
    src: url('assets/fonts/LyonArabicSlantedText/LyonArabicSlantedTextSemibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Global Styles */
:root {
    --background: #fafafa;
    --text: #111111;
    --shade: #eeeeee;
    --dim: #555555;
}

body.dark-theme {
    --background: #020202;
    --text: #eeeeee;
    --shade: #111111;
    --dim: #555555;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--background);
    color: var(--text);
}

.section {
    padding-left: calc((100% - 992px) / 2);
    padding-right: calc((100% - 992px) / 2);
    margin-top: 120px;
    margin-bottom: 120px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .section {
        padding-left: 24px;
        padding-right: 24px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
}

/* Global Text Styles */
h1 {
    font-family: 'LyonArabicSlantedText', sans-serif;
    font-size: 40px;
    line-height: 140%;
    margin: 0;
}

h2 {
    font-size: 32px;
    line-height: 140%;
    margin: 0;
}

h3 {
    font-size: 20px;
    line-height: 180%;
    margin: 0;
}

p {
    font-size: 16px;
    line-height: 180%;
    margin: 0;
}

.p1styled {
    font-family: 'LyonArabicSlantedText', sans-serif;
    font-size: 16px;
    line-height: 180%;
}

.p2 {
    font-size: 14px;
    line-height: 180%;
}

.p3 {
    font-size: 12px;
    line-height: 180%;
}

/* Hero */
.hero {
    min-height: 351px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero.section {
    margin-top: 80px;
}

/* Hero Profile Main */
.hero .profile-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hero .profile-main .right {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.hero .profile-main .right .profile-image {
    width: 38px;
    height: 38px;
    object-fit: cover; 
    object-position: center;
}

.hero .profile-main .right .p2 {
    font-weight: 400;
}

.hero .profile-main .right .p1styled {
    font-weight: 600;
}

.hero .profile-main .left {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.hero .profile-main .left button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    background: var(--shade);
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    border-radius: 50%;
    padding: 8px 16px;
    cursor: pointer;
}

/* Hero Profile Secondary */

.hero .profile-secondary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero .profile-secondary .hero-image {
    position: absolute;
    left: 320px;
    top: -55px;
    width: 70px;
    height: 90px;
    border-radius: 8px;
}

.hero .profile-secondary .upper h1 {
    font-weight: 600;
}

.hero .profile-secondary .upper h2 {
    font-weight: 400;
}

.hero .profile-secondary .lower p {
    font-weight: 400;
    color: var(--dim);
}

/* Hero Profile Links */
.hero .profile-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.hero .profile-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 200px;
    padding: 8px 16px;
    background: var(--shade);
    text-decoration: none;
}

.hero .profile-links a span {
    font-size: 16px;
    line-height: 180%;
    font-weight: 400;
    margin: 0;
    color: var(--text);
}

@media (max-width: 992px) {
    .hero.section {
        margin-top: 40px;
    }
}

@media (max-width: 600px) {
    .hero .profile-secondary .hero-image {
        display: none;
    }
}

/* Projects */
.projects .project {
    max-width: 305px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--shade);
    padding: 8px;
    border-radius: 16px;
}

.projects .project .project-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
}

.projects .project .project-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover; 
    object-position: center;
}

.projects .project .p2 {
    font-weight: 400;
}

.projects .project .project-details-btn {
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    color: var(--dim);
    border: none;
    background: none;
    outline: none;
    padding: 0;
    width: fit-content;
    cursor: pointer;
}

.projects .project .coming-soon {
    text-decoration: none;
    cursor: default;
}

/* Project Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: #02020266;

    justify-content: center;
    align-items: center;
}


.modal-content {
    background-color: var(--shade);
    width: 80%;
    max-width: 880px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

.modal-content .modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
}

.modal-content #modalDescription1 {
    padding: 0 24px;
}

.modal-content #modalDescription2 {
    padding: 0 24px 24px 24px;
}

.modal-title {
    font-weight: 400;
}

.close-btn {
    cursor: pointer;
    padding: 8px 12px;
    background-color: var(--background);
    border-radius: 50%;
}

.model-desc {
    color: var(--dim);
    font-weight: 400;
}

.modal-img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover; 
    object-position: center;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .modal-img {
    max-width: 250px;
    height: 150px;
    }
}

.modal .swiper {
    width: 100%;
    overflow: hidden;
    padding: 24px;
}

/* Experience */
.experience {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.experience .experience-item {
    width: 320px;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background-color: var(--shade);
    border-radius: 16px;
    font-weight: 400;
    flex-shrink: 0;
    box-sizing: border-box; 
}

/* Experience Roles */
.experience .roles .upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.experience .roles .upper .icon {
    width: 24px;
    height: 24px;
}

.experience .roles .upper .image {
    width: 120px;
    height: 90px;
    border-radius: 8px;
}

.experience .roles .lower {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience .roles .lower .role {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.experience .roles .lower .role .role-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: var(--dim);
}

/* Experience Certificates */
.experience .certificates .lower {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience .certificates .lower .certificate {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.experience .certificates .lower .certificate span {
    color: var(--dim);
}

.experience .certificates .lower .certificate .title {
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;
    display: block;
    max-width: 225px;
}

.experience .certificates .lower .and-more-btn {
    font-size: 14px;
    font-weight: 400;
    color: var(--dim);
}

/* Experience Education */
.experience .educations .upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.experience .educations .upper .icon {
    width: 24px;
    height: 24px;
}

.experience .educations .upper .image {
    width: 120px;
    height: 90px;
    border-radius: 8px;
}

.experience .educations .lower {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience .educations .lower .education .p3 {
    color: var(--dim);
}

/* Gallery */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery .gallery-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.gallery .gallery-header .all-btn {
    width: 51px;
    height: 48px;
    color: var(--text);
    background: var(--shade);
    border: none;
    border-radius: 200px;
    padding: 8px 16px;
    cursor: pointer;
}

.gallery .gallery-header .gallery-filters button {
    border: none;
    background: transparent;
    color: var(--dim);
}

.gallery .gallert-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery .gallert-content .gallery-item {
    width: 320px;
    height: 240px;
    border-radius: 16px;
}

/* Footer */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

footer.section {
    margin-bottom: 80px;
}

footer .p2 {
    color: var(--dim);
}

footer .footer-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

footer .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 200px;
    padding: 8px 16px;
    background: var(--shade);
    text-decoration: none;
}

footer .footer-links a span {
    font-size: 16px;
    line-height: 180%;
    font-weight: 400;
    margin: 0;
    color: var(--text);
}

@media (max-width: 992px) {
    footer.section {
        margin-bottom: 40px;
    }
}