@font-face {
    font-family: 'Trajan Pro';
    src: url('fonts/TrajanPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
:root {
    --background-color: #f3f2f9;
    --text-color: #606887;
    --padding-sides: 240px;
}
@media (max-width: 1200px) {
    :root {
        --padding-sides: 96px;
    }
}
@media (max-width: 768px) {
    :root {
        --padding-sides: 48px;
    }
}
@media (max-width: 576px) {
    :root {
        --padding-sides: 24px;
    }
}
html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Trajan Pro', serif;
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
*,
*:before,
*:after {
    box-sizing: inherit;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
.header-content {
    width: 100%;
    padding: 2rem var(--padding-sides);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-content .left-part,
.header-content .right-part {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-content h5 {
    font-size: 1.5rem;
    text-transform: lowercase;
    margin: 0;
}
@media (max-width: 576px) {
    .header-content h5 {
        display: none;
    }
}
.header-content a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.25rem;
    text-transform: lowercase;
}
.container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--padding-sides) 2rem;
    width: 100%;
}
.intro-text h3 {
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0.5rem 0;
    line-height: 1.1;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    transition: -webkit-text-stroke-color 0.4s ease-in-out;
}
@media (max-width: 768px) {
    .intro-text h3 {
        -webkit-text-stroke: 1.5px var(--text-color);
    }
}
.sidebar-menu-toggle {
    --gap: 5px;
    --height-bar: 2.5px;
    --pos-y-bar-one: 0;
    --pos-y-bar-three: 0;
    --scale-bar: 1;
    --rotate-bar-one: 0;
    --rotate-bar-three: 0;
    width: 28px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    cursor: pointer;
    position: relative;
    color: inherit;
    z-index: 2;
}
.sidebar-bar {
    position: relative;
    height: var(--height-bar);
    width: 100%;
    border-radius: .5rem;
    background-color: currentColor;
}
.sidebar-bar--1 {
    top: var(--pos-y-bar-one);
    transform: rotate(var(--rotate-bar-one));
    transition: top 200ms 100ms, transform 100ms;
}
.sidebar-bar--2 {
    transform: scaleX(var(--scale-bar));
    transition: transform 150ms 100ms;
}
.sidebar-bar--3 {
    bottom: var(--pos-y-bar-three);
    transform: rotate(var(--rotate-bar-three));
    transition: bottom 200ms 100ms, transform 100ms;
}
.sidebar-check:checked+.sidebar-menu-toggle>.sidebar-bar--1 {
    transition: top 200ms, transform 200ms 100ms;
}
.sidebar-check:checked+.sidebar-menu-toggle>.sidebar-bar--3 {
    transition: bottom 200ms, transform 200ms 100ms;
}
.sidebar-check:checked+.sidebar-menu-toggle {
    --pos-y-bar-one: calc(var(--gap) + var(--height-bar));
    --pos-y-bar-three: calc(var(--gap) + var(--height-bar));
    --scale-bar: 0;
    --rotate-bar-one: 45deg;
    --rotate-bar-three: -45deg;
}
.intro-text .name {
    color: var(--text-color);
    -webkit-text-stroke: 0;
}
.intro-roles {
    margin-top: 2rem;
}
.intro-roles p {
    font-size: 1.15rem;
    text-transform: none;
    margin: 0.3rem 0;
}
@media(max-width: 768px) {
    .intro-roles p {
        font-size: 1rem;
    }
}
.intro-links {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.intro-links a {
    font-size: 1.25rem;
    color: var(--text-color);
    text-transform: lowercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
}
.link-wrapper {
    position: relative;
    display: inline-block;
}
.link-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out, background-color 0.4s ease-in-out;
}
.link-wrapper:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.link-wrapper2 {
    position: relative;
    display: inline-block;
}
.link-wrapper2::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out, background-color 0.4s ease-in-out;
}
.link-wrapper2:hover::after {
    transform: scaleX(1);
    transform-origin: bottom right;
}
.navbar-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar-menu-container {
    position: relative;
}
.navbar {
    padding: 0;
}
.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(96, 104, 135, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: background-image 0.4s ease-in-out;
}
#navbarToggleExternalContent {
    position: absolute;
    top: 120%;
    right: 0;
    z-index: 1000;
    border: 2px solid var(--text-color);
    border-radius: 1rem;
    background-color: var(--background-color);
    padding: 1rem;
    width: 200px;
    transition: background-color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}
