@charset "utf-8";

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #1b1c24;
    color: #ffffff;
    line-height: 1.6;
}

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

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


/*  Colors Variables */

:root {
    --background: #1b1c24;
    --panel: #262730;
    --panel-light: #30313a;
    --text: #ffffff;
    --muted: #b6b7bf;
    --accent: #ffb43a;
    --border: rgba(255, 255, 255, 0.10);
}


/* 2. HEADER & NAVIGATION */

.site-header {
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background-color: rgba(27, 28, 36, 0.94);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1400px, 92%);
    min-height: 78px;
    margin: auto;

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

    gap: 24px;
}


/* ---------- Logo ---------- */

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;

    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}


/* ---------- Navigation Links ---------- */

.main-nav {
    display: flex;
    align-items: center;

    gap: 34px;
}

.main-nav a {
    position: relative;

    color: #d5d5da;

    font-size: 14px;
    font-weight: 600;

    transition: 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.main-nav a::after {
    content: "";

    width: 0;
    height: 2px;

    position: absolute;
    left: 0;
    bottom: -8px;

    background-color: var(--accent);

    transition: 0.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* ---------- LinkedIn Contact Button ---------- */

.contact-button {
    padding: 11px 20px;

    background-color: var(--accent);
    color: #17181d;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s;
}

.contact-button:hover {
    background-color: #ffc45f;
    transform: translateY(-2px);
}


/* ==========================================================
   3. SHARED LAYOUT & COMPONENTS
   ========================================================== */

.page-top {
    padding-top: 150px;
}

.section {
    width: min(1400px, 90%);
    margin: auto;

    padding: 105px 0;
}


/* ---------- Small Orange Heading ---------- */

.eyebrow {
    margin-bottom: 14px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
}


/* ---------- Section Heading ---------- */

.section-heading {
    margin-bottom: 40px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.section-heading h2,
.about-title h2,
.project-overview h2,
.contribution-section h2,
.demo-description h2 {
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1;
}

.section-intro {
    max-width: 480px;

    color: var(--muted);
}


/* ---------- Tags ---------- */

.hero-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.hero-tags {
    margin-bottom: 34px;
}

.hero-tags span,
.project-tags span {
    padding: 7px 12px;

    background-color: rgba(255, 180, 58, 0.07);
    color: #f7d395;

    border: 1px solid rgba(255, 180, 58, 0.35);
    border-radius: 3px;

    font-size: 12px;
    font-weight: 700;
}


/* ---------- Buttons ---------- */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.button {
    min-width: 155px;
    padding: 13px 22px;

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

    border-radius: 4px;

    font-size: 14px;
    font-weight: 800;

    transition: 0.25s;
}

.button-primary {
    background-color: var(--accent);
    color: #17181d;
}

.button-primary:hover {
    background-color: #ffc45f;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}


/* ==========================================================
   4. HOME PAGE
   ========================================================== */

.home-hero {
    min-height: 780px;

    padding-left: 6%;
    padding-right: 6%;
    padding-bottom: 90px;

    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.6fr);
    align-items: center;

    gap: 80px;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(255, 180, 58, 0.17),
            transparent 24%
        ),
        radial-gradient(
            circle at 18% 80%,
            rgba(80, 91, 125, 0.16),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #14151b 0%,
            #1b1c24 55%,
            #262630 100%
        );
}

.home-hero::before {
    content: "JY";

    position: absolute;
    right: 5%;
    top: 125px;

    color: rgba(255, 255, 255, 0.025);

    font-size: clamp(180px, 25vw, 390px);
    font-weight: 900;
    line-height: 1;
}

.home-hero-content,
.home-profile-panel {
    position: relative;
    z-index: 2;
}


/* ---------- Home Name / Title ---------- */

.home-hero h1 {
    font-size: clamp(72px, 10vw, 145px);
    line-height: 0.82;
    letter-spacing: -6px;
}

.home-hero h1 span {
    color: var(--accent);
}

.home-hero h2 {
    margin: 22px 0 18px;

    font-size: clamp(28px, 3vw, 45px);
    font-weight: 500;
}

.home-intro {
    max-width: 700px;
    margin-bottom: 24px;

    color: #d0d1d7;

    font-size: 18px;
}


/* ---------- Home Information Panel ---------- */

.home-profile-panel {
    padding: 34px;

    background-color: rgba(38, 39, 48, 0.88);

    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
}

.panel-label {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-profile-panel h3 {
    margin: 8px 0 12px;

    font-size: 27px;
}

.home-profile-panel > p:not(.panel-label) {
    margin-bottom: 26px;

    color: var(--muted);

    font-size: 14px;
}

.profile-stat {
    padding: 15px 0;

    display: flex;
    justify-content: space-between;

    gap: 18px;

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

.profile-stat span {
    color: #81828a;

    font-size: 12px;
}

.profile-stat strong {
    text-align: right;

    font-size: 13px;
}


/* ---------- Home Navigation Cards ---------- */

.nav-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.nav-card {
    min-height: 230px;
    padding: 26px;

    background-color: var(--panel);

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

    transition: 0.25s;
}

.nav-card:hover {
    transform: translateY(-6px);

    border-color: rgba(255, 180, 58, 0.55);
}

.nav-card > span {
    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
}

.nav-card h3 {
    margin: 34px 0 10px;

    font-size: 25px;
}

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

    font-size: 14px;
}


/* ==========================================================
   5. INNER PAGE BANNERS
   Projects / About / Resume / Demo Reel
   ========================================================== */

.page-banner {
    min-height: 430px;

    padding-left: 6%;
    padding-right: 6%;
    padding-bottom: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 180, 58, 0.14),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #14151b,
            #24252e
        );
}

.page-banner h1 {
    font-size: clamp(68px, 10vw, 145px);
    line-height: 0.9;
    letter-spacing: -5px;
}

.page-banner > p:last-child {
    max-width: 720px;
    margin-top: 24px;

    color: var(--muted);

    font-size: 18px;
}


/* ==========================================================
   6. PROJECTS PAGE
   ========================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* ---------- Project Card ---------- */

.project-card {
    overflow: hidden;

    background-color: var(--panel);

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

    transition: 0.3s;
}

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

    border-color: rgba(255, 180, 58, 0.55);

    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.project-card-link {
    height: 100%;

    display: block;
}


/* ---------- Project Card Images ---------- */

.project-image {
    height: 250px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/*
   Dark gradient over the image.
   This helps the game title remain readable.
*/

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.70)
        );
}


