/* =========================================================
   XG DAVID - bullshit, imagine checking for AI comments in big 2026
   What's your problem if I used AI? Tell me
   If you're not better than me if you don't use it; for 4 years I was writing code,
   before ever you installed a software
   ========================================================= */

/* JetBrains Mono — găzduit local (fără request-uri la Google Fonts → fără IP trimis la terți) */
@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/jetbrains-mono-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Surfaces */
    --bg:            #0e1116;
    --bg-stone:      #15191f;
    --bg-deep:       #0a0c10;

    /* Text */
    --text:          #eaf1f4;
    --text-soft:     #b9c6cf;
    --text-muted:    #87949e;

    /* Accents — Minecraft ores */
    --emerald:       #57d178;
    --teal:          #2ed3bd;   /* diamond / turquoise UI border */
    --gold:          #f7c948;
    --redstone:      #e0533d;
    --lapis:         #5a93e6;
    --amethyst:      #b08bf0;

    --primary:       var(--emerald);
    --secondary:     var(--teal);
    --accent:        var(--gold);

    /* Typography */
    --font-pixel:    "JetBrains Mono", ui-monospace, Consolas, monospace;
    --font-ui:       "JetBrains Mono", ui-monospace, Consolas, monospace;
    --font-sans:     "JetBrains Mono", ui-monospace, Consolas, monospace;

    /* Layout */
    --container:     1180px;
    --transition:    140ms ease;

    /* 9-slice textures */
    /* Panou: textură ore-ui închisă, cu ramă tot închisă (bevel subtil), nu deschisă.
       background_form avea rama gri-deschis → „mult alb”. dropdown_background2 e închisă.
       base_size 8, nineslice 2. */
    --tex-panel:        url("textures/oreui/dropdown_background2.png");
    --slice-panel:      2;
    --tex-panel-purple: url("textures/panel_purple.png");
    --tex-panel-red:    url("textures/panel_red.png");
    --tex-title:        url("textures/title.png");
    --tex-btn:          url("textures/btn.png");
    --tex-btn-hover:    url("textures/btn_hover.png");
}

/* =========================================================
   Base
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    /* discourage drag-to-desktop / drag-to-save of artwork & gifs */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primary); }

.accent { color: var(--gold); }

