/* =========================================
   VARIABLES
========================================= */

:root {
    --background: #0d0d0d;
    --surface: #141414;
    --surface-light: #1b1b1b;

    --text: #eeeeea;
    --muted: #888884;
    --subtle: #555552;

    --red: #d71920;

    --border: #292929;

    --display: "Barlow Condensed", sans-serif;
    --body: "Inter", sans-serif;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);

    font-family: var(--body);

    overflow-x: hidden;
}

/* =========================================
   SHOWREEL
========================================= */

.showreel {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    overflow: hidden;
}

.showreel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.showreel-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.showreel.is-playing .showreel-title {
    opacity: 0;
}

img {
    display: block;
    width: 100%;
}

/* =========================================
   NOISE OVERLAY
========================================= */

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: screen;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 76px;

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    border-bottom: 1px solid var(--border);

    background: rgba(13, 13, 13, 0.94);

    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--display);

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 2px;
}

.logo-highlight {
    color: var(--red);
}

.navbar nav {
    display: flex;

    gap: 35px;
}

.navbar nav a {
    color: var(--muted);

    font-size: 13px;
    
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;

    transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar nav a:hover {
    color: var(--text);
    border-bottom-color: var(--red);
}

.navbar nav a.active {
    color: var(--text);
    font-weight: 700;
    border-bottom-color: var(--red);
}

.menu-toggle {
    display: none;

    border: none;

    background: none;

    color: var(--text);

    cursor: pointer;

    font-size: 13px;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 150px 10vw 100px;

    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 1100px;
}

.intro-label,
.section-label {
    color: var(--red);

    font-family: var(--display);

    font-size: 13px;

    letter-spacing: 3px;
}

.intro-label {
    margin-bottom: 30px;
}

.hero h1 {
    font-family: var(--display);

    font-size: clamp(75px, 11vw, 170px);

    font-weight: 600;

    line-height: 0.83;

    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--muted);
}

.hero-description {
    max-width: 520px;

    margin-top: 45px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;

    gap: 20px;

    margin-top: 40px;

    padding-bottom: 7px;

    border-bottom: 1px solid var(--red);

    font-size: 14px;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.text-link:hover {
    color: var(--red);

    gap: 28px;
}

.text-link span {
    color: var(--red);
}

.hero-side {
    position: absolute;

    right: 5vw;
    bottom: 50px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    text-align: right;

    color: var(--subtle);

    font-family: var(--display);

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 140px 10vw;

    border-bottom: 1px solid var(--border);
}

.section-header {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 30px;

    margin-bottom: 100px;
}

.section-number {
    color: var(--red);

    font-family: var(--display);

    font-size: 13px;
}

.section-header h2 {
    margin-top: 8px;

    font-family: var(--display);

    font-size: clamp(60px, 7vw, 100px);

    font-weight: 500;

    line-height: 0.85;
}


/* =========================================
   PROJECTS
========================================= */

.project {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 70px;

    padding: 70px 0;

    border-top: 1px solid var(--border);
}

.project:last-child {
    border-bottom: 1px solid var(--border);
}

.project-image {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--surface);
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: saturate(0.75);

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.025);

    filter: saturate(1);
}

.project-details {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding-right: 4vw;
}

.project-number {
    margin-right: 20px;

    color: var(--red);

    font-family: var(--display);

    font-size: 13px;
}

.project-type {
    color: var(--subtle);

    font-size: 11px;

    letter-spacing: 1px;
}

.project-details h3 {
    margin-top: 35px;
    margin-bottom: 25px;

    font-family: var(--display);

    font-size: clamp(45px, 5vw, 75px);

    font-weight: 500;

    line-height: 0.9;
}

.project-details p {
    max-width: 480px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}

.tags span {
    padding: 7px 10px;

    border: 1px solid var(--border);

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.5px;
}

.project-link {
    width: fit-content;

    margin-top: 35px;

    color: var(--text);

    font-size: 13px;

    border-bottom: 1px solid var(--red);

    padding-bottom: 6px;

    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--red);
}


