@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight/InterTight-VariableFont_wght.woff2") format("woff2"),
        url("../fonts/inter-tight/InterTight-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-body: #1F1F1F;
    --bg-header: #121212;
    --bg-footer: var(--bg-header);
    --bg-card: #2A2A2A;
    --bg-cta: #1a1a1a;
    --text-header: #e0e0e0;
    --text-paragraph: #bcbbbb;
    --text-navbar: var(--text-paragraph);
    --text-navbar-active: var(--text-header);
    --text-teal: #5e8d87;
    --text-purple: #7D6E99;
    --photo-border: #666666;

    --btn-bd-color: #7D6E99;
    --btn-bd-active-color: #bcbbbb;
    --btn-bd-active-bg: var(--bg-body);
    --btn-bd-active-border-color: #E0E0E0;
    --btn-bd-border-color: var(--btn-bd-color);
    --btn-bd-hover-bg: var(--text-paragraph);
    --btn-bd-hover-border-color: var(--text-paragraph);
    --btn-bd-hover-color: var(--bg-body);
    --keyboard-navigation: var(--text-teal);
    --container-xl: 74rem;
    --container-xxl: 96rem;
    --container-3xl: 124rem;
}

body {
    margin: 0;
    font-family: "Inter Tight", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: var(--container-3xl);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

@media (max-width: 140rem) {
    .container {
        max-width: var(--container-xxl);
        margin-inline: auto;
        padding-inline: clamp(16px, 4vw, 32px);
    }
}


@media (max-width: 100rem) {
    .container {
        max-width: var(--container-xl);
        margin-inline: auto;
        padding-inline: clamp(16px, 4vw, 32px);
    }
}

header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    margin-top: 4px;
}

.header-logo img {
    width: 38px;
    height: 38px;
}

.navbar {
    flex: 1 1 100%;
    margin-top: 8px;
}

@media (min-width: 64rem) {
    .navbar {
        flex: 0 0 auto;
        margin-top: 0;
    }
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding-block: 12px;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 12px 12px;
    border-radius: 6px;
    font-size: clamp(18px, 0.7rem + 0.6vw, 40px);
    color: var(--text-navbar);
    text-decoration: none;
    line-height: 1;
    transition: background-color .11s, color .11s;
    user-select: none;
}

@media (max-width: 1023px) {
    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        width: 100%;
        padding-block: 12px;
        margin-block: 2px;
    }
    .header-inner{
        padding-block: 6px;
    }
}

.nav-link:hover, .nav-link[aria-current="page"], .nav-link:focus-visible {
    color: var(--text-navbar-active);
    background: var(--bg-body);
}

.nav-link:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    color: var(--text-header);
    background: var(--bg-header);
    cursor: pointer;
    transition: background-color .11s, color .11s;
}

@media (hover:hover) and (pointer:fine) {
    .burger:hover {
        background: var(--bg-body);
    }
}

