/* =========================================================
   LAPDI DESIGNS — RESPONSIVE PORTFOLIO
   ========================================================= */

/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f1efe4;
    color: #000;
    overflow-x: hidden;
}

/* ---------- FONTS ---------- */
/*
   The original Figma export referenced Eurostile LT ExtendedTwo
   and Futura Book through Google Fonts, but those specific fonts
   are not Google Fonts web fonts.

   If you own the .woff/.woff2 files, put them in a "fonts" folder
   and we can add @font-face later for an exact match.

   The fallbacks below keep the visual character close for now.
*/

:root {
    --cream: #f1efe4;
    --red: #c70003;
    --blue: #5ea4cc;
    --dark-blue: #0019bd;
    --card: #d9d9d9;
    --text: #000;

    --display-font: "Arial Black", "Arial Narrow", Arial, sans-serif;
    --body-font: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
}


/* ---------- GLOBAL ---------- */

body {
    font-family: var(--body-font);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: min(56vw, 720px);
    min-height: 360px;

    background-image: url("../images/v1_3.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.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;
}

.navbar a {
    color: var(--cream);
    font-size: clamp(14px, 1.4vw, 24px);
    line-height: 1;
    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.navbar a:hover,
.navbar a:focus-visible {
    opacity: 0.65;
}

.hero-title {
    position: absolute;
    z-index: 5;

    left: 0;
    right: 0;
    bottom: 2%;

    margin: 0;

    color: var(--cream);
    font-family: var(--display-font);
    font-size: clamp(58px, 10.8vw, 210px);
    line-height: 0.85;
    letter-spacing: -0.055em;
    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.section-cream {
    background: var(--cream);
}

.section-blue {
    background: var(--blue);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    position: relative;
    min-height: clamp(620px, 58vw, 1050px);

    padding: clamp(70px, 7vw, 130px) clamp(28px, 8vw, 150px);

    overflow: hidden;
}

.about-inner {
    width: min(1500px, 100%);
    min-height: 100%;

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 1.1fr);
    align-items: center;
    gap: clamp(45px, 7vw, 120px);
}

.about-image-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
}

.about-image {
    width: min(100%, 560px);
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    align-self: end;
}

.about-content {
    max-width: 850px;
}

.about-name {
    margin: 0 0 clamp(20px, 2vw, 35px);

    color: var(--red);
    font-family: var(--display-font);
    font-size: clamp(52px, 7vw, 125px);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.about-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 30px;

    margin-bottom: clamp(25px, 3vw, 50px);

    font-family: var(--display-font);
    font-size: clamp(15px, 1.6vw, 32px);
    line-height: 1;
}

.about-role {
    color: var(--dark-blue);
}

.about-location {
    color: var(--blue);
    text-align: right;
}

.about-description {
    max-width: 850px;

    margin: 0;

    color: var(--text);
    font-family: var(--body-font);
    font-size: clamp(17px, 1.55vw, 30px);
    line-height: 1.35;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    position: relative;

    padding: clamp(70px, 7vw, 125px) clamp(28px, 8vw, 150px)
             clamp(100px, 9vw, 170px);

    overflow: hidden;
}

.projects-heading {
    position: relative;

    width: min(1500px, 100%);
    margin: 0 auto clamp(60px, 5vw, 100px);

    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-heading h2 {
    margin: 0;

    color: var(--cream);
    font-family: var(--display-font);
    font-size: clamp(58px, 9.3vw, 180px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-align: center;
}

.projects-cat {
    position: absolute;

    left: 0;
    bottom: -10px;

    width: clamp(85px, 11vw, 210px);
    height: auto;

    transform: translateX(-5%);
}

.projects-grid {
    width: min(1500px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(25px, 3vw, 55px);
}

.project-card {
    display: block;

    aspect-ratio: 480 / 500;

    background: var(--card);
    border-radius: clamp(16px, 1.7vw, 30px);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-8px);
    opacity: 0.9;
}

.project-card-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.contacts {
    position: relative;
    min-height: clamp(470px, 40vw, 760px);

    padding: clamp(80px, 7vw, 140px) clamp(28px, 8vw, 150px)
             clamp(55px, 5vw, 90px);

    overflow: hidden;
}

.contacts-inner {
    position: relative;

    width: min(1500px, 100%);
    min-height: 100%;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
}

.contacts-main {
    position: relative;
    z-index: 2;
}

.contact-intro {
    margin: 0 0 clamp(28px, 3vw, 50px);

    font-size: clamp(18px, 2vw, 40px);
    line-height: 1.1;
}

.email {
    display: inline-block;

    color: var(--red);
    font-size: clamp(35px, 5vw, 96px);
    line-height: 1;

    transition: opacity 0.2s ease;
}

.email:hover,
.email:focus-visible {
    opacity: 0.65;
}

.contacts-cat {
    position: absolute;
    z-index: 1;

    width: clamp(160px, 17vw, 330px);
    height: auto;

    right: 0;
    top: -10px;
}

.contact-links {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 100px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 30px;

    font-size: clamp(16px, 1.65vw, 32px);
}

.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: 900px) {

    .hero {
        height: 58vw;
        min-height: 330px;
    }

    .about {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .about-inner {
        grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
        gap: 45px;
    }

    .about-meta {
        gap: 15px;
    }

    .projects-grid {
        gap: 25px;
    }

    .contacts-cat {
        right: -10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .hero {
        height: 100svh;
        min-height: 560px;
        max-height: 760px;

        background-position: 56% center;
    }

    .navbar {
        top: 22px;
        gap: 22px;

        width: 100%;
        padding: 0 18px;
    }

    .navbar a {
        font-size: 15px;
    }

    .hero-title {
        bottom: 5%;
        font-size: clamp(52px, 16vw, 100px);
        letter-spacing: -0.06em;
    }


    /* ABOUT */

    .about {
        min-height: auto;

        padding: 70px 24px 80px;
    }

    .about-inner {
        display: flex;
        flex-direction: column;

        gap: 30px;
    }

    .about-image-wrap {
        width: 100%;
        align-self: center;
    }

    .about-image {
        width: min(90%, 420px);
    }

    .about-content {
        width: 100%;
        max-width: none;

        text-align: left;
    }

    .about-name {
        font-size: clamp(54px, 16vw, 95px);
        text-align: center;
    }

    .about-meta {
        flex-direction: column;
        align-items: stretch;

        gap: 10px;
        margin-bottom: 25px;

        font-size: 18px;
    }

    .about-location {
        text-align: left;
    }

    .about-description {
        font-size: 17px;
        line-height: 1.45;
    }


    /* PROJECTS */

    .projects {
        padding: 70px 24px 100px;
    }

    .projects-heading {
        justify-content: center;

        margin-bottom: 45px;
    }

    .projects-heading h2 {
        font-size: clamp(55px, 17vw, 90px);
    }

    .projects-cat {
        width: 75px;

        left: -5px;
        bottom: -8px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .project-card {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }


    /* CONTACTS */

    .contacts {
        min-height: 600px;

        padding: 70px 24px 45px;
    }

    .contacts-cat {
        width: 170px;

        right: -35px;
        top: 85px;
    }

    .contact-intro {
        max-width: 250px;

        font-size: 18px;
        line-height: 1.2;
    }

    .email {
        max-width: 100%;

        font-size: clamp(31px, 9.5vw, 55px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .contact-links {
        margin-top: auto;
        padding-top: 220px;

        grid-template-columns: 1fr;
        gap: 18px;

        font-size: 18px;
    }

    .contact-links a:nth-child(1),
    .contact-links a:nth-child(2),
    .contact-links a:nth-child(3) {
        text-align: left;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .hero {
        min-height: 520px;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 14px;
    }

    .about {
        padding-left: 18px;
        padding-right: 18px;
    }

    .projects {
        padding-left: 18px;
        padding-right: 18px;
    }

    .contacts {
        padding-left: 18px;
        padding-right: 18px;
    }

    .projects-cat {
        width: 62px;
    }
}
