* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #fff0f7;

    background-image:
        radial-gradient(#f3acd0 2px, transparent 2px);

    background-size: 24px 24px;

    color: #38232f;

    font-family:
        "Courier New",
        monospace;
}

body::selection {
    background: #d45d9c;
    color: white;
}

main {
    width: min(1000px, 94%);

    margin: 25px auto;

    background: #fff9fc;

    border: 4px solid #d45d9c;

    box-shadow:
        10px 10px #b84f86;
}


/* =========================
   SCANLINES
========================= */

.scanlines {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 9999;

    opacity: 0.035;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 3px,
            #38232f 4px
        );
}


/* =========================
   HEADER
========================= */

.game-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 18px 25px;

    background: #d45d9c;

    color: white;

    border-bottom: 4px solid #38232f;
}

.game-title {
    font-family:
        "Press Start 2P",
        monospace;

    font-size: 20px;
}

.game-stats {
    display: flex;

    gap: 18px;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 9px;
}

.game-stats span {
    white-space: nowrap;
}

.welcome-text {
    padding: 20px;

    text-align: center;

    color: #c34d8c;

    font-weight: bold;
}


/* =========================
   NAV
========================= */

nav {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    padding: 5px 20px 25px;
}

nav a {
    padding: 10px 13px;

    background: white;

    color: #38232f;

    text-decoration: none;

    border: 3px solid #38232f;

    box-shadow: 5px 5px #38232f;

    font-weight: bold;

    font-size: 12px;

    transition: 0.1s;
}

nav a:hover {
    background: #ffd1e6;

    transform:
        translate(2px, 2px);

    box-shadow:
        3px 3px #38232f;
}

nav a:active {
    transform:
        translate(5px, 5px);

    box-shadow: none;
}


/* =========================
   SECTIONS
========================= */

section {
    margin: 25px;

    padding: 30px;

    background: white;

    border: 3px solid #d45d9c;

    box-shadow:
        6px 6px #e7a4c5;
}

.section-heading {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 17px;

    line-height: 1.6;
}

.section-heading p {
    margin: 5px 0 0;

    color: #8d6077;

    font-size: 12px;
}

.section-icon {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 55px;

    height: 55px;

    flex-shrink: 0;

    background: #ffd1e6;

    border: 3px solid #38232f;

    box-shadow:
        4px 4px #38232f;

    font-size: 25px;
}


/* =========================
   HERO
========================= */

.hero-section {
    text-align: center;

    padding: 50px 35px;
}

.hero-character {
    font-size: 65px;

    margin-bottom: 15px;

    animation:
        floaty 2s ease-in-out infinite;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.quest-label {
    display: inline-block;

    margin-bottom: 15px;

    padding: 6px 10px;

    background: #ffd1e6;

    border: 2px solid #c64e90;

    color: #c64e90;

    font-size: 10px;

    font-weight: bold;
}

.hero-section h1 {
    margin: 10px 0 15px;

    color: #d04f94;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 27px;

    line-height: 1.7;
}

.hero-subtitle {
    max-width: 650px;

    margin: auto;

    line-height: 1.8;

    font-size: 15px;
}


/* =========================
   XP
========================= */

.xp-container {
    max-width: 500px;

    margin: 30px auto;
}

.xp-info {
    display: flex;

    justify-content: space-between;

    margin-bottom: 6px;

    font-size: 10px;

    font-weight: bold;
}

.xp-bar {
    height: 16px;

    padding: 2px;

    background: #fff;

    border: 3px solid #38232f;
}

.xp-fill {
    width: 72%;

    height: 100%;

    background: #d45d9c;

    animation:
        loadXP 1.2s ease-out;
}

@keyframes loadXP {

    from {
        width: 0;
    }

    to {
        width: 72%;
    }
}


/* =========================
   PLAYER STATUS
========================= */

.player-status {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin: 25px 0;
}

.status-box {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px;

    text-align: left;

    background: #fff0f7;

    border: 2px solid #d45d9c;
}

.status-icon {
    font-size: 22px;
}

.status-box strong,
.status-box small {
    display: block;
}

.status-box strong {
    color: #c64e90;

    font-size: 10px;
}

.status-box small {
    margin-top: 5px;

    font-size: 9px;
}


/* =========================
   BUTTONS
========================= */

.game-button {
    display: inline-block;

    padding: 10px 14px;

    margin: 5px;

    background: white;

    color: #38232f;

    border: 3px solid #38232f;

    box-shadow:
        5px 5px #38232f;

    font-family:
        "Courier New",
        monospace;

    font-weight: bold;

    font-size: 11px;

    cursor: pointer;

    text-decoration: none;

    transition: 0.08s;
}

.game-button:hover {
    background: #ffd1e6;

    transform:
        translate(2px, 2px);

    box-shadow:
        3px 3px #38232f;
}

.game-button:active {
    transform:
        translate(5px, 5px);

    box-shadow: none;
}

.primary-button {
    background: #d45d9c;

    color: white;
}


/* =========================
   ABOUT
========================= */

.about-layout {
    display: grid;

    grid-template-columns:
        1.2fr 1fr;

    gap: 30px;
}

.about-text p {
    line-height: 1.8;

    font-size: 13px;
}

.character-stats {
    padding: 15px;

    background: #fff0f7;

    border: 2px dashed #d45d9c;
}

.stat-row {
    margin-bottom: 15px;
}

.stat-row span {
    display: block;

    margin-bottom: 6px;

    font-size: 9px;

    font-weight: bold;
}

.mini-bar {
    height: 10px;

    background: white;

    border: 2px solid #38232f;
}

.mini-bar div {
    height: 100%;

    background: #d45d9c;
}


/* =========================
   CURRENT QUEST
========================= */

.quest-section {
    background: #fff0f7;
}

.quest-header {
    display: flex;

    align-items: center;

    gap: 15px;
}

.quest-header > span {
    font-size: 35px;
}

.quest-header h2 {
    margin: 0;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 16px;
}

.quest-header p {
    margin: 5px 0;

    font-size: 11px;
}

.quest-card {
    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 30px;

    margin-top: 20px;

    padding: 20px;

    background: white;

    border: 3px solid #38232f;

    box-shadow:
        6px 6px #d45d9c;
}

.quest-number {
    color: #c64e90;

    font-size: 10px;

    font-weight: bold;
}

.quest-main h3 {
    font-family:
        "Press Start 2P",
        monospace;

    font-size: 14px;

    line-height: 1.6;
}

.quest-main p {
    line-height: 1.7;

    font-size: 12px;
}

.quest-progress {
    align-self: center;
}

.quest-progress-info {
    display: flex;

    justify-content: space-between;

    font-size: 9px;

    font-weight: bold;

    margin-bottom: 6px;
}

.quest-status {
    display: inline-block;

    margin-top: 12px;

    padding: 6px 9px;

    background: #ffd1e6;

    border: 2px solid #c64e90;

    color: #c64e90;

    font-size: 9px;

    font-weight: bold;
}


/* =========================
   PROJECTS
========================= */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.project-card {
    overflow: hidden;

    background: #fff0f7;

    border: 3px solid #38232f;

    box-shadow:
        6px 6px #d45d9c;

    transition: 0.15s;
}

.project-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        6px 11px #d45d9c;
}