.nav-toggle:focus-visible+.burger {
    background: var(--bg-body);
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.icon {
    font-size: 22px;
    line-height: 1;
    color: var(--text-header);
}

.icon--close {
    display: none;
}

.nav-toggle:checked+.burger .icon--open {
    display: none;
}

.nav-toggle:checked+.burger .icon--close {
    display: inline-block;
}

.navbar {
    display: none;
}

.nav-toggle:checked~nav.navbar {
    display: block;
}

@media (min-width: 64rem) {
    .burger {
        display: none;
    }

    .navbar {
        display: block;
    }
}

.home, .about, .edu, .skills, .exp, .exp-intro {
    background: var(--bg-body);
    color: var(--text-paragraph);
    padding-block: clamp(48px, 6vw, 72px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about, .skills {
    padding-block: 0px;
}

.edu {
    padding: clamp(48px, 0.4vw, 72px) 36px;
}

.exp-intro {
    padding-block: 0;
    min-height: 90vh;
}

.edu-cards, .exp-cards {
    display: flex;
    justify-content: center;
    flex-flow: column;
    margin: auto;
}

.about-inner, .skills-inner, .exp-inner {
    display: flex;
    justify-content: center;
    flex-flow: column;
    margin: 0 auto;
}

.home-inner, .about-section, .edu-card-inner, .exp-card-inner, .skills-section, .exp-section, .exp-intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 56px);
}

.edu-card-inner, .exp-card-inner {
    background: var(--bg-card);
    padding: 48px 48px;
    border-radius: 1rem;
    margin-block: 4vh;
}

.exp-card-inner {
    text-align: center;
}

.about-section, .skills-section, .exp-section {
    margin-block: 8vh;  
}

.exp-intro-section {
    margin-block: 4vh;
}

@media (max-width: 64rem) {
    .edu {
        padding: clamp(28px, 0.2vw, 72px) 24px;
    }

    .edu-card-inner {
        padding: 36px 24px;
    }

    .exp-card-inner {
        padding: 24px 16px;
    }

    .exp-inner {
        text-align: center;
    }

    .exp-intro-section {
        margin-block: 3vh;
    }

    .exp-content {
        max-width: 90ch;
    }

    .reverse {
        flex-direction: column-reverse;
    }
}

@media (max-width: 56rem) {
    .edu {
        padding: 0;
    }

    .exp-content {
        max-width: 100%;
    }

    .edu-card-inner {
        padding: 36px 24px;
        border-radius: 0;
        margin-block: 0;
    }

    .exp-card-inner {
        padding: 28px 16px 0 16px;
        border-radius: 0;
        margin-block: 0;
    }

}

@media (min-width: 64rem) {
    .home-inner, .about-section, .edu-card-inner, .skills-section, .exp-section, .exp-intro-section {
        flex-direction: row;
        align-items: center;
    }

    .exp-card-inner {
        flex-direction: column;
    }

    .about-section, .skills-section{
        flex-direction: row-reverse;
    }
}

.alt-bg-section {
    background: var(--bg-card);
}

.alt-bg-card {
    background: var(--bg-body);
}

.home-media, .about-media, .edu-media, .skills-media, .exp-media, .exp-card-media {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.exp-media, .exp-card-media {
    margin-block: clamp(40px, 2vw, 54px);
}

@media (max-width: 48rem) {
    .home-media, .about-media, .edu-media, .skills-media, .exp-media, .exp-card-media {
        margin-bottom: 14px;
    }
}

.home-media img, .about-media img, .edu-media img, .skills-media img, .exp-card-media img, .exp-media img {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(86vw, 400px);
    height: min(86vw, 400px);
    border-radius: 50%;
    outline: 4px solid var(--photo-border);
    outline-offset: 2px;
}

.about-media img, .edu-media img, .skills-media img, .exp-card-media img, .exp-media img {
    border-radius: 5%;
}

.exp-media img {
    width: min(86vw, 440px);
    border-radius: 0.7rem;
    height: auto;
}

.exp-card-media img {
    width: min(86vw, 640px);
    border-radius: 0.7rem;
    height: auto;
}

@media (min-width: 48rem) {
    .about-first-media img {
        width: min(86vw, 440px);
        height: min(86vw, 526px);
    }
    .edu-media img {
        width: min(86vw, 400px);
        height: min(86vw, 400px);
    }
    .about-second-media img {
        width: min(86vw, 443px);
        height: min(86vw, 386px);
    }
    .about-third-media img {
        width: min(86vw, 442px);
        height: min(86vw, 410px);
    }
    .skills-first-media img {
        height: min(86vw, 300px);
        width: min(86vw, 450px);
    }
    .skills-second-media img {
        height: min(86vw, 508px);
        width: min(86vw, 360px);
    }
    .skills-third-media img {
        height: min(86vw, 468px);
        width:  min(86vw, 337px);
    }
}

@media (max-width: 64rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        text-align: center;
    }
}

@media (min-width: 72rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        max-width: 68ch;
    }
}

@media (min-width: 90rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        max-width: 74ch;
    }
}

@media (min-width: 110rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        max-width: 80ch;
    }

    .home-media img {
        width: min(86vw, 440px);
        height: min(86vw, 440px);
    }

    .about-first-media img {
        width: min(86vw, 480px);
        height: min(86vw, 566px);
    }
    
    .about-second-media img {
        width: min(86vw, 570px);
        height: min(86vw, 446px);
    }

    .about-third-media img {
        width: min(86vw, 582px);
        height: min(86vw, 500px);
    }
    .skills-first-media img {
        width: min(86vw, 550px);
        height: min(86vw, 400px);
    }
    .skills-second-media img {
        height: min(86vw, 568px);
        width: min(86vw, 420px);
    }
    .skills-third-media img {
        height: min(86vw, 508px);
        width: min(86vw, 377px);
    }
}

