/* ===== RANSON.DEV | BEM ARCHITECTURE ===== */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --color-bg: #0c0c0c;
    --color-text: #cccccc;
    --color-green: #00ff41;
    --color-blue: #00d4ff;
    --color-yellow: #ffcc00;
    --color-red: #ff4444;
    --color-purple: #bd93f9;
    --color-white: #ffffff;
    --color-gray-dark: #333;
    --color-gray: #555;
    --color-gray-light: #888;

    --win-header-start: #000080;
    --win-header-end: #1084d0;
    --win-border: #808080;
    --win-bg: #c0c0c0;
    --blue-screen: #0014a8;

    --font-main: 'VT323', monospace;
    --transition-fast: 0.1s;
    --transition-normal: 0.2s;
    --transition-slow: 0.5s;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #000000;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== UTILITIES ===== */
.u-hidden {
    display: none;
}

.u-visible {
    opacity: 1;
}

/* ===== ACCESSIBILITY ===== */

/* Screen Reader Only - Visually hidden but accessible to screen readers */
.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;
}

/* Skip Link - Visible on focus for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-green);
    color: var(--color-bg);
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 18px;
    text-decoration: none;
    z-index: 100000;
    border: 2px solid var(--color-bg);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--color-yellow);
    outline-offset: 2px;
}

/* Focus Styles - Enhanced visibility for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.link:focus-visible,
.link--menu:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 4px;
}

.terminal__btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 1px;
}

/* Reduced Motion - Respect user preferences */
@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;
    }

    .scanline,
    .effect-glitch::before,
    .effect-glitch::after,
    .boot__cursor,
    .cursor {
        animation: none !important;
    }

    .video-bg__media {
        display: none;
    }

    .video-bg__placeholder {
        animation: none !important;
        background: var(--color-bg);
    }
}

/* ===== D20 ROLLER WINDOW ===== */
.d20-window {
    position: fixed;
    top: 10px;
    right: calc(50% - 460px);
    width: 300px;
    height: 300px;
    background: var(--win-bg);
    border: 2px solid var(--win-border);
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.d20-window--hidden { display: none; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.d20-container {
    position: relative;
    width: 100%;
    height: calc(100% - 24px);
    background: #000;
    overflow: hidden;
}

#d20-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.d20-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-green);
    text-shadow: 0 0 10px var(--color-green);
    pointer-events: none;
    animation: blink 1.5s infinite;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg__media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    filter: brightness(0.9) contrast(1.4);
    transition: opacity 0.8s ease-in-out;
}

/* Lazy loading states */
.video-bg__media--loading {
    opacity: 0;
}

.video-bg__media--loaded {
    opacity: 0.8;
}

/* Placeholder while video loads */
.video-bg__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: placeholder-shimmer 3s ease infinite;
    transition: opacity 0.5s ease-out;
}

.video-bg__placeholder--hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes placeholder-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== EFFECT: SCANLINE ===== */
.effect-scanline::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

/* ===== SCANLINE ANIMATION ===== */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    animation: scanline-move 8s linear infinite;
    pointer-events: none;
    z-index: 99;
}

@keyframes scanline-move {
    0.01% {
        height: 0;
    }
    99.99% {
        height: 100%;
    }
    100% {
        height: 0;
    }
}

/* ===== START SCREEN ===== */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-screen--hidden {
    display: none;
}

/* ===== CYBERPUNK BUTTON ===== */
.btn-glitch-fill {
    display: inline-block;
    font-family: var(--font-main);
    border: 1px solid white;
    color: white;
    padding: 10px 13px;
    min-width: 175px;
    line-height: 1.5em;
    white-space: nowrap;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 32px;
    letter-spacing: 3px;
    text-decoration: none;
    position: relative;
}

.btn-glitch-fill .text,
.btn-glitch-fill .decoration,
.btn-glitch-fill .text-decoration {
    display: inline-block;
}

.btn-glitch-fill .decoration {
    float: right;
}

.btn-glitch-fill:hover,
.btn-glitch-fill:focus {
    animation-name: glitch-btn;
    animation-duration: 0.2s;
    background-color: var(--color-green);
    color: black;
    border: 1px solid var(--color-green);
}

.btn-glitch-fill:hover .text-decoration,
.btn-glitch-fill:focus .text-decoration {
    animation-name: blink-btn;
    animation-duration: 0.1s;
    animation-iteration-count: infinite;
}

.btn-glitch-fill:hover .decoration,
.btn-glitch-fill:focus .decoration {
    animation-name: blink-btn;
    animation-duration: 0.1s;
    animation-iteration-count: infinite;
}