.project-image {
    position: relative;

    height: 160px;

    background: #fff;

    border-bottom: 3px solid #38232f;

    overflow: hidden;
}

.project-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: top;
}

.project-badge {
    position: absolute;

    top: 10px;

    right: 10px;

    padding: 6px 8px;

    background: #ffd1e6;

    border: 2px solid #c64e90;

    font-size: 8px;

    font-weight: bold;
}

.project-content {
    padding: 15px;
}

.quest-type {
    color: #c64e90;

    font-size: 9px;

    font-weight: bold;
}

.project-content h3 {
    margin: 12px 0;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 12px;

    line-height: 1.7;
}

.project-content p {
    line-height: 1.5;

    font-size: 11px;
    margin-bottom: 10px;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin: 15px 0;
}

.tags span {
    padding: 5px 7px;

    background: #ffd1e6;

    border: 2px solid #c64e90;

    font-size: 8px;

    font-weight: bold;
}

.project-buttons {
    display: flex;

    flex-wrap: wrap;
}


/* =========================
   LOCKED PROJECTS
========================= */

.locked-project {
    opacity: 0.8;
}

.locked-project:hover {
    opacity: 1;
}

.locked-image {
    height: 160px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 10px;

    background: #ffe8f2;

    border-bottom: 3px solid #38232f;

    color: #c64e90;

    text-align: center;
}

.locked-image strong {
    font-family:
        "Press Start 2P",
        monospace;

    font-size: 11px;
}

.locked-image small {
    font-size: 9px;
}

.locked-button {
    opacity: 0.7;

    cursor: not-allowed;
}


/* =========================
   SKILLS
========================= */

.skill-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.skill-card {
    padding: 15px;

    background: #fff0f7;

    border: 2px solid #d45d9c;
}

.skill-title {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;

    font-size: 10px;

    font-weight: bold;
}

.skill-title span {
    color: #c64e90;

    font-size: 8px;
}

.skill-bar {
    height: 12px;

    padding: 2px;

    background: white;

    border: 2px solid #38232f;
}

.skill-bar div {
    height: 100%;

    background: #d45d9c;
}


/* =========================
   INVENTORY
========================= */

.inventory-section {
    background: #fff0f7;
}

.inventory-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;
}

.inventory-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    padding: 12px 5px;

    text-align: center;

    background: white;

    border: 2px solid #d45d9c;

    font-size: 20px;
}

.inventory-item span {
    font-size: 9px;

    font-weight: bold;
}

.inventory-item small {
    color: #c64e90;

    font-size: 7px;
}


/* =========================
   ACHIEVEMENTS
========================= */

.achievement-card {
    display: flex;

    align-items: center;

    gap: 20px;

    max-width: 600px;

    padding: 20px;

    background: #fff0f7;

    border: 3px solid #38232f;

    box-shadow:
        5px 5px #d45d9c;
}

.achievement-icon {
    width: 80px;

    height: 80px;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-shrink: 0;

    background: #ffd1e6;

    border: 3px solid #d45d9c;

    font-size: 35px;
}

.achievement-status {
    color: #c64e90;

    font-size: 9px;

    font-weight: bold;
}

.achievement-card h3 {
    margin: 10px 0;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 12px;
}

.achievement-card p {
    font-size: 11px;

    line-height: 1.6;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    text-align: center;
}

.center-heading {
    justify-content: center;
}

.contact-section > p {
    max-width: 550px;

    margin: auto;

    line-height: 1.8;

    font-size: 13px;
}

.contact-buttons {
    margin-top: 20px;
}


/* =========================
   POPUP
========================= */

.popup {
    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(45, 25, 38, 0.78);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease;

    z-index: 1000;
}