/* Reusable 9-slice panel built from the resource-pack texture */
.panel-tex {
    border-style: solid;
    border-width: 13px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* =========================================================
   Background — dark cave / stone
   ========================================================= */

.bg-cave {
    position: fixed;
    inset: 0;
    z-index: -2;
    /* Tiled darkened deepslate block, like the classic Minecraft menu background */
    background-color: #12161d;
    background-image: url("textures/bg_tile.png");
    background-repeat: repeat;
    background-size: 56px 56px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* darken the tile so foreground panels/text stay readable */
    background:
        linear-gradient(180deg, rgba(8,10,14,0.55) 0%, rgba(8,10,14,0.42) 100%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* =========================================================
   Nav — Minecraft top bar
   ========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid #000;
    box-shadow: 0 3px 0 rgba(46, 211, 189, 0.22);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--text);
    letter-spacing: 1px;
}
.nav-logo:hover { color: var(--primary); }

/* Creator-glyph logo mark (also recolored by konami easter egg) */
.nav-logo-block {
    width: 28px; height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 13px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-soft);
    border: 2px solid transparent;
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.is-active {
    color: #06140f;
    background: var(--primary);
    border-color: #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.35);
}

/* Konami creative mode easter egg — rainbow over the whole page */
body.creative-mode {
    animation: rainbow 2s linear infinite;
}
@keyframes rainbow {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 9px;
    background: #1b212a;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
}

/* =========================================================
   Buttons — stone UI buttons (9-slice texture)
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border-style: solid;
    border-width: 11px 12px 13px 12px;
    border-image-source: var(--tex-btn);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
    transition: filter var(--transition), transform var(--transition);
}
.btn:hover {
    color: #fff;
    border-image-source: var(--tex-btn-hover);
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(1px); }

.btn-primary { color: var(--emerald); }
.btn-primary:hover { color: #aef7c2; }

.btn-ghost { color: var(--text-soft); }

.btn-sm {
    font-size: 12.5px;
    padding: 6px 12px;
    border-width: 9px 10px 11px 10px;
}

.btn i { font-size: 0.95em; }

/* =========================================================
   Hero — Minecraft title screen
   ========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px 70px;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.80) 60%, var(--bg) 100%),
        var(--tex-panel) ; /* fallback tint */
    background-image:
        linear-gradient(180deg, rgba(10,12,16,0.50) 0%, rgba(10,12,16,0.78) 62%, var(--bg) 100%),
        url("textures/hero.png");
    background-size: cover, cover;
    background-position: center, center;
    image-rendering: auto;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-name {
    position: relative;
    margin: 0;
    display: inline-block;
    line-height: 1;
}
.hero-name-big {
    font-family: var(--font-pixel);
    font-size: clamp(54px, 13vw, 132px);
    color: #f4faf7;
    letter-spacing: 4px;
    text-shadow:
        5px 5px 0 #1b3a2c,
        5px 5px 0 #000,
        0 0 30px rgba(46, 211, 189, 0.35);
}

/* Yellow splash text pinned to the corner of the logo, classic Minecraft title screen */
.hero-splash {
    position: absolute;
    right: -18px;
    bottom: 14px;
    transform-origin: center;
    font-family: var(--font-pixel);
    font-size: clamp(13px, 1.7vw, 20px);
    color: #ffff00;
    white-space: nowrap;
    text-shadow: 3px 3px 0 #3a3a00;
    transform: rotate(-15deg);
    animation: splash 0.9s ease-in-out infinite alternate;
}
@keyframes splash {
    from { transform: rotate(-15deg) scale(1); }
    to   { transform: rotate(-15deg) scale(1.08); }
}

.hero-sub {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
    max-width: 540px;
    margin: 40px auto 34px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 44px;
}

.hero-stats {
    display: inline-flex;
    gap: 0;
    padding: 0;
    border: 0;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 26px;
    border-left: 2px solid rgba(46, 211, 189, 0.25);
}
.stat:first-child { border-left: 0; }
.stat-num {
    font-family: var(--font-pixel);
    font-size: 20px;
    color: var(--emerald);
    text-shadow: 2px 2px 0 #000;
}
.stat-lbl {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.hero-scroll {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-soft);
    background: rgba(0,0,0,0.4);
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12);
    animation: float 2.5s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--primary); }

/* =========================================================
   Sections + headers (title plate)
   ========================================================= */

.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 78px 28px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 42px;
}
.section-num {
    font-family: var(--font-pixel);
    font-size: 13px;
    color: #06140f;
    background: var(--gold);
    padding: 8px 9px 6px;
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.35);
}
.section-title {
    font-family: var(--font-pixel);
    font-size: clamp(16px, 3vw, 24px);
    margin: 0;
    color: #f4faf7;
    letter-spacing: 1px;
    padding: 12px 18px 10px;
    border-style: solid;
    border-width: 9px;
    border-image-source: var(--tex-title);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.section-rule {
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(90deg, rgba(46,211,189,0.4) 0 6px, transparent 6px 12px);
}

.section-lead {
    color: var(--text-soft);
    max-width: 680px;
    margin: -22px 0 38px;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   About — player / character panel
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.player-panel {
    border-style: solid;
    border-width: 14px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    padding: 20px 22px 24px;
    text-align: center;
}
.player-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    padding: 8px;
    background: #0c0f14;
    border: 3px solid #000;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.10), inset -3px -3px 0 rgba(0,0,0,0.45);
}
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}
.player-name {
    font-family: var(--font-pixel);
    font-size: 20px;
    color: #f4faf7;
    text-shadow: 2px 2px 0 #000;
}
.player-gamertag {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--teal);
    margin: 8px 0 18px;
}
.player-stats {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
}
.player-stats li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 8px 4px;
    border-bottom: 2px dotted rgba(255,255,255,0.08);
}
.ps-key { color: var(--text-muted); }
.ps-key i { color: var(--teal); width: 18px; }
.ps-val { color: var(--text); text-align: right; }