/*
   IMPORTANT:
   These paths begin with ../ because style.css is inside the css folder.
*/

.project-image.hammer-hex {
    background-image:
        url("../images/hh/font.jpg");
}

.project-image.plunderdome {
    background-image:
        url("../images/pd/PD.jpg");
}

.project-image.critical-core {
    background-image:
        url("../images/cc2/title.jpg");
}


/* ---------- Text Displayed Over Project Image ---------- */

.image-label {
    padding: 22px;

    position: relative;
    z-index: 2;

    font-size: 24px;
    font-weight: 900;
}


/* ---------- Project Card Information ---------- */

.project-content {
    padding: 24px;
}

.project-top-row {
    margin-bottom: 12px;

    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.project-top-row h3 {
    font-size: 23px;
}

.project-number {
    color: rgba(255, 255, 255, 0.25);

    font-size: 13px;
    font-weight: 800;
}

.project-content > p {
    min-height: 76px;
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 14px;
}

.project-tags {
    margin-bottom: 22px;
}

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

    font-size: 13px;
    font-weight: 800;
}

.project-card:hover .project-link {
    color: #ffd183;
}


/* ==========================================================
   7. ABOUT PAGE
   ========================================================== */

.about-layout {
    margin-bottom: 60px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 90px;
}

.about-title h2 span {
    color: var(--accent);
}

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

    font-size: 17px;
}

.about-text p + p {
    margin-top: 18px;
}


/* ---------- Skill Cards ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.skill-card {
    min-height: 220px;
    padding: 25px;

    background-color: var(--panel);

    border-top: 3px solid transparent;

    transition: 0.25s;
}

.skill-card:hover {
    transform: translateY(-5px);

    border-top-color: var(--accent);
}

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

    font-size: 12px;
    font-weight: 800;
}

.skill-card h3 {
    margin: 28px 0 8px;

    font-size: 22px;
}

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

    font-size: 13px;
}


/* ==========================================================
   8. RESUME PAGE
   ========================================================== */

.resume-buttons {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;

    gap: 15px;
}

.resume-page {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;
}

.resume-column h2 {
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1;
}

.resume-column h3 {
    margin: 10px 0 20px;

    color: var(--accent);
}

