
:root{
    /* Margin */
    --margin-xxs: .25rem;
    --margin-xs: .5rem;
    --margin-s: .75rem;
    --margin-m: 1rem;
    --margin-l: 1.25rem;
    --margin-xl: 1.75rem;
    --margin-xxl: 2.5rem;

    /* Padding */
    --padding-xxs: .25rem;
    --padding-xs: .5rem;
    --padding-s: .75rem;
    --padding-m: 1rem;
    --padding-l: 1.25rem;
    --padding-xl: 1.75rem;
    --padding-xxl: 2.5rem;

    /* Colors */
    --gray10: hsl(0, 0%, 10%);
    --gray30: hsl(0, 0%, 30%);
    --gray50: hsl(0, 0%, 50%);
    --gray70: hsl(0, 0%, 70%);
    --gray90: hsl(0, 0%, 90%);
    --colora: #333333;
    --colorb: #2196f7;
    --colorc: #010409;
    --bggradient: linear-gradient(135deg, #0D1117 0%, #161B22 100%);

    /* Fonts */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background-color: black;
    position: relative;
    transition: background-color 0.3s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--bggradient);
    background-size: cover;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}
body.light::before {
    opacity: 0;
}
body.light {
    --gray10: hsl(0, 0%, 95%);
    --gray30: hsl(0, 0%, 75%);
    --gray50: hsl(0, 0%, 55%);
    --gray70: hsl(0, 0%, 30%);
    --gray90: hsl(0, 0%, 12%);

    --colorc: #e8f6ff;
    --colora: #e1e6ee;
    --colorb: #0068ff;
    --bggradient: linear-gradient(
        135deg,
        #ffffff 0%,
        #ffffff 100%
    );
    background-color: white;
}
body.light #btn-top:hover, body.light .profile button:hover {
    background-color: #2196f7;
}
body.light .profileSkills .skill-list .skill-item, body.light .projectExpSkills .skill-item{
    background-color: var(--colora);
}
body.light .profileSkills .skill-list .skill-item i{
    color: var(--gray70);
}
body.light .contact-item{
    background-color: var(--colorc);
}
body.light .contact-icon, body.light .contact-item h3{
    color: var(--gray90);
}
body.light .footer{
    background-color: #010409;
}
body.light .footer-text{
    color: var(--gray30);
    border-top: 1px solid var(--gray70);
}
body.light .social-item i, body.light .socials-email{
    color: var(--gray10);
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* light mode toggle*/
.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #494949;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 0px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox-label i{
    margin-left: 2px;
    margin-right: 2px;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

/* Navbar */
.navBarContainer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 10vh;
    margin-left: 20vw;
    margin-right: 20vw;
}
.navBar{
    width: 100%;
    z-index: 9999;
    background-color: var(--colorc);
    transition: background-color 0.3s ease;
}
.navBar.disabled {
    pointer-events: none;
}
.navBar .lists{
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.navBar a{
    color: var(--gray90);
    text-decoration: none;
    margin: 0 var(--margin-m);
    right: 0;
    font-size: 20px;
    font-family: var(--font-family);
    padding: 0px 10px;
    cursor: pointer;
    transition: width 0.3s ease;
    position: relative;
    user-select: none;
}
.navBar a::after{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    right: 0;
    height: 2px;
    background-color: var(--colorb);
    transform: translateX(-50%) skewX(-20deg);
    width: 0;
    transition: width 0.3s ease;
}
.navBar a.active{
    position: relative;
    pointer-events: none;
}
.navBar a.active::after{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    right: 0;
    height: 2px;
    background-color: var(--colorb);
    transform: translateX(-50%) skewX(-20deg);
    width: 100%;
    transition: width 0.7s ease;
}
.navBar a.removeLine::after{
    width: 0;
}
.navBar a:hover{
    position: relative;
    transition: width 0.3s ease;
}
.navBar a:hover:not(.active)::after{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    right: 0;
    height: 2px;
    background-color: var(--colorb);
    transform: translateX(-50%) skewX(-20deg);
    width: 30px;
    transition: width 0.3s ease;
}

/* Icon */
.iconContainer{
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.iconContainer .nav-icon img{
    height: 60px;
    width: 60px;
    cursor: pointer;
}
.iconContainer .nav-icon{
    margin: 0px;
    padding: 0px;
}

#btn-top {
    opacity: 0;
    visibility: hidden;
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 98; 
    border: none; 
    outline: none;
    background-color: var(--colorb); 
    color: white; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer; 
    padding: 15px; 
    border-radius: 10px; 
    font-size: 11px; 
    transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease;
}
#btn-top i {
    font-size: 20px;
}
#btn-top.show {
    opacity: 1;
    visibility: visible;
}
#btn-top:hover {
    background-color: #0068ff;
}

