/* =========================
   ROOT / GLOBAL
========================= */

:root {
    --bg: #1A0F13;
    --surface: #2A191E;
    --surface-dark: #241419;

    --cream: #F6EBDD;
    --muted: #B9A1A4;

    --copper: #D88755;
    --gold: #D6AE63;

    --border: rgba(245, 233, 222, 0.08);

    --page-width: 1400px;
    --section-gap: 80px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(214, 174, 99, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--cream);
}

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

a {
    color: inherit;
}

section {
    scroll-margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    color: var(--cream);

    font-family: 'Manrope', sans-serif;
}

p {
    margin: 0;

    font-family: 'Inter', sans-serif;
}

.title {
    width: min(82%, var(--page-width));

    margin:
        var(--section-gap)
        auto
        25px;

    color: var(--cream);

    font-family: 'Manrope', sans-serif;
    font-size: clamp(26px, 2vw, 34px);
    font-weight: 700;
}


/* =========================
   HEADER
========================= */

.header {
    display: flex;
    align-items: center;

    width: min(calc(100% - 80px), var(--page-width));

    margin: 30px auto;
}

.header h1 {
    color: var(--gold);

    font-family: "Geist Mono", monospace;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 700;

    white-space: nowrap;
}

.header ul {
    display: flex;
    align-items: center;

    gap: clamp(20px, 4vw, 60px);

    margin: 0 0 0 auto;
    padding: 0;

    list-style: none;
}

.header a {
    text-decoration: none;
}

.header ul li a,
.header ul li a:visited {
    color: var(--copper);

    font-family: "Geist Mono", monospace;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.15s ease;
}

.header ul li a:hover {
    color: var(--cream);
}

.header ul li a:active {
    color: var(--gold);
    transform: translateY(1px);
}


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

.banner {
    display: flex;
    align-items: center;

    gap: clamp(35px, 6vw, 100px);

    width: min(82%, 1150px);

    margin: 40px auto 0;
    padding: clamp(20px, 3vw, 30px);

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--surface) 0%,
            var(--surface-dark) 100%
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.banner-picture {
    flex: 0 0 auto;

    width: clamp(190px, 18vw, 250px);
    aspect-ratio: 1 / 1;
}

.banner-picture img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 15px;
}

.banner-text {
    display: flex;
    flex: 1;
    flex-direction: column;

    gap: clamp(14px, 2vw, 22px);
}

.banner-text h1 {
    color: var(--cream);

    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;

    line-height: 1.05;
}

.banner-text h2 {
    color: var(--copper);

    font-family: 'Inter', sans-serif;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 600;

    line-height: 1.25;
}

.banner-text p {
    max-width: 700px;

    color: var(--muted);

    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;

    line-height: 1.6;
}


/* =========================
   EXPERIENCE
========================= */

.experience {
    display: flex;
    flex-direction: column;

    width: min(82%, var(--page-width));

    margin: 0 auto;
    padding: clamp(20px, 3vw, 30px);

    border: 1px solid var(--border);
    border-radius: 15px;

    background-color: var(--surface);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.experience:hover {
    transform: translateY(-2px);

    border-color: rgba(216, 135, 85, 0.35);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22);
}

.experience-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 18px 0;
}

.experience-row:not(:last-child) {
    border-bottom: 1px solid rgba(245, 233, 222, 0.06);
}

.experience-role {
    color: var(--cream);

    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;

    line-height: 1.5;
}

.experience-role span {
    color: var(--muted);
    font-weight: 400;
}

.experience-date {
    flex-shrink: 0;

    color: var(--muted);

    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 400;

    white-space: nowrap;

    text-align: right;
}

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

.project-card-container {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: clamp(24px, 3vw, 40px);

    width: min(82%, var(--page-width));

    margin: 0 auto;
}

.project-card-container > a {
    display: block;

    text-decoration: none;
}

.project-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    gap: 8px;
}

.project-card img {
    width: 100%;
    aspect-ratio: 7 / 4;

    object-fit: contain;

    border: 1px solid rgba(245, 233, 222, 0.07);
    border-radius: 15px;

    background-color: var(--surface);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover img {
    transform: translateY(-4px);

    border-color: rgba(216, 135, 85, 0.35);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);
}