.custom-menu-content .nav-link {
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease-in-out, color 0.4s ease-in-out;
}
.custom-menu-content .nav-link:hover {
    background-color: rgba(96, 104, 135, 0.1);
    border-radius: 0.5rem;
}
body.dark-mode {
    --background-color: #2b2b33;
    --text-color: #f3f2f9;
}
body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(243, 242, 249, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.toggle {
    background-color: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
}
.input {
    display: none;
}
.icon {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    transition: transform 500ms;
}
.icon--moon {
    transition-delay: 200ms;
}
.icon--sun {
    transform: scale(0);
}
#switch:checked~.icon--moon {
    transform: rotate(360deg) scale(0);
}
#switch:checked~.icon--sun {
    transition-delay: 200ms;
    transform: scale(1) rotate(360deg);
}
body.dark-mode #navbarToggleExternalContent {
    border-color: var(--text-color);
    background-color: var(--background-color);
}
body.dark-mode .custom-menu-content .nav-link:hover {
    background-color: rgba(243, 242, 249, 0.1);
}
.language-toggle {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}
body.work-page {
    height: 100vh;
    overflow: hidden;
}
.container.work-container {
    flex-grow: 1;
    display: flex;
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 0;
    margin-right: 20px;
}
.project-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.project-image-container.active {
    opacity: 1;
}
.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-title-container {
    margin-bottom: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6,
.page-title {
    font-family: 'Trajan Pro', serif;
    margin: 0;
}
.page-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    text-transform: uppercase;
    text-align: left;
}
.project-list {
    list-style: none;
    padding: 0 0.5rem 0 0;
    margin: 0;
    width: 100%;
    border-top: 2px solid var(--text-color);
    flex-grow: 1;
    overflow-y: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.project-list::-webkit-scrollbar {
    width: 6px;
}
.project-list::-webkit-scrollbar-track {
    background: transparent;
}
.project-list::-webkit-scrollbar-thumb {
    background-color: var(--text-color);
    border-radius: 10px;
}
.project-list li {
    border-bottom: 2px solid var(--text-color);
}
.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}
.project-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
body.dark-mode .project-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.project-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}
.project-category {
    font-size: 1rem;
    opacity: 0.8;
    text-align: right;
    white-space: nowrap;
    padding-left: 1rem;
}
@media (max-width: 992px) {
    .projects-left {
        display: none;
    }
    .container.work-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .projects-wrapper,
    .projects-right {
        width: 100%;
        display:block;
        align-items: center;
        padding-left: 12rem;
        padding-right: 0rem;
    }
    .header-content h5 {
        display: none;
    }
    #navbarToggleExternalContent {
        position: absolute;
        top: 3.5rem;
        right: 1rem;
        width: 250px;
        z-index: 1000;
    }
    .page-title-container {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .project-list {
        border-top: 1px solid currentColor;
    }
    .project-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 0.5rem;
        gap: 0.25rem;
    }
    .project-title {
        font-size: 1.5rem;
    }
    .project-category {
        font-size: 0.9rem;
        text-align: left;
        white-space: normal;
        opacity: 0.8;
    }
    .about-wrapper {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .about-right {
        flex-basis: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .about-left {
        flex-basis: 100%;
        text-align: center;
    }
    .action-buttons {
        justify-content: center;
    }
    .contact-content {
        max-width: 100%;
    }
    .project-intro {
        flex-direction: column;
    }
    .project-hero-image {
        height: 40vh;
    }
}
.project-page .container {
    display: block;
}
.project-hero-image {
    width: 100%;
    height: 70vh;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 4rem;
}
.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-title-header {
    margin-bottom: 3rem;
}
.project-intro {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}
.project-details {
    flex: 1;
}
.project-description {
    flex: 2;
    font-size: 1.25rem;
}
.project-details table {
    width: 100%;
}
.project-details td {
    padding-bottom: 1rem;
    vertical-align: top;
}
.project-details h6 {
    font-size: 1.25rem;
    margin: 0;
    padding-right: 1rem;
}
.project-content-gallery {
    margin-bottom: 4rem;
}
.project-content-gallery h6 {
    font-size: 1.25rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}
.project-content-gallery img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
body.dark-mode .project-content-gallery img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.next-project-nav {
    margin: 4rem 0 3rem 0;
}
.next-project-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-decoration: none;
    color: var(--text-color);
    padding: 2rem 0;
}
.next-project-left h4 {
    margin: 0;
    font-size: 2rem;
}
.next-project-arrow {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.next-project-link:hover .next-project-arrow {
    transform: translateX(10px);
}
.next-project-right p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
    text-align: right;
}
@media (max-width: 768px) {
    .project-intro {
        flex-direction: column;
    }
    .project-hero-image {
        height: 40vh;
    }
}
.about-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    margin-top: 2rem;
}
.about-left {
    flex: 0 1 60%;
}
.about-right {
    flex: 0 1 35%;
}
.presentation-text {
    font-size: 1.25rem;
    margin-top: 2rem;
    line-height: 1.7;
}
.resume-link {
    margin-top: 3rem;
}
.profile-pic-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
}
.profile-pic {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.fullname {
    text-transform: none;
    font-size: 1.5rem;
}
.profile-pic-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}
.profile-pic-wrapper {
    border-radius: 24px;
    overflow: hidden;
    clip-path: path('M0 0 H calc(100% - 60px) Q 100% 0 100% 60px V 100% H 0 Z');
}
.profile-pic {
    display: block;
}
.project-link-icon {
    margin-top: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}
.project-link-icon:hover {
    opacity: 0.7;
}
.project-link-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}
.project-link-icon:hover::after {
    transform: scaleX(1);
}
.project-link-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.projects-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 5rem;
    width: 100%;
    height: 100%;
    margin-left: 40px;
}
.projects-right {
    width: 550px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.projects-left {
    width: 65vw;
    min-width: 700px;
    flex-shrink: 0;
    height: 105vh;
    position: sticky;
    top: 3rem;
    border-radius: 24px;
    overflow: hidden;
}
.horizontal-scroll-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-container>.page-section {
    width: 100%;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem var(--padding-sides);
}
.contact-content {
    text-align: center;
    max-width: 600px;
}
.contact-content .intro-links {
    margin-top: 3rem;
    margin-bottom: 4rem;
}
.action-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
}