@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Share+Tech+Mono&display=swap');

:root {
    --accent-color: #009dff;
    --accent-color-trans: #009dff3d;
    --accent-color-trans-lighter: #009dff66;
    --uni-tag-color: #ffb703;
    --uni-tag-bg: rgba(255, 183, 3, 0.12);
    --uni-tag-border: rgba(255, 183, 3, 0.35);
    --uni-tag-glow: rgba(255, 183, 3, 0.2);
    --background-dark: #009dff14;
    --screen-bg: #07090b;
    --screen-border: #1d2126;
    --screen-text: #ffffff;
    --screen-text-glow: rgba(255, 255, 255, 0.55);
    --gallery-bg: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    --gallery-frame-border: #333333;
    --gallery-btn-bg: linear-gradient(180deg, #444444 0%, #1e1e1e 100%);
    --gallery-btn-border: #121212;
    --caption-bg: linear-gradient(180deg, rgb(26, 26, 26) 0%, #1e1d1d 100%);
    --crt-scanline: rgba(18, 16, 16, 0.35);
}

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

html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
        repeating-linear-gradient(135deg,
            #1c1c1c,
            #1c1c1c 30px,
            #131313 30px,
            #131313 60px);
    background-color: #121212;
    cursor: url('ptr.svg') 0 0, auto;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


.main-card {
    position: relative;
    padding: 60px 60px 60px 60px;
    border: none;
    /* just to make sure lol */
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    background: linear-gradient(to bottom, #1d1d1d, #151515);
    border-radius: 6px;
    box-shadow:
        /* 0 15px 35px rgba(0, 0, 0, 0.65), */
        /* 0 5px 15px rgba(0, 0, 0, 0.5), */
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -3px 2px rgba(0, 0, 0, 0.8);
}

.title {
    text-align: center;
    width: 100%;
}

.name {
    color: #ffffff;
    font-weight: 300;
    margin: 0 0 8px 0;
    font-size: clamp(24pt, 5vw, 46pt);
    line-height: 1.1;
}

.human-specs {
    color: #a0a0a0;
    font-weight: 300;
    margin: 0;
    font-size: clamp(11pt, 2.5vw, 20pt);
    line-height: 1.3;
}

.main-card::before,
.main-card::after,
.main-card .screw-bottom-left,
.main-card .screw-bottom-right {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7a7a7a, #3a3a3a 70%);
    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

.main-card::before {
    top: 15px;
    left: 15px;
}

.main-card::after {
    top: 15px;
    right: 15px;
}

.main-card .screw-bottom-left {
    bottom: 15px;
    left: 15px;
}

.main-card .screw-bottom-right {
    bottom: 15px;
    right: 15px;
}

.buttons {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.button-sqr {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10pt;
    color: #a0a0a0;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    background: linear-gradient(180deg, #282828 0%, #1e1e1e 100%);
    border: 1px solid #121212;
    border-radius: 4px;
    padding: 12px;
    width: 96px;
    height: 96px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 5px 0 #2c2c2c;
    /* 0 10px 10px rgba(0, 0, 0, 0.5); */
    transition: all 0.08s ease-in-out;
}

.button-sqr i {
    color: inherit;
}

.button-sqr:hover,
.button-sqr:focus {
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color-trans-lighter);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 0 var(--accent-color),
        0 6px 10px var(--accent-color-trans);
    cursor: url('hand.svg') 0 0, auto;
}

.button-sqr:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0px 0 #000;
    cursor: url('move.svg') 0 0, auto;
}

.button-project:active {
    color: transparent;
}

@media (max-width: 600px) {
    .main-card {
        padding: 50px 20px 30px 20px;
    }

    .buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 12px;
    }

    .button-sqr {
        width: 100%;
        height: 85px;
        font-size: 9pt;
    }

    .button-sqr:last-child {
        grid-column: 1 / -1;
        width: 100%;
        height: 65px;
    }
}

.button-sqr::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.button-sqr-active {
    z-index: 999;
}

.button-sqr-active::after {
    animation: echo 0.1s ease-out;
}

@keyframes echo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* PROYEKT PROYEKT PROYEKT */

.project-list {
    position: relative;
    border: none;
    padding: 40px;
    width: 100%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    margin: auto;
    background: linear-gradient(to bottom, #1d1d1d, #151515);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -3px 2px rgba(0, 0, 0, 0.8);
}

.project-list::before,
.project-list::after,
.project-list .screw-bottom-left,
.project-list .screw-bottom-right {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7a7a7a, #3a3a3a 70%);
    box-shadow:
        0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

.project-list::before {
    top: 15px;
    left: 15px;
}

.project-list::after {
    top: 15px;
    right: 15px;
}

.project-list .screw-bottom-left {
    bottom: 15px;
    left: 15px;
}

.project-list .screw-bottom-right {
    bottom: 15px;
    right: 15px;
}

.project-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 18px;
}

.project-list-title {
    color: #ffffff;
    font-weight: 300;
    margin: 0;
    font-size: 22pt;
    line-height: 1.1;
}

.button-back {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10pt;
    color: #a0a0a0;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    background: linear-gradient(180deg, #282828 0%, #1e1e1e 100%);
    border: 1px solid #121212;
    border-radius: 4px;
    padding: 8px 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 3px 0 #151515,
        0 6px 8px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.08s ease-in-out;
}

.button-back:hover,
.button-back:focus {
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color-trans-lighter);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 3px 0 var(--accent-color),
        0 4px 6px var(--accent-color-trans);
    cursor: url('hand.svg') 0 0, auto;
}

.button-back:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0px 0 #000;
    cursor: url('move.svg') 0 0, auto;
}

/* PROJECT CATEGORY TABS */

.project-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 22px;
    padding-bottom: 2px;
}

.category-tab {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5pt;
    color: #999999;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid #161616;
    border-radius: 4px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 #111111,
        0 3px 6px rgba(0, 0, 0, 0.35);
    cursor: url('hand.svg') 0 0, pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.category-tab i {
    font-size: 9pt;
    transition: transform 0.15s ease, color 0.15s ease;
}

/* Category Color Accents */
.category-tab[data-filter="all"] {
    --cat-color: #009dff;
    --cat-glow: rgba(0, 157, 255, 0.25);
}

.category-tab[data-filter="engineering"] {
    --cat-color: #ffb703;
    --cat-glow: rgba(255, 183, 3, 0.25);
}

.category-tab[data-filter="software"] {
    --cat-color: #00f5d4;
    --cat-glow: rgba(0, 245, 212, 0.25);
}

.category-tab[data-filter="datascience"] {
    --cat-color: #c084fc;
    --cat-glow: rgba(192, 132, 252, 0.25);
}

.category-tab[data-filter="miscellaneous"] {
    --cat-color: #fb7185;
    --cat-glow: rgba(251, 113, 133, 0.25);
}

.category-tab:hover,
.category-tab:focus-visible {
    color: #ffffff;
    border-color: var(--cat-color);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px 0 var(--cat-color),
        0 0 10px var(--cat-glow);
}

.category-tab:hover i,
.category-tab:focus-visible i {
    color: var(--cat-color);
}

.category-tab.is-active {
    color: #ffffff;
    border-color: var(--cat-color);
    background: linear-gradient(180deg, #2b2b2b 0%, #171717 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 var(--cat-color),
        0 0 12px var(--cat-glow);
}

.category-tab.is-active i {
    color: var(--cat-color);
    text-shadow: 0 0 8px var(--cat-glow);
}

.category-tab:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 0 #000;
    cursor: url('move.svg') 0 0, pointer;
}

/* Empty State */
.projects-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed #2e3338;
    border-radius: 6px;
    background:
        radial-gradient(circle at center, #14171a 0%, #0c0e10 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px);
    color: #88929b;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.8px;
    user-select: none;
}

.projects-empty-state i {
    font-size: 26pt;
    color: #525a62;
    margin-bottom: 12px;
}

.projects-empty-state .empty-title {
    font-size: 10.5pt;
    color: #e0e6ed;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.projects-empty-state .empty-subtitle {
    font-size: 8.5pt;
    color: #68727d;
}

.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}



.project-card {
    background: linear-gradient(to bottom, #222222, #1a1a1a);
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus,
.project-card:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--background-dark);
    outline: none;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 50%;
    min-width: 0;
}

.project-title {
    color: #ffffff;
    font-size: 15pt;
    font-weight: 400;
    margin: 0;
}

.project-date-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: -2px;
    margin-bottom: 2px;
}

