/*
Theme Name: iamjustin
Theme URI: https://iamjust.in
Author: Justin
Description: Dark vibrant infographic portfolio theme.
Version: 1.0.0
Text Domain: iamjustin
*/

/* =========================================
   @font-face
   ========================================= */

@font-face {
    font-family: 'Jost';
    src: url('assets/fonts/jost-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('assets/fonts/jost-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('assets/fonts/jost-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('assets/fonts/caveat-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   Splash Screen
   ========================================= */

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary, #0d0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    height: 80px;
    width: auto;
    transition: none;
}

/* After JS triggers the animation */
#splash-screen.animating .splash-logo {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#splash-screen.done {
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
    pointer-events: none;
}

/* Hide site content until splash is done */
body.has-splash #site-header,
body.has-splash #main,
body.has-splash .filter-tabs {
    opacity: 0;
}

body.splash-reveal #site-header,
body.splash-reveal #main,
body.splash-reveal .filter-tabs {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CSS Custom Properties
   ========================================= */

:root {
    /* Backgrounds */
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-surface: #1a1a2e;

    /* Text */
    --text-primary: #eaeaea;
    --text-muted: #8a8a9a;

    /* Accent Spectrum */
    --accent-red: #e63946;
    --accent-orange: #f77f00;
    --accent-yellow: #eeee22;
    --accent-green: #0ee94b;
    --accent-cyan: #00b4d8;
    --accent-blue: #4361ee;
    --accent-purple: #8d1ccd;
    --accent-pink: #ec008c;

    /* Gradients */
    --gradient-rainbow: linear-gradient(90deg, #e63946, #f77f00, #eeee22, #0ee94b, #00b4d8, #4361ee, #8d1ccd);
    --gradient-badge: linear-gradient(135deg, #ec008c, #8d1ccd);

    /* Category colors */
    --cat-brands: var(--accent-pink);
    --cat-apps: var(--accent-cyan);
    --cat-logos: var(--accent-yellow);
    --cat-photography: var(--accent-green);

    /* Grid */
    --grid-gap: 8px;

    /* Fonts */
    --font-body: 'Jost', sans-serif;
    --font-decorative: 'Caveat', cursive;
}

/* =========================================
   CSS Reset
   ========================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

.text-muted {
    color: var(--text-muted);
}

.font-decorative {
    font-family: var(--font-decorative);
}

/* =========================================
   Media Queries
   ========================================= */

/* Tablet */
@media (min-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

/* Desktop */
@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* =========================================
   Skip Link
   ========================================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 200;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    overflow: visible;
}

/* =========================================
   Header
   ========================================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    padding: 16px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.header-slim {
    padding: 8px 24px;
    font-size: 14px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 32px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo hover expand + resume dropdown */
#site-logo-wrap {
    position: relative;
}

#site-logo-wrap.logo-expanded .site-logo-img {
    height: 64px;
}

.logo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 110;
}

#site-logo-wrap.logo-expanded .logo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-dropdown-text {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.logo-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-cyan);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.logo-dropdown-btn:hover {
    background: var(--accent-green);
}

.logo-dropdown-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* =========================================
   Navigation
   ========================================= */

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent-pink);
}

.nav-list li {
    position: relative;
}

.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: var(--bg-surface);
    padding: 8px 0;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 110;
}

.nav-list .sub-menu a {
    display: block;
    padding: 6px 20px;
    white-space: nowrap;
}

.nav-list li:hover > .sub-menu {
    display: block;
}

/* =========================================
   Social Icons
   ========================================= */

.nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-social a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-social a:nth-child(1):hover { color: var(--accent-pink); }
.nav-social a:nth-child(2):hover { color: var(--accent-orange); }
.nav-social a:nth-child(3):hover { color: var(--accent-red); }

.nav-social svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   Hamburger (Mobile)
   ========================================= */

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.hamburger svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

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