/* Profile */
#profile{
    display: flex;
    flex-direction: row;
    color: var(--gray90);
    z-index: 1;
    height: 100%;
    align-items: center;
    background-color: var(--colorc);
    border-bottom: var(--colora) 2px solid;
    opacity: 1;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}
#profile.show{
    opacity: 1;
}


.profileContainer{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20vw;
    margin-right: 20vw;
}
.profile-item{
    display: flex;
    flex-direction: row;
    gap: 2vw;
    align-items: flex-end;
}
.profile-highlight{
    color: var(--colorb);
}
.profileText{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    padding-bottom: 5vh;
    padding-top: 2vh;
}
.profileContainerDesktop{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.profileInfo{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
    .profileInfo-item{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .profileInfo-item i{
        margin-bottom: -15px;
        font-size: 30px;
        color: var(--colorb);
    }
    .profile-item .profileInfo-item p{
        font-size: 20px;
        color: var(--gray70);
        font-family: var(--font-family);
    }
    .profile-item .profileDescription p{
        font-size: 20px;
        color: var(--gray90);
        text-align: justify;
        font-family: var(--font-family);
    }
    .profileBtns{
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    .profileBtns button{
        display: flex;
        flex-direction: row;
        gap: 5px;
        align-items: center;
        justify-content: center;
    }
    .profileBtns button i{
        padding-top: 2px;
        padding-bottom: 1px;
    }
    #view-resume{
        background: transparent;
        color: var(--gray90);
        border: 1px solid var(--gray30);
        transition: border-color 0.3s ease, color 0.3s ease;
        font-weight: normal;
    }
    #view-resume:hover{
        color: var(--colorb);
        border-color: var(--colorb);
    }
#profileImagesDesktop{
    display: flex;
}
#profileImagesMobile{
    display: none;
}
#profileImagesMobile img{
    display: none;
}
#profile .profileImages img{
    position: relative;
    width: 100%;
    object-fit: cover;
}

.profile h1{
    font-size: 50px;
    font-family: var(--font-family);
    margin-bottom: 0px;
    margin-top: 0px;
}
.profile p{
    font-size: 20px;
    font-family: var(--font-family);
    margin-top: var(--margin-m);
    margin-bottom: 0px;
    color: var(--gray90);
}
.profile button{
    width: fit-content;
    padding: 10px 30px;
    background-color: var(--colorb);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-family: var(--font-family);
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}
.profile button:hover{
    background-color: #0068ff;
}

/* skills */
.skills{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.skillsContainer{
    padding-top: 5vh;
    padding-bottom: 5vh;
    margin-left: 20vw;
    margin-right: 20vw;
}
.profileSkills{
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.profileSkills .skill-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
.profileSkills .skill-list .skill-item{
    padding: 5px 15px;
    background-color: var(--gray30);
    border-radius: 999px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.6);
    cursor: default;
    transition: translate 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.profileSkills .skill-list .skill-item i{
    margin: 0px;
    color: var(--colorb);
    font-size: 20px;
}
.profileSkills .skill-list .skill-item:hover{
    translate: 0px -5px;
}
.profileSkills .skill-list .skill-item p{
    margin: 0px;
    color: var(--gray90);
    font-family: var(--font-family);
    font-size: 20px;
    transition: color 0.3s ease;
}

/* Video */
.video {
    background-color: var(--colorc);
    position: relative;
    margin-bottom: 5vh;
}
.videoThumbnailWrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 60vh; 
}
.videoThumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.videoOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}
.videoOverlay:hover {
    background: rgba(0, 0, 0, 0.65);
}