@media (min-width: 120rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        max-width: 90ch;
    }
    .home-media img {
        width: min(86vw, 460px);
        height: min(86vw, 460px);
    }
    .about-first-media img {
        width: min(86vw, 540px);
        height: min(86vw, 626px);
    }

    .about-third-media img {
        width: min(86vw, 582px);
        height: min(86vw, 500px);
    }
}

@media (min-width: 140rem) {
    .home-content, .about-content, .edu-content, .skills-content{
        max-width: 100ch;
    }
    .home-media img {
        width: min(86vw, 540px);
        height: min(86vw, 540px);
    }

    .about-first-media img, .edu-media img {
        height: min(86vw, 576px);
        width: min(86vw, 500px);
    }
    
    .about-second-media img {
        width: min(86vw, 600px);
        height: min(86vw, 506px);
    }
    
    .about-third-media img {
        width: min(86vw, 602px);
        height: min(86vw, 540px);
    }
    .skills-first-media img {
        width: min(86vw, 600px);
        height: min(86vw, 450px);
    }
    .skills-second-media img {
        height: min(86vw, 628px);
        width: min(86vw, 470px);
    }
    .skills-third-media img {
        height: min(86vw, 548px);
        width: min(86vw, 407px);
    }
}

@media (max-width: 48rem) {
    .home-media img {
        width: min(86vw, 340px);
        height: auto;
    }
    .about-first-media img {
        width: min(86vw, 340px);
        height: min(86vw, 407px);
    }
    .about-second-media img {
        width: min(86vw, 353px);
        height: min(86vw, 276px);
    }
    .about-third-media img {
        width: min(86vw, 342px);
        height: min(86vw, 300px);
    }
    .skills-first-media img {
        height: min(66vw, 260px);
        width: auto;
    }
    .skills-second-media img {
        height: min(86vw, 508px);
        width: min(86vw, 360px);
    }
    .skills-third-media img {
        height: min(86vw, 468px);
        width:  min(86vw, 337px);
    }
}

@media (max-width: 40rem) {
    .home-media img {
        width: min(98vw, 260px);
        height: auto;
    }
    .about-first-media img {
        width: min(56vw, 260px);
        height: auto;
    }
    .about-second-media img {
        width: min(72vw, 283px);
        height: auto;
    }
    .about-third-media img {
        width: min(72vw, 282px);
        height: min(72vw, 260px);
    }
    .skills-first-media img {
        height: min(48vw, 230px);
        width: auto;
    }
    .skills-second-media img {
        height: min(72vw, 438px);
        width: auto;
    }
    .skills-third-media img {
        height: min(72vw, 408px);
        width: auto;
    }
    .edu-media img {
        width: min(56vw, 300px);
        height: auto;
    }
}

.home-title, .about-title, .edu-title, .skills-title, .exp-title{
    margin: 0 0 4px;
    color: var(--text-header);
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(30px, 2.2vw + 0.8rem, 84px);
}

.about-title, .edu-title, .skills-title, .exp-title {
    margin: 0 0 26px;
    font-size: clamp(30px, 2.2vw + 0.75rem, 84px);
}

h2.exp-title{
    margin: 0 0 46px;
    text-align: center;
    max-width: 40ch;
}

.home-subtitle {
    margin: 0 0 12px;
    color: var(--text-header);
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(28px, 2.0vw + 0.7rem, 80px);
}


.home-text p, .home-text h3, .about-text p, .skills-text p, .edu-text p, .exp-text p, .text-link {
    margin: 0 0 12px;
    color: var(--text-paragraph);
    font-size: clamp(19px, 0.5vw + 1rem, 78px);
    text-underline-offset: 6px;
}

.edu-text p {
    align-items: center;
}

.exp-text p {
    max-width: 80ch;
}

.about-text p, .edu-text p, .skills-text p, .exp-text p, .text-link {
    font-size: clamp(19px, 0.5vw + 0.85rem, 78px);
}

