@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #f4e9c4;
    --secondary-color: #c6b98a;
    --accent-color: #63c74d;
    --accent-deep: #2a8b2a;
    --bg-color: #1b1f18;
    --panel-color: #2b3026;
    --panel-soft: #37412e;
    --border-color: #0f120d;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --spacing-unit: 1rem;
    --nav-height: 64px; /* adjust if your nav height changes */
    --footer-height: 56px; /* adjust if footer changes */
}

body {
    font-family: 'VT323', monospace;
    color: var(--primary-color);
    background-color: var(--bg-color);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, #5aa83f 0 120px, #39592f 120px 250px, #1f221b 250px 100%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
    line-height: 1.45;
    padding-bottom: calc(var(--footer-height) + 16px);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #31392e 0%, #20251d 100%);
    border-bottom: 4px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
    z-index: 100;
}

.nav-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: #f6e5b6;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #d9ca9a;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0.15rem 0.35rem;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    color: #fff8d8;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.container {
    max-width: 920px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 0;
}

/* Inventory Section */
.inventory {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 4px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(37, 44, 34, 0.96), rgba(28, 31, 24, 0.96)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 12px, rgba(0, 0, 0, 0.03) 12px 24px);
    box-shadow: 0 16px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem 0.1rem;
    background: linear-gradient(180deg, #85d85f 0%, #4d9536 100%);
    border: 3px solid #132010;
    box-shadow: 0 4px 0 #0c1209;
    color: #10200d;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff6cf;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.item-card {
    position: relative;
    padding: 1rem;
    border: 4px solid var(--border-color);
    background: linear-gradient(180deg, rgba(74, 80, 61, 0.98), rgba(44, 49, 38, 0.98));
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.item-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.item-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    border: 3px solid #12160f;
    background-color: #d8c77f;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80% 80%;
    box-shadow: 0 4px 0 #0c1209;
    color: transparent;
    font-size: 0;
    image-rendering: pixelated;
}

.item-card h3 {
    margin-bottom: 0.45rem;
    color: #fff6cf;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
}

.item-card p {
    color: #dfd1a0;
    font-size: 1.45rem;
    line-height: 1.35;
}

.grass-block .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='13' y='6' width='6' height='16' fill='%238b5a2b'/%3E%3Crect x='9' y='4' width='14' height='4' fill='%236d4520'/%3E%3Crect x='11' y='8' width='10' height='4' fill='%23b07b45'/%3E%3Crect x='7' y='7' width='8' height='4' fill='%238b5a2b'/%3E%3Crect x='17' y='7' width='8' height='4' fill='%238b5a2b'/%3E%3Crect x='15' y='12' width='3' height='12' fill='%23d9c18f'/%3E%3C/svg%3E");
    background-color: #d6b56a;
}

.javascript-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='%238b6b2b'/%3E%3Crect x='2' y='2' width='28' height='28' fill='%23b98a3b'/%3E%3Crect x='2' y='2' width='28' height='4' fill='%23e4cf7b'/%3E%3Crect x='2' y='26' width='28' height='4' fill='%23513918'/%3E%3Crect x='6' y='6' width='20' height='20' fill='%23d1ab46'/%3E%3Crect x='8' y='8' width='16' height='16' fill='%23f1d668'/%3E%3Crect x='10' y='10' width='12' height='2' fill='%235f4618'/%3E%3Crect x='10' y='12' width='2' height='8' fill='%235f4618'/%3E%3Crect x='10' y='18' width='6' height='2' fill='%235f4618'/%3E%3Crect x='18' y='10' width='2' height='10' fill='%235f4618'/%3E%3Crect x='18' y='18' width='4' height='2' fill='%235f4618'/%3E%3Crect x='20' y='10' width='2' height='2' fill='%235f4618'/%3E%3Crect x='16' y='6' width='8' height='2' fill='%23fff0af'/%3E%3C/svg%3E");
    background-color: #f1d668;
}

.diamond-sword .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='14' y='5' width='4' height='16' fill='%2377dfe0'/%3E%3Crect x='13' y='21' width='6' height='3' fill='%235a4226'/%3E%3Crect x='12' y='24' width='8' height='2' fill='%239b6a3a'/%3E%3Crect x='15' y='7' width='2' height='11' fill='%23d9ffff'/%3E%3Crect x='12' y='3' width='8' height='3' fill='%2358b7b8'/%3E%3Crect x='13' y='2' width='6' height='2' fill='%23b6ffff'/%3E%3C/svg%3E");
    background-color: #79d9d8;
}

.typescript-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='%233f6ea8'/%3E%3Crect x='2' y='2' width='28' height='28' fill='%234f86cb'/%3E%3Crect x='2' y='2' width='28' height='4' fill='%2395c0ef'/%3E%3Crect x='2' y='26' width='28' height='4' fill='%23284d7a'/%3E%3Crect x='6' y='6' width='20' height='20' fill='%235a98df'/%3E%3Crect x='8' y='8' width='16' height='16' fill='%236ea7f0'/%3E%3Crect x='10' y='10' width='12' height='2' fill='%231f3f66'/%3E%3Crect x='15' y='10' width='2' height='10' fill='%231f3f66'/%3E%3Crect x='11' y='12' width='10' height='2' fill='%231f3f66'/%3E%3Crect x='11' y='18' width='8' height='2' fill='%231f3f66'/%3E%3Crect x='20' y='10' width='2' height='10' fill='%231f3f66'/%3E%3Crect x='16' y='18' width='6' height='2' fill='%231f3f66'/%3E%3Crect x='17' y='6' width='7' height='2' fill='%23d6eaff'/%3E%3C/svg%3E");
    background-color: #6ea7f0;
}

