:root
{
    color-scheme: dark;
    --pointer-x: 50vw;
    --pointer-y: 30vh;
    --ink: #f8f3ff;
    --muted: #b9b2c9;
    --panel: #191623;
    --panel-hard: #251b38;
    --line: #6dff87;
    --cyan: #25e8ff;
    --coral: #ff5d57;
    --mustard: #d6c349;
    --lavender: #b898ff;
    --black: #08070c;
}

*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(37, 232, 255, 0.08), transparent 34%),
        linear-gradient(180deg, #08070c 0%, #17111f 44%, #101619 100%);
    overflow-x: hidden;
}

a
{
    color: inherit;
}

.page-glow,
.scan-lines
{
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-glow
{
    z-index: -2;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(109, 255, 135, 0.22), transparent 22rem),
        radial-gradient(circle at 12% 26%, rgba(255, 93, 87, 0.22), transparent 18rem),
        radial-gradient(circle at 86% 12%, rgba(37, 232, 255, 0.2), transparent 20rem),
        linear-gradient(135deg, transparent 0 22%, rgba(214, 195, 73, 0.08) 22% 24%, transparent 24% 100%);
    transition: background-position 180ms ease;
}

.scan-lines
{
    z-index: 20;
    opacity: 0.13;
    background:
        repeating-linear-gradient(180deg, transparent 0 9px, rgba(248, 243, 255, 0.42) 10px, transparent 11px),
        linear-gradient(90deg, transparent, rgba(37, 232, 255, 0.16), transparent);
    mix-blend-mode: screen;
}

.topbar
{
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(8, 7, 12, 0.82);
    border-bottom: 2px solid rgba(109, 255, 135, 0.34);
    backdrop-filter: blur(14px);
}

.brand
{
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0;
    color: var(--line);
    transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.brand:hover
{
    color: var(--cyan);
    text-shadow: 4px 0 var(--coral), -4px 0 var(--line);
    transform: skewX(-7deg);
}

.nav
{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.nav a
{
    position: relative;
    text-decoration: none;
    transition: color 180ms ease;
}

.nav a::after
{
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--line);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

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

.nav a:hover::after
{
    transform: scaleX(1);
}

.intro
{
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(24px, 6vw, 88px);
    padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 72px) 56px;
}

.intro-copy
{
    max-width: 740px;
}

.eyebrow,
.section-label,
.tag
{
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--mustard);
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p
{
    margin-top: 0;
}

h1
{
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(4.2rem, 12vw, 8.8rem);
    line-height: 0.7;
    letter-spacing: 0;
    color: var(--ink);
    overflow: hidden;
    text-shadow: 5px 0 var(--coral), -3px 2px var(--cyan);
    transition: text-shadow 220ms ease, transform 220ms ease;
}

h1:hover
{
    text-shadow: 9px 0 var(--coral), -7px 4px var(--cyan), 0 0 32px rgba(109, 255, 135, 0.34);
    transform: translateX(5px);
}

h2
{
    max-width: 780px;
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    line-height: 0.86;
    letter-spacing: 0;
}

h3
{
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.intro-text
{
    max-width: 620px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.intro-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button
{
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 2px solid currentColor;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover
{
    box-shadow: 7px 7px 0 var(--coral);
    transform: translate(-3px, -3px);
}

.primary
{
    color: var(--black);
    background: var(--line);
}

.secondary
{
    color: var(--cyan);
    background: transparent;
}

.portrait-card
{
    margin: 0;
    padding: 12px;
    width: min(100%, 340px);
    justify-self: center;
    background: var(--panel-hard);
    border: 3px solid var(--coral);
    box-shadow: 18px 18px 0 rgba(37, 232, 255, 0.3);
    transform: rotate(1.5deg);
    transition: box-shadow 220ms ease, transform 220ms ease, filter 220ms ease;
}

.portrait-card:hover
{
    box-shadow: -14px 18px 0 rgba(109, 255, 135, 0.28), 0 0 44px rgba(255, 93, 87, 0.3);
    filter: saturate(1.2);
    transform: rotate(-1deg) translateY(-8px);
}

.portrait-card img
{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

.portrait-card figcaption
{
    padding: 12px 4px 0;
    color: var(--line);
    font-weight: 900;
    text-transform: uppercase;
}

.section
{
    padding: clamp(56px, 9vw, 112px) clamp(18px, 5vw, 72px);
    border-top: 1px solid rgba(248, 243, 255, 0.18);
}

.about
{
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(24px, 6vw, 84px);
    background: #111b16;
}

.about p:last-child
{
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.65;
}

.skills
{
    background: #241829;
}

.skill-grid
{
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.1fr;
    gap: 14px;
    margin-top: 28px;
}

.skill-grid article
{
    min-height: 190px;
    padding: 22px;
    background: var(--panel);
    border: 2px solid rgba(214, 195, 73, 0.62);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.skill-grid article:hover
{
    border-color: var(--line);
    box-shadow: 0 0 0 6px rgba(109, 255, 135, 0.08), 10px 10px 0 rgba(37, 232, 255, 0.18);
    transform: translateY(-6px);
}

.skill-grid article:nth-child(2)
{
    transform: translateY(32px);
    background: #102a31;
}

.skill-grid article:nth-child(2):hover
{
    transform: translateY(20px);
}

.skill-grid article:nth-child(4)
{
    grid-column: span 2;
    background: #31220f;
}

.skill-grid p,
.project-card p
{
    color: var(--muted);
    line-height: 1.5;
}

.projects
{
    background: #0f111d;
}

.project-grid
{
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.75fr;
    grid-auto-rows: minmax(190px, auto);
    gap: 18px;
    margin-top: 28px;
}

.project-card
{
    padding: 24px;
    background: var(--panel);
    border: 2px solid rgba(184, 152, 255, 0.7);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-card:hover
{
    background: #211a2f;
    border-color: var(--cyan);
    transform: translateY(-8px) rotate(0.6deg);
}

.project-card.tall
{
    grid-row: span 2;
    background: #221537;
}

.project-card.wide
{
    grid-column: span 2;
    background: #152622;
}

.contact
{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    background: #171111;
}

.contact-panel
{
    display: grid;
    gap: 12px;
    align-content: start;
}

.contact-panel a
{
    padding: 18px 20px;
    color: var(--black);
    background: var(--mustard);
    font-weight: 900;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.contact-panel a:hover
{
    box-shadow: 8px 8px 0 rgba(248, 243, 255, 0.28);
    transform: translateX(8px);
}

.contact-panel a:nth-child(2)
{
    background: var(--cyan);
}

@media (max-width: 820px)
{
    .topbar
    {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav
    {
        justify-content: flex-start;
    }

    .intro,
    .about,
    .contact
    {
        grid-template-columns: 1fr;
    }

    .portrait-card
    {
        max-width: 420px;
        transform: none;
    }

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

    .skill-grid article:nth-child(2)
    {
        transform: none;
    }

    .skill-grid article:nth-child(2):hover
    {
        transform: translateY(-6px);
    }

    .skill-grid article:nth-child(4),
    .project-card.wide
    {
        grid-column: auto;
    }
}