.btn-glitch-fill:hover::before,
.btn-glitch-fill:focus::before {
    content: " ";
    width: 15px;
    border: 1px solid black;
    position: absolute;
    right: 25%;
    bottom: 3px;
    transform: rotate(35deg);
}

.btn-glitch-fill:hover::after,
.btn-glitch-fill:focus::after {
    animation-name: shrink-btn;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    content: " ";
    width: 75%;
    border: 1px solid black;
    position: absolute;
    left: 0;
    bottom: 5px;
}

.btn-glitch-fill:active {
    background: none;
    color: var(--color-green);
}

.btn-glitch-fill:active .text-decoration {
    animation-name: none;
}

.btn-glitch-fill:active .decoration {
    animation-name: none;
}

.btn-glitch-fill:active::before,
.btn-glitch-fill:active::after {
    display: none;
}

@keyframes glitch-btn {
    25% {
        background-color: red;
        transform: translateX(-10px);
        letter-spacing: 10px;
    }
    35% {
        background-color: var(--color-green);
        transform: translate(10px);
    }
    59% {
        opacity: 0;
    }
    60% {
        background-color: blue;
        transform: translate(-10px);
        filter: blur(5px);
    }
    100% {
        background-color: var(--color-green);
        blur: 5px;
    }
}

@keyframes blink-btn {
    50% {
        opacity: 0;
    }
}

@keyframes shrink-btn {
    100% {
        width: 10%;
    }
}

/* ===== BOOT SCREEN ===== */
.boot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.boot--hidden {
    display: none;
}

.boot__window {
    width: 100%;
    max-width: 900px;
    background: var(--win-bg);
    border: 2px solid var(--win-border);
    box-shadow:
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #808080,
        4px 4px 0 rgba(0, 0, 0, 0.3);
    animation: flicker 0.15s infinite;
}

.boot__content {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 20px;
    min-height: 500px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Custom scrollbar for boot content */
.boot__content::-webkit-scrollbar {
    width: 16px;
}

.boot__content::-webkit-scrollbar-track {
    background: var(--color-bg);
}

.boot__content::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border: 2px solid var(--color-bg);
}

.boot__content::-webkit-scrollbar-thumb:hover {
    background: var(--color-green);
}

.boot__ascii {
    color: var(--color-green);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.1;
    opacity: 0;
}

.boot__ascii--visible {
    opacity: 1;
}

.boot__line {
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
}

.boot__line--visible {
    opacity: 1;
}

.boot__line--ok {
    color: var(--color-green);
}

.boot__line--info {
    color: var(--color-blue);
}

.boot__line--starting {
    color: var(--color-purple);
}

.boot__line--kernel {
    color: var(--color-white);
}

.boot__cursor {
    opacity: 1;
    animation: cursor-blink 1s linear infinite;
    color: var(--color-green);
}

@keyframes cursor-blink {
    0.01% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    50.01% {
        opacity: 1;
    }
}

.boot__progress {
    margin-top: 20px;
    opacity: 0;
}

.boot__progress--visible {
    opacity: 1;
}

.boot__progress-bar {
    width: 100%;
    max-width: 500px;
    height: 24px;
    border: 2px solid var(--color-green);
    position: relative;
    margin-top: 10px;
}

.boot__progress-fill {
    height: 100%;
    background: var(--color-green);
    width: 0%;
    transition: width 0.1s linear;
}

/* Terminal-style loader */
.loader-text {
    color: var(--color-text);
    font-size: 18px;
    margin-bottom: 8px;
}

.loader-line {
    font-size: 16px;
    white-space: nowrap;
}

.loader-bracket {
    color: var(--color-text);
}

.loader-bar {
    color: var(--color-green);
    letter-spacing: 0;
}