#site-footer {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-rainbow {
    height: 2px;
    background: var(--gradient-rainbow);
    margin-bottom: 24px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* =========================================
   Responsive: Mobile Navigation
   ========================================= */

@media (max-width: 1023px) {
    .hamburger {
        display: flex;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 16px 24px;
        border-top: 1px solid var(--bg-surface);
    }

    #main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
    }

    .nav-list .sub-menu {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        padding: 4px 0 4px 16px;
        min-width: 0;
    }

    .header-inner .nav-social {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

/* =========================================
   Filter Tabs
   ========================================= */

.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 24px 0;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-pink);
}

.filter-tab.active[data-category="brands"] {
    border-bottom-color: var(--cat-brands);
}

.filter-tab.active[data-category="apps"] {
    border-bottom-color: var(--cat-apps);
}

.filter-tab.active[data-category="logos"] {
    border-bottom-color: var(--cat-logos);
}

.filter-tab.active[data-category="photography"] {
    border-bottom-color: var(--cat-photography);
}

/* =========================================
   Tile Grid
   ========================================= */

.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: dense;
    gap: var(--grid-gap);
    padding: 0 var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tile-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tile sizes (600px+) */
@media (min-width: 600px) {
    .tile-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile-wide {
        grid-column: span 2;
    }
}

/* =========================================
   Tile Appearance
   ========================================= */

.tile {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
    border: 3px solid var(--surface-2);
    transition: border-color 0.3s;
}

.tile.cat-brands  { border-color: var(--cat-brands); }
.tile.cat-apps    { border-color: var(--cat-apps); }
.tile.cat-logos   { border-color: var(--cat-logos); }
.tile.cat-photography { border-color: var(--cat-photography); }

@media (min-width: 600px) {
    .tile-wide {
        aspect-ratio: 2 / 1;
    }
}

.tile-link {
    display: block;
    width: 100%;
    height: 100%;
}

.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s, filter 0.4s;
}

.tile:hover .tile-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Fieldset-style legend (category label) */
.tile-legend {
    position: absolute;
    top: -1px;
    left: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border-radius: 0 0 3px 3px;
}