/* playful XP-style bar */
.player-bar {
    height: 16px;
    background: #0c0f14;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.5);
    overflow: hidden;
}
.player-bar-fill {
    display: block;
    height: 100%;
    width: 88%;
    background:
        repeating-linear-gradient(90deg, #57d178 0 6px, #46b85f 6px 12px);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
}

.about-text p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
}
.about-text strong { color: var(--text); font-weight: 600; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--text);
    background: #1b212a;
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3), inset 2px 2px 0 rgba(255,255,255,0.10);
    transition: transform var(--transition), color var(--transition);
}
.chip:hover { color: var(--primary); transform: translateY(-2px); }
.chip i { color: var(--teal); font-size: 0.85em; }
.chip:hover i { color: var(--primary); }

/* =========================================================
   Projects — item cards / inventory slots
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.project {
    position: relative;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 13px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: transform var(--transition), filter var(--transition);
}
.project:hover {
    transform: translateY(-5px);
    filter: brightness(1.06);
    /* box-shadow (not drop-shadow) so the shadow follows the card's outer box
       only — a drop-shadow filter traces every child's alpha and paints a dark
       line across the action buttons */
    box-shadow: 0 10px 18px rgba(0,0,0,0.5);
}

.project.featured { grid-column: span 2; }
.project.featured::before {
    content: "★ FEATURED";
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 6px 9px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #1a1300;
    background: var(--gold);
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.4);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0c10;
    cursor: zoom-in;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.08);
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 450ms ease, filter var(--transition);
}
.project:hover .project-media img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.project-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 9px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #06140f;
    background: var(--teal);
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-body {
    padding: 16px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.project-title {
    margin: 0;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #f4faf7;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0 #000;
}
.project-desc {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag {
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1;
    padding: 5px 9px;
    color: var(--teal);
    background: rgba(46, 211, 189, 0.10);
    border: 2px solid rgba(46, 211, 189, 0.4);
}

.project-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* =========================================================
   Timeline — advancement chain
   ========================================================= */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 78px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: repeating-linear-gradient(180deg, var(--emerald) 0 8px, transparent 8px 14px);
    opacity: 0.55;
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    padding: 12px 0 30px;
    align-items: start;
}

.tl-dot {
    position: absolute;
    left: 68px;
    top: 18px;
    width: 22px;
    height: 22px;
    background: var(--emerald);
    border: 3px solid #000;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,0.4), inset -3px -3px 0 rgba(0,0,0,0.35);
    image-rendering: pixelated;
    z-index: 1;
}

.tl-year {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--teal);
    padding-top: 18px;
    text-shadow: 2px 2px 0 #000;
}

.tl-card {
    border-style: solid;
    border-width: 12px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    padding: 14px 16px;
    transition: transform var(--transition), filter var(--transition);
}
.tl-card:hover { transform: translateX(5px); filter: brightness(1.07); }
.tl-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-pixel);
    font-size: 13px;
    color: #f4faf7;
    text-shadow: 2px 2px 0 #000;
}
.tl-card p {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}
.tl-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tl-links a {
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    color: var(--teal);
    background: rgba(46, 211, 189, 0.08);
    border: 2px solid rgba(46, 211, 189, 0.35);
    transition: all var(--transition);
}
.tl-links a:hover {
    color: #06140f;
    background: var(--teal);
    border-color: #000;
}

/* =========================================================
   Contact — server-list / connect panel
   ========================================================= */

.contact-wrap { max-width: 900px; margin: 0 auto; }

.contact-panel {
    border-style: solid;
    border-width: 16px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    padding: 22px 24px 26px;
}
.contact-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid rgba(255,255,255,0.08);
    text-shadow: 2px 2px 0 #000;
}
.contact-panel-head i { color: var(--teal); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #161b22;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.08), inset -2px -2px 0 rgba(0,0,0,0.4);
    transition: transform var(--transition), background var(--transition);
}
.contact-link i {
    font-size: 24px;
    color: var(--teal);
    width: 26px;
    text-align: center;
}
.contact-link:hover {
    transform: translateY(-2px);
    background: #1d2530;
}
.contact-link:hover i { color: var(--primary); }

