/* ============================================
   William T. Christie - Personal Website
   styles.css - Main Stylesheet
   ============================================

   TABLE OF CONTENTS
   -----------------
   1. CSS VARIABLES ............. Color palettes, fonts, sizing
   2. RESET & BASE .............. Box model, html/body defaults
   3. LAYOUT .................... Flex container, sidebar/main split
   4. SCROLLBAR ................. Custom scrollbar styling
   5. SIDEBAR ................... Fixed sidebar, profile, nav
   6. VIEW TOGGLE ............... Boomer/Hacker mode checkboxes
   7. CONTACT ................... Contact links section
   8. MAIN CONTENT .............. Main scrollable area
   9. WELCOME SECTION ........... Hero/welcome box
   10. BUTTONS .................. Primary/outline button styles
   11. SECTIONS ................. Content sections layout
   12. PROJECT CARDS ............ Project grid and cards
   13. ENTRY CARDS .............. Experience/education entries
   14. LISTS .................... ul/li styling
   15. FOOTER ................... Footer styles
   16. LINKS .................... Global link styles
   17. RESPONSIVE ............... Mobile breakpoints (900px, 600px)
   18. PRINT .................... Print media queries
   19. FOCUS & SELECTION ........ Accessibility states
   20. HACKER MODE .............. walzr.com-inspired alternate layout
   21. STATIC DISSOLVE .......... CRT transition effect
   22. HACKER FOOTER ............ Hacker mode footer links

   ============================================ */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    --color-bg: #fdfbf7;
    --color-text: #33302b;
    --color-text-secondary: #5f5a52;
    --color-text-muted: #8f887d;
    --color-border: #e8e2d9;
    --color-accent: #a69685;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --sidebar-width: 300px;
}

/* Hacker Mode Variables */
body.hacker-mode {
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-text-secondary: #a9a9a9;
    --color-text-muted: #555555;
    --color-border: #e0e0e0;
    --color-accent: #333333;
    --font-mono: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-accent);
    overflow: hidden;
    padding: 10px 10px 0 10px;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.layout {
    display: flex;
    min-height: calc(100vh - 10px);
    background-color: var(--color-bg);
    border-radius: 4px 4px 0 0;
}

/* ==========================================================================
   4. SCROLLBAR
   ========================================================================== */
.main::-webkit-scrollbar {
    width: 6px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
}

.main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. SIDEBAR
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    width: var(--sidebar-width);
    height: calc(100vh - 10px);
    padding: 32px 24px 40px 24px;
    border-right: 1px solid var(--color-border);
    background-color: var(--color-bg);
    border-radius: 4px 0 0 0;
    z-index: 10;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.photo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    align-self: center;
    margin-top: 16px;
}

.profile-photo {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.cyber-avatar {
    display: none;
}

.name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.3px;
    margin: 0;
    color: var(--color-text);
}

.tagline {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: -8px;
    line-height: 1.4;
    align-self: center;
    text-align: center;
}

.bio {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* --- Navigation --- */
.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    align-items: center;
    text-align: center;
}

.nav a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-text);
}

.nav a.active {
    color: var(--color-text);
    font-weight: 600;
}

/* ==========================================================================
   6. VIEW TOGGLE
   ========================================================================== */
.boomer-view-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 90px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    margin-bottom: -16px;
}

.boomer-view-toggle .view-toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    width: 130px;
}

.boomer-view-toggle .view-toggle-option input[type="checkbox"] {
    display: none;
}

.boomer-view-toggle .view-toggle-option .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
}

.boomer-view-toggle .view-toggle-option input[type="checkbox"]:checked + .checkmark {
    background: var(--color-accent);
}

.boomer-view-toggle .view-toggle-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--color-bg);
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.boomer-view-toggle .view-toggle-option .view-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.boomer-view-toggle .view-toggle-option:hover .view-label {
    color: var(--color-text);
}

/* Hide boomer view toggle in hacker mode */
body.hacker-mode .boomer-view-toggle {
    display: none;
}

.palette-toggle {
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.palette-toggle svg {
    width: 14px;
    height: 14px;
}

.palette-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==========================================================================
   7. CONTACT
   ========================================================================== */
.contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    margin-top: 0;
    border-top: 1px solid var(--color-border);
    align-items: center;
    text-align: center;
}