/* =========================================
   ABOUT
========================================= */

.about {
    --gradient-opacity: 1;
    background-image: linear-gradient(to right, rgba(13, 13, 13, var(--gradient-opacity)) 50%, transparent 50%), url('images/Bisheng.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.about-introduction {
    max-width: 600px;
}

.about-introduction p {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 20px;

    line-height: 1.7;
}

.about-introduction p:first-child {
    color: var(--text);

    font-size: 27px;
}

.skills {
    border-top: 1px solid var(--border);
}

.skill-row {
    display: grid;

    grid-template-columns: 40px 1fr auto;

    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

    font-size: 12px;
}

.skill-row span:first-child {
    color: var(--red);
}

.skill-row strong {
    font-weight: 500;
}

.skill-row span:last-child {
    color: var(--muted);
}


/* =========================================
   EXPERIENCE
========================================= */

.experience-list {
    margin-left: 100px;

    max-width: 900px;
}

.experience-item {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 50px;

    padding: 35px 0;

    border-top: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: 1px solid var(--border);
}

.experience-date {
    color: var(--red);

    font-family: var(--display);

    font-size: 13px;

    letter-spacing: 1px;
}

.experience-item h3 {
    margin-bottom: 12px;

    font-family: var(--display);

    font-size: 30px;

    font-weight: 500;
}

.experience-item p {
    max-width: 500px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    min-height: 700px;

    display: flex;

    align-items: center;
}

.contact-inner {
    width: 100%;
}

.contact h2 {
    margin-top: 30px;
    margin-bottom: 50px;

    font-family: var(--display);

    font-size: clamp(75px, 11vw, 160px);

    font-weight: 500;

    line-height: 0.8;
}

.contact h2 span {
    color: var(--red);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text);

    font-size: 24px;

    border: 1px solid var(--red);

    padding: 12px 20px;
    
    background-color: rgba(100, 100, 100, 0.1);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
    
    cursor: pointer;
}

.contact-email::before {
    content: "✉";
    font-size: 26px;
}

.contact-email:hover {
    color: var(--text);

    border-color: var(--red);
    
    transform: scale(1.05);
}

.social-links {
    display: flex;

    gap: 30px;

    margin-top: 60px;
}

.social-links a {
    color: var(--muted);

    font-size: 12px;

    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--red);
}

.artist-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.artist-link:hover {
    color: var(--text);
    border-bottom-color: var(--red);
}

.highlight-text {
    color: var(--text);
}


/* =========================================
   FOOTER
========================================= */

footer {
    display: flex;
    justify-content: space-between;

    padding: 30px 5vw;

    color: var(--subtle);

    font-size: 10px;

    letter-spacing: 1px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 25px;
    }

    .navbar nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 140px 25px 120px;
    }

    .hero h1 {
        font-size: 17vw;
    }

    .hero-side {
        right: 25px;
        bottom: 30px;
    }

    .section {
        padding: 100px 25px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .project {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 50px 0;
    }

    .project-details {
        padding-right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .experience-list {
        margin-left: 0;
    }
}


@media (max-width: 600px) {

    .navbar {
        height: 65px;
    }

    .hero {
        min-height: 100svh;

        padding: 120px 20px 120px;
    }

    .hero h1 {
        font-size: 21vw;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-side {
        font-size: 9px;
    }

    .section {
        padding: 80px 20px;
    }

    .section-header {
        grid-template-columns: 40px 1fr;

        gap: 15px;
    }

    .section-header h2 {
        font-size: 65px;
    }

    .project-details h3 {
        font-size: 60px;
    }

    .about-introduction p:first-child {
        font-size: 21px;
    }

    .skill-row {
        grid-template-columns: 30px 1fr;

        gap: 10px;
    }

    .skill-row span:last-child {
        grid-column: 2;
    }

    .experience-item {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .experience-item h3 {
        font-size: 27px;
    }

    .contact h2 {
        font-size: 22vw;
    }

    .social-links {
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        padding: 25px 20px;
    }
}
