/* =========================================================
   LAPDI DESIGNS — ABOUT ME
   ========================================================= */


/* =========================================================
   FONTS
   ========================================================= */

@font-face {
    font-family: "Eurostile Extended";
    src: url("fonts/EurostileExtendedBlack.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Futura Book";
    src: url("fonts/FuturaBook.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --cream: #F1EFE4;
    --red: #C70003;
    --blue: #0019BD;
    --light-blue: #5EA4CC;
    --black: #000000;
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--cream);
    color: var(--black);

    font-family: "Futura Book", sans-serif;

    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    position: absolute;
    z-index: 10;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    justify-content: center;
    align-items: center;

    gap: clamp(28px, 5vw, 80px);

    width: max-content;
}

.nav-link {
    color: var(--red);

    font-family: "Futura Book", sans-serif;
    font-size: clamp(14px, 1.4vw, 24px);

    line-height: 1;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    opacity: 0.65;
}

/* =========================================================
   INTRO / HERO
   ========================================================= */

.about-intro {
    position: relative;

    width: 100%;
    height: 1080px;
}


/* -------------------------
   HELLO
   ------------------------- */

.hello-title {
    position: absolute;

    top: 90px;
    left: max(calc((100% - 1614px) / 2), 80px);

    margin: 0;

    font-family: "Eurostile Extended", sans-serif;
    font-size: 80px;
    line-height: 1.1;
    font-weight: 900;

    letter-spacing: -0.05em;

    color: var(--blue);
}


/* -------------------------
   PHOTO
   ------------------------- */

.intro-image {
    position: absolute;

    top: 317px;
    left: max(calc((100% - 1614px) / 2), 80px);

    width: 614px;
}

.intro-image img {
    width: 100%;
    height: auto;
}


/* -------------------------
   NAME
   ------------------------- */

.intro-info {
    position: absolute;

    top: 0;
    right: max(calc((100% - 1542px) / 2), 80px);

    width: 911px;
}

.name {
    position: absolute;

    top: 180px;
    right: 0;

    margin: 0;

    font-family: "Eurostile Extended", sans-serif;
    font-size: 125px;
    line-height: 150px;
    font-weight: 900;

    color: var(--red);
}


/* -------------------------
   ROLE + LOCATION
   ------------------------- */

.role-location {
    position: absolute;

    top: 641px;
    right: 0;

    width: 911px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role,
.location {
    margin: 0;

    font-family: "Eurostile Extended", sans-serif;
    font-size: 32px;
    line-height: 44px;
    font-weight: 900;

    letter-spacing: -0.05em;
}

.role {
    color: var(--blue);
}

.location {
    color: var(--light-blue);
    text-align: right;
}


/* -------------------------
   DESCRIPTION
   ------------------------- */

.intro-description {
    position: absolute;

    top: 704px;
    right: 0;

    width: 911px;

    margin: 0;

    font-family: "Futura Book", sans-serif;
    font-size: 30px;
    line-height: 40px;
    font-weight: 500;

    letter-spacing: -0.05em;

    text-align: justify;

    color: var(--black);
}


/* =========================================================
   COMMON SECTION TITLES
   ========================================================= */

h2 {
    margin: 0;

    font-family: "Eurostile Extended", sans-serif;
    font-size: 32px;
    line-height: 44px;
    font-weight: 900;

    letter-spacing: -0.05em;

    color: var(--red);
}


/* =========================================================
   SKILLS SECTION
   ========================================================= */

.skills-section {
    position: relative;

    width: calc(100% - 320px);
    max-width: 1528px;

    margin: 0 auto;

    min-height: 1080px;

    border-top: 1px solid var(--blue);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    column-gap: 100px;

    padding: 50px 8px 0;
}


/* -------------------------
   EDUCATION
   ------------------------- */

.education-column {
    padding-left: 0;
}

.education-text {
    margin-top: 0;

    max-width: 620px;

    font-size: 30px;
    line-height: 43px;

    letter-spacing: -0.05em;
}

.education-text p {
    margin: 0 0 42px;
}


/* -------------------------
   SOFT SKILLS
   ------------------------- */

.soft-title {
    margin-top: 42px;
}

.soft-skills {
    margin-top: 0;

    max-width: 620px;

    font-size: 30px;
    line-height: 43px;

    letter-spacing: -0.05em;
}

.soft-skills p {
    margin: 0;
}


/* -------------------------
   HARD SKILLS
   ------------------------- */

.hard-skills-column {
    padding-left: 0;
}

.hard-skills {
    margin-top: 0;

    max-width: 600px;

    font-size: 30px;
    line-height: 43px;

    letter-spacing: -0.05em;

    color: var(--black);
}

.hard-skills p {
    margin: 0;
}


/* -------------------------
   LANGUAGES
   ------------------------- */

.languages {
    margin-top: 35px;
}

.languages h2 {
    margin-bottom: 5px;
}

.languages p {
    margin: 0;

    font-family: "Futura Book", sans-serif;
    font-size: 30px;
    line-height: 40px;
    font-weight: 500;

    letter-spacing: -0.05em;

    color: var(--black);
}


/* =========================================================
   EXPERIENCES
   ========================================================= */

.experiences-section {
    position: relative;

    width: calc(100% - 320px);
    max-width: 1528px;

    min-height: 642px;

    margin: 0 auto;

    padding: 50px 0 0;
}

.experiences-section .section-line {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    border-top: 1px solid var(--blue);
}

.experiences-section h2 {
    margin-left: 0;
}

.experiences-text {
    margin-top: 12px;

    width: 100%;
    max-width: 1380px;

    font-size: 30px;
    line-height: 43px;

    letter-spacing: -0.05em;

    color: var(--black);
}

.experiences-text p {
    margin: 0;
}


/* =========================================================
   INTERESTS
   ========================================================= */

.interests-section {
    position: relative;

    width: calc(100% - 320px);
    max-width: 1528px;

    margin: 0 auto;

    padding-top: 50px;
}

.interests-section .section-line {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    border-top: 1px solid var(--blue);
}

.interests-section h2 {
    margin-left: 0;
}

.interests-image {
    width: 100%;

    margin-top: 3px;
}

.interests-image img {
    width: 100%;
    height: auto;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.contacts {
    position: relative;

    z-index: 2;

    min-height: clamp(470px, 40vw, 760px);

    padding:
        clamp(80px, 7vw, 140px)
        clamp(28px, 8vw, 150px)
        25px;

    overflow: visible;

    display: flex;

    flex-direction: column;

    background: var(--cream);
}


/* ---------- CONTACT INNER ---------- */

.contacts-inner {
    position: relative;

    width: min(1500px, 100%);

    flex: 1;

    min-height: 0;

    margin: 0 auto;

    display: flex;

    flex-direction: column;
}


/* ---------- CONTACT MAIN ---------- */

.contacts-main {
    position: relative;

    z-index: 3;
}


/* ---------- INTRO ---------- */

.contact-intro {
    margin:
        0
        0
        clamp(28px, 3vw, 50px);

    font-family: "Futura Book", sans-serif;
    font-size: clamp(18px, 2vw, 40px);

    line-height: 1.1;

    color: var(--black);

    white-space: nowrap;
}


/* =========================================================
   EMAIL
   ========================================================= */

.email {
    display: inline-block;

    color: var(--red);

    font-family: "Futura Book", sans-serif;
    font-size: clamp(35px, 5vw, 96px);

    line-height: 1;

    transition: opacity 0.2s ease;

    white-space: nowrap;

    overflow: visible;
}

.email:hover,
.email:focus-visible {
    opacity: 0.65;
}


/* =========================================================
   CONTACT CAT
   ========================================================= */

.contacts-cat {
    position: absolute;

    z-index: 10;

    width: clamp(130px, 14vw, 270px);

    height: auto;

    right: 0;

    top: 0;
}


/* =========================================================
   CONTACT LINKS
   ========================================================= */

.contact-links {
    position: relative;

    z-index: 3;

    margin-top: auto;

    padding: 0;

    display: flex;

    flex-direction: row;

    justify-content: space-between;

    align-items: flex-end;

    width: 100%;

    gap: clamp(10px, 3vw, 40px);

    font-family: "Futura Book", sans-serif;
    font-size: clamp(16px, 1.65vw, 32px);

    line-height: 1;

    color: var(--black);

    white-space: nowrap;
}

.contact-links a {
    display: block;

    flex: 0 1 auto;

    min-width: 0;

    color: var(--black);

    white-space: nowrap;
}

.contact-links a:nth-child(1) {
    text-align: left;
}

.contact-links a:nth-child(2) {
    text-align: center;
}

.contact-links a:nth-child(3) {
    text-align: right;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .navbar {
        width: 620px;
    }

    .nav-link {
        font-size: 27px;
    }


    /* ---------- HERO ---------- */

    .about-intro {
        height: auto;
        min-height: 1050px;
    }

    .hello-title {
        left: 7vw;
        font-size: 64px;
    }

    .intro-image {
        left: 7vw;
        width: 45vw;
        max-width: 614px;
    }

    .intro-info {
        right: 7vw;
        width: 43vw;
    }

    .name {
        font-size: 85px;
        line-height: 100px;
    }

    .role-location {
        width: 100%;
    }

    .role,
    .location {
        font-size: 24px;
        line-height: 34px;
    }

    .intro-description {
        width: 100%;
        font-size: 24px;
        line-height: 34px;
    }


    /* ---------- BODY ---------- */

    .skills-section,
    .experiences-section,
    .interests-section,
    footer {
        width: calc(100% - 14vw);
    }

    .skills-section {
        column-gap: 60px;
    }

    .education-text,
    .soft-skills,
    .hard-skills,
    .experiences-text {
        font-size: 24px;
        line-height: 34px;
    }

    h2 {
        font-size: 27px;
    }

    .languages p {
        font-size: 24px;
        line-height: 34px;
    }


    /* ---------- CONTACTS ---------- */

    .contacts {
        padding-bottom: 20px;
    }

    .contacts-cat {
        width: 195px;

        right: -5px;

        top: 0;
    }

    .contact-links {
        gap: 20px;

        font-size: clamp(14px, 1.9vw, 24px);

        white-space: nowrap;
    }

    .contact-links a {
        white-space: nowrap;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* -------------------------
       NAVIGATION
       ------------------------- */

    .navbar {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        width: 100%;

        padding: 20px 20px 0;

        grid-template-columns: repeat(3, 1fr);
    }

    .nav-link {
        height: 50px;

        font-size: 18px;
        line-height: 24px;
    }


    /* -------------------------
       HERO
       ------------------------- */

    .about-intro {
        height: auto;
        min-height: 0;

        padding: 55px 25px 70px;

        display: flex;
        flex-direction: column;
    }

    .hello-title {
        position: static;

        font-size: 43px;
        line-height: 1;

        margin-bottom: 40px;
    }

    .intro-image {
        position: static;

        width: 100%;
        max-width: 500px;

        margin: 0 auto 50px;
    }

    .intro-info {
        position: static;

        width: 100%;
    }

    .name {
        position: static;

        font-size: 60px;
        line-height: 70px;

        margin-bottom: 35px;
    }

    .role-location {
        position: static;

        width: 100%;

        margin-bottom: 20px;
    }

    .role,
    .location {
        font-size: 18px;
        line-height: 25px;
    }

    .intro-description {
        position: static;

        width: 100%;

        font-size: 19px;
        line-height: 28px;

        text-align: justify;
    }


    /* -------------------------
       BODY SECTIONS
       ------------------------- */

    .skills-section,
    .experiences-section,
    .interests-section {
        width: calc(100% - 50px);

        margin-left: 25px;
        margin-right: 25px;
    }

    .skills-section {
        min-height: auto;

        display: block;

        padding: 35px 0 60px;

        border-top: 1px solid var(--blue);
    }

    h2 {
        font-size: 21px;
        line-height: 29px;
    }

    .education-text,
    .soft-skills,
    .hard-skills,
    .experiences-text {
        font-size: 18px;
        line-height: 27px;
    }

    .education-text {
        margin-top: 20px;
    }

    .education-text p {
        margin-bottom: 35px;
    }

    .soft-title {
        margin-top: 55px;
    }

    .soft-skills {
        margin-top: 20px;
    }

    .hard-skills-column {
        margin-top: 65px;
    }

    .hard-skills {
        margin-top: 20px;
    }

    .languages {
        margin-top: 50px;
    }

    .languages p {
        margin-top: 8px;

        font-family: "Futura Book", sans-serif;
        font-size: 19px;
        line-height: 27px;

        color: var(--black);
    }


    /* -------------------------
       EXPERIENCES
       ------------------------- */

    .experiences-section {
        min-height: auto;

        padding: 35px 0 65px;
    }

    .experiences-section h2 {
        margin-left: 0;
    }

    .experiences-text {
        margin-top: 20px;

        color: var(--black);
    }

    .experiences-text p {
        margin-bottom: 20px;
    }


    /* -------------------------
       INTERESTS
       ------------------------- */

    .interests-section {
        padding-top: 35px;
    }

    .interests-image {
        margin-top: 20px;
    }


    /* =====================================================
       CONTACTS — MOBILE
       ===================================================== */

    .contacts {
        min-height: 0;

        height: clamp(400px, 100vw, 540px);

        padding:
            55px
            24px
            25px;

        overflow: visible;
    }

    .contacts-inner {
        width: 100%;

        height: 100%;

        min-height: 0;
    }


    /* ---------- CAT ---------- */

    .contacts-cat {
        width: min(29vw, 125px);

        right: -8px;

        top: 0;
    }


    /* ---------- INTRO ---------- */

    .contact-intro {
        width: calc(100% - 80px);

        max-width: none;

        margin:
            0
            0
            18px;

        font-size: clamp(10px, 3.5vw, 18px);

        line-height: 1;

        white-space: nowrap;
    }


    /* ---------- EMAIL ---------- */

    .email {
        display: block;

        width: max-content;

        max-width: 100%;

        font-size: min(6.2vw, 40px);

        line-height: 1.08;

        letter-spacing: -0.025em;

        white-space: nowrap;

        overflow: visible;
    }


    /* ---------- CONTACT LINKS ---------- */

    .contact-links {
        display: flex;

        flex-direction: row;

        justify-content: space-between;

        align-items: flex-end;

        width: 100%;

        margin-top: auto;

        padding: 0;

        gap: 6px;

        font-size: clamp(8px, 3.6vw, 18px);

        line-height: 1;

        white-space: nowrap;
    }

    .contact-links a {
        display: block;

        width: auto;

        max-width: none;

        flex: 0 1 auto;

        min-width: 0;

        white-space: nowrap;

        overflow: visible;
    }

    .contact-links a:nth-child(1) {
        text-align: left;
    }

    .contact-links a:nth-child(2) {
        text-align: center;
    }

    .contact-links a:nth-child(3) {
        text-align: right;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (min-width: 1201px) {
    .intro-info { top: 317px; width: 640px; }
    .name { position: static; font-size: 92px; line-height: 1; margin: 0 0 42px; }
    .role-location { position: static; width: 100%; min-height: 44px; }
    .role, .location { width: 50%; font-size: 28px; line-height: 1.2; }
    .intro-description { position: static; width: 100%; margin-top: 24px; font-size: 27px; line-height: 1.3; }
    .experiences-section { min-height: 642px; display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
    .experiences-section .section-line { top: 0; }
    .experiences-text { margin-top: 22px; }
    .experiences-text p { margin-bottom: 43px; }
}

@media (min-width:701px) and (max-width:1200px) {
    .about-intro { min-height: 950px; }
    .intro-image { width: 39vw; top: 310px; }
    .intro-info { top: 300px; width: 45vw; }
    .name { position: static; width: 100%; font-size: clamp(48px,6.2vw,72px); line-height: 1; margin: 0 0 32px; }
    .role-location { position: static; width: 100%; }
    .intro-description { position: static; width: 100%; margin-top: 22px; }
}

@media (max-width: 380px) {

    .navbar {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }


    /* ---------- HERO ---------- */

    .hello-title {
        font-size: 40px;
    }

    .name {
        font-size: 52px;
        line-height: 62px;
    }


    /* ---------- BODY ---------- */

    .skills-section,
    .experiences-section,
    .interests-section {
        width: calc(100% - 36px);

        margin-left: 18px;
        margin-right: 18px;
    }

    .education-text,
    .soft-skills,
    .hard-skills,
    .experiences-text {
        font-size: 17px;
        line-height: 25px;
    }

    h2 {
        font-size: 20px;
        line-height: 27px;
    }

    .languages p {
        font-size: 17px;
        line-height: 25px;
    }


    /* =====================================================
       CONTACTS — SMALL PHONES
       ===================================================== */

    .contacts {
        height: clamp(370px, 105vw, 450px);

        padding-left: 18px;
        padding-right: 18px;

        padding-top: 45px;
        padding-bottom: 25px;
    }

    .contacts-cat {
        width: 27vw;

        max-width: 105px;

        right: -8px;

        top: 0;
    }

    .contact-intro {
        width: calc(100% - 65px);

        font-size: 3.4vw;

        white-space: nowrap;
    }

    .email {
        font-size: 6vw;

        line-height: 1.08;

        white-space: nowrap;

        overflow: visible;
    }

    .contact-links {
        display: flex;

        flex-direction: row;

        justify-content: space-between;

        align-items: flex-end;

        gap: 3px;

        width: 100%;

        font-size: 3.25vw;

        line-height: 1;

        white-space: nowrap;
    }

    .contact-links a {
        white-space: nowrap;

        flex: 0 1 auto;

        min-width: 0;
    }
}