.contact h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.contact a {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.location {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* Download CV icon */
.contact a[download]::after {
    content: ' ↓';
    font-size: 12px;
}

/* External link indicator */
.contact a[target="_blank"]::after {
    content: ' ↗';
    font-size: 11px;
}

/* ==========================================================================
   8. MAIN CONTENT
   ========================================================================== */
.main {
    margin-left: var(--sidebar-width);
    padding: 32px 48px;
    width: calc(100% - var(--sidebar-width));
    height: calc(100vh - 10px);
    overflow-y: auto;
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    border-radius: 0 4px 0 0;
}

.main-inner {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 48px;
}

/* ==========================================================================
   9. WELCOME SECTION
   ========================================================================== */
.welcome {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--color-border);
    border-radius: 12px;
}

.welcome-heading {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--color-text);
    width: 100%;
}

.welcome-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    width: 100%;
    margin-bottom: 16px;
}

.welcome-subtext {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.welcome-buttons {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-text);
    z-index: -1;
    transition: width 0.5s ease;
}

.btn:hover {
    color: var(--color-bg);
    transition: color 0.3s ease;
}

.btn:hover::before {
    width: 100%;
    transition: width 0.3s ease;
}

.btn-outline {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline::before {
    background: var(--color-accent);
}

.btn-outline:hover {
    color: var(--color-bg);
}

/* ==========================================================================
   11. SECTIONS
   ========================================================================== */
.section {
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ==========================================================================
   12. PROJECT CARDS
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s;
    background: var(--color-border);
}

.project-card:hover {
    border-color: var(--color-accent);
}

/* View-specific descriptions */
.project-card .desc-hacker {
    display: none !important;
}

body.hacker-mode .project-card .desc-boomer {
    display: none !important;
}

body.hacker-mode .project-card .desc-hacker {
    display: inline !important;
}

/* Revamping state - greyed out, not clickable */
.project-card--revamping {
    position: relative;
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.project-card--revamping:hover {
    border-color: var(--color-border);
}

.revamp-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-text-muted);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Hide project thumbnails in boomer mode */
.project-thumb {
    display: none;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.project-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-card .tech {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Project Link Wrapper */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-link .project-card {
    cursor: pointer;
}

/* ==========================================================================
   13. ENTRY CARDS
   ========================================================================== */
.entry {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 4px;
}

.entry h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.date {
    font-size: 14px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.role {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.details {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.details:last-child {
    margin-bottom: 0;
}

.details strong {
    color: var(--color-text);
}

/* ==========================================================================
   14. LISTS
   ========================================================================== */
ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
}

li {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

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

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   16. LINKS
   ========================================================================== */
a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 32px 24px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .sidebar-content {
        max-width: 600px;
    }

    .main {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 32px 24px;
    }

    html, body {
        overflow: auto;
    }
}

@media (max-width: 600px) {
    .entry-header {
        flex-direction: column;
        gap: 4px;
    }

    .date {
        order: -1;
        font-size: 13px;
    }

    h2 {
        font-size: 24px;
    }

    .welcome-heading {
        font-size: 36px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .welcome-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .sidebar-header {
        gap: 16px;
    }

    .main {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   18. PRINT
   ========================================================================== */
@media print {
    .layout {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
        border: none;
        padding: 0 0 24px 0;
        margin-bottom: 24px;
        border-bottom: 1px solid #ccc;
    }

    .main {
        padding: 0;
    }
}

/* ==========================================================================
   19. FOCUS & SELECTION
   ========================================================================== */
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background-color: rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   20. HACKER MODE
   ========================================================================== */

/* Clean white background */
body.hacker-mode {
    background: var(--color-bg);
    padding: 0;
}

body.hacker-mode .layout {
    background: var(--color-bg);
    border-radius: 0;
}

/* Clean typography */
body.hacker-mode {
    font-family: var(--font-mono);
    letter-spacing: -0.3px;
}

body.hacker-mode .name,
body.hacker-mode h1,
body.hacker-mode h2,
body.hacker-mode h3,
body.hacker-mode h4 {
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: -0.3px;
    font-weight: 600;
}

/* Hide sidebar elements */
.cyber-avatar {
    display: none;
}

body.hacker-mode .profile-photo {
    display: none !important;
}

body.hacker-mode .palette-toggle {
    display: none !important;
}

/* Mode Toggle Button */
.mode-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.mode-toggle:hover {
    border-color: var(--color-text-muted);
}

.mode-toggle .mode-label {
    display: none;
    align-items: center;
    justify-content: center;
}

.mode-toggle .mode-label.boomer {
    display: flex;
}

.mode-icon {
    width: 24px;
    height: 24px;
}

body.hacker-mode .mode-toggle .mode-label.boomer {
    display: none;
}

body.hacker-mode .mode-toggle .mode-label.hacker {
    display: inline-flex;
}

/* --- Hacker Mode Layout --- */

/* Hide hacker header in normal mode */
.hacker-header {
    display: none;
}

/* Show hacker header - bold colored stripe */
body.hacker-mode .hacker-header {
    display: block;
    width: 100%;
    padding: 60px 40px;
    background: var(--hacker-header-color, #ff1493);
}

body.hacker-mode .hacker-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

body.hacker-mode .hacker-name {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    letter-spacing: -0.5px;
}

body.hacker-mode .hacker-icon {
    flex-shrink: 0;
    margin-right: 30px;
}

body.hacker-mode .hacker-icon svg {
    width: 240px;
    height: 240px;
    color: #000;
}

/* Header right section - icon + checkboxes */
body.hacker-mode .hacker-header-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* View toggle checkboxes */
body.hacker-mode .view-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.hacker-mode .view-toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

body.hacker-mode .view-toggle-option input[type="checkbox"] {
    display: none;
}

body.hacker-mode .view-toggle-option .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 4px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

body.hacker-mode .view-toggle-option input[type="checkbox"]:checked + .checkmark {
    background: transparent;
}

body.hacker-mode .view-toggle-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #f5f5f5;
    font-size: 42px;
    font-weight: 900;
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(-8deg);
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(200, 200, 200, 0.5),
        -1px -1px 0 rgba(220, 220, 220, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.15),
        0 0 8px rgba(255, 255, 255, 0.3);
    filter: url(#chalk);
    opacity: 0.95;
}

body.hacker-mode .view-toggle-option .view-label {
    font-family: var(--font-mono);
    font-size: 1.17rem;
    font-weight: 500;
    color: #000;
}

/* Hide sidebar in hacker mode */
body.hacker-mode .sidebar {
    display: none !important;
}

/* Full-width main in hacker mode */
body.hacker-mode .layout {
    flex-direction: column;
}

html.hacker-mode-html,
body.hacker-mode {
    overflow: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

body.hacker-mode .main {
    margin-left: 0;
    width: 100%;
    padding: 40px 80px;
    height: auto;
    min-height: auto;
    overflow: visible;
}

body.hacker-mode .main-inner {
    max-width: 1400px;
    padding-top: 0;
    margin: 0 auto;
}

/* Hide welcome section and all non-project sections */
body.hacker-mode .welcome,
body.hacker-mode #experience,
body.hacker-mode #education,
body.hacker-mode #involvement,
body.hacker-mode .footer {
    display: none !important;
}

/* Projects Section - walzr.com style */
body.hacker-mode #projects {
    border: none;
    padding: 20px;
    margin: 0;
    background: transparent;
    border-bottom: none;
}

body.hacker-mode #projects h2 {
    display: none;
}

body.hacker-mode .section-subtitle {
    display: none;
}

/* Project Grid - 2 columns with image + text layout */
body.hacker-mode .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: flex-start;
}

body.hacker-mode .project-grid > .project-card,
body.hacker-mode .project-grid > .project-link {
    width: calc(50% - 25px);
}

body.hacker-mode .project-link .project-card {
    width: 100%;
}

body.hacker-mode .project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: none;
}

body.hacker-mode .project-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

body.hacker-mode .project-card--revamping {
    position: relative;
    opacity: 0.5;
    filter: grayscale(50%);
}

body.hacker-mode .revamp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    background: #666;
    color: #fff;
}

body.hacker-mode .project-thumb {
    display: block;
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

body.hacker-mode .project-thumb svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.hacker-mode .project-text {
    flex: 1;
    min-width: 0;
}

body.hacker-mode .project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.3px;
    display: inline;
}

body.hacker-mode .project-card h3::after {
    content: ': ';
    font-weight: 700;
}

body.hacker-mode .project-card p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    color: #a9a9a9;
    margin: 0;
    display: inline;
}

body.hacker-mode .project-card .tech {
    display: none;
}

/* Links in hacker mode */
body.hacker-mode .project-link {
    text-decoration: none;
}

/* Mode toggle - minimal */
body.hacker-mode .mode-toggle {
    border-color: #ddd;
    color: #666;
    background: #fff;
    box-shadow: rgba(100, 100, 111, 0.1) 0px 4px 12px 0px;
}

body.hacker-mode .mode-toggle:hover {
    border-color: #999;
}

/* Responsive for hacker mode */
@media (max-width: 800px) {
    body.hacker-mode .hacker-header {
        padding: 40px 20px;
    }

    body.hacker-mode .hacker-header-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    body.hacker-mode .hacker-icon svg {
        width: 80px;
        height: 80px;
    }

    body.hacker-mode .hacker-name {
        font-size: 2.5rem;
    }

    body.hacker-mode .project-grid > .project-card,
    body.hacker-mode .project-grid > .project-link {
        width: 100%;
        max-width: none;
    }

    body.hacker-mode .project-card h3,
    body.hacker-mode .project-card p {
        font-size: 1.2rem;
    }

    body.hacker-mode .project-thumb {
        width: 150px;
        height: 100px;
    }
}

@media (max-width: 500px) {
    body.hacker-mode .hacker-name {
        font-size: 2rem;
    }

    body.hacker-mode .project-card h3,
    body.hacker-mode .project-card p {
        font-size: 1.1rem;
    }

    body.hacker-mode .project-thumb {
        width: 120px;
        height: 80px;
    }
}

/* ==========================================================================
   21. STATIC DISSOLVE
   ========================================================================== */

/* Static noise overlay */
.static-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    pointer-events: none;
}

.static-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Checkmark animation states */
.view-toggle-option .checkmark {
    position: relative;
    overflow: visible;
}

.view-toggle-option .checkmark::after {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animating checkmark - flies to target */
.view-toggle-option .checkmark.animating-out::after {
    animation: checkmarkFlyOut 0.4s ease-in forwards;
}

.view-toggle-option .checkmark.animating-in::after {
    animation: checkmarkFlyIn 0.4s ease-out forwards;
}

@keyframes checkmarkFlyOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(-20px);
    }
}

@keyframes checkmarkFlyIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Boomer mode checkmark animation adjustments */
.boomer-view-toggle .view-toggle-option .checkmark.animating-out::after {
    animation: checkmarkFlyOutBoomer 0.4s ease-in forwards;
}

.boomer-view-toggle .view-toggle-option .checkmark.animating-in::after {
    animation: checkmarkFlyInBoomer 0.4s ease-out forwards;
}

@keyframes checkmarkFlyOutBoomer {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(-15px);
    }
}

@keyframes checkmarkFlyInBoomer {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hide content during transition */
body.transitioning .layout {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.transitioning.reveal .layout {
    opacity: 1;
}

/* ==========================================================================
   22. HACKER FOOTER
   ========================================================================== */

/* Hide hacker footer in boomer mode */
.hacker-footer {
    display: none;
}

/* Show hacker footer in hacker mode */
body.hacker-mode .hacker-footer {
    display: block;
    padding: 60px 0 40px 0;
    margin-top: 40px;
}

body.hacker-mode .hacker-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body.hacker-mode .hacker-footer-links a {
    font-family: var(--font-mono);
    font-size: 1.43rem;
    font-weight: 500;
    color: var(--hacker-header-color, #ff1493);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

body.hacker-mode .hacker-footer-links a:hover {
    opacity: 0.7;
}

body.hacker-mode .hacker-footer-separator {
    color: var(--hacker-header-color, #ff1493);
    font-size: 1.43rem;
    font-weight: 400;
    opacity: 0.5;
}
