/* General Styles */
:root {
    --accent: #9cfffd;
    --accent-dim: #9685ba;
    --bg-deep: #081645;
    --bg-box: rgba(68, 0, 68, .6);
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    line-height: 1.88889;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #081645;
}

p {
    font-family: "source-code-variable", monospace;
    margin: 0;
    padding: 0 20px;
    color: var(--accent);
    font-variation-settings: 'wght' 200;
    line-height: 1.4;
    font-size: 1.4em;
    text-shadow: 0 0 10px var(--accent);
}

h1 {
    font-family: "bd-geminis", monospace;
    font-weight: 400;
    font-style: normal;
    color: cyan;
    font-size: 3em;
    padding: 0 20px;
    text-align: center;
    text-shadow: 0 0 10px var(--accent);
}

h2 {
    font-family: "source-code-variable", monospace;
    color: var(--accent);
    font-variation-settings: 'wght' 300;
    font-size: 1.3em;
    letter-spacing: 3px;
    margin: 20px 0 10px;
    text-shadow: 0 0 8px var(--accent);
}

h3 {
    font: italic normal 1.4em georgia, monospace;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: #7D775C;
    text-shadow: 0 0 10px #7D775C;
}

a:link {
    font-weight: bold;
    text-decoration: none;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

a:visited {
    font-weight: bold;
    text-decoration: none;
    color: #9cfffd;
    text-shadow: 0 0 10px #9cfffd;
}

a:hover,
a:focus,
a:active {
    color: var(--accent-dim);
    text-shadow: 0 0 10px var(--accent-dim);
}

abbr {
    border-bottom: none;
}


.jp p {
    font-family: ads-tomorrowskip, sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0 20px;
    color: var(--accent);
    font-variation-settings: 'wght' 200;
    line-height: 1.4;
    font-size: 1.4em;
    text-shadow: 0 0 10px var(--accent);
}

/* General Styles */


/* Background Styles */
.city {
    background-image: url('assets/IMG_7626.JPG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.city-box {
    background-color: var(--bg-box);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    min-height: 100%;
}

.content-box {
    background-image: url('assets/Techture.png');
    background-size: contain;
    background-color: rgba(8, 22, 69, 0.7);
    border: 2px double var(--accent);
    border-radius: 15px;
    position: inherit;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
}

.content-border {
    text-shadow: 0 0 10px var(--accent-dim);
}

.nav {
    color: var(--accent);
    font-family: 'source-code-variable', monospace;
    padding: 0;
    font-size: 1em;
    text-align: right;
    text-transform: uppercase;
    font-variation-settings: 'wght' 200;
}

/* Background Styles */


/* MOBILE STYLES */
@media screen and (max-width: 600px) {

    /* ALLOWS FOR FLUID TABLES */
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ADJUSTS LAYOUT OF LOGO IMAGE */
    .logo img {
        margin: 0 auto !important;
    }

    /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */
    .mobile-hide {
        display: none !important;
    }

    .img-max {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FULL-WIDTH TABLES */
    .responsive-table {
        width: 100% !important;
    }

    /* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */
    .padding {
        padding: 10px 5% 15px 5% !important;
    }

    .padding-meta {
        padding: 30px 5% 0px 5% !important;
        text-align: center;
    }

    .no-padding {
        padding: 0 !important;
    }

    .section-padding {
        padding: 50px 15px 50px 15px !important;
    }

    /* ADJUST BUTTONS ON MOBILE */
    .mobile-button-container {
        margin: 0 auto;
        width: 100% !important;
    }

    .mobile-button {
        padding: 15px !important;
        border: 0 !important;
        font-size: 16px !important;
        display: block !important;
    }

    .mobile-paragraph {
        font-size: .6em;
        line-height: 1.4;
    }
}

/* MOBILE STYLES */


/* Desktop Only Styles */
@media only screen and (min-width: 600px) {

    /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */
    .desktop-hide {
        display: none !important;
    }
}

@media only screen and (min-width: 1000px) {

    /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */
    .nav {
        color: var(--accent);
        font-family: 'source-code-variable', monospace;
        padding: 0;
        font-size: 1.5em;
        text-align: right;
        text-transform: uppercase;
        font-variation-settings: 'wght' 200;
    }
}

/* Desktop Only Styles */


/* The sidebar menu */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-image:
        linear-gradient(rgba(36, 8, 36, 0.88), rgba(36, 8, 36, 0.88)),
        url('assets/IMG_7626.JPG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}

/* The sidebar links */

.sidebar a {
    padding: 8px 18px 8px 0px;
    text-decoration: none;
    font-size: 20px;
    color: var(--accent);
    display: block;
    transition: 0.3s;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    font-family: 'source-code-variable', monospace;
    font-variation-settings: 'wght' 200;
}

/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidebar .closebtn {
    position: absolute;
    top: 10px;
    left: 0px;
    font-size: 36px;
    margin-left: 0px;
}

/* The button used to open the sidebar */
.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: var(--accent);
    color: var(--bg-deep);
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    text-align: center;
    right: 10px;
    top: 20px;
}

.openbtn:hover {
    background-color: #440044;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }

    .sidebar a {
        font-size: 18px;
    }
}

/* The sidebar menu */


/* Project Launcher */
.projects-heading {
    margin: 30px 20px 0;
}

.projects-heading h2 {
    margin: 0;
    padding: 0 4px;
    display: inline-block;
    filter: blur(.8px);
    padding-bottom: 6px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 10px 20px 30px;
}

@media only screen and (max-width: 780px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 460px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(8, 22, 69, 0.55);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    color: var(--accent);
}

.project-card:hover,
.project-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 0 18px var(--accent), inset 0 0 12px rgba(0, 0, 0, .4);
    border-color: var(--accent);
    outline: none;
}

.project-card[data-accent="green"] {
    --accent: #00e31a;
}

.project-card[data-accent="magenta"] {
    --accent: #ff5cef;
}

.project-card[data-accent="violet"] {
    --accent: #9e38ff;
}

.project-card[data-accent="gold"] {
    --accent: #fffe9b;
}

.project-card[data-accent="mist"] {
    --accent: #ebeddd;
}

.project-card[data-accent="cyan"] {
    --accent: #9cfffd;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 3 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #050b24;
    position: relative;
    filter: saturate(1.1) contrast(1.05);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 22, 69, 0.75) 100%);
}