.contact-link > div { display: flex; flex-direction: column; line-height: 1.25; }
.contact-cmd {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.contact-desc {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================
   Popup
   ========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 11, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
    backdrop-filter: blur(6px);
    overscroll-behavior: contain;
}
.popup-overlay.is-open { display: flex; }

/* Fixed-width panel so every project opens in the same spot */
.popup-content {
    position: relative;
    width: min(560px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 16px;
    border-image-source: var(--tex-panel);
    border-image-slice: var(--slice-panel) fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}
.popup-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;   /* keep the page behind from scrolling */
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.popup-content .popup-img {
    width: 100%;
    max-height: 56vh;
    object-fit: contain;
    image-rendering: pixelated;
    border: 3px solid #000;
}
.popup-info:empty { display: none; }
.popup-info .project-title { margin: 0 0 6px; }
.popup-info .project-desc { margin: 0 0 12px; }
.popup-info .project-tags,
.popup-info .project-actions { margin-top: 10px; }
.close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: var(--redstone);
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.3);
    cursor: pointer;
    transition: filter var(--transition);
}
.close-btn:hover { filter: brightness(1.15); }

/* =========================================================
   Footer
   ========================================================= */

.footer {
    margin-top: 40px;
    padding: 26px 28px;
    background: rgba(10, 12, 16, 0.85);
    border-top: 3px solid #000;
    box-shadow: 0 -3px 0 rgba(46, 211, 189, 0.18);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text);
    letter-spacing: 1px;
}
.footer-block {
    width: 20px; height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Small decorative marketplace icons in the footer */
.footer-loot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 2px solid rgba(255,255,255,0.12);
}
.footer-loot img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
    opacity: 0.85;
    transition: transform var(--transition), opacity var(--transition);
}
.footer-loot img:hover { transform: translateY(-2px) scale(1.12); opacity: 1; }
.footer-meta {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}
.footer-meta a { color: var(--text-soft); }
.footer-meta a:hover { color: var(--primary); }

/* =========================================================
   Animations
   ========================================================= */

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-6px); }
}

/* =========================================================
   Authentic Minecraft pixel icons + decorative scenes
   ========================================================= */

/* Inline pixel UI icon, replaces generic FontAwesome glyphs */
.mc-ic {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.28em;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.btn .mc-ic { width: 18px; height: 18px; vertical-align: -3px; }
.contact-link .mc-ic { width: 26px; height: 26px; vertical-align: middle; }
.contact-panel-head .mc-ic { width: 22px; height: 22px; vertical-align: -4px; }
.ps-key .mc-ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* Decorative pixel-art scene (animated gif), framed like a Minecraft panel */
.mc-scene {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 3px solid #000;
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.10),
        inset -2px -2px 0 rgba(0,0,0,0.45);
}
.about-scene { margin-top: 18px; }
.contact-scene { margin-top: 22px; }

/* Minecart scene closing the timeline, like a final station */
.timeline-scene {
    margin: 46px auto 0;
    max-width: 520px;
    text-align: center;
}
.timeline-scene .mc-scene {
    max-width: 520px;
    width: 100%;
}
.timeline-scene figcaption {
    margin-top: 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* =========================================================
   New decorations — scene background, mascots, glyph icons
   ========================================================= */

/* "First page" pixel scene behind the About section */
/* Full-bleed pixel scene behind the About section. The .section box is
   max-width:1180px and centered, so the scene is painted by full-viewport
   pseudo layers that break out of the container to reach both page edges. */
#about {
    position: relative;
    isolation: isolate;
}
#about::before,
#about::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;            /* span the whole page width, not just the container */
    z-index: -1;
    pointer-events: none;
}
#about::before {
    top: 0;
    bottom: 0;
    background-color: #0b0e13;
    background-image:
        linear-gradient(180deg, rgba(10,12,16,0.60) 0%, rgba(10,12,16,0.80) 70%, rgba(10,12,16,0.92) 100%),
        url("textures/mc/update_world_chunks.png");
    background-size: 100% 100%, 100% auto;
    background-position: center, center top;
    background-repeat: no-repeat, no-repeat;
}
/* dark tiled band that dissolves the scene into the site background */
#about::after {
    bottom: 0;
    height: 190px;
    background: url("textures/mc/bundle_wide_tile.png") repeat-x bottom;
    background-size: auto 100%;
    image-rendering: pixelated;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 78%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 78%);
}