.torch .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='14' y='7' width='4' height='17' fill='%238c5d2f'/%3E%3Crect x='13' y='4' width='6' height='5' fill='%23f3cc55'/%3E%3Crect x='12' y='6' width='8' height='5' fill='%23ffd86d'/%3E%3Crect x='11' y='5' width='10' height='3' fill='%23fff0a3'/%3E%3Crect x='14' y='24' width='4' height='3' fill='%23563b1f'/%3E%3C/svg%3E");
    background-color: #ffe38d;
}

.ore .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='6' y='6' width='20' height='20' fill='%23787979'/%3E%3Crect x='8' y='8' width='4' height='4' fill='%235d5d5d'/%3E%3Crect x='18' y='9' width='4' height='4' fill='%235d5d5d'/%3E%3Crect x='11' y='16' width='4' height='4' fill='%235d5d5d'/%3E%3Crect x='19' y='17' width='3' height='3' fill='%235d5d5d'/%3E%3Crect x='15' y='11' width='4' height='4' fill='%2300d1ff'/%3E%3Crect x='12' y='19' width='4' height='3' fill='%2300d1ff'/%3E%3C/svg%3E");
    background-color: #9d9d9d;
}

.chest .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='6' y='8' width='20' height='16' fill='%23976626'/%3E%3Crect x='6' y='8' width='20' height='4' fill='%23c99044'/%3E%3Crect x='8' y='10' width='16' height='2' fill='%23f1c56c'/%3E%3Crect x='14' y='12' width='4' height='8' fill='%235b3b15'/%3E%3Crect x='13' y='15' width='6' height='2' fill='%23d8b566'/%3E%3Crect x='10' y='20' width='12' height='2' fill='%235b3b15'/%3E%3C/svg%3E");
    background-color: #cf9b54;
}

.map .item-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='none'/%3E%3Crect x='6' y='6' width='18' height='20' fill='%23d8c58d'/%3E%3Crect x='8' y='8' width='14' height='16' fill='%23efe1ba'/%3E%3Crect x='9' y='9' width='3' height='12' fill='%23c8b380'/%3E%3Crect x='14' y='10' width='2' height='2' fill='%2362ad4f'/%3E%3Crect x='17' y='14' width='2' height='2' fill='%238f6d3b'/%3E%3Crect x='12' y='17' width='4' height='2' fill='%2384b8f0'/%3E%3Crect x='20' y='20' width='2' height='2' fill='%23c94f4f'/%3E%3C/svg%3E");
    background-color: #f0dfb4;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 0 2rem 0;
    padding: 2rem;
    border: 4px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(88, 73, 40, 0.9), rgba(45, 53, 40, 0.95)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 10px, rgba(0, 0, 0, 0.02) 10px 20px);
    box-shadow: 0 16px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.hero-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-direction: row-reverse;
}

.hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.45;
    color: #fff6cf;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    font-size: 2rem;
    color: #dfd1a0;
    line-height: 1.25;
    max-width: 680px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    border: 6px solid #141812;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.32), inset 0 0 0 4px rgba(255, 255, 255, 0.08);
    background: #3c3c3c;
    image-rendering: pixelated;
}

/* About Section */
.about {
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: auto;
    padding: 2rem;
    border: 4px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(45, 53, 40, 0.96), rgba(34, 37, 28, 0.96)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 8px, rgba(0, 0, 0, 0.025) 8px 16px);
    box-shadow: 0 16px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.about h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #fff6cf;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.about p {
    margin-bottom: 1.5rem;
    color: #dfd1a0;
    line-height: 1.5;
    font-size: 2rem;
}

.about p:last-of-type {
    margin-bottom: 0;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #31392e 0%, #1e231b 100%);
    border-top: 4px solid var(--border-color);
    padding: 0.75rem 2rem;
    text-align: center;
    z-index: 99;
    box-shadow: 0 -10px 24px var(--shadow-color);
}

.footer p {
    color: #d8c89b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer .footer-copyright {
    font-size: 1rem;
    margin-bottom: 0;
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.25rem 0;
}

.social-link {
    color: #15260f;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0.4rem 0.8rem 0.25rem;
    background: linear-gradient(180deg, #7dd35e 0%, #4f9e35 100%);
    border: 3px solid #132010;
    box-shadow: 0 4px 0 #0c1209;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0c1209;
    filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem 1rem 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .inventory {
        padding: 1.25rem;
    }

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

    .section-heading h2 {
        font-size: 1rem;
    }

    .item-card p {
        font-size: 1.35rem;
    }

    .about h2 {
        font-size: 1.15rem;
    }

    .about p {
        font-size: 1.55rem;
    }

    .hero,
    .about {
        padding: 1.25rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-logo {
        font-size: 0.65rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .footer p,
    .footer .footer-copyright {
        font-size: 1rem;
    }
}