.project-glow {
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent);
    box-shadow: inset 0 0 20px var(--accent);
    opacity: .35;
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: .7;
}

.project-thumb-empty {
    background: repeating-linear-gradient(45deg,
            rgba(156, 255, 253, 0.08) 0 10px,
            transparent 10px 20px), #081645;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 4em;
    color: var(--accent);
    text-shadow: 0 0 18px var(--accent);
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    padding: 6px 12px 10px;
    gap: 2px;
}

.project-title {
    font-family: 'source-code-variable', monospace;
    font-variation-settings: 'wght' 500;
    font-size: 1em;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.project-desc {
    font-family: 'source-code-variable', monospace;
    font-variation-settings: 'wght' 200;
    font-size: .72em;
    line-height: 1.35;
    color: #cfe9ff;
    opacity: .85;
}

/* Project Launcher */

.project-hero {
    margin: 0px 5% 0;
    /* background: rgba(8, 22, 69, 0.5); */
    overflow: hidden;
    padding: 0;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* Split hero: two image frames, 60/40, no borders, no radius */
.project-hero--split {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hero-media {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ratios matched to the source images (HomeFrame 1856x1192,
   Spiral 908x854) so both fill their frames exactly and
   top/bottom align at the same height */
.hero-media--left {
    aspect-ratio: 1856 / 1192;
}

.hero-media--right {
    aspect-ratio: 569 / 854;
}


.hero-text {
    padding: 18px 5% 4px;
}

@media (max-width: 600px) {
    .project-hero {
        padding: 0px;
        border-radius: 0px;
    }

    .hero-text {
        padding: 16px 2% 4px;
    }

    .project-title {
        font-size: .6em;
        letter-spacing: 5px;
    }

    .hero-desc p {
        font-size: .6em;
    }
}


/* ------------------------------------------------------------
   Personal Status HUD — Wanikani progress + currently reading
   Palette-adaptive like hud.css (follows the page --accent) and
   intentionally small, so it reads as a quiet instrument readout.
   ------------------------------------------------------------ */
.status-hud {
    font-family: var(--hud-font);
    font-size: calc(var(--hud-size) * .85);   /* deliberately small */
    line-height: 1.5;
    letter-spacing: .18em;
    color: var(--hud-ink);
    margin: 0px 5% 20px;
    padding: 8px 12px 10px;
    background: color-mix(in srgb, var(--hud-accent) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--hud-accent) 22%, transparent);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    max-width: 100%;
}

.status-hud__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}

.status-hud__row .hud__label {
    flex: none;
}

.status-hud__val {
    color: var(--hud-accent);
    text-shadow: 0 0 8px color-mix(in srgb, var(--hud-accent) 45%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.status-hud__val--jp {
    font-family: ads-tomorrowskip, var(--hud-font);
    font-size: 1.25em;
    letter-spacing: .3em;
}

.status-hud__val--book {
    letter-spacing: .12em;
}

/* keep the row balanced: label left, value fills remaining space */
.status-hud__row .status-hud__val {
    flex: 1 1 auto;
}

.status-hud__row .hud__chip {
    flex: none;
}