/* Legend colors */
.tile-legend.cat-brands  { background: var(--cat-brands); color: #fff; }
.tile-legend.cat-apps    { background: var(--cat-apps); color: #000; }
.tile-legend.cat-logos   { background: var(--cat-logos); color: #000; }
.tile-legend.cat-photography { background: var(--cat-photography); color: #000; }

/* Title bar at bottom */
.tile-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
}

@media (min-width: 600px) {
    .tile-large .tile-title {
        font-size: 20px;
        padding: 10px 14px;
    }

    .tile-large .tile-legend {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* Category badge styles moved to .tile-legend above */

/* =========================================
   Hidden Tiles (Filter)
   ========================================= */

.tile[data-hidden] {
    display: none;
}

/* =========================================
   Single Project: Hero
   ========================================= */

.project-hero {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* =========================================
   Single Project: Header
   ========================================= */

.project-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.project-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================
   Single Project: Content
   ========================================= */

.project-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.project-content h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.project-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.project-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.project-content blockquote {
    border-left: 3px solid var(--accent-cyan);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-muted);
}

.project-content ul,
.project-content ol {
    list-style: revert;
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.project-content li {
    margin-bottom: 0.5em;
}

.project-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.project-content a:hover {
    color: var(--accent-pink);
}

/* =========================================
   Single Project: Back Link
   ========================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-pink);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   Single Project: Navigation
   ========================================= */

.project-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--bg-surface);
    padding-top: 24px;
    margin-top: 40px;
}

.project-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-nav a:hover {
    color: var(--accent-pink);
}

.project-nav svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   About Page
   ========================================= */

.about-hero {
    text-align: center;
    padding: 80px 24px 40px;
}

.rainbow-text {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-name {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 3rem;
    color: #fff;
    text-transform: lowercase;
}

@media (min-width: 600px) {
    .about-name {
        font-size: 4.5rem;
    }
    .rainbow-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .about-name {
        font-size: 6rem;
    }
    .rainbow-text {
        font-size: 1.75rem;
    }
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 40px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.skill-icon svg {
    width: 32px;
    height: 32px;
}

.software-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.software-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    text-align: center;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lang-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.lang-html { background: var(--accent-orange); }
.lang-css  { background: var(--accent-cyan); color: #000; }
.lang-php  { background: var(--accent-purple); }
.lang-asp  { background: var(--accent-yellow); color: #000; }

.about-social {
    text-align: center;
}

.about-social .nav-social {
    justify-content: center;
}

.about-social .nav-social svg {
    width: 28px;
    height: 28px;
}

/* =========================================
   Contact Page
   ========================================= */

.contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.contact-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-location svg { color: var(--accent-yellow); }
.contact-email svg    { color: var(--accent-pink); }
.contact-phone svg    { color: var(--accent-green); }

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    transition: border-color 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--text-muted);
}

#contact-form button[type="submit"] {
    background: var(--gradient-badge);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

#contact-form button[type="submit"]:hover {
    opacity: 0.9;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

#form-response {
    text-align: center;
    font-weight: 700;
    min-height: 24px;
}

#form-response.success {
    color: var(--accent-green);
}

#form-response.error {
    color: var(--accent-red);
}

/* =========================================
   Resume Page
   ========================================= */

.resume-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.resume-top {
    text-align: center;
    margin-bottom: 48px;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-badge);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.resume-download:hover {
    opacity: 0.9;
}

.resume-download svg {
    width: 18px;
    height: 18px;
}

.resume-section {
    margin-bottom: 48px;
}

.resume-section .section-heading {
    margin-bottom: 28px;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .resume-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.resume-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.resume-entry {
    padding-left: 16px;
    border-left: 2px solid var(--bg-surface);
}

.resume-entry h3 {
    margin-top: 8px;
    font-size: 1.1rem;
}

.resume-entry h4 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.resume-entry p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.date-badge {
    display: inline-block;
    background: var(--gradient-badge);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.hobby-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hobby-chip {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.hobby-1 { background: var(--accent-green); color: #000; }
.hobby-2 { background: var(--accent-cyan); color: #000; }
.hobby-3 { background: var(--accent-blue); }
.hobby-4 { background: var(--accent-purple); }
.hobby-5 { background: var(--accent-orange); }
.hobby-6 { background: var(--accent-pink); }

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    #site-header,
    #site-footer,
    .resume-download {
        display: none;
    }
    .resume-page {
        padding: 0;
    }
    .date-badge {
        background: #333;
    }
    .hobby-chip {
        background: #eee;
        color: #000;
    }
    .lang-tag {
        border: 1px solid #ccc;
        color: #000;
        background: #eee;
    }
}

/* =========================================
   Archive Page
   ========================================= */

.archive-page {
    padding: 40px 0 60px;
}

.archive-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 32px;
    position: relative;
}

.archive-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-pink);
    margin: 12px auto 0;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 80px 24px;
    font-size: 1.1rem;
}

/* =========================================
   404 Page
   ========================================= */

.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    min-height: 60vh;
}

.page-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-404 p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back-home:hover {
    color: var(--accent-pink);
}

.back-home svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   Generic Page
   ========================================= */

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-content h1 {
    margin-bottom: 32px;
}

.page-body {
    line-height: 1.8;
    color: var(--text-muted);
}

.page-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.page-body a:hover {
    color: var(--accent-pink);
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.page-body ul,
.page-body ol {
    list-style: revert;
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.page-body li {
    margin-bottom: 0.5em;
}

/* =========================================
   Polish: Focus Styles
   ========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* =========================================
   Polish: Selection
   ========================================= */

::selection {
    background: var(--accent-pink);
    color: #fff;
}

/* =========================================
   Polish: Scrollbar (Webkit)
   ========================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =========================================
   Polish: Utilities
   ========================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}
