﻿@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ===== TOKENS ===== */
:root {
    --black: #080a0f;
    --deep: #0d1117;
    --panel: #111620;
    --border: #1c2535;
    --accent: #00c8ff;
    --accent2: #ff4d6d;
    --gold: #f5c418;
    --text: #c0cfe8;
    --muted: #4d607e;
    --white: #e8f0ff;
    /* code box theme: change --code-color to recolor every code box */
    --code-color: #ff3b3b;
    --code-bg: #130a0c;
    --code-header: #1d0e11;
    --code-glow: rgba(255,59,59,0.18);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

    body::before { /* grain */
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9999;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    }

    body::after { /* scanlines */
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9998;
        background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
    }

/* ===== SITE HEADER ===== */
header {
    position: relative;
    background: var(--deep);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

    header::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
        background-size: 50px 50px;
        transform: perspective(600px) rotateX(25deg) scaleY(1.5);
        transform-origin: bottom center;
        opacity: 0.6;
    }

    header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
        box-shadow: 0 0 30px 6px rgba(0,200,255,0.2);
    }

    header img {
        position: relative;
        z-index: 1;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 2px solid var(--accent);
        box-shadow: 0 0 0 4px rgba(0,200,255,0.08), 0 0 30px rgba(0,200,255,0.25);
        margin-bottom: 1.25rem;
        object-fit: cover;
        object-position: top;
        animation: pulse-ring 3s ease-in-out infinite;
    }

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0,200,255,0.08), 0 0 30px rgba(0,200,255,0.25);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0,200,255,0.04), 0 0 50px rgba(0,200,255,0.4);
    }
}

header h1 {
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: 0.08em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.3rem;
}

header h3 {
    position: relative;
    z-index: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.75rem;
}

/* ===== NAV ===== */
nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

    nav a {
        position: relative;
        color: var(--muted);
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        padding: 0.45rem 1.2rem;
        border: 1px solid transparent;
        border-radius: 2px;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 1px;
            background: var(--accent);
            transform: translateX(-50%);
            transition: width 0.3s;
        }

        nav a:hover {
            color: var(--accent);
            border-color: var(--border);
            background: rgba(0,200,255,0.04);
        }

            nav a:hover::after {
                width: 60%;
            }

        nav a.active {
            color: var(--accent);
            border-color: var(--border);
        }

/* ===== PAGE CONTAINER ===== */
.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* ===== BACK LINK ===== */
a.back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

    a.back::before {
        content: '←';
        font-size: 0.9em;
    }

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

/* ===== HERO IMAGE ===== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-bottom: 2.5rem;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to top, rgba(8,10,15,0.65) 0%, transparent 50%);
    }

    .hero img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

/* ===== PROJECT TITLE BLOCK ===== */
.proj-title-block {
    margin-bottom: 3rem;
}

.proj-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

    .proj-eyebrow::before {
        content: '▶  ';
        font-size: 0.6em;
    }

.proj-title-block h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.proj-title-block .sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* External link buttons */
.proj-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 2.5rem;
}

    .proj-links a, p > a[href*="github"], p > a[href*="itch.io"] {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--white) !important;
        padding: 0.45rem 1.1rem;
        border: 1px solid var(--border);
        border-radius: 2px;
        background: var(--panel);
        transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

        .proj-links a:hover, p > a[href*="github"]:hover, p > a[href*="itch.io"]:hover {
            color: var(--accent) !important;
            border-color: var(--accent);
            background: rgba(0,200,255,0.06);
        }

/* ===== ABOUT + META COLUMNS ===== */
.cols {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.col {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.5rem;
}

    .col::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
    }

    .col h4 {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 0.9rem;
    }

    .col p {
        font-size: 0.97rem;
        line-height: 1.8;
    }

    .col ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

        .col ul li {
            font-size: 0.88rem;
            border-bottom: 1px solid var(--border);
            padding-bottom: 0.5rem;
        }

            .col ul li:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }

.meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.meta-list .label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta-list .value {
    color: var(--white);
    font-weight: 500;
    text-align: right;
}

/* ===== SECTION HEADINGS & CONTENT ===== */
section {
    margin-bottom: 4rem;
}

    section h3 {
        position: relative;
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        letter-spacing: 0.06em;
        color: var(--white);
        margin: 2.5rem 0 1.25rem;
        padding-bottom: 0.5rem;
    }

        section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 2.5rem;
            height: 2px;
            background: linear-gradient(90deg, var(--accent), transparent);
            box-shadow: 0 0 8px rgba(0,200,255,0.4);
        }

    section h4 {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        margin: 1.5rem 0 0.5rem;
    }

        section h4::before {
            content: '// ';
            color: var(--muted);
            font-size: 0.85em;
        }

    section p {
        font-size: 0.97rem;
        line-height: 1.85;
        margin-bottom: 0.75rem;
        max-width: 780px;
    }

    section ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        max-width: 780px;
    }

        section ul li {
            position: relative;
            font-size: 0.95rem;
            padding-left: 1.25rem;
            line-height: 1.7;
        }

            section ul li::before {
                content: '◆';
                position: absolute;
                left: 0;
                top: 0.22em;
                color: var(--accent);
                font-size: 0.7em;
            }

.proj-intro {
    font-size: 1rem;
    line-height: 1.9;
    max-width: 700px;
    border-left: 2px solid var(--border);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== FEATURE ROWS ===== */
.feature {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border-color 0.3s;
}

    .feature::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--accent2), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .feature:hover {
        border-color: rgba(0,200,255,0.25);
    }

        .feature:hover::before {
            opacity: 1;
        }

    .feature.reverse {
        flex-direction: row-reverse;
    }

    .feature > div {
        flex: 1 1 auto;
    }

        .feature > div h4 {
            margin-top: 0;
        }

    .feature img {
        flex: 0 0 auto;
        max-width: 60%;
        width: auto;
        height: auto;
        object-fit: contain;
        border: 1px solid var(--border);
        border-radius: 3px;
        box-shadow: 0 0 24px rgba(0,0,0,0.5);
    }

.feature-solo {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent2);
    border-radius: 3px;
}

    .feature-solo h4 {
        margin-top: 0;
    }

/* ===== VIDEO & GALLERY ===== */
.media-slot {
    margin: 1.5rem 0;
}

    .media-slot video, .media-slot img, .media-grid img, .media-grid video {
        width: 100%;
        display: block;
        border-radius: 8px;
        background: #111;
    }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

figcaption {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .5rem;
    text-align: center;
}

/* ===== INLINE CODE ===== */
code {
    font-family: Consolas, "Courier New", monospace;
}

p code, li code {
    background: rgba(0,200,255,.08);
    color: var(--accent);
    padding: .1em .35em;
    border-radius: 3px;
    font-size: .88em;
}

/* ===== CODE BOXES ===== */
.code-block {
    margin: 1.75rem 0;
    max-width: 780px;
    overflow: hidden;
    background: var(--code-bg);
    border: 1px solid var(--code-color);
    border-radius: 6px;
    box-shadow: 0 0 24px var(--code-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    background: var(--code-header);
    border-bottom: 1px solid var(--code-color);
}

    .code-header::before { /* three window dots */
        content: '';
        flex: none;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 36px;
        background: var(--code-color);
        box-shadow: 16px 0 0 #ff7a7a, 32px 0 0 #8c1c1c;
    }

.code-title {
    flex: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.code-lang {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--code-color);
    border: 1px solid var(--code-color);
    border-radius: 2px;
    padding: 0.1rem 0.5rem;
}

.copy-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    border: 1px solid #5a2323;
    border-radius: 2px;
    padding: 0.2rem 0.7rem;
    transition: border-color 0.2s, color 0.2s;
}

    .copy-btn:hover {
        color: var(--code-color);
        border-color: var(--code-color);
    }

.code-block pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text);
}

.code-block code {
    white-space: pre;
    background: none;
    padding: 0;
}

