:root {
    --bg: #0b0b0c;
    --card: #151515;
    --border: #232323;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --accent: #aaf;
    --radius: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    padding: 32px;
}

h3 {
    margin-bottom: 1rem;
}
a {
    text-decoration: none;
    color: var(--accent);
}


/* --- HEADER/NAV --- */

header nav {
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}
header nav li {
    display: flex;
    gap: 2rem;
}

.pio {
    font-weight: bold;
    color: #eee;
}
.pio .dot {
    color: #aaa;
}
.pio .io {
    color: #ffaa99;
}


/* --- BENTO GRID --- */

.bento {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    grid-template-rows: 200px 200px;
    gap: 20px;
}


/* --- CARD BASE --- */

.card {
    background: linear-gradient(180deg, #181818, #121212);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
}


/* --- PROFILE --- */

.profile {
    grid-row: span 2;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    background: #2a2a2a;
    border-radius: 50%;
    margin: 0 auto 18px;
    background-image: url(https://avatars.githubusercontent.com/u/121722022?v=4);
    background-repeat: no-repeat;
    background-size: cover;
}
.profile h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.profile p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.4;
}


/* --- PROJECTS --- */

.projects {
    position: relative;
}
.project {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.project-type {
    color: #777;
}
.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #eee;
}
.project-desc {
    color: #aaa;
}
.project-tags {
    margin-top: 0.5rem;
    color: #aaf;
}
.project-tags span {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #1e1e1e;
}
.project-preview {
    width: 20%;
    aspect-ratio: 16 / 14;
    overflow: hidden;
    background: #2a2a2a;
    border-radius: 18px;
}
.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- ABOUT --- */

.about p {
    color: var(--muted);
    max-width: 90%;
    line-height: 1.6;
}


/* --- CONTACT --- */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 14px;
}
.contact .email {
    grid-column: span 3;
    margin-bottom: 6px;
    font-weight: 500;
}
.contact a {
    text-decoration: none;
    color: var(--text);
    font-size: .9rem;
    opacity: .85;
}
.contact a:hover {
    opacity: 1;
}


/* --- FOOTER ---*/

footer {
    border-top: 1px solid #1e1e1e;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* --- MOBILE --- */
@media (max-width: 900px) {
    .bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .profile {
        grid-row: auto;
    }
    .project-preview {
        margin-top: 2rem;
        width: 100%;
        aspect-ratio: 16 / 14;
    }
}