.project-date-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 8px;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.4) 100%),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0px, rgba(0, 0, 0, 0.35) 1px, transparent 1px, transparent 2px),
        var(--screen-bg);
    border: 2px solid #121212;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9pt;
    color: var(--screen-text);
    letter-spacing: 0.6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

.project-date-tag i {
    font-size: 8pt;
    color: #ffffff;
    opacity: 0.85;
}

.project-description {
    color: #a0a0a0;
    font-size: 10.5pt;
    line-height: 1.5;
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5pt;
    color: var(--accent-color);
    background: var(--background-dark);
    border: 1px solid var(--accent-color-trans);
    border-radius: 3px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-tag-university {
    color: var(--uni-tag-color);
    background: var(--uni-tag-bg);
    border-color: var(--uni-tag-border);
    box-shadow: 0 0 6px var(--uni-tag-glow);
    transition: all 0.15s ease;
}

.project-tag-university:hover {
    color: #ffe082;
    background: rgba(255, 183, 3, 0.22);
    border-color: rgba(255, 183, 3, 0.65);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.project-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5pt;
    color: #a0a0a0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.project-link:hover,
.project-link:focus,
.project-link:focus-visible {
    color: var(--accent-color);
    cursor: url('hand.svg') 0 0, auto;
    outline: none;
}

@media (max-width: 800px) {
    .project-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .project-content {
        width: 100%;
    }

    .project-gallery {
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 600px) {
    .project-list {
        padding: 35px 20px 30px 20px;
    }

    .project-list-header {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .button-back {
        width: 100%;
        justify-content: center;
    }

    .project-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #333333 transparent;
    }

    .project-gallery {
        padding: 8px 0;
        gap: 8px;
    }

    .gallery-nav-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 11pt;
    }

    .gallery-screen {
        height: 165px;
    }

    .gallery-caption {
        padding: 6px 10px;
        font-size: 9pt;
    }
}

/* SKEUOMORPHIC CRT GALLERY COMPONENT */

.project-gallery {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    background: none;
    border: none;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-nav-btn {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--gallery-btn-bg);
    border: 1px solid var(--gallery-btn-border);
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13pt;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('hand.svg') 0 0, pointer;
    outline: none;
    user-select: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.6);
    transition: all 0.15s ease;
}

.gallery-nav-btn:hover,
.gallery-nav-btn:focus {
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 12px var(--accent-color-trans-lighter),
        0 3px 6px rgba(0, 0, 0, 0.6);
}

.gallery-nav-btn:active {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.4);
    cursor: url('move.svg') 0 0, pointer;
}