.code-block .code-note {
    max-width: none;
    margin: 0;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--code-color);
    background: var(--code-header);
}

.tok-k {
    color: #ffb454;
}
/* keywords */
.tok-s {
    color: var(--gold);
}
/* strings */
.tok-c {
    color: var(--muted);
    font-style: italic;
}
/* comments */
.tok-n {
    color: #c79bff;
}
/* numbers */
.tok-t {
    color: #7fe3b0;
}
/* types / names */

/* ===== SKILL CHIPS ===== */
.skills-list, .soft-skills-list, .achievements-list, .languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.skill, .soft-skill, .achievement, .language {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
    transition: background 0.2s, box-shadow 0.2s;
}

.skill {
    background: rgba(0,200,255,0.08);
    color: var(--accent);
    border: 1px solid rgba(0,200,255,0.2);
}

    .skill:hover {
        background: rgba(0,200,255,0.14);
        box-shadow: 0 0 12px rgba(0,200,255,0.2);
    }

.soft-skill, .achievement, .language {
    background: rgba(245,196,24,0.07);
    color: var(--gold);
    border: 1px solid rgba(245,196,24,0.2);
}

    .soft-skill:hover, .achievement:hover, .language:hover {
        background: rgba(245,196,24,0.13);
        box-shadow: 0 0 12px rgba(245,196,24,0.15);
    }

/* ===== GLOBAL LINKS ===== */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: var(--white);
    }

/* ===== FOOTER ===== */
footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    background: var(--deep);
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===== MAIN SITE PAGES (home / profile / projects / contact) ===== */
main {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section#home p {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.9;
    border-left: 2px solid var(--border);
    padding-left: 1.5rem;
}

h2 {
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
}

    h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 3rem;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
        box-shadow: 0 0 10px rgba(0,200,255,0.4);
    }

/* Project cards */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem;
    transition: transform 0.3s, border-color 0.3s;
}

    .project-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0,200,255,0.3);
    }

    .project-card > img {
        flex: 0 0 280px;
        width: 280px;
        height: 150px;
        object-fit: cover;
        border: 1px solid var(--border);
        border-radius: 3px;
    }

.card-text {
    flex: 1;
}

.project-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.tech {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}
/* whole card clickable */
.btn {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

    .btn:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(0,200,255,0.06);
    }

/* Contact */
#contact p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#contact a {
    border-bottom: 1px solid transparent;
}

    #contact a:hover {
        border-color: var(--accent);
    }

#contactForm {
    max-width: 400px;
    margin: 0 auto;
}

    #contactForm input, #contactForm textarea {
        width: 100%;
        padding: 8px;
        margin: 4px 0 12px;
        border: 1px solid var(--border);
        border-radius: 5px;
        background: var(--panel);
        color: var(--text);
        font: inherit;
    }

    #contactForm button {
        width: 100%;
        margin-top: 6px;
        padding: 12px 20px;
        border: 0;
        border-radius: 5px;
        background: var(--accent);
        color: var(--black);
        font-weight: 600;
        cursor: pointer;
    }

#contactResult {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* Resume */
.resume-frame {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border: 1px solid var(--accent);
    border-radius: 8px;
}

/* ===== RESPONSIVE (keep at the end) ===== */
@media (max-width: 820px) {
    .cols {
        grid-template-columns: 1fr;
    }

    .feature, .feature.reverse {
        flex-direction: column;
        align-items: stretch;
    }

        .feature img {
            max-width: 100%;
            width: 100%;
        }
}

@media (max-width: 700px) {
    .project-card {
        flex-direction: column;
        align-items: stretch;
    }

        .project-card > img {
            flex: none;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
        }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem;
    }

    header h3 {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
    }

    nav a {
        font-size: 0.72rem;
        padding: 0.4rem 0.8rem;
    }

    main {
        margin: 2.5rem auto;
        padding: 0 1.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1.25rem 4rem;
    }

    section h3 {
        font-size: 1.6rem;
    }
}