.popup.show {
    opacity: 1;

    visibility: visible;
}

.popup-box {
    position: relative;

    width: 750px;

    max-width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    background: #fff9fc;

    border: 4px solid #d45d9c;

    box-shadow:
        9px 9px #b84f86;

    transform:
        translateY(20px);

    transition:
        transform 0.2s ease;
}

.popup.show .popup-box {
    transform:
        translateY(0);
}

.close-button {
    position: sticky;

    float: right;

    top: 0;

    padding: 8px 12px;

    background: white;

    border: 3px solid #38232f;

    font-weight: bold;

    cursor: pointer;
}

.popup-label {
    display: inline-block;

    margin-bottom: 15px;

    padding: 6px 9px;

    background: #ffd1e6;

    border: 2px solid #c64e90;

    color: #c64e90;

    font-size: 9px;

    font-weight: bold;
}

.popup-box h2 {
    margin: 5px 0;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 20px;

    line-height: 1.7;
}

.popup-subtitle {
    color: #8d6077;

    font-weight: bold;
}

.popup-image {
    margin: 20px 0;

    padding: 8px;

    background: #ffe8f2;

    border: 3px dashed #d45d9c;
}

.popup-image img {
    display: block;

    width: 100%;

    max-height: 400px;

    object-fit: contain;
}

.popup-box h3 {
    margin-top: 25px;

    color: #c64e90;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 13px;
}

.popup-box > p {
    line-height: 1.7;

    font-size: 12px;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin: 20px 0;
}

.feature-grid div {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding: 15px;

    background: #fff0f7;

    border: 2px solid #d45d9c;
}

.feature-grid strong {
    color: #c64e90;

    font-size: 11px;
}

.feature-grid small {
    line-height: 1.5;

    font-size: 9px;
}

.popup-buttons {
    margin-top: 20px;

    text-align: center;
}


/* =========================
   PROJECT SHOWCASE
========================= */

.showcase-section {
    margin: 30px 0;

    padding: 20px;

    background: #fff0f7;

    border: 3px solid #d45d9c;

    box-shadow: 5px 5px #e7a4c5;
}

.admin-showcase {
    background: #fff8fb;
}

.showcase-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    font-size: 25px;
}

.showcase-heading h3 {
    margin: 0 !important;

    font-size: 14px !important;
}

.showcase-heading p {
    margin: 5px 0 0;

    color: #8d6077;

    font-size: 9px;
}

.showcase-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.showcase-image {
    background: white;

    border: 3px solid #38232f;

    box-shadow:
        5px 5px #d45d9c;

    overflow: hidden;

    cursor: pointer;

    transition: 0.15s;
}

.showcase-image:hover {
    transform:
        translateY(-4px);

    box-shadow:
        5px 9px #d45d9c;
}

.showcase-image img {
    display: block;

    width: 100%;

    height: 190px;

    object-fit: cover;

    object-position: top;

    border-bottom: 3px solid #38232f;
}

.showcase-image span {
    display: block;

    padding: 10px;

    color: #c64e90;

    font-size: 9px;

    font-weight: bold;
}


/* =========================
   NOTIFICATION
========================= */

.notification {
    position: fixed;

    right: 25px;

    bottom: 25px;

    padding: 14px 18px;

    background: #d45d9c;

    color: white;

    border: 3px solid #38232f;

    box-shadow:
        5px 5px #38232f;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 9px;

    opacity: 0;

    transform:
        translateY(20px);

    pointer-events: none;

    transition:
        0.25s;

    z-index: 2000;
}