.resume-column p {
    margin-bottom: 28px;

    color: var(--muted);
}


/* ---------- Resume Information Cards ---------- */

.resume-details {
    display: grid;

    gap: 20px;
}

.resume-detail-block {
    padding: 28px;

    background-color: var(--panel);

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

.resume-detail-block h3 {
    margin-bottom: 16px;

    font-size: 24px;
}

.resume-detail-block p,
.resume-detail-block li {
    color: var(--muted);
}

.resume-detail-block ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 8px 30px;

    list-style-position: inside;
}


/* ==========================================================
   9. DEMO REEL PAGE
   ========================================================== */

/*
   This container is designed for your YouTube iframe.

   Video:
   https://www.youtube.com/embed/qCDtfHJNgJ8
*/

.video-frame {
    width: 100%;
    max-width: 1200px;

    aspect-ratio: 16 / 9;

    margin: 0 auto;

    overflow: hidden;

    background-color: #000000;

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

.video-frame iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: none;
}


/* ---------- Demo Reel Description ---------- */

.demo-description {
    margin-top: 60px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;
}

.demo-description > p {
    color: var(--muted);

    font-size: 17px;
}


/* ==========================================================
   10. INDIVIDUAL PROJECT PAGES
   Hammer Hex / Plunderdome / Critical Core 2
   ========================================================== */

.project-hero {
    min-height: 760px;

    padding-left: 6%;
    padding-right: 6%;
    padding-bottom: 80px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ---------- Hammer Hex Hero ---------- */

.project-hero.hammer-hex-hero {
    background-image:
        url("../images/projects/hammer-hex/hero.jpg");
}


/* ---------- Plunderdome Hero ---------- */

.project-hero.plunderdome-hero {
    background-image:
        url("../images/projects/plunderdome/hero.jpg");
}


/* ---------- Critical Core 2 Hero ---------- */

.project-hero.critical-core-hero {
    background-image:
        url("../images/projects/critical-core-2/hero.jpg");
}


/*
   Dark overlay placed on top of the hero image.
   The text is placed above this using z-index.
*/

.project-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(13, 14, 18, 0.98) 0%,
            rgba(13, 14, 18, 0.72) 48%,
            rgba(13, 14, 18, 0.15) 100%
        );
}


/* ---------- Hero Text ---------- */

.project-hero-content {
    width: min(760px, 100%);

    position: relative;
    z-index: 3;
}

.back-link {
    margin-bottom: 35px;

    display: inline-block;

    color: #c1c2c8;

    font-size: 13px;
    font-weight: 700;
}

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

.project-hero h1 {
    margin-bottom: 26px;

    font-size: clamp(62px, 9vw, 132px);
    line-height: 0.88;
    letter-spacing: -5px;
}

.project-hero-description {
    max-width: 670px;
    margin-bottom: 24px;

    color: #d2d2d7;

    font-size: 18px;
}

.project-index-image {
    width: 45%;
    max-width: 650px;
    height: 65%;

    position: absolute;
    right: 4%;
    bottom: 5%;
    z-index: 2;

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

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

    display: block;

    object-fit: contain;
}


/* ---------- Project Overview ---------- */

.project-summary-grid {
    padding-bottom: 80px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 90px;
}

.project-overview p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 22px;

    color: var(--muted);

    font-size: 17px;
}


/* ---------- Project Facts ---------- */