/* Photo avatar (GTA logo) fills the framed box edge-to-edge */
.player-avatar-photo { padding: 4px; }
.player-avatar-photo img {
    object-fit: cover;
    image-rendering: auto;
}

/* Verified check next to the player name */
.mc-verified {
    display: inline-block;
    width: 16px; height: 16px;
    vertical-align: -2px;
    margin-left: 4px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Community-rep star rating */
.player-rating {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: -10px 0 16px;
}
.player-rating .mc-star {
    width: 16px; height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Decorative mob mascot pinned to the right of each section header */
.section-mascot {
    height: 52px;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    flex: 0 0 auto;
    margin-left: 14px;
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.45));
    animation: mascot-bob 2.4s ease-in-out infinite alternate;
}
@keyframes mascot-bob {
    from { transform: translateY(0) rotate(-2deg); }
    to   { transform: translateY(-6px) rotate(2deg); }
}

/* search glyph in the projects lead */
.mc-ic-search { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }

/* Fox companion peeking in the about text column */
.about-fox {
    width: 120px;
    height: auto;
    margin: 14px auto 0;
    image-rendering: pixelated;
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.4));
    animation: mascot-bob 3s ease-in-out infinite alternate;
}

/* =========================================================
   Loading screen (shown on first paint, fades on load)
   ========================================================= */
.mc-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0c10;
    background-image: url("textures/bg_tile.png");
    background-size: 56px 56px;
    image-rendering: pixelated;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.mc-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,10,14,0.55), rgba(8,10,14,0.78));
}
.mc-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.mc-loader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
/* Potion-bottle flipbook (10 frames cycled by script.js, like a gif) */
.mc-loader-bottle {
    width: 72px;
    height: 104px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.5));
    animation: mc-loader-bob 1.4s ease-in-out infinite alternate;
}
@keyframes mc-loader-bob {
    from { transform: translateY(0); }
    to   { transform: translateY(-7px); }
}
.mc-loader-text {
    font-family: var(--font-pixel);
    font-size: 22px;
    letter-spacing: 3px;
    color: #f4faf7;
    text-shadow: 3px 3px 0 #1b3a2c, 3px 3px 0 #000;
}
.mc-loader-sub {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    animation: mc-loader-blink 1.1s steps(1) infinite;
}
@keyframes mc-loader-blink {
    0%, 60% { opacity: 1; }
    61%, 100% { opacity: 0.3; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Desktop comfort zoom — render the whole site at ~125% (bigger,
   more readable, more full-screen) the way the author prefers it.
   Scoped to desktop so phones/tablets keep their native scale. */
@media (min-width: 901px) {
    html, body { overflow-x: hidden; }
    body { zoom: 1.25; }
    .hero { min-height: 80vh; }   /* 80vh * 1.25 ≈ one full screen */
    /* body zoom magnifies vw too, so 80vw * 1.25 = a true full viewport width */
    #about::before, #about::after { width: 80vw; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .player-panel { max-width: 360px; margin: 0 auto; }
    .project.featured { grid-column: span 1; }
}

@media (max-width: 720px) {
    .nav { padding: 10px 16px; }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 16px;
        flex-direction: column;
        gap: 4px;
        padding: 10px;
        background: #11161d;
        border: 3px solid #000;
        display: none;
        min-width: 190px;
    }
    .nav-links.is-open { display: flex; }
    .nav-toggle { display: flex; }

    .hero { min-height: 80vh; padding: 70px 18px 60px; }
    .section { padding: 56px 18px; }

    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat { padding: 8px 18px; }

    .timeline::before { left: 9px; }
    .tl-item { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
    .tl-dot { left: 0; top: 12px; }
    .tl-year { padding-top: 0; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
    .section-mascot { height: 38px; margin-left: 8px; }
    .footer-loot { padding-left: 8px; gap: 6px; }
}

@media (max-width: 460px) {
    .section-mascot { display: none; }
    .hero-name-big { font-size: 58px; letter-spacing: 2px; }
    .hero-splash { right: 0; bottom: 8px; font-size: 12px; }
    .project-title { font-size: 12px; }
    .section-title { font-size: 15px; }
}
