@font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/Inter-Thin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/Inter-ThinItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/Inter-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/Inter-ExtraLightItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/Inter-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-MediumItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-SemiBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Inter-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/Inter-ExtraBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/Inter-Black.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/Inter-BlackItalic.woff2") format("woff2"); }

:root {
    --font-family: "Inter", sans-serif;
    --white: #FFFFFF;
    --cream: #F5F5F0;
    --black: #000000;
    --navy: #0D1C42;
    --muted: #6C757D;
    --light-gray: lightgray;
    --main-width: 1440px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    letter-spacing: -.04em;
}

main {
    min-height: 100vh;
}

.nav-header,
.hero-content,
.exp-content, 
.projects-content, 
.contact-content,
.nav-footer {
    max-width: var(--main-width);
    margin-inline: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

nav > div {
    padding-inline: 2rem;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

/* Logo */
nav > div .logo a {
    text-decoration: none;
    color: var(--black);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Links */
nav > div .links ul {
    display: flex;
    gap: 2rem;
}

nav > div .links ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
}

@media (min-width: 769px) {
    nav > div .links ul li a {
        position: relative;
        transition: color .2s ease-in-out;
    }

    nav > div .links ul li a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -.35rem;
        left: 0;
        height: 2px;
        background-color: var(--navy);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease-in-out;
    }

    nav > div .links ul li a:hover,
    nav > div .links ul li a:focus-visible {
        color: var(--navy);
    }

    nav > div .links ul li a:hover::after,
    nav > div .links ul li a:focus-visible::after {
        transform: scaleX(1);
    }
}

/* ------------------ Header ------------------ */


/* Toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-header-content {
        height: auto;
        min-height: 5rem;
        flex-wrap: wrap;
        gap: 0;
        padding: 1.25rem;
    }

    /* Links */
    .nav-header-content .links {
        display: none;
        flex-basis: 100%;
        width: 100%;
    }

    .nav-header-content .links.is-open {
        display: block;
    }

    .nav-header-content .links ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-header-content .links li a {
        display: block;
        padding-block: 1rem;
        border-top: 1px solid var(--light-gray);
        transition: color .2s ease-in-out, background-color .2s ease-in-out;
    }

    .nav-header-content .links li a:hover,
    .nav-header-content .links li a:focus-visible {
        color: var(--navy);
        background-color: var(--cream);
    }

    /* Toggle */
    .menu-toggle {
        display: grid;
        width: 2.75rem;
        height: 2.75rem;
        place-items: center;
        margin-left: auto;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle img {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ------------------ Main ------------------ */

.title {
    font-size: clamp(1.75rem, 3.64vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 150%;
}

.description {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 150%;
}

.text {
    font-size: clamp(1.125rem, 1.0833rem + 0.1852vw, 1.25rem);
    font-weight: 400;
    line-height: 150%;
}

.text-small {
    margin-bottom: .25rem;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 150%;
}

.button-black, 
.button-outline, 
.button-cream {
    cursor: pointer;
    transition: all .2s ease-in-out;
    width: fit-content;
    padding: .75rem 1.125rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    transition: opacity .2s ease-in-out;
}

.button-black {
    border: 0;
    background-color: var(--black);
    color: var(--white);
}

.button-outline {
    border: 1px solid var(--light-gray);
    background-color: transparent;
    color: var(--black);
}

.button-cream {
    border: 1px solid var(--light-gray);
    background-color: var(--cream);
    color: var(--black);
}

.button-black:hover, 
.button-cream:hover,
.button-outline:hover {
    opacity: .65;
}

.hero-content, .exp-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

#experience, #projects {
    background-color: var(--cream);
}

@media (max-width: 1024px) {
    .hero-content, .exp-content {
        flex-direction: column;
    }
}

.hero-left, .hero-right,
.exp-left, .exp-right {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}  

.hero-left, .hero-right {
    padding: 5rem 2rem 8.75rem 2rem;
}

.exp-left, .exp-right {
    padding: 8.75rem 2rem 4rem 2rem;
}

.hero-right .title, 
.hero-right .description,
.exp-left .title, 
.exp-right .description {
    text-align: left;
}

/* ------------------ Hero ------------------ */

.hero-content {
    height: fit-content;
}

.hero-left {
    /* border: blue solid 1px; */
}

.hero-left h1 {
    font-size: clamp(2rem, 6.25vw, 3.25rem);
    font-weight: 400;
    text-align: left;
    line-height: 130%;
}

/* Profile Picture */
.profile-picture-container {
    margin-bottom: 1.5rem;
}

.profile-picture-container img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.hero-right h2 {
    font-size: clamp(1.25rem, 3.64vw, 2rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 150%;
}

.hero-right .description {
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: clamp(1rem, 2.08vw, 1.5rem);
    padding-block: 1.5rem;
}

@media (max-width: 1024px) {
    .hero-content {
        height: auto;
        padding-block: 2rem;
    }

    .hero-left, .hero-right {
        justify-content: flex-start;
        padding-block: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-left, .hero-right {
        padding: 1.25rem;
    }
}

/* ------------------ Experience ------------------ */

.exp-content {
    /* min-height: calc(80vh - 6rem); */
    align-items: stretch;
    background-color: var(--cream);
}

.exp-left {
    /* border: blue solid 1px; */
}

.exp-right {
    /* border: green solid 1px; */
}

.exp-left, .exp-right {
    height: auto;
}

.exp-left > div, 
.exp-right > div {
    flex: 1;
}

@media (min-width: 1025px) {
    .exp-left, .exp-right {
        align-items: flex-start;
    }
}

/* Experience section */

.experience-list li {
    padding-block: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.experience-list li:last-child {
    border-bottom: none;
}

.experience-list li > div:nth-child(2) {
    flex: 1;
}

.icon-container img {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-container {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--light-gray);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

/* .li-border-bottom {
    border-bottom: 1px solid var(--light-gray);
} */

.experience-list li .text {
    margin-bottom: .25rem;
}

.experience-list li .text span {
    font-weight: 600;
}

/* Tools section */

.tools-content {
    width: 100%;
    /* max-width: 36rem; */
}

.tools-description {
    margin-top: -1.25rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tool-list {
    display: grid;
}

.tool-list > li:last-child {
    border-bottom: none;
}

.tool-group {
    display: grid;
    grid-template-columns: minmax(7rem, .65fr) 1.35fr;
    align-items: start;
    gap: 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.tool-category {
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.tool-tags li {
    font-size: small;
    background-color: var(--white);
    padding: .55rem .75rem;
    border: 1px solid var(--light-gray);
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, .05); */
}

@media (max-width: 1024px) {
    .exp-content {
        min-height: 0;
    }

    .exp-left, .exp-right {
        padding-block: 2rem;
    }

    .tool-group {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}

@media (max-width: 768px) {
    .exp-left{
        padding: 3.5rem 1.25rem;
    }

    .exp-right {
        padding: 0 1.25rem;
    }
    
}

/* ------------------ Projects ------------------ */

.projects-content {
    max-width: var(--main-width);
    margin-inline: auto;
    padding: 4rem 2rem 5rem 2rem;
}

.projects-heading {
    margin-bottom: 3rem;
}

.projects-heading .title {
    margin-bottom: .75rem;
}

.projects-heading .title,
.projects-heading .description {
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
}

.project-preview {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 1.25rem;
}

.project-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: .875rem; */
}

.project-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
    padding-block-start: 0;
}

.project-title {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 600;
}

.project-meta {
    font-size: .9rem;
    padding-block: 1.5rem;
}

.project-meta div:nth-child(1) {
    font-weight: 600;
    margin-bottom: .5rem;
}

.project-description {
    flex: 1;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    gap: 1rem;
    padding-block-start: 1.5rem;
    padding: 1.5rem;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #projects {
        padding: 3.5rem 1.25rem;
    }

    .projects-content {
        padding: 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ------------------ Contact ------------------ */

.contact-content {
    display: flex;
    max-width: var(--main-width);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-inline: auto;
    padding-block: 5rem;
}

.contact-copy {
    max-width: 42rem;
    margin-inline: auto;
}

.contact-copy p {
    text-align: center;
}

.contact-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 6.25vw, 4rem);
    font-weight: 500;
}

.contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-socials li:first-child {
    font-weight: 600;
    margin-left: 0;
}

.contact-socials a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--black);
    font-weight: 500;
    transition: opacity .2s ease-in-out;
}

.contact-socials a:hover {
    opacity: .65;
}

.contact-socials a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

.contact-socials img {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .contact-socials {
        flex-wrap: wrap;
    }

    .contact-socials a span {
        display: none;
    }
}

.cv-link {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.cv-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    #contact {
        padding: 3.5rem 1.25rem;
    }

    .contact-content {
        padding: 0;
    }
}

/* ------------------ Footer ------------------ */

.nav-footer-content {
    min-height: 6rem;
    justify-content: space-between;
    border: 0;
}

.nav-footer-content .logo a {
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
}

.nav-footer-content .links ul {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-footer-content {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
}