.loader-percent {
    color: var(--color-text);
    margin-left: 10px;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* ===== PAGE ===== */
.page {
    opacity: 0;
    transition: opacity var(--transition-slow) ease;
}

.page--visible {
    opacity: 1;
}

.page__wrapper {
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.page--blue {
    background: var(--blue-screen);
    min-height: 100vh;
    padding: 40px;
    color: white;
}

/* ===== TERMINAL ===== */
.terminal {
    width: 100%;
    max-width: 800px;
    background: var(--win-bg);
    border: 2px solid var(--win-border);
    box-shadow:
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #808080,
        4px 4px 0 rgba(0, 0, 0, 0.3);
}

.terminal__header {
    background: linear-gradient(90deg, var(--win-header-start), var(--win-header-end));
    padding: 3px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal__title {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.terminal__title::before {
    content: '⬛';
    font-size: 10px;
}

.terminal__buttons {
    display: flex;
    gap: 2px;
}

.terminal__btn {
    width: 16px;
    height: 14px;
    background: var(--win-bg);
    border: 1px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.terminal__btn:hover {
    background: #d4d4d4;
}

.terminal__btn--close {
    cursor: pointer;
}

.terminal__btn--close:hover {
    background: var(--color-red);
    color: white;
}

.terminal__body {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 20px;
    min-height: 400px;
    font-size: 20px;
    line-height: 1.6;
}

/* ===== TEXT ELEMENTS ===== */
.text {
    margin-bottom: 5px;
}

.text--copyright {
    color: var(--color-gray-light);
    margin-bottom: 20px;
}

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

.text--path span,
.text--path .text__cmd {
    color: var(--color-green);
}

.text--prompt {
    color: var(--color-yellow);
}

.text--header {
    font-size: 36px;
    color: var(--color-green);
    margin-bottom: 40px;
}

.text--header::before {
    content: '$ ';
    color: var(--color-yellow);
}

.text--blue {
    font-size: 24px;
    line-height: 1.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text--blue p {
    margin-bottom: 30px;
}

.text__highlight {
    color: var(--color-yellow);
}

/* ===== DIVIDER ===== */
.divider {
    color: var(--color-gray);
    margin: 15px 0;
    letter-spacing: -1px;
}

.divider--border {
    border-top: 1px solid var(--color-gray-dark);
    padding-top: 30px;
    margin-top: 50px;
}

/* ===== CURSOR ===== */
.cursor {
    display: inline-block;
    width: 14px;
    height: 22px;
    background: var(--color-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== NAV ===== */
.nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--color-gray-dark);
}

.nav--blue {
    font-size: 28px;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    margin-top: 0;
    padding-top: 0;
}

.nav__content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== LINK ===== */
.link {
    text-decoration: none;
    transition: all var(--transition-normal);
}

.link--back {
    color: var(--color-yellow);
    font-size: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.link--back::before {
    content: '← ';
}

.link--back:hover {
    color: var(--color-green);
    text-shadow: 0 0 10px var(--color-green);
}

.link--menu {
    display: block;
    color: var(--color-green);
    padding: 10px 0;
    font-size: 26px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.link--menu::before {
    content: '>';
    margin-right: 10px;
    color: var(--color-yellow);
}

.link--menu:hover {
    color: var(--color-blue);
    text-shadow: 0 0 10px var(--color-blue);
    padding-left: 10px;
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px 30px;
    margin: 20px 0;
}

.menu-grid .link--menu {
    position: relative;
    text-align: center;
    padding: 15px 20px;
    border: 1px solid var(--color-gray-dark);
    background: rgba(0, 255, 65, 0.03);
    transition: all var(--transition-fast);
    display: block;
    overflow: visible;
}

/* Override default link--menu styles for grid items */
.menu-grid .link--menu::before {
    content: none;
    margin: 0;
}

.menu-grid .link--menu:not(:hover) {
    padding-left: 20px;
    text-shadow: none;
}

.menu-grid .link--menu .menu__text,
.menu-grid .link--menu .menu__decoration,
.menu-grid .link--menu .menu__arrow {
    display: inline-block;
}

.menu-grid .link--menu .menu__arrow {
    float: right;
}

.menu-grid .link--menu .menu__decoration,
.menu-grid .link--menu .menu__arrow {
    opacity: 0;
}

.menu-grid .link--menu:hover,
.menu-grid .link--menu:focus {
    border-color: var(--color-green);
    background: var(--color-green);
    color: black;
    animation: menu-glitch 0.2s;
}

.menu-grid .link--menu:hover .menu__decoration,
.menu-grid .link--menu:focus .menu__decoration {
    opacity: 1;
    animation: blink-menu 0.1s infinite;
}

.menu-grid .link--menu:hover .menu__arrow,
.menu-grid .link--menu:focus .menu__arrow {
    opacity: 1;
    animation: blink-menu 0.1s infinite;
}

.menu-grid .link--menu:hover::before,
.menu-grid .link--menu:focus::before {
    content: " ";
    width: 15px;
    border: 1px solid black;
    position: absolute;
    right: 25%;
    bottom: 3px;
    transform: rotate(35deg);
}

.menu-grid .link--menu:hover::after,
.menu-grid .link--menu:focus::after {
    animation-name: shrink-menu;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    content: " ";
    width: 75%;
    border: 1px solid black;
    position: absolute;
    left: 0;
    bottom: 5px;
}

.menu-grid .link--menu:active {
    background: rgba(0, 255, 65, 0.03);
    color: var(--color-green);
}

.menu-grid .link--menu:active .menu__decoration,
.menu-grid .link--menu:active .menu__arrow {
    animation-name: none;
}

.menu-grid .link--menu:active::before,
.menu-grid .link--menu:active::after {
    display: none;
}

@keyframes menu-glitch {
    25% {
        background-color: red;
        transform: translateX(-5px);
        letter-spacing: 5px;
    }
    35% {
        background-color: var(--color-green);
        transform: translate(5px);
    }
    59% {
        opacity: 0;
    }
    60% {
        background-color: blue;
        transform: translate(-5px);
        filter: blur(3px);
    }
    100% {
        background-color: var(--color-green);
        filter: blur(0);
    }
}

@keyframes blink-menu {
    50% {
        opacity: 0;
    }
}

@keyframes shrink-menu {
    100% {
        width: 10%;
    }
}

.link--social {
    color: var(--color-text);
    margin-right: 15px;
    font-size: 18px;
}

.link--social:hover {
    color: var(--color-green);
}

.link--blue {
    color: white;
}

.link--blue:hover {
    opacity: 0.7;
}

.link--project {
    color: var(--color-blue);
    font-size: 20px;
}

.link--project::before {
    content: '→ ';
}

.link--project:hover {
    color: var(--color-green);
}

/* ===== MENU SEPARATOR ===== */
.menu-sep {
    color: #666;
    text-align: center;
    padding: 5px 0;
    font-size: 18px;
}

/* ===== LANG SWITCH ===== */
.lang-switch {
    color: var(--color-text);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.lang-switch:hover {
    color: var(--color-green);
}

/* ===== SKILL ===== */
.skill {
    margin-bottom: 30px;
}

.skill__title {
    color: var(--color-blue);
    font-size: 24px;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-normal);
    position: relative;
    padding-right: 30px;
}

.skill__title::before {
    content: '├── ';
    color: var(--color-gray);
}

.skill__title::after {
    content: '[−]';
    position: absolute;
    right: 0;
    color: var(--color-green);
    font-size: 20px;
    transition: transform var(--transition-normal);
}

.skill__title:hover {
    color: var(--color-green);
}

.skill__title--collapsed::after {
    content: '[+]';
}

.skill__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 40px;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 10px;
}

.skill__list--collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.skill__item {
    background: #1a1a1a;
    border: 1px solid var(--color-gray-dark);
    padding: 8px 16px;
    font-size: 20px;
    color: var(--color-green);
    transition: all var(--transition-normal);
}

.skill__item:hover {
    border-color: var(--color-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

/* ===== PROJECT ===== */
.project {
    background: var(--color-bg);
    border: 1px solid var(--color-gray-dark);
    margin-bottom: 30px;
    overflow: hidden;
}

.project__header {
    background: linear-gradient(90deg, var(--win-header-start), var(--win-header-end));
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project__title {
    color: white;
    font-size: 22px;
}

.project__status {
    color: var(--color-green);
    font-size: 18px;
}

.project__body {
    padding: 20px;
    color: var(--color-text);
}

.project__desc {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 20px;
}

.project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project__links {
    display: flex;
    gap: 20px;
}

/* ===== TAG ===== */
.tag {
    background: #1a1a1a;
    padding: 4px 10px;
    font-size: 18px;
}

.tag--tech {
    border: 1px solid var(--color-purple);
    color: var(--color-purple);
}

.tag--filter {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tag--filter:hover {
    background: var(--color-purple);
    color: var(--color-bg);
}

.tag--active {
    background: var(--color-purple);
    color: var(--color-bg);
}

/* ===== CONTACT ===== */
.contact__title {
    font-size: 48px;
    color: white;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-align: center;
}

.contact__info {
    font-size: 28px;
    color: white;
    line-height: 2;
    text-align: center;
}

.contact__link {
    color: var(--color-yellow);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.contact__link:hover {
    opacity: 0.7;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-avatar {
    width: 280px;
    height: 320px;
    min-width: 280px;
    min-height: 320px;
    border: 3px solid var(--color-green);
    position: relative;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.about-name {
    font-size: 28px;
    margin-top: 20px;
    letter-spacing: 2px;
    color: var(--color-green);
}

/* ===== ASCII BOX ===== */
.ascii-box {
    font-size: 16px;
    color: var(--color-green);
    opacity: 0.7;
    margin-bottom: 40px;
    overflow-x: auto;
}

/* ===== CONTACT VALUES ===== */
.contact__value {
    font-size: 28px;
    color: var(--color-yellow);
    word-break: break-all;
}

.contact__location {
    font-size: 24px;
    color: var(--color-text);
    opacity: 0.9;
    letter-spacing: 3px;
}

/* ===== EFFECT: GLITCH ===== */
.effect-glitch {
    position: relative;
    display: inline-block;
}

.effect-glitch::before,
.effect-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.effect-glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: #ff0000;
    z-index: -1;
}

.effect-glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 2px); }
}

/* ===== TRANSITION ===== */
.transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.transition--active {
    opacity: 1;
    pointer-events: all;
}

.transition__text {
    color: var(--color-green);
    font-size: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 919px) and (min-width: 769px) {
    .d20-window { right: 10px; }
}

@media (max-width: 768px) {
    .btn-glitch-fill {
        padding: 15px 40px;
        font-size: 24px;
        letter-spacing: 2px;
        min-width: 150px;
    }

    .terminal__body {
        font-size: 16px;
        padding: 15px;
    }

    .link--menu {
        font-size: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-grid .link--menu {
        padding: 12px 15px;
        font-size: 20px;
    }

    .menu-grid .link--menu:hover::before,
    .menu-grid .link--menu:focus::before {
        right: 20%;
    }

    .menu-grid .link--menu:hover::after,
    .menu-grid .link--menu:focus::after {
        width: 60%;
    }

    .text--blue {
        font-size: 18px;
    }

    .contact__title {
        font-size: 32px;
    }

    .boot__window {
        max-width: 100%;
    }

    .boot__content {
        font-size: 14px;
        padding: 15px;
        min-height: 400px;
    }

    .boot__ascii {
        font-size: 10px;
    }

    .boot__progress-bar {
        max-width: 100%;
    }

    .skill__item {
        font-size: 16px;
    }

    .skill__title {
        font-size: 20px;
    }

    .skill__title::after {
        font-size: 18px;
    }

    .skill__list {
        padding-left: 20px;
    }

    .project__desc {
        font-size: 16px;
    }

    /* Hide D20 Roller on mobile */
    .d20-window {
        display: none;
    }

    /* About page responsive */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-avatar {
        width: 200px;
        height: 230px;
        min-width: 200px;
        min-height: 230px;
    }

    .about-name {
        font-size: 22px;
    }

    /* ASCII box responsive */
    .ascii-box {
        font-size: 12px;
    }

    /* Contact responsive */
    .contact__value {
        font-size: 20px;
    }

    .contact__location {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* ===== BLOG COMPONENTS ===== */

/* Search input */
.blog-search-input {
  width: 100%;
  padding: 12px;
  background: #111;
  border: 2px solid var(--color-gray-dark);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s;
}

.blog-search-input:focus {
  border-color: var(--color-green);
}

.blog-search-input::placeholder {
  color: var(--color-gray-light);
  opacity: 0.7;
}

/* Tag filter buttons */
.tag--filter {
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--color-purple);
  background: transparent;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 16px;
}

.tag--filter:hover {
  background: rgba(189, 147, 249, 0.1);
  transform: translateY(-2px);
}

.tag--filter.tag--active {
  background: var(--color-purple);
  color: var(--color-bg);
  border-color: var(--color-purple);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination__btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--color-gray);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination__btn:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--color-green);
  color: var(--color-green);
}

.pagination__btn--active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-bg);
}

/* Blog post content styling */
.blog-content h2 {
  color: var(--color-green);
  font-size: 26px;
  margin: 30px 0 15px 0;
}

.blog-content h3 {
  color: var(--color-blue);
  font-size: 22px;
  margin: 25px 0 12px 0;
}

.blog-content p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.8;
  margin-left: 30px;
  margin-bottom: 20px;
}

.blog-content code {
  background: #0a0a0a;
  border: 1px solid var(--color-gray-dark);
  padding: 2px 6px;
  color: var(--color-green);
  font-size: 16px;
}

.blog-content pre {
  background: #0a0a0a;
  border: 1px solid var(--color-gray-dark);
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  color: var(--color-green);
  font-size: 18px;
  white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-search-input {
    font-size: 16px;
    padding: 10px;
  }

  .tag--filter {
    font-size: 14px;
    padding: 6px 12px;
  }

  .pagination__btn {
    font-size: 16px;
    padding: 8px 16px;
  }

  .blog-content h2 {
    font-size: 22px;
  }

  .blog-content h3 {
    font-size: 20px;
  }

  .blog-content p {
    font-size: 18px;
  }
}