.notification.show {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================
   FOOTER
========================= */

footer {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    background: #d45d9c;

    color: white;

    border-top: 4px solid #38232f;

    font-size: 9px;

    font-weight: bold;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .about-layout,
    .quest-card {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    main {
        width: 94%;

        margin: 15px auto;

        box-shadow:
            6px 6px #b84f86;
    }

    .game-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .game-stats {
        gap: 10px;
    }

    .hero-section {
        padding: 35px 20px;
    }

    .hero-section h1 {
        font-size: 19px;
    }

    .player-status {
        grid-template-columns: 1fr;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        flex-direction: column;

        text-align: center;
    }

    footer {
        flex-direction: column;

        text-align: center;
    }

    section {
        margin: 18px;

        padding: 20px;
    }

}

/* =========================
   IMAGE PREVIEW
========================= */

.image-preview {
    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

    background:
        rgba(35, 20, 30, 0.92);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: 0.2s;

    z-index: 3000;
}

.image-preview.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.image-preview img {
    max-width: 90vw;

    max-height: 85vh;

    object-fit: contain;

    background: white;

    border: 4px solid #d45d9c;

    box-shadow:
        10px 10px #b84f86;
}

.image-preview-close {
    position: absolute;

    top: 25px;

    right: 30px;

    padding: 10px 15px;

    background: white;

    border: 3px solid #38232f;

    box-shadow:
        4px 4px #38232f;

    font-weight: bold;

    cursor: pointer;
}

.image-preview-close:hover {
    background: #ffd1e6;
}

/* =========================================
   KISHA.EXE — NEW COLOR PALETTE
   Cream / Dusty Rose / Cherry / Brown
   ========================================= */

:root {
    --bg: #f7f1e8;
    --panel: #fffaf4;
    --panel-soft: #f5e5df;

    --primary: #b94f6b;
    --primary-dark: #7f3048;
    --primary-light: #e8a9b8;

    --accent: #d47b72;
    --accent-soft: #f1c8c0;

    --text: #34262a;
    --text-soft: #725c62;

    --border: #34262a;
    --shadow: #b94f6b;
}

/* PAGE */
body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

/* MAIN CONTAINER */
.container,
.wrapper,
main {
    background-color: var(--panel) !important;
}

/* HEADER */
header,
.site-header,
.top-bar {
    background: var(--primary-dark) !important;
    color: #fffaf4 !important;
    border-color: var(--border) !important;
}

/* HEADER TEXT */
header *,
.site-header *,
.top-bar * {
    color: #fffaf4 !important;
}

/* NAVIGATION BUTTONS */
nav a,
.nav a,
button,
.btn {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    box-shadow: 4px 4px 0 var(--border) !important;
}

/* HOVER */
nav a:hover,
.nav a:hover,
button:hover,
.btn:hover {
    background: var(--primary-light) !important;
    color: var(--text) !important;
    transform: translate(-2px, -2px);
}

/* ACTIVE / MAIN BUTTON */
.btn-primary,
.primary,
button.primary {
    background: var(--primary) !important;
    color: #fffaf4 !important;
}

/* SECTIONS / CARDS */
section,
.card,
.project-card,
.skill-card,
.achievement-card,
.inventory-card {
    background: var(--panel) !important;
    border-color: var(--primary) !important;
    color: var(--text) !important;
}

/* SOFT PINK AREAS */
.project-card:nth-child(even),
.skill-card:nth-child(even),
.achievement-card:nth-child(even) {
    background: var(--panel-soft) !important;
}

/* HEADINGS */
h1,
h2,
h3,
h4 {
    color: var(--primary-dark) !important;
}

/* SMALL LABELS / TAGS */
.tag,
.badge,
.tech-tag,
.status,
.quest-tag {
    background: var(--accent-soft) !important;
    color: var(--primary-dark) !important;
    border-color: var(--primary) !important;
}

/* XP / PROGRESS BARS */
.progress,
.xp-bar,
.progress-bar {
    background: #eadbd4 !important;
    border-color: var(--border) !important;
}

.progress-fill,
.xp-fill {
    background: var(--primary) !important;
}

/* LINKS */
a {
    color: var(--primary-dark);
}

a:hover {
    color: var(--primary);
}

/* MODALS / POPUPS */
.modal,
.popup,
.project-modal {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    box-shadow: 8px 8px 0 var(--primary) !important;
}

/* MODAL HEADER */
.modal-header,
.popup-header {
    background: var(--primary) !important;
    color: #fffaf4 !important;
}

/* LOCKED ITEMS */
.locked {
    background: #eee3dc !important;
    color: #8a7775 !important;
    border-color: #8a7775 !important;
}

/* INPUTS */
input,
textarea,
select {
    background: #fffaf4 !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* FOOTER */
footer {
    background: var(--primary-dark) !important;
    color: #fffaf4 !important;
    border-color: var(--border) !important;
}

footer * {
    color: #fffaf4 !important;
}

/* PIXEL DOT BACKGROUND */
body::before {
    background-image: radial-gradient(
        var(--primary-light) 1px,
        transparent 1px
    ) !important;
}

/* =========================================
   KISHA.EXE — LIFE UPDATE
   Tiny interactions + game feel
   ========================================= */

/* Smoother everything */
* {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

/* -------------------------
   PROJECT CARDS
------------------------- */

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 7px 7px 0 var(--primary);
}

.project-card:active {
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 var(--primary);
}

/* little shine when hovering */
.project-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -60%;
    width: 40%;
    height: 300%;
    background: rgba(255,255,255,0.25);
    transform: rotate(25deg);
    pointer-events: none;
}

.project-card:hover::after {
    animation: cardShine 0.7s ease;
}

@keyframes cardShine {
    from {
        left: -60%;
    }
    to {
        left: 140%;
    }
}


/* -------------------------
   BUTTONS
------------------------- */

button,
.btn,
nav a {
    position: relative;
    cursor: pointer;
}

button:active,
.btn:active,
nav a:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0 var(--border) !important;
}


/* -------------------------
   HERO
------------------------- */

.hero,
.hero-section {
    position: relative;
    overflow: hidden;
}

/* tiny floating sparkles */
.hero::before {
    content: "✦  ˚  ✧  ·  ♡  ˚  ✦";
    position: absolute;
    top: 18%;
    left: 8%;
    font-size: 13px;
    letter-spacing: 12px;
    color: var(--primary-light);
    opacity: 0.8;
    animation: floatSparkles 5s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: "·  ✦  ˚  ♡  ✧";
    position: absolute;
    bottom: 18%;
    right: 8%;
    font-size: 12px;
    letter-spacing: 10px;
    color: var(--accent);
    opacity: 0.7;
    animation: floatSparkles 4s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatSparkles {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* -------------------------
   XP BAR
------------------------- */

.xp-fill,
.progress-fill {
    position: relative;
    overflow: hidden;
}

.xp-fill::after,
.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    animation: xpShine 2.5s linear infinite;
}

@keyframes xpShine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}


/* -------------------------
   SKILLS
------------------------- */

.skill-card:hover,
.inventory-card:hover,
.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 var(--primary-light);
}


/* -------------------------
   LOCKED PROJECTS
------------------------- */

.locked:hover {
    animation: lockedWiggle 0.35s ease;
}

@keyframes lockedWiggle {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}