.playButton {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.videoOverlay:hover .playButton {
    transform: scale(1.2);
}
.playButton i {
    font-size: 36px;
    color: white;
}

.videoText{
    display: none;
}
.videoTitle {
    color: white;
    font-size: 28px;
    margin: 0;
    font-family: var(--font-family);
}
.videoDescription {
    color: #ddd;
    font-size: 16px;
    max-width: 500px;
    margin-top: 10px;
    font-family: var(--font-family);
}
.videoContainer {
    margin-left: 20vw;
    margin-right: 20vw;
    padding-top: 1px;
    padding-bottom: 1px;
    display: none;
}
.videoPlayer {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: black;
    border: none;
    display: block; 
}
.videoThumbnailWrapper {
    transition: opacity 0.4s ease;
}

/* Projects */
.projects{
    background-color: transparent;
    color: var(--gray90);
    flex-direction: column;
    opacity: 0;
    transform: translateY(-80px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.projects.show{
    opacity: 1;
    transform: translateY(0);
}

.projectContainer{
    margin-left: 20vw;
    margin-right: 20vw;
    padding-bottom: 5vh;
    /* border-bottom: var(--gray30) 2px solid; */
}
.project-list{
    display: flex;
    flex-direction: column;
    gap: 5vh;
}
.project-item{
    display: flex;
    gap: 5vw;
    align-items: center;
    border: 1px solid var(--gray30);
    box-shadow: 1px 10px 18px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5vh;
}
.project-item:nth-child(odd){
    flex-direction: row-reverse;
}
.projectExp-desc{
    display: flex;
    flex-direction: column;
    gap: 1vh;
    flex: 1;
    min-width: 0;
}
.projectText{
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}
.projectText h2{
    font-size: 25px;
    font-family: var(--font-family);
    margin-bottom: 0px;
}
.projectText p{
    font-size: 15px;
    font-family: var(--font-family);
    margin-top: 30px;
    color: var(--gray70);
    text-align: justify;
}
.projectExpSkills{
    display: flex;
    width: 100%;
    overflow: hidden;
}
.skill-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0px;

    max-width: 100%;
    overflow: hidden;

    position: relative;
    scrollbar-width: none;

    transition: max-height 0.3s ease;
}
.skill-wrapper.is-open {
    flex-wrap: wrap;
    overflow: visible;
}

.projectExpSkills .skill-item{
    padding: 5px 12px;
    background-color: var(--gray30);
    border-radius: 999px;
    cursor: default;
    transition: translate 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.skill-more {
    background-color: var(--gray20);
    font-weight: 600;
    font-family: var(--font-family);
}
.projectExpSkills .skill-item i{
    margin: 0px;
    color: var(--colorb);
    font-size: 20px;
}
.projectExpSkills .skill-item p{
    margin: 0px;
    color: var(--gray90);
    font-family: var(--font-family);
    font-size: 15px;
    transition: color 0.3s ease;
}

.projectImages {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    flex-shrink: 0;
}

/* Default 2x2 grid */
.projectImages.has-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 180px);
}

/* 1 image = big */
.projectImages.has-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

/* 2 images */
.projectImages.has-2 {
    grid-template-columns: repeat(1, 2fr);
    grid-template-rows: auto;
}

/* 3 images (FB style) */
.projectImages.has-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
}

.projectImages.has-3 .img-wrapper:first-child {
    grid-row: span 2;
}

.projectImages img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Last image overlay */
.projectImages .img-wrapper {
    position: relative;
}

.projectImages .more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    cursor: pointer;
}


/* Experience */
.experience {
    background-color: transparent;
    color: var(--gray90);
    flex-direction: column;
    opacity: 0;
    transform: translateY(-80px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.experience.show {
    opacity: 1;
    transform: translateY(0);
}

.expContainer{
    margin-left: 20vw;
    margin-right: 20vw;
    padding-bottom: 5vh;
    /* border-bottom: var(--gray30) 2px solid; */
}
.section-title {
    position: relative;
    margin-bottom: 5vh;
    margin-top: 0px;
    font-size: 50px;
    color: var(--gray90);
    font-family: var(--font-family);
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--colorb);
    transform: skewX(-20deg);
    width: 100px;
}
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}
.experience-item{
    display: flex;
    gap: 5vw;
    align-items: center;
    border: 1px solid var(--gray30);
    box-shadow: 1px 10px 18px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5vh;
}
.experience-item:nth-child(odd){
    flex-direction: row-reverse;
}
.expText{
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}
.expImages {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
}

