:root {
    --sky:        #9fd5e8;
    --lavender:   #ADBDF0;
    --coral:      #f08070;
    --ink:        #1a1a1a;
    --cream:      #ffffff;
    --yellow:     #ede87a;
    --white:      #ffffff;
    --tape-stripe:#c8d86a;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    margin: 0;
}

h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 6px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: var(--white);
    border-bottom: 1px solid #e0dcd5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--ink);
    transition: color 0.25s;
}

.logo:hover {
    color: var(--coral);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-work-with-me {
    background: var(--ink);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: background 0.25s, transform 0.2s;
}

.btn-work-with-me:hover {
    background: var(--coral);
    transform: scale(1.05);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e0dcd5;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: #ddd8d0;
}

.grid-line--left {
    left: 22%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.grid-line--right {
    left: 80%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.grid-line--h {
    top: 72%;
    left: 0;
    right: 0;
    height: 1px;
}

.hero-name-tag {
    position: absolute;
    top: 60px;
    left: 10%;
    background: var(--ink);
    color: var(--white);
    padding: 8px 18px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 2px;
    transform: rotate(-2deg);
    box-shadow: 2px 3px 6px rgba(0,0,0,.2);
}

.hero-card {
    position: relative;
    z-index: 2;
    width: 520px;
    max-width: 85vw;
    min-height: 220px;
    background: var(--lavender);
    background-image:
        radial-gradient(circle, rgba(255,255,255,.55) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    background-color: var(--lavender);
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: rotate(1deg);
    box-shadow: 3px 4px 12px rgba(0,0,0,.12);
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-top: 8px;
}

.hero-isa {
    font-size: 1rem;
    color: var(--ink);
    opacity: .75;
    margin-top: 2px;
}

.hero-title {
    color: var(--ink);
    margin-top: 6px;
    text-shadow: 2px 2px 0 rgba(0,0,0,.08);
}

.hero-ribbon {
    position: absolute;
    bottom: 42px;
    left: 6%;
    background: var(--coral);
    color: var(--white);
    padding: 16px 22px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1px;
    transform: rotate(-3deg);
    z-index: 4;
    box-shadow: 2px 3px 8px rgba(0,0,0,.18);
}

.hero-puzzle {
    position: absolute;
    top: 42px;
    right: 12%;
    width: 72px;
    height: 72px;
    background: var(--sky);
    border-radius: 12px;
    z-index: 3;
    transform: rotate(12deg);
    box-shadow: 2px 3px 6px rgba(0,0,0,.15);
}

.hero-puzzle::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: var(--sky);
    border-radius: 50%;
}

.hero-puzzle::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--cream);
    border-radius: 50%;
}

.tape {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.tape::before,
.tape::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.tape--hero-right {
    top: 55%;
    right: 16%;
    width: 40px;
    height: 48px;
    background: var(--yellow);
}

.tape--hero-right::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    background: var(--tape-stripe);
}

.tape--hero-right::after {
    top: 0;
    bottom: 0;
    right: 0;
    width: 14px;
    background: var(--tape-stripe);
    left: auto;
}

.tape--hero-bottom {
    bottom: 28px;
    right: 28%;
    width: 48px;
    height: 28px;
    background: var(--yellow);
    transform: rotate(-5deg);
}

.tape--hero-bottom::before {
    top: 0;
    height: 9px;
    background: var(--tape-stripe);
}

.tape--hero-bottom::after {
    bottom: 0;
    height: 9px;
    background: var(--tape-stripe);
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    padding: 48px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card--1 .project-img {
    height: 340px;
}

.project-card--2 .project-img {
    height: 240px;
}

.project-card--3 .project-img {
    height: 280px;
}

.project-card--4 .project-img {
    height: 320px;
}

.project-img-wrap {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.project-img {
    width: 100%;
    background: var(--sky);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project-img-wrap:hover .project-img {
    transform: scale(1.04);
    filter: brightness(0.92) saturate(1.15);
}

.project-info {
    padding: 12px 0 0;
}

.project-meta {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: 600;
}

.project-title {
    color: var(--ink);
    margin-top: 2px;
    transition: color 0.25s;
}

.project-card:hover .project-title {
    color: var(--coral);
}

.project-desc {
    font-size: 0.78rem;
    color: #777;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.footer {
    position: relative;
    background: var(--ink);
    color: var(--white);
    margin-top: 20px;
    padding: 60px 40px 40px;
    overflow: hidden;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-msg {
    font-size: 0.78rem;
    line-height: 1.7;
    opacity: .75;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-link {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--white);
    opacity: .85;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.25s, color 0.25s;
}

.footer-link:hover {
    opacity: 1;
    color: var(--sky);
}

.icon-linkedin,
.icon-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 900;
}

.footer-made {
    font-size: 0.72rem;
    text-align: right;
    line-height: 1.7;
    opacity: .6;
    letter-spacing: 0.5px;
}

.tape--footer-left {
    top: -10px;
    left: 20px;
    width: 54px;
    height: 30px;
    background: var(--yellow);
    transform: rotate(3deg);
}

.tape--footer-left::before {
    top: 0;
    height: 10px;
    background: var(--tape-stripe);
}

.tape--footer-left::after {
    bottom: 0;
    height: 10px;
    background: var(--tape-stripe);
}

.tape--footer-right {
    top: -10px;
    right: 30px;
    width: 54px;
    height: 30px;
    background: var(--yellow);
    transform: rotate(-3deg);
}

.tape--footer-right::before {
    top: 0;
    height: 10px;
    background: var(--tape-stripe);
}

.tape--footer-right::after {
    bottom: 0;
    height: 10px;
    background: var(--tape-stripe);
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

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

    .project-card--1 .project-img,
    .project-card--2 .project-img,
    .project-card--3 .project-img,
    .project-card--4 .project-img {
        height: 260px;
    }

    .hero-card {
        width: 90vw;
    }

    .hero-ribbon {
        left: 2%;
        font-size: 0.65rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-made {
        text-align: left;
    }
}