/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb54C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPb94C_k3HqUtEw.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/spacegrotesk/v21/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
}

:root {
    --background-color: #fff;
    --background-card: rgba(0, 0, 0, 0.04);
    --color: #111;
    --color-action: #0090E4;
    --border: rgba(0, 0, 0, 0.1);
    --padding: clamp(16px, 6vw, 48px);
    --type-size-small: clamp(12px, 2vw, 14px);
    --type-size: 16px;
    --type-size-medium: clamp(16px, 4vw, 18px);
    --type-size-large: clamp(16px, 4vw, 24px);
    --container-width: clamp(50%, 100%);
    --font-family: 'Space Grotesk', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000;
        --background-card: rgba(255, 255, 255, 0.1);
        --color: #eee;
        --border: rgba(255, 255, 255, 0.2);
    }
}

body {
    font-family: var(--font-family);
    font-size: var(--type-size);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--color);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: none;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-top: var(--padding);
}

.header {
    height: fit-content;
    min-height: 100dvh;
    padding: var(--padding);
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 25%;
    min-width: 400px;
    flex-shrink: 0;
}

.navigation {
    column-gap: var(--padding);
    padding: calc(var(--padding) / 2) var(--padding);
    display: flex;
    flex-direction: row;
    position: fixed;
    width: 100%;
    background: var(--background-color);
    z-index: 10;
    top: 0;
}

.infoToggle {
    margin-left: auto;
    font-family: var(--font-family);
    font-size: var(--type-size-large);
    line-height: 1.6;
    display: flex;
    column-gap: 4px;
    background-color: transparent;
    border: none;
    outline: none;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    color: var(--color);
}

.infoToggle:active {
    opacity: 0.7;
}

h1,
h2 {
    font-weight: 900;
    font-size: var(--type-size);
}

p:not(:last-child),
ul:not(:last-child),
ol:not(:last-child) {
    margin-bottom: calc((var(--type-size) * 1.6) / 2);
}

ul,
ol {
    padding-left: 1.25em;
}

ul li {
    list-style-type: disc;
}

ol li {
    list-style-type: decimal;
}

a {
    color: var(--color-action);
    text-decoration: none;
    width: fit-content;
    border-bottom: 2px solid var(--border);
    opacity: 0.7;
}

a:active, a:hover {
    opacity: 1;
    border-bottom: 2px solid var(--color-action);
}

.links {
    display: flex;
    flex-direction: column;
}

.header a:hover {
    border-bottom: 1px solid;
}

.projects {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project, .contact {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    column-gap: var(--padding);
}

.contact {
    font-size: var(--type-size-large);
}

.projectInfo {
    height: fit-content;
    padding: calc(var(--padding) * 2) var(--padding);
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 25%;
    min-width: 400px;
    flex-shrink: 0;
}
.projectInfo .projec-title {
    font-size: var(--type-size-medium);
    margin-bottom: calc(var(--padding) / 2);
}
.project-link-container {
    padding-top: calc(var(--padding) / 2);
}
.project-link {
    font-weight: 700;
}

.attachments {
    width: 75%;
    padding: calc(var(--padding) * 2) var(--padding);
    padding-left: 0;
    margin-bottom: -24px;
}

.media {
    width: 100%;
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.media img,
.media video {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

hr {
    outline: none;
    border: none;
    height: 1px;
    background-color: var(--border);
}

.profile-photo img {
    width: 128px;
    height: 128px;
    border-radius: 100%;
}
.information {
    padding: var(--padding);
    font-size: var(--type-size);
    width: var(--container-width);
    text-align: center;
}
.information a {
    display: inline-block;
    width: 100%;
    text-align: left;
}
.information h1 {
    font-size: var(--type-size-large);
    font-weight: 800;
}
.information h2{
    font-size: var(--type-size);
    font-weight: 800;
    margin-bottom: var(--padding);
}
.information p {
    text-align: left;
}
.information p:not(:last-child) {
    margin-bottom: calc((var(--type-size-large) * 1.6) / 2);
}

.work-experience-section {
    padding: var(--padding) 0;
    text-align: left;
}
.certification-item {
    display: flex;
    column-gap: 1rem;
    margin-bottom: 1rem;
    padding: calc(var(--padding) / 2);
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background-card);
}
  .certification-image {
    width: 250px;
  }
  .certification-image img {
    width: 250px;
    height: auto;
  }
  .title-year-org-container {
    display: flex;
    flex-direction: column;
  }
  
 

.work-experience, .certifications-section {
    margin-top: 2rem;
    text-align: left;
}

.work-experience h2 {
    font-size: var(--type-size-subheading);
    font-weight: 500;
    margin-bottom: var(--padding);
    color: var(--color);
}

.work-experience-list li, .certifications-list li {
    list-style: none;
    padding: 0;
}

.experience-item {
    margin-bottom: 1rem;
    padding: calc(var(--padding) / 2);
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background-card);
}
.experience-item a {
    width: fit-content;
}
.experience-item li {
    list-style: square;
}
.title-year-container {
    display: flex;
    justify-content: space-between;
    align-items: left;
}
.company-location-container {
    margin-bottom: calc(var(--padding) / 2);
}
.experience-location {
    font-style: italic;
}
.experience-title, .certification-name {
    font-size: var(--type-size);
    font-weight: 500;
    margin: 0;
}

.experience-company {
    font-size: var(--type-size);
    font-weight: 400;
    color: var(--color);
}

.experience-year {
    font-size: var(--type-size);
    color: var(--color-secondary);
}
.description-container {
    font-size: var(--type-size-small);
}

@media (max-width: 900px) {
    .project {
        flex-direction: column;
        row-gap: var(--padding);
    }

    .projectInfo {
        width: 100%;
        padding-right: var(--padding);
        padding-bottom: 0;
        position: relative;
        top: unset !important;
        min-width: unset;
        min-height: unset;
    }

    .attachments {
        width: 100%;
        padding-left: var(--padding);
        padding-top: 0;
    }
    .title-year-container, .company-location-container {
        flex-direction: column;    
    }
    .certification-item {
        flex-direction: column;
    }
 
}