/* Default 2x2 grid */
.expImages.has-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 180px);
}

/* 1 image = big */
.expImages.has-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

/* 2 images */
.expImages.has-2 {
    grid-template-columns: repeat(1, 2fr);
    grid-template-rows: auto;
}

/* 3 images (FB style) */
.expImages.has-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
}

.expImages.has-3 .img-wrapper:first-child {
    grid-row: span 2;
}

.expImages img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Last image overlay */
.expImages .img-wrapper {
    position: relative;
}

.expImages .more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.experience-list h2{
    font-size: 25px;
    font-family: var(--font-family);
    margin-bottom: 0px;
}
.experience-list h3{
    font-size: 20px;
    font-family: var(--font-family);
    margin-bottom: 0px;
    margin-top: var(--margin-xs);
    color: var(--gray90);
}
.experience-list .exp-date{
    font-size: 15px;
    font-family: var(--font-family);
    margin-bottom: 0px;
    margin-top: var(--margin-xs);
    color: var(--gray70);
    font-style: italic;
    text-align: end;
}
.experience-list p{
    font-size: 15px;
    font-family: var(--font-family);
    margin-top: var(--margin-xl);
    color: var(--gray70);
    text-align: justify;
}

/* Contact */
.contact{
    background-color: transparent;
    color: var(--gray90);
    flex-direction: column;
    justify-content: center;
    height: 100%;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    padding-bottom: 5vh;
}
.contact.show {
    opacity: 1;
    transform: translateX(0);
}