/* -------------------------
   SECTION HEADERS
------------------------- */

section h2,
section h3 {
    position: relative;
}

section h2::after,
section h3::after {
    content: " ✦";
    color: var(--accent);
    font-size: 0.65em;
}


/* -------------------------
   TEDDY / HERO CHARACTER
------------------------- */

.hero img {
    animation: tinyBounce 3s ease-in-out infinite;
}

.hero img:hover {
    animation: teddyExcited 0.5s ease infinite alternate;
}

@keyframes tinyBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes teddyExcited {
    from {
        transform: rotate(-5deg) translateY(-2px);
    }

    to {
        transform: rotate(5deg) translateY(-7px);
    }
}


/* -------------------------
   PAGE LOAD
------------------------- */

main > section {
    animation: sectionAppear 0.55s ease both;
}

main > section:nth-child(2) {
    animation-delay: 0.08s;
}

main > section:nth-child(3) {
    animation-delay: 0.16s;
}

main > section:nth-child(4) {
    animation-delay: 0.24s;
}

main > section:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes sectionAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* -------------------------
   CUSTOM SCROLLBAR
------------------------- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =========================
   CUSTOMER / ADMIN TABS
========================= */

.showcase-tabs {
    display: flex;
    gap: 10px;

    margin: 25px 0 5px;

    padding-bottom: 12px;

    border-bottom: 3px dashed var(--primary-light);
}

.showcase-tab {
    padding: 11px 15px;

    background: var(--panel);

    color: var(--text);

    border: 3px solid var(--border);

    box-shadow: 4px 4px 0 var(--border);

    font-family: "Courier New", monospace;

    font-size: 10px;

    font-weight: bold;

    cursor: pointer;
}

.showcase-tab:hover {
    background: var(--accent-soft);

    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--border);
}

.showcase-tab.active-tab {
    background: var(--primary);

    color: #fffaf4;

    border-color: var(--primary-dark);

    box-shadow: 4px 4px 0 var(--primary-dark);
}


/* Hide showcase panels by default */

.showcase-section {
    display: none;
}


/* Show selected panel */

.showcase-section.active-showcase {
    display: block;

    animation: showcaseEnter 0.25s ease;
}