.project-card h2 {
    margin-top: 10px;

    color: var(--copper);

    font-family: "Geist Mono", monospace;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 700;
}

.project-card p {
    color: var(--muted);

    font-family: "Geist Mono", monospace;
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 400;

    line-height: 1.6;
}

.project-status {
    margin-top: 6px;

    color: var(--gold);

    font-family: "Geist Mono", monospace;
    font-size: 11px;
    font-weight: 500;
}


/* =========================
   CONTACT
========================= */

.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    width: min(82%, var(--page-width));

    margin: 0 auto var(--section-gap);
    padding: clamp(22px, 3vw, 32px);

    border: 1px solid var(--border);
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--surface) 0%,
            var(--surface-dark) 100%
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);
}

.contact p {
    color: var(--cream);

    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;

    line-height: 1.5;
}

.contact-links {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;

    padding: 11px 18px;

    border: 1px solid rgba(216, 135, 85, 0.35);
    border-radius: 9px;

    color: var(--copper);

    background: rgba(216, 135, 85, 0.04);

    font-family: "Geist Mono", monospace;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);

    color: var(--bg);

    border-color: var(--copper);

    background-color: var(--copper);
}


/* =========================
   LARGE MONITORS
========================= */

@media (min-width: 1700px) {

    :root {
        --page-width: 1500px;
    }

    .banner {
        max-width: 1250px;
    }
}


/* =========================
   LAPTOP / SMALL DESKTOP
========================= */

@media (max-width: 1200px) {

    .header,
    .title,
    .experience,
    .project-card-container,
    .contact {
        width: 88%;
    }

    .banner {
        width: 88%;
    }

    .project-card-container {
        gap: 28px;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    :root {
        --section-gap: 60px;
    }

    .header {
        width: 90%;

        margin-top: 25px;
    }

    .header ul {
        gap: 24px;
    }

    .banner {
        align-items: flex-start;

        gap: 30px;

        width: 90%;
    }

    .banner-picture {
        width: 190px;
    }

    .experience {
        width: 90%;
    }

    .project-card-container {
        width: 90%;

        grid-template-columns: 1fr;
    }

    .project-card {
        align-items: center;
        text-align: center;
    }

    .title {
        width: 90%;
    }

    .contact {
        width: 90%;
    }
}


/* =========================
   SMALL TABLET / LARGE PHONE
========================= */

@media (max-width: 700px) {

    .header {
        flex-direction: column;
        align-items: center;

        gap: 20px;
    }

    .header ul {
        width: 80%;

        margin-left: 0;

        justify-content: space-between;

        gap: 12px;
    }

    .banner {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .banner-picture {
        width: min(220px, 70vw);
    }

    .banner-text {
        align-items: center;
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-links {
        width: 100%;
    }
}


/* =========================
   PHONE
========================= */

@media (max-width: 520px) {

    :root {
        --section-gap: 50px;
    }

    .header {
        width: calc(100% - 32px);

        margin: 20px auto;
    }

    .header h1 {
        font-size: 22px;
    }

    .header ul {
        display: grid;

        width: 50%;
        grid-template-columns: repeat(2, auto);
    }

    .header ul li a {
        font-size: 13px;
    }

    .banner,
    .experience,
    .project-card-container,
    .contact,
    .title {
        width: calc(100% - 32px);
    }

    .banner {
        margin-top: 25px;

        padding: 18px;
    }

    .banner-text h1 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 15px;
    }

    .experience {
        width: calc(100% - 32px);
        padding: 18px;
    }

    .experience-row {
        align-items: flex-start;

        gap: 15px;

        padding: 15px 0;
    }

    .experience-role {
        font-size: 14px;
    }

    .experience-role span {
        display: block;

        margin-top: 3px;

        font-size: 13px;
    }

    .experience-date {
        font-size: 13px;
    }

    .project-card h2 {
        font-size: 14px;
    }

    .project-card p {
        font-size: 11px;
    }

    .contact {
        padding: 20px;
    }

    .contact-links {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 10px;
    }

    .contact-links a {
        min-width: 0;

        padding: 10px 8px;

        font-size: 12px;
    }
}


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

@media (max-width: 380px) {

    .header ul li a{
        grid-template-columns: 1fr 1fr;
        font-size: 12px;
    }

    .banner-picture {
        width: 180px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-links a {
        width: 100%;
    }
}