.contactContainer{
    display: flex;
    flex-direction: column;
    margin-left: 20vw;
    margin-right: 20vw;
    padding-bottom: 5vh;
}
.contactContainer h1{
    margin-top: 0px;
    margin-bottom: var(--margin-xl);
}
.contactDescription{
    flex: 1;
}
.contact-description {
    font-size: 20px;
    color: var(--gray90);
    margin-top: 0px;
    margin-bottom: 40px;
    font-family:var(--font-family);
}
.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 25px;
    flex: 1;
}
.contact-item {
    background: var(--gray90);
    border-left: 20px solid var(--colorb);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.contact-icon {
    font-size: 30px;
    color: var(--colorc);
    width: 30px;
}
.contact-item h3 {
    margin: 0;
    font-size: 18px;
    color: var(--colora);
    font-family:var(--font-family);
}
.contact-item p {
    margin: 3px 0 0;
    font-size: 15px;
    font-family:var(--font-family);
    color: var(--colorb);
    text-decoration: none;
}
.contact-item:hover p{
    text-decoration: underline;
}
.socials{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-self: center;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--margin-xl);
    margin-bottom: var(--margin-xl);
    margin-left: 20vw;
    margin-right: 20vw;
}
.socialsContainer{
    width: 100%;
}
.socials-withText{
    display: flex;
    flex-direction: column;
    gap: var(--margin-xxs);
    align-self: center;
    justify-content: center;
    align-items: center;
}
.socials .socials-withText p{
    font-size: 20px;
    font-family:var(--font-family);
    color: var(--gray90);
    margin: 0;
}
.socials-img{
    width: 7rem;
    height: 7rem;
    object-fit: cover;
    margin: 0;
}
.socials-list{
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: var(--margin-xs);
}
.social-item{
    color: var(--gray90);
    font-size: 30px;
    transition: transform 0.2s ease;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.social-item:hover{
    transform: translateY(-5px);
}
.social-item i{
    font-size: 40px;
    padding: 5px;
    margin: 0;
}
.socials-email{
    font-size: 20px;
    font-family:var(--font-family);
    color: var(--gray90);
    margin: 0;
}

@media (max-width: 1300px){
    .socials{
        flex-direction: column;
    }
    .socials-withText{
        border-left: none;
        padding-left: 0;
    }
    .socials .socials-withText p{
        border-top: 2px solid var(--colorb);
        padding-top: var(--padding-xxs);
        font-size: 15px;
    }
}

/* About */
.about {
    background-color: transparent;
    color: var(--gray90);
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.about.show {
    opacity: 1;
    transform: translateX(0);
}

.about .section-title{
    display: flex;
    flex-direction: column;
    gap: var(--margin-xxl);
    margin-left: 20vw;
    margin-right: 20vw;
}
.aboutContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 20vw;
    margin-right: 20vw;
    gap: 5vw;
    padding-bottom: 5vh;
}
.about-main{
    display: flex;
    flex-direction: column;
    gap: var(--margin-xxl);
    flex: 1;
}




.about-list {
    display: flex;
    flex-direction: column;
    gap: var(--margin-xxs);
    flex: 1;
    width: 100%;
}
.about-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--margin-xxl);
    width: 100%;
}
.aboutText {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray70);
}
.aboutText h1 {
    font-size: 2.8rem;
    color: var(--gray90);
    font-family: var(--font-family);
    margin-bottom: var(--margin-xxs);
    margin-top: 0px;
}
.aboutText h2 {
    font-size: 2rem;
    color: var(--gray90);
    font-family: var(--font-family);
    margin-bottom: 0px;
    margin-top: 0px;
}
.aboutText .highlight {
    color: var(--colorb);
}
.aboutText p {
    margin: 0px;
    text-align: justify;
    margin-bottom: var(--margin-m);
}
.aboutImages {
    flex: 1;
}
.aboutImages img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--gray30);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.aboutImages img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(206, 212, 106, 0.25);
}
.education{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--margin-xl);
    margin-top: var(--margin-l);
}
    .edu-item{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .edu-item i{
        margin-bottom: 0px;
        font-size: 30px;
        color: var(--colorb);
    }
    .about-item .edu-item p{
        margin: 0px;
        font-size: 20px;
        color: var(--gray70);
        font-family: var(--font-family);
    }
.aboutText .summary{
    font-size: 20px;
    color: var(--gray90);
    font-family: var(--font-family);
}
.aboutText .simple-list{
    margin: 0;
    font-size: 20px;
    color: var(--gray70);
    font-family: var(--font-family);
}

/* Footer */
.footer{
    width: 100%;
    background-color: var(--colorc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer-text{
    width: 100%;
    height: 13vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray70);
    font-family: var(--font-family);
    font-size: 15px;
    border-top: 1px solid var(--gray30);
}

/* Fullscreen overlay */
.image-viewer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: auto;
    font-family: var(--font-family);
}
.viewer-overlay{
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    z-index: -1;
}

/* Main container: image + sidebar */
.viewer-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "title title"
        "images sidebar";

    width: 100%;
    max-width: 1100px;
    height: 80vh;

    margin: auto;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Title spans both columns */
.viewer-title {
    grid-area: title;
    display: flex;
    align-items: center;
    padding: 0px 25px;
    background: var(--colora);
    color: var(--gray90);
    font-size: 20px;
    font-weight: bold;
    border-bottom: 2px solid var(--gray30);
}
.viewer-close {
    border: none;
    background: none;
    color: var(--gray90);
    font-size: 50px;
    cursor: pointer;
    margin-left: auto;
}

/* Image frame */
.viewer-image-frame {
    grid-area: images;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}
.viewer-image-frame img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

/* Viewer Sidebar */
.viewer-sidebar {
    grid-area: sidebar;
    background: var(--colora);
    color: var(--gray90);
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 0;  
    overflow: hidden;
}
.viewer-desc-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 10px;
}
.viewer-controls {
    flex-shrink: 0;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
#viewer-desc {
    font-size: 16px;
    color: var(--gray90);
    text-align: justify;
}
.viewer-counter {
    font-weight: bold;
    font-size: 16px;
}
.viewerBtns {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.viewer-controls button {
    padding: 5px 10px;
    background: transparent;
    border: none;
    color: var(--gray90);
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.viewer-controls button:hover {
    background: var(--gray30);
}
.viewer-arrow {
    font-size: 30px;
    padding: 0;
}
body.image-viewer-open {
    overflow: hidden;
}


/* Mobile Responsive */
@media (max-width: 800px) {
    body {
        margin: 0;
        background-color: black;
    }
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    input, textarea, button, select, a, img, .checkbox-label {
        -webkit-tap-highlight-color: transparent;
    }
    .checkbox-label{
        width: 40px;
        height: 20px;
    }
    .checkbox-label i{
        font-size: 14px;
        margin-left: 1px;
        margin-right: 1px;
    }
    .checkbox-label .ball {
        width: 16px;
        height: 16px;
    }
    .checkbox:checked + .checkbox-label .ball {
        transform: translateX(20px);
    }
    .navBarContainer{
        height: 5vh;
        margin-left: 0vw;
        margin-right: 0vw;
        gap: var(--margin-xxs);
    }
    .navBar {
        position: fixed;
        height: 5vh;
        top: 0px;            
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0,0,0,0.55); 
        box-shadow: 0 6px 18px rgba(0,0,0,0.6);
        z-index: 9999;
        margin: 0;               
        -webkit-backdrop-filter: blur(6px); 
        backdrop-filter: blur(6px);
    }
    body.light .navBar{
        background: rgba(255,255,255,0.55); 
        box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    }
    .navBar .lists {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        gap: var(--margin-xxs);
    }
    .navBar a {
        font-size: 0.70rem;
        padding: 0px 0.5rem; 
        margin: 0;          
        color: var(--gray90);
    }
    .iconContainer .nav-icon img{
        display: none;
    }
    
    #btn-top {
        display: none;
    }
    #profile{
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: var(--gray90);
        z-index: 1;
        height: 100%;
        padding-top: 0px;
        padding-bottom: 0px;
        gap: 0px;
    }
    .profileContainer{
        display: flex;
        flex-direction: column;
        gap: 5vh;
        margin-top: 8vh;
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .profile-item{
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    .profileText{
        gap: 10px;
    }
    .profileSkills{
        gap: 10px;
    }
    .profile-item .profileDescription p{
        font-size: 15px;
        color: var(--gray90);
    }
    .profile-item .profileInfo-item p{
        font-size: 15px;
        color: var(--gray70);
    }
    .profile-item .profileInfo-item i{
        font-size: 20px;
        color: var(--colorb);
    }
    .profileSkills .skill-list .skill-item p{
        font-size: 15px;
    }
    .skillsContainer{
        margin-left: 5vw;
        margin-right: 5vw;
        padding-bottom: 0px;
        margin-bottom: 5vh;
    }
    
    /* Video */
    .videoContainer {
        margin-left: 0vw;
        margin-right: 0vw;
    }
    .videoOverlay {
        background: rgba(0, 0, 0, 0.65);
    }
    .videoText{
        display: block;
    }

    /* #profile:nth-child(even){
        flex-direction: column;
    } */
    #profileImagesMobile img{
        display: block;
        border-radius: 12px;
        border: 2px solid var(--gray30);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
    }
    #profileImagesDesktop img{
        display: none;
    }
    #profile .profileImages{
        display: block;
        width: 100%;
    }
    .profile h1{
        font-size: 25px;
        margin-bottom: 0px;
        margin-top: 0px;
    }
    .profile p{
        font-size: 15px;
        margin-top: var(--margin-m);
        text-align: justify;
    }
    .profile button{
        padding: 8px 25px;
        margin-top: 20px;
        font-size: 13px;
    }
    .section-title {
        margin-bottom: 3vh;
        font-size: 25px;
    }
    .section-title::after {
        width: 50px;
    }

    .projects{
        padding: 0px;
    }
    .projectContainer{
        margin-left: 5vw;
        margin-right: 5vw;
        margin-bottom: 5vh;
    }
    .project-list{
        gap: 5vh;
    }
    .project-item{
        flex-direction: column;
        gap: 2vh;
        padding: 2.5vh;
    }
    .project-item:nth-child(odd){
        flex-direction: column;
    }
    .projectExpSkills .skill-item i{
        font-size: 20px;
    }
    .projectExpSkills .skill-item p{
        font-size: 15px;
    }
    .projectExp-desc{
        gap: 2vh;
    }
    .projectText{
        width: 100%;
    }
    .projectText h2{
        font-size: 20px;
        margin-top: 0px;
    }
    .projectText p{
        font-size: 15px;
        margin-top: var(--margin-xs);
        margin-bottom: 0px;
    }
    .projectImages{
        width: 100%;
    }
    .project-item img{
        width: 100%;
    }
    .projectImages img{
        width: 100%;
    }

    .experience {
        padding: 0px;
    }
    .expContainer{
        margin-left: 5vw;
        margin-right: 5vw;
        margin-bottom: 5vh;
    }
    .experience-list{
        gap: 5vh;
    }
    .experience-item{
        flex-direction: column;
        gap: 2vh;
        padding: 2.5vh;
    }
    .experience-item:nth-child(odd){
        flex-direction: column;
    }
    .expText{
        width: 100%;
    }
    .expText h2{
        font-size: 20px;
        margin-top: 0px;
    }
    .expText h3{
        font-size: 15px;
    }
    .expText p{
        font-size: 15px;
        margin-top: var(--margin-xs);
        margin-bottom: 0px;
    }
    .experience-item .expImages{
        width: 100%;
    }
    .expImages img{
        width: 100%;
    }

    .about {
        padding: 0px;
        height: auto;
        margin-top: 0;
    }
    .aboutContainer {
        margin-left: 5vw;
        margin-right: 5vw;
        margin-top: 5vh;
        margin-bottom: 5vh;
        flex-direction: column;
    }
    .about .section-title{
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .about-list{
        gap: var(--margin-m);
    }
    .about-item {
        gap: var(--margin-xxs);
        flex-direction: column;
    }
    .aboutText {
        line-height: 1.5;
        color: var(--gray70);
        width: 100%;
    }
    .aboutText h2 {
        color: var(--gray90);
        margin-bottom: var(--margin-m);
        font-size: 18px;
    }
    .aboutText p {
        margin-bottom: var(--margin-xxs);
        font-size: 15px;
    }
    .aboutImages {
        width: 100%;
        height: auto;
    }
    .aboutText h1 {
        font-size: 25px;
    }
    .education{
        margin-top: var(--margin-m);
    }
    .education h2{
        font-size: 20px;
    }
    .aboutText .summary{
        font-size: 15px;
    }
    .about-item .edu-item p{
        font-size: 15px;
        text-align: left;
    }
    .about-item .edu-item i{
        font-size: 20px;
    }
    .aboutText .simple-list li{
        font-size: 15px;
    }

    .resumeBtn {
        margin-top: var(--margin-xs);
        padding: var(--padding-xxs) var(--padding-m);
        border-radius: 8px;
        align-self: center;
    }

    .contact {
        padding: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
    .contactContainer {
        margin-left: 5vw;
        margin-right: 5vw;
        margin-bottom: 5vh;
    }
    .contact-description {
        font-size: 15px;
        color: var(--gray90);
        margin-bottom: 20px;
    }
    .contact-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .contact-item {
        padding: var(--padding-s) var(--padding-xxs);
        gap: 7px;
        padding-left: 7px;
    }

    .footer-text{
        font-size: 12px;
    }

    .viewer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1fr;
        grid-template-areas:
            "title"
            "images"
            "sidebar"
            "sidebar";

        height: 100dvh;
        max-width: 100%;
        border-radius: 0;
    }
    .viewer-title {
        padding: 12px 16px;
        font-size: 18px;
    }
    .viewer-image-frame {
        width: 100%;
        height: min(70vw, 45vh); 
        max-height: 360px;       
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000;
    }
    .viewer-image-frame img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .viewer-sidebar {
        padding: 16px;
        gap: 12px;
    }
    .viewer-controls {
        position: sticky;
        bottom: 0;
        background: var(--colora);
        padding-top: 10px;
        padding-bottom: 10px;
        border-top: 1px solid var(--gray30);
        z-index: 2;
    }
    .viewer-desc-container {
        overflow-y: auto;
        padding-bottom: 10px;
    }
    .viewerBtns button {
        padding: 10px 14px;
        font-size: 14px;
    }
    .viewer-arrow {
        font-size: 22px;
    }
}

@media (hover:none) {
    .viewer-controls button:hover {
        transform: none;
        background: transparent;
    }
    .viewer-controls button:active {
        background: var(--gray30);
        transform: scale(0.96);
    }
    .navBar a:hover:not(.active)::after{
        width: 0px;
    }
}