:root {
    --background: #0b0d10;
    --surface: #111418;
    --surface-hover: #161a20;

    --text: #f3f3f3;
    --text-muted: #9da3ad;

    --border: #252a31;

    --accent: #64a9ff;

    --content-width: 1300px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        Arial,
        sans-serif;

    line-height: 1.6;
}


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


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


/* -------------------- */
/* TOPBAR */
/* -------------------- */

.topbar {
    border-bottom: 1px solid var(--border);
}


.topbar-inner {
    max-width: var(--content-width);

    margin: 0 auto;

    padding: 22px 32px;

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


.logo {
    font-size: 1.1rem;
    font-weight: 700;
}


nav {
    display: flex;
    gap: 30px;
}


nav a {
    color: var(--text-muted);

    transition: color 0.2s ease;
}


nav a:hover {
    color: var(--text);
}


/* -------------------- */
/* HERO */
/* -------------------- */

.hero {
    border-bottom: 1px solid var(--border);
}


.hero-inner {
    max-width: var(--content-width);

    margin: 0 auto;

    padding:
        150px
        32px
        170px;
}


.hero-role {
    margin-bottom: 25px;

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}


.hero h1 {
    max-width: 950px;

    font-size: clamp(3rem, 7vw, 6.8rem);

    line-height: 0.98;

    letter-spacing: -0.04em;

    margin-bottom: 35px;
}


.hero-description {
    max-width: 650px;

    color: var(--text-muted);

    font-size: 1.2rem;

    margin-bottom: 35px;
}


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

    gap: 30px;
}


.primary-button {
    background: var(--text);
    color: var(--background);

    padding: 13px 20px;

    border-radius: 5px;

    font-weight: 700;
}


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


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


/* -------------------- */
/* PROJECTS */
/* -------------------- */

.projects-section {
    max-width: var(--content-width);

    margin: 0 auto;

    padding: 120px 32px;
}


.section-title {
    margin-bottom: 70px;
}


.section-title p,
.section-label {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.15em;

    margin-bottom: 10px;
}


.section-title h2 {
    font-size: 3rem;
}


/* -------------------- */
/* PROJECT CARD */
/* -------------------- */

.project {
    display: grid;

    grid-template-columns:
        2fr
        1fr;

    aspect-ratio: 8 / 3;

    margin-bottom: 120px;

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

    background: var(--surface);

    overflow: hidden;
}


/* Alternate layout */

.project.reverse {
    grid-template-columns:
        1fr
        2fr;
}


.project.reverse .project-image {
    order: 2;
}


.project.reverse .project-content {
    order: 1;
}


/* -------------------- */
/* PROJECT IMAGE */
/* -------------------- */

.project-image {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #050607;
}


.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        0.5s
        ease;
}


.project:hover .project-image img {
    transform: scale(1.015);
}


/* -------------------- */
/* PROJECT CONTENT */
/* -------------------- */

.project-content {
    height: 100%;

    padding: 32px;

    display: flex;
    flex-direction: column;

    min-width: 0;
}


.project-header {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;
}


.project-number {
    color: var(--accent);

    font-size: 0.75rem;

    margin-bottom: 5px;
}


.project-header h3 {
    font-size: 2rem;

    line-height: 1.1;
}


.project-date {
    color: var(--text-muted);

    font-size: 0.85rem;

    white-space: nowrap;
}


.project-role {
    color: var(--accent);

    margin-bottom: 25px;

    font-weight: 600;
}


.project-description {
    color: var(--text-muted);

    margin-bottom: 30px;

    font-size: 1rem;
}


/* -------------------- */
/* PROJECT DETAILS */
/* -------------------- */

.project-details {
    display: grid;

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

    gap: 30px;

    margin-bottom: 30px;
}


.project-details h4 {
    margin-bottom: 12px;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.project-details ul {
    list-style: none;
}


.project-details li {
    color: var(--text-muted);

    margin-bottom: 6px;

    line-height: 1.5;
}


.project-details li::before {
    content: "— ";

    color: var(--accent);
}


/* -------------------- */
/* TAGS */
/* -------------------- */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;
}


.tags span {
    border: 1px solid var(--border);

    padding: 6px 10px;

    border-radius: 4px;

    color: var(--text-muted);

    font-size: 0.8rem;
}


/* -------------------- */
/* ABOUT */
/* -------------------- */

.about-section {
    max-width: var(--content-width);

    margin: 0 auto;

    padding:
        130px
        32px;

    border-top: 1px solid var(--border);

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 80px;
}


.about-section h2 {
    max-width: 600px;

    font-size: 3rem;

    line-height: 1.15;
}


.about-text {
    color: var(--text-muted);

    font-size: 1.1rem;
}


.about-text p {
    margin-bottom: 20px;
}


/* -------------------- */
/* CONTACT */
/* -------------------- */

.contact-section {
    max-width: var(--content-width);

    margin: 0 auto;

    padding:
        130px
        32px;

    border-top: 1px solid var(--border);
}


.contact-section h2 {
    font-size: clamp(3rem, 7vw, 6rem);

    margin-bottom: 50px;
}


.contact-links {
    display: flex;

    gap: 30px;
}


.contact-links a {
    color: var(--text-muted);

    font-size: 1.1rem;
}


.contact-links a:hover {
    color: var(--text);
}


/* -------------------- */
/* FOOTER */
/* -------------------- */

footer {
    border-top: 1px solid var(--border);

    padding: 30px;

    text-align: center;

    color: var(--text-muted);

    font-size: 0.85rem;
}


/* -------------------- */
/* TABLET */
/* -------------------- */

@media (max-width: 1100px) {

    .project {
        aspect-ratio: auto;

        grid-template-columns:
            1.4fr
            1fr;
    }


    .project.reverse {
        grid-template-columns:
            1fr
            1.4fr;
    }


    .project-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }


    .project-image img {
        height: 100%;
    }

}


/* -------------------- */
/* MOBILE */
/* -------------------- */

@media (max-width: 900px) {

    .project,
    .project.reverse {
        grid-template-columns: 1fr;

        aspect-ratio: auto;
    }


    .project.reverse .project-image,
    .project.reverse .project-content {
        order: initial;
    }


    .project-image {
        aspect-ratio: 16 / 9;
    }


    .project-content {
        height: auto;
    }


    .project-details {
        grid-template-columns: 1fr;
    }


    .about-section {
        grid-template-columns: 1fr;
    }

}


/* -------------------- */
/* SMALL MOBILE */
/* -------------------- */

@media (max-width: 600px) {

    .topbar-inner {
        padding: 20px;
    }


    nav {
        gap: 15px;

        font-size: 0.85rem;
    }


    .hero-inner {
        padding:
            100px
            20px
            120px;
    }


    .projects-section,
    .about-section,
    .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .project-content {
        padding: 26px;
    }


    .project-header {
        flex-direction: column;

        gap: 8px;
    }


    .project-date {
        white-space: normal;
    }


    .hero-links,
    .contact-links {
        flex-wrap: wrap;
    }

}