.project-facts {
    padding: 15px 30px;

    align-self: start;

    background-color: var(--panel);

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

.fact-row {
    padding: 20px 0;

    display: flex;
    justify-content: space-between;

    gap: 30px;

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

.fact-row:last-child {
    border-bottom: none;
}

.fact-row span {
    color: #85868e;

    font-size: 13px;
}

.fact-row strong {
    text-align: right;
}


/* ---------- My Contribution ---------- */

.contribution-section {
    padding-top: 75px;

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

.contribution-list {
    margin-top: 36px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px 22px;

    list-style: none;
}

.contribution-list li {
    min-height: 90px;
    padding: 22px 22px 22px 52px;

    position: relative;

    display: flex;
    align-items: center;

    background-color: var(--panel);
    color: #d0d1d6;

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

.contribution-list li::before {
    content: "→";

    position: absolute;
    left: 20px;

    color: var(--accent);

    font-weight: 900;
}


/* ==========================================================
   11. PROJECT SCREENSHOTS / MEDIA
   ========================================================== */

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/*
   Use this class around real screenshots:

   <div class="project-media-image">
       <img src="images/projects/hammer-hex/screenshot-1.jpg"
            alt="Hammer Hex gameplay">
   </div>
*/

.project-media-image {
    height: 280px;

    overflow: hidden;

    background-color: var(--panel);

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

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

    display: block;

    object-fit: cover;
}


/* ---------- Large Main Screenshot ---------- */

.project-media-image.large-media {
    height: 500px;

    grid-column: 1 / -1;
}


/*
   Old placeholder style.
   You can remove this after replacing every placeholder with images.
*/

.media-placeholder {
    min-height: 280px;

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

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 180, 58, 0.10),
            transparent 30%
        ),
        #24252d;

    color: #767780;

    border: 1px dashed rgba(255, 255, 255, 0.18);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.media-placeholder.large-media {
    min-height: 500px;

    grid-column: 1 / -1;
}


/* ==========================================================
   12. NEXT PROJECT LINK
   ========================================================== */

.next-project-link {
    padding: 28px 0;

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

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

    transition: 0.25s;
}

.next-project-link span {
    font-size: clamp(38px, 6vw, 80px);
    font-weight: 800;
}

.next-project-link strong {
    color: var(--accent);

    font-size: clamp(40px, 6vw, 75px);
}

.next-project-link:hover {
    padding-left: 18px;
    padding-right: 18px;

    color: var(--accent);
}


/* ==========================================================
   13. FOOTER
   ========================================================== */

.site-footer {
    width: min(1400px, 90%);
    margin: auto;

    padding: 25px 0 35px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    color: #777982;

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

    font-size: 12px;
}


/* ==========================================================
   14. RESPONSIVE DESIGN - TABLET
   Screens 1000px and smaller
   ========================================================== */

@media screen and (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .home-hero {
        grid-template-columns: 1fr;

        gap: 45px;
    }

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

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-layout,
    .resume-page,
    .project-summary-grid {
        gap: 45px;
    }
}


/* ==========================================================
   15. RESPONSIVE DESIGN - SMALL TABLET
   Screens 760px and smaller
   ========================================================== */

@media screen and (max-width: 760px) {

    /* ----- Navigation ----- */

    .nav-container {
        padding: 18px 0;

        flex-wrap: wrap;

        gap: 18px;
    }

    .main-nav {
        width: 100%;

        order: 3;

        overflow-x: auto;

        padding-bottom: 4px;
    }


    /* ----- Page Layout ----- */

    .page-top {
        padding-top: 190px;
    }

    .section {
        width: 88%;

        padding: 80px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
    }


    /* ----- One Column Layout ----- */

    .project-grid,
    .about-layout,
    .resume-page,
    .project-summary-grid,
    .demo-description,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .contribution-list {
        grid-template-columns: 1fr;
    }


    /* ----- Project Screenshots ----- */

    .project-media-image.large-media,
    .media-placeholder.large-media {
        grid-column: auto;
    }

    .project-media-image.large-media {
        height: 380px;
    }
}


/* ==========================================================
   16. RESPONSIVE DESIGN - MOBILE
   Screens 520px and smaller
   ========================================================== */

@media screen and (max-width: 520px) {

    /* ----- Navigation ----- */

    .logo {
        font-size: 20px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        white-space: nowrap;

        font-size: 12px;
    }


    /* ----- Home Page ----- */

    .home-hero {
        padding-left: 7%;
        padding-right: 7%;
    }

    .home-hero h1,
    .page-banner h1,
    .project-hero h1 {
        letter-spacing: -3px;
    }

    .profile-stat {
        flex-direction: column;

        gap: 5px;
    }

    .profile-stat strong {
        text-align: left;
    }


    /* ----- Buttons ----- */

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }


    /* ----- Cards ----- */

    .nav-card-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 225px;
    }


    /* ----- Resume ----- */

    .resume-detail-block ul {
        grid-template-columns: 1fr;
    }


    /* ----- Project Details ----- */

    .fact-row {
        flex-direction: column;

        gap: 5px;
    }

    .fact-row strong {
        text-align: left;
    }


    /* ----- Project Screenshots ----- */

    .project-media-image {
        height: 220px;
    }

    .project-media-image.large-media {
        height: 280px;
    }


    /* ----- Footer ----- */

    .site-footer {
        flex-direction: column;
    }
}
