/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #0b0b0b;
    color: #f5f5f5;

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================
   GLOBAL
========================= */

.container {
    width: min(90%, 75rem);
    margin-inline: auto;
}

.section {
    padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;

    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-heading span {
    color: #777;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;

    z-index: 100;

    background: rgb(11 11 11 / 80%);

    backdrop-filter: blur(1rem);

    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.nav-container {
    min-height: 5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.nav-menu {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-menu a {
    color: #aaa;
    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-button {
    border: 1px solid #444;

    padding:
        0.65rem
        1.1rem;

    border-radius: 999rem;

    font-size: 0.85rem;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-button:hover {
    background: #fff;
    color: #000;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100svh;

    display: flex;
    align-items: center;

    padding-block:
        8rem
        5rem;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgb(255 255 255 / 8%),
            transparent 30%
        );
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(15rem, 0.6fr);

    align-items: center;

    gap: clamp(3rem, 8vw, 8rem);
}

.eyebrow {
    color: #777;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.2em;
}

.hero h1 {
    margin-top: 0.75rem;

    font-size:
        clamp(
            3.5rem,
            10vw,
            8rem
        );

    line-height: 0.9;

    letter-spacing: -0.07em;
}

.hero h2 {
    margin-top: 1.5rem;

    color: #aaa;

    font-size:
        clamp(
            1.2rem,
            2.5vw,
            2rem
        );

    font-weight: 400;
}

.hero-description {
    max-width: 38rem;

    margin-top: 1.5rem;

    color: #888;

    font-size:
        clamp(
            1rem,
            1.5vw,
            1.2rem
        );
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 2.5rem;
}


/* =========================
   BUTTON
========================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 3.25rem;

    padding-inline: 1.5rem;

    border-radius: 999rem;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-0.2rem);
}

.button.primary {
    background: #fff;
    color: #000;
}

.button.secondary {
    border: 1px solid #444;
    color: #ddd;
}


/* =========================
   PROFILE CARD
========================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: min(100%, 20rem);

    aspect-ratio: 1 / 1;

    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #292929;

    background:
        linear-gradient(
            145deg,
            #181818,
            #0d0d0d
        );

    border-radius: 2rem;

    transform: rotate(3deg);
}

.profile-image {
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 1.25rem;

    background: #fff;
    color: #000;

    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;

    letter-spacing: -0.1em;
}

.profile-info {
    display: flex;
    flex-direction: column;

    gap: 0.2rem;
}

.profile-info span {
    color: #666;
    font-size: 0.75rem;
}

.profile-info strong {
    font-size: 1rem;
}


/* =========================
   ABOUT
========================= */

.about {
    border-top: 1px solid #222;
}

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: clamp(2rem, 8vw, 8rem);
}

.big-text {
    font-size:
        clamp(
            2rem,
            5vw,
            4rem
        );

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.about-grid div:last-child {
    color: #888;

    font-size: 1.05rem;
}

.about-grid p + p {
    margin-top: 1.5rem;
}


/* =========================
   PROJECTS
========================= */

.projects {
    background: #111;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1rem;
}

.project-card {
    min-height: 25rem;

    padding: clamp(1.5rem, 3vw, 2.5rem);

    display: flex;
    flex-direction: column;

    border: 1px solid #292929;

    border-radius: 1.5rem;

    background: #0d0d0d;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    border-color: #555;
}

.project-top {
    display: flex;
    justify-content: space-between;
}

.project-number {
    color: #555;
}

.project-tag {
    padding:
        0.3rem
        0.7rem;

    border: 1px solid #333;

    border-radius: 999rem;

    color: #888;

    font-size: 0.7rem;
}

.project-content {
    margin-top: auto;
}

.project-content h3 {
    font-size:
        clamp(
            1.5rem,
            3vw,
            2.25rem
        );

    line-height: 1;

    letter-spacing: -0.04em;
}

.project-content p {
    margin-top: 1rem;

    color: #777;
}

.project-link {
    margin-top: 2rem;

    color: #fff;

    font-size: 0.85rem;
}


/* =========================
   SKILLS
========================= */

.skills-list {
    border-top: 1px solid #292929;
}

.skill-item {
    display: grid;

    grid-template-columns:
        5rem
        1fr;

    align-items: center;

    padding-block: 1.5rem;

    border-bottom: 1px solid #292929;
}

.skill-item span {
    color: #555;
    font-size: 0.8rem;
}

.skill-item strong {
    font-size:
        clamp(
            1.5rem,
            4vw,
            3rem
        );

    letter-spacing: -0.04em;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding-bottom: 6rem;
}

.contact-box {
    padding:
        clamp(2rem, 6vw, 5rem);

    border-radius: 2rem;

    background: #fff;
    color: #000;
}

.contact-box .eyebrow {
    color: #777;
}

.contact-box h2 {
    margin-top: 1rem;

    font-size:
        clamp(
            3rem,
            8vw,
            7rem
        );

    line-height: 0.9;

    letter-spacing: -0.07em;
}

.contact-box p:not(.eyebrow) {
    max-width: 35rem;

    margin-top: 2rem;

    color: #555;
}

.contact-box .button {
    margin-top: 2rem;

    background: #000;
    color: #fff;
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid #222;

    padding-block: 2rem;

    color: #555;

    font-size: 0.75rem;
}

.footer-container {
    display: flex;

    justify-content: space-between;

    gap: 1rem;
}


/* =========================
   TABLET
========================= */

@media (max-width: 60rem) {

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .profile-card {
        width: min(100%, 18rem);
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 45rem) {

    .container {
        width: min(92%, 75rem);
    }

    .nav-menu {
        display: none;
    }

    .nav-button {
        padding-inline: 1rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: clamp(
            3rem,
            17vw,
            5rem
        );
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 20rem;
    }

    .skill-item {
        grid-template-columns: 3rem 1fr;
    }

    .footer-container {
        flex-direction: column;
    }

}