@keyframes showcaseEnter {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* Mobile */

@media (max-width: 600px) {

    .showcase-tabs {
        flex-direction: column;
    }

    .showcase-tab {
        width: 100%;
    }

}

/* =========================
   CHARACTER PROFILE
========================= */

.character-profile {
    display: grid;

    grid-template-columns:
        1fr 1.3fr;

    gap: 25px;

    align-items: stretch;
}


/* CHARACTER INTRO */

.character-intro {
    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 25px;

    text-align: center;

    background: var(--panel-soft);

    border: 3px solid var(--border);

    box-shadow:
        5px 5px 0 var(--primary);
}

.profile-avatar {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 100px;

    height: 100px;

    margin-bottom: 18px;

    background: var(--panel);

    border: 3px solid var(--border);

    box-shadow:
        5px 5px 0 var(--primary);

    font-size: 55px;

    animation:
        profileFloat 3s ease-in-out infinite;
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}

.profile-label {
    color: var(--primary);

    font-size: 9px;

    font-weight: bold;
}

.character-intro h3 {
    margin: 10px 0;

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 20px;
}

.character-intro p {
    margin: 0;

    line-height: 1.7;

    font-size: 11px;
}


/* CHARACTER DETAILS */

.character-details {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.detail-card {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: var(--panel);

    border: 2px solid var(--primary-light);

    transition: 0.15s;
}

.detail-card:hover {
    transform:
        translateX(4px);

    border-color:
        var(--primary);

    background:
        var(--panel-soft);
}

.detail-icon {
    font-size: 22px;
}

.detail-card small,
.detail-card strong {
    display: block;
}

.detail-card small {
    margin-bottom: 6px;

    color: var(--text-soft);

    font-size: 7px;

    font-weight: bold;
}

.detail-card strong {
    color: var(--primary-dark);

    font-size: 9px;

    line-height: 1.5;
}


/* FUN FACTS */

.fun-facts {
    margin-top: 20px;

    padding: 20px;

    background: var(--panel-soft);

    border: 3px dashed var(--primary);
}

.fun-facts-title {
    margin-bottom: 15px;

    color: var(--primary-dark);

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 11px;
}

.fun-facts-list {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.fun-facts-list span {
    padding: 10px;

    background: var(--panel);

    border: 2px solid var(--primary-light);

    font-size: 9px;

    line-height: 1.5;
}


/* CURRENT GOAL */

.developer-goal {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

    padding: 15px 18px;

    background: var(--primary-dark);

    color: #fffaf4;

    border: 3px solid var(--border);

    box-shadow:
        5px 5px 0 var(--primary);
}

.goal-icon {
    font-size: 25px;
}

.developer-goal small,
.developer-goal strong {
    display: block;
}

.developer-goal small {
    margin-bottom: 5px;

    font-size: 7px;
}

.developer-goal strong {
    font-size: 10px;

    line-height: 1.5;
}


/* MOBILE */

@media (max-width: 700px) {

    .character-profile {
        grid-template-columns: 1fr;
    }

    .character-details {
        grid-template-columns: 1fr;
    }

    .fun-facts-list {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   PROFESSIONAL ABOUT SECTION
========================================= */

.about-pro {
    position: relative;
}


/* MAIN LAYOUT */

.about-layout {
    display: grid;

    grid-template-columns:
        1.15fr 1fr;

    gap: 28px;

    margin-top: 25px;
}


/* =========================================
   INTRO
========================================= */

.about-intro {
    padding: 32px;

    background:
        linear-gradient(
            135deg,
            #fffdfb,
            #fff7fa
        );

    border: 2px solid var(--border);

    box-shadow:
        6px 6px 0 var(--primary);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.about-intro:hover {
    transform:
        translate(-2px, -2px);

    box-shadow:
        8px 8px 0 var(--primary);
}


.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    padding: 6px 10px;

    border: 1px solid var(--primary);

    background: var(--panel-soft);

    color: var(--primary-dark);

    font-size: 8px;

    letter-spacing: 1px;

    font-weight: bold;
}


.about-intro h3 {
    margin: 0 0 18px;

    color: var(--primary-dark);

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 18px;

    line-height: 1.7;
}


.about-intro p {
    max-width: 650px;

    margin-bottom: 15px;

    color: var(--text);

    font-size: 11px;

    line-height: 1.8;
}


/* STATUS */

.about-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding: 8px 12px;

    border: 1px solid var(--primary-light);

    background: #fff;

    color: var(--text-soft);

    font-size: 8px;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #55b879;

    box-shadow:
        0 0 0 3px rgba(85,184,121,0.12);

    animation:
        statusPulse 2s infinite;
}


@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }

}


/* =========================================
   INFO CARDS
========================================= */

.about-info {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.info-card {
    display: grid;

    grid-template-columns:
        42px 1fr;

    gap: 14px;

    min-height: 105px;

    padding: 18px;

    background: #fff;

    border: 2px solid var(--primary-light);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}


.info-card:hover {
    transform:
        translateX(5px);

    border-color:
        var(--primary);

    background:
        var(--panel-soft);
}


.info-number {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 34px;
    height: 34px;

    border: 2px solid var(--border);

    background: var(--panel-soft);

    color: var(--primary-dark);

    font-size: 9px;

    font-weight: bold;
}


.info-card small {
    display: block;

    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 7px;

    letter-spacing: 1px;
}


.info-card strong {
    display: block;

    margin-bottom: 7px;

    color: var(--primary-dark);

    font-size: 11px;
}


.info-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================
   CURRENT FOCUS
========================================= */

.focus-strip {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

    padding: 16px 20px;

    border-top: 2px solid var(--border);

    border-bottom: 2px solid var(--border);

    background: var(--panel-soft);
}


.focus-title {
    color: var(--primary-dark);

    font-family:
        "Press Start 2P",
        monospace;

    font-size: 9px;

    white-space: nowrap;
}


.focus-title span {
    margin-right: 6px;

    color: var(--primary);
}


.focus-items {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 7px;
}


.focus-items span {
    padding: 7px 10px;

    background: #fff;

    border: 1px solid var(--primary-light);

    color: var(--text);

    font-size: 8px;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


.focus-items span:hover {
    transform:
        translateY(-2px);

    background:
        var(--primary-light);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .about-layout {
        grid-template-columns: 1fr;
    }

    .focus-strip {
        align-items: flex-start;

        flex-direction: column;
    }

    .focus-items {
        justify-content: flex-start;
    }

}


@media (max-width: 500px) {

    .about-intro {
        padding: 22px;
    }

    .about-intro h3 {
        font-size: 14px;
    }

    .info-card {
        grid-template-columns:
            34px 1fr;
    }

}

/* =========================
   PROFESSIONAL PORTFOLIO SECTIONS
========================= */

.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.background-card {
    position: relative;
    padding: 25px;
    border: 2px solid #d85a8a;
    background: #fffafb;
    box-shadow: 5px 5px 0 #d85a8a;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.background-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #d85a8a;
}

.card-number {
    display: block;
    margin-bottom: 18px;
    font-size: 11px;
    color: #a54b6d;
}

.background-card h3 {
    margin-bottom: 12px;
    color: #713044;
}

.background-card p {
    line-height: 1.7;
    color: #49343c;
}

.status-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 6px 10px;
    border: 1px solid #d85a8a;
    background: #fff0f6;
    color: #a54b6d;
    font-size: 10px;
}


/* =========================
   CAPABILITIES
========================= */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 25px;
}

.capability {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    padding: 20px;

    border: 1px solid #d85a8a;
    background: #fffafb;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

.capability:hover {
    background: #fff0f6;
    transform: translateY(-2px);
}

.capability-icon {
    font-size: 22px;
    min-width: 30px;
}

.capability h3 {
    margin: 0 0 8px;
    color: #713044;
}

.capability p {
    margin: 0;
    line-height: 1.6;
    color: #49343c;
}


/* =========================
   PROJECT META
========================= */

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0;
}

.project-meta span {
    padding: 5px 8px;

    border: 1px solid #d85a8a;

    background: #fff0f6;

    color: #713044;

    font-size: 9px;
}


/* =========================
   PROJECT FEATURES
========================= */

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.project-features span {
    padding: 5px 8px;

    border: 1px solid #d6a1b4;

    background: #fffafb;

    color: #713044;

    font-size: 9px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .background-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .background-card,
    .capability {
        padding: 17px;
    }

}

/* =========================================
   KISHA.EXE — FINAL POLISH
   Professional + cute game-inspired
   ========================================= */

/* -------------------------
   GENERAL POLISH
------------------------- */

body {
    line-height: 1.6;
}

section {
    scroll-margin-top: 20px;
}

p {
    color: var(--text-soft);
}

/* Make links/buttons feel consistent */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* -------------------------
   HEADER
------------------------- */

.game-header {
    padding: 20px 25px;
}

.game-title {
    letter-spacing: 1px;
}

.game-stats {
    opacity: 0.95;
}

/* -------------------------
   NAV
------------------------- */

nav {
    padding-top: 10px;
}

nav a {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

/* -------------------------
   HERO
------------------------- */

.hero-section {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-character {
    filter: drop-shadow(4px 5px 0 rgba(185, 79, 107, 0.25));
}

.hero-subtitle {
    color: var(--text-soft);
}

.xp-container {
    margin-top: 35px;
}

/* -------------------------
   PLAYER STATUS
------------------------- */

.status-box {
    background: var(--panel-soft);
    border-color: var(--primary-light);
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.status-box:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* -------------------------
   PROJECTS
------------------------- */

.project-grid {
    align-items: stretch;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content p {
    flex: 1;
}

.project-buttons {
    margin-top: auto;
}

/* Featured project gets slightly more attention */
.main-project {
    border-color: var(--primary-dark);
}

.main-project .project-badge {
    background: var(--primary);
    color: #fffaf4;
    border-color: var(--primary-dark);
}

/* -------------------------
   LOCKED / COMING SOON
------------------------- */

/* Keep the game aesthetic without making it look unfinished */
.locked-project {
    opacity: 0.9;
}

.locked-image {
    background:
        linear-gradient(
            135deg,
            var(--panel-soft),
            var(--panel)
        );
}

.locked-button {
    pointer-events: auto;
}

/* -------------------------
   SKILLS
------------------------- */

.skill-card {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 5px 5px 0 var(--primary-light);
}

/* -------------------------
   INVENTORY
------------------------- */

.inventory-item {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.inventory-item:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--primary-light);
}

/* -------------------------
   ABOUT
------------------------- */

.about-intro,
.info-card {
    border-radius: 2px;
}

.about-intro h3 {
    max-width: 600px;
}

.info-card {
    min-height: 110px;
}

/* -------------------------
   CURRENT FOCUS
------------------------- */

.focus-strip {
    flex-wrap: wrap;
}

.focus-items {
    flex: 1;
}

.focus-items span:hover {
    transform: translateY(-2px);
    background: var(--accent-soft);
}

/* -------------------------
   COPIERSTORE SHOWCASE
------------------------- */

.showcase-section {
    border-color: var(--primary-light);
}

.showcase-image {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.showcase-image img {
    transition: transform 0.25s ease;
}

.showcase-image:hover img {
    transform: scale(1.025);
}

/* Tabs */
.showcase-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--panel);
    padding-top: 10px;
}

.showcase-tab {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

/* -------------------------
   POPUP
------------------------- */

.popup-box {
    border-radius: 2px;
}

.popup-box::-webkit-scrollbar {
    width: 8px;
}

.popup-box::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.close-button {
    z-index: 10;
}

.close-button:hover {
    background: var(--accent-soft);
}

/* -------------------------
   CONTACT
------------------------- */

.contact-section {
    padding-top: 45px;
    padding-bottom: 45px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* -------------------------
   FOOTER
------------------------- */

footer {
    margin-top: 10px;
}

/* -------------------------
   ACCESSIBILITY
------------------------- */

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* -------------------------
   REDUCE MOTION
------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 800px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .quest-card {
        grid-template-columns: 1fr;
    }

    .focus-strip {
        align-items: flex-start;
    }

    .focus-items {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 600px) {

    main {
        width: 96%;
        margin: 10px auto;
    }

    section {
        margin: 14px;
        padding: 18px;
    }

    .game-title {
        font-size: 16px;
    }

    .game-stats {
        flex-wrap: wrap;
        font-size: 8px;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 18px;
    }

    .hero-section h1 {
        font-size: 18px;
        line-height: 1.8;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .player-status {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-image img {
        height: 220px;
    }

    .popup {
        padding: 10px;
    }

    .popup-box {
        padding: 20px;
        max-height: 92vh;
    }

    .popup-box h2 {
        font-size: 16px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .game-button {
        width: 100%;
        margin: 5px 0;
    }

    footer {
        font-size: 8px;
    }
}

/* =========================
   HERO SECTION
========================= */

.hero-section {
    position: relative;
    margin: 45px 28px 35px;
    padding: 42px 45px 48px;

    border: 2px solid #8b304f;
    background: #fffdf8;

    box-shadow: 8px 8px 0 #e8a0bc;

    overflow: hidden;
}


/* TOP STATUS */

.hero-topline {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 12px;

    border: 1px solid #d45a88;
    background: #fff0f6;

    color: #7d2947;

    font-size: 11px;
    letter-spacing: 1px;

    margin-bottom: 35px;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #5b9b72;
    border-radius: 50%;

    box-shadow: 0 0 0 3px #dff1e4;
}


/* MAIN HERO */

.hero-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    gap: 55px;

    align-items: center;
}


/* LEFT */

.hero-copy {
    max-width: 720px;
}

.hero-label {
    display: inline-block;

    padding: 6px 10px;

    border: 1px solid #d45a88;

    color: #8b304f;

    font-size: 10px;
    letter-spacing: 1px;

    margin-bottom: 18px;
}


.hero-copy h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1;

    letter-spacing: -1.5px;

    color: #572036;
}

.hero-copy h1 span {
    color: #c94f82;
}


.hero-copy h2 {
    margin: 18px 0 20px;

    font-size: clamp(23px, 2.8vw, 34px);

    line-height: 1.1;

    color: #7b2947;

    letter-spacing: -.5px;
}


.hero-description {
    max-width: 620px;

    font-size: 15px;

    line-height: 1.8;

    color: #59474d;

    margin-bottom: 28px;
}


/* BUTTONS */

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 27px;
}


.hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    border: 2px solid #33252b;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: .5px;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.hero-btn.primary {
    background: #c94f82;

    color: white;

    box-shadow: 4px 4px 0 #33252b;
}

.hero-btn.secondary {
    background: #fffdf8;

    color: #33252b;

    box-shadow: 4px 4px 0 #33252b;
}


.hero-btn:hover {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 #33252b;
}


/* TECHNOLOGIES */

.hero-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.hero-tech span {
    padding: 6px 9px;

    border: 1px solid #d88aa7;

    background: #fff8fb;

    color: #74304a;

    font-size: 9px;

    letter-spacing: .5px;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;

    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 350px;
}


.hero-card {
    width: 100%;
    max-width: 330px;

    background: #fff8fb;

    border: 2px solid #38272d;

    box-shadow: 7px 7px 0 #c94f82;

    padding: 18px;

    transform: rotate(1deg);

    transition: transform .2s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-4px);
}


/* CARD HEADER */

.hero-card-header {
    display: flex;

    justify-content: space-between;

    padding-bottom: 12px;

    border-bottom: 1px solid #dba0b7;

    font-size: 9px;

    color: #7c2947;

    letter-spacing: .7px;
}


/* AVATAR */

.hero-avatar {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 120px;
    height: 120px;

    margin: 28px auto;

    background: #f9dce8;

    border: 2px solid #38272d;

    font-size: 60px;

    box-shadow: 5px 5px 0 #d889a7;
}


/* INFO ROWS */

.hero-role {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 12px 0;

    border-top: 1px solid #e3bdca;
}

.hero-role span,
.hero-card-footer span {
    font-size: 8px;

    color: #9a5a72;

    letter-spacing: .7px;
}

.hero-role strong {
    font-size: 10px;

    font-weight: normal;

    color: #4b3039;
}


/* FOOTER */

.hero-card-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 8px;

    padding-top: 12px;

    border-top: 1px solid #e3bdca;
}

.online-status {
    color: #5b8065 !important;
}


/* DECORATION */

.hero-decoration {
    position: absolute;

    right: -5px;
    bottom: 15px;

    color: #d45a88;

    font-size: 24px;

    line-height: 2;

    opacity: .65;

    transform: rotate(8deg);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .hero-section {
        margin: 30px 15px;

        padding: 30px 25px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-card {
        max-width: 360px;
    }

}


@media (max-width: 500px) {

    .hero-section {
        padding: 25px 18px 35px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy h2 {
        font-size: 27px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

}

/* =========================
   MOBILE HERO SPACING FIX
   ========================= */

@media (max-width: 600px) {

    .hero-section {
        margin: 20px 10px 25px;
        padding: 22px 18px 28px;
        min-height: auto;
    }

    .hero-topline {
        margin-bottom: 20px;
        padding: 6px 10px;
        font-size: 9px;
    }

    .hero-content {
        gap: 25px;
    }

    .hero-label {
        margin-bottom: 10px;
    }

    .hero-copy h1 {
        margin: 0;
        font-size: 38px;
        line-height: 1;
    }

    .hero-copy h2 {
        margin: 12px 0 14px;
        font-size: 24px;
        line-height: 1.1;
    }

    .hero-description {
        margin: 0 0 20px;
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-actions {
        margin-bottom: 18px;
        gap: 8px;
    }

    .hero-tech {
        gap: 5px;
    }

    .hero-visual {
        min-height: auto;
    }
}

/* =========================================
   FINAL MOBILE HERO FIX
   ========================================= */

@media (max-width: 600px) {

    /* Remove the huge gap between NAV and HERO */
    nav {
        padding: 5px 10px 8px !important;
        gap: 7px !important;
    }

    /* Make hero sit much closer to navigation */
    .hero-section {
        margin: 10px 10px 20px !important;
        padding: 18px 18px 25px !important;
        min-height: auto !important;
    }

    /* Status → Developer Profile */
    .hero-topline {
        margin-bottom: 12px !important;
        padding: 5px 9px !important;
        font-size: 9px !important;
    }

    .hero-label {
        margin-bottom: 10px !important;
        padding: 5px 9px !important;
    }

    /* Main title */
    .hero-copy h1 {
        margin: 0 !important;
        font-size: 38px !important;
        line-height: 0.95 !important;
    }

    /* Subtitle */
    .hero-copy h2 {
        margin: 12px 0 12px !important;
        font-size: 24px !important;
        line-height: 1.1 !important;
    }

    /* Description */
    .hero-description {
        margin-bottom: 16px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    /* Buttons */
    .hero-actions {
        gap: 7px !important;
        margin-bottom: 14px !important;
    }

    /* Hero columns */
    .hero-content {
        gap: 20px !important;
    }

    .hero-visual {
        min-height: auto !important;
    }
}

    /* Hero profile label alignment */
    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-label {
        align-self: flex-start;
        margin: 0 0 12px 0 !important;
    }
    
    /* Keep the main hero text centered */
    .hero-copy h1,
    .hero-copy h2,
    .hero-description,
    .hero-actions,
    .hero-tech {
        align-self: center;
    }