.text-link:hover {
    color: var(--text-header);
}

.home-text h3{
    font-weight: 600;
    font-size: clamp(22px, 0.5vw + 1.2rem, 70px);
}

.btn {
    display: inline-block;
    padding: 10px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    user-select: none;
    transition: background-color .12s, color .12s, border-color .12s, transform .12s;
}

.btn:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
}

.text-link:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
    border-radius: 0.4rem;
}

.btn--outline {
    color: var(--btn-bd-color);
    border: 2px solid var(--btn-bd-border-color);
    border-radius: 2rem;
    padding-block: 13px;
    font-size: 19px;
    background: transparent;
}


.btn--outline:hover {
    color: var(--btn-bd-hover-color);
    background: var(--btn-bd-hover-bg);
    border-color: var(--btn-bd-hover-border-color);
    transform: translateY(-2px);
}

.btn--outline:active {
    color: var(--btn-bd-active-color);
    background: var(--btn-bd-active-bg);
    border-color: var(--btn-bd-active-border-color);
}

.btn--icon {
    width: 54px;
    height: 54px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    border: 1px solid var(--btn-bd-border-color);
    background: var(--bg-body);
    color: var(--btn-bd-color);
}

.btn--icon i {
    font-size: 28px;
}

@media (min-width: 96rem) {
    .btn--outline {
        padding-block: 16px;
        font-size: 22px;
    }
    .btn--icon{
        width: 64px;
        height: 64px;
    }
    .btn--icon i {
        font-size: 34px;
    }
}

@media (hover:hover) and (pointer:fine) {
    .btn--icon:hover {
        background: var(--btn-bd-hover-bg);
        color: var(--btn-bd-hover-color);
        transform: translateY(-2px);
    }
}

.btn--icon:active{
    background: var(--btn-bd-active-bg);
    color: var(--btn-bd-active-color);
    border-color: var(--btn-bd-active-border-color);
}

.social {
    margin-block: 14px 18px;
}

.social-list {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 64rem) {
    .social-list, .home-cta{
        justify-content: center;
    }
}

.home-cta {
    display: flex;
    margin: auto;
}

.cta {
    background: var(--bg-cta);
    padding-block: clamp(24px, 6vw, 64px);
}

.cta-inner {
    background: var(--text-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 36px 136px;
    flex-wrap: wrap;
}

@media (max-width:1400px) {
    .cta-inner {
        width: 90%;
    }
}

.cta-title {
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-size: clamp(26px, 1vw + 0.9rem, 72px);
    color: var(--bg-body);
}

.cta-text {
    margin: 0;
    color: var(--bg-header);
    font-size: clamp(18px, 0.6vw + 0.6rem, 84px);
    font-weight: 350;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

@media (max-width: 74rem) {
    .cta-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 2vw;
    }

    .cta-title, .cta-text, .btn {
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
    .social .cta-actions {
        margin-block: 0 0;
    }
}

.accent-teal {
    color: var(--text-teal);
}

.accent-purple {
    color: var(--text-purple);
}

footer {
    background: var(--bg-footer);
    color: var(--text-navbar);
    padding-block: 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav .nav-list {
    gap: 6px 12px;
}

.footer-nav .nav-link {
    font-size: clamp(18px, 0.6rem + 0.6vw, 40px);
    padding: 6px 10px;
}

.footer-inner .nav-link, .footer-inner .nav-link[aria-current="page"] {
    background: var(--bg-footer);
    color: var(--text-navbar);
    text-decoration: none;
}

.footer-inner .nav-link:hover, .footer-inner .nav-link[aria-current="page"]:hover {
    color: var(--text-navbar-active);
    text-underline-offset: 4px;
    text-decoration-line: underline;
}

.footer-inner .nav-link:focus-visible {
    outline: 3px solid var(--keyboard-navigation);
    outline-offset: 2px;
    text-underline-offset: 4px;
    text-decoration-line: underline;
}

@media (max-width:64rem) {
    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-nav .nav-link {
        width: 100%;
        text-align: center;
        margin-block: 2px;
        padding-block: 12px;
    }

    .legal {
        width: 100%;
        margin-block: 8px;
    }
}