.gallery-nav-btn.is-hidden {
    opacity: 0.15;
    pointer-events: none;
    cursor: default;
}

.crt-standby {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #70757a;
    font-family: 'Share Tech Mono', monospace;
    font-size: 8.5pt;
    letter-spacing: 1px;
    background:
        radial-gradient(circle at center, #111418 0%, #050608 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);
    z-index: 2;
    user-select: none;
}

.crt-standby i {
    font-size: 16pt;
    color: #4a4a4a;
}

.gallery-screen {
    position: relative;
    flex: 1;
    height: 210px;
    background-color: #050505;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: visible;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    cursor: default;
}

.gallery-image,
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease-in-out;
    border-radius: 3px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.gallery-video {
    display: none;
    background: #000000;
}

/* PURE CSS CRT DISPLAY OVERLAY */
.crt-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Scanlines + RGB Subpixel Lines + Vignette */
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%,
            var(--crt-scanline) 50%),
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.03),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.03)),
        radial-gradient(circle at center,
            transparent 55%,
            rgba(0, 0, 0, 0.65) 100%);
    background-size: 100% 4px, 6px 100%, 100% 100%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
    animation: crtFlicker 0.15s infinite;
}

/* CRT Glass Lens Reflection Sweep (Matching attached design) */
.crt-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 15%,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(255, 255, 255, 0.1) 25%,
            transparent 60%),
        linear-gradient(125deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 55%,
            rgba(255, 255, 255, 0.08) 80%,
            transparent 100%);
    pointer-events: none;
}

@keyframes crtFlicker {
    0% {
        filter: brightness(0.97);
    }

    50% {
        filter: brightness(1.02);
    }

    100% {
        filter: brightness(0.98);
    }
}

.gallery-screen:hover .crt-overlay {
    opacity: 0;
}

.gallery-caption {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: max-content;
    max-width: 100%;
    background: var(--caption-bg);
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    padding: 4px 12px;
    color: #a0a0a0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9pt;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 -1px 1px #000000;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    white-space: wrap;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.regular-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.regular-link:hover,
.regular-link:focus,
.regular-link:focus-visible {
    color: #ffffff;
    cursor: url('hand.svg') 0 0, pointer;
    outline: none;
}

/* when regular link already clicked */