/* IBM Plex Mono - Self-hosted */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-color: #000;
    --text-color: #F3BE4A;
    --font-main: 'IBM Plex Mono', monospace;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding-bottom: 60px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

::selection {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.footer-tabs {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    z-index: 3;
}

.footer-tabs nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.footer-tabs a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

.footer-tabs a.nav-left {
    position: absolute;
    left: 1rem;
}

.secrets {
    --text-color: #0b0801;
}

.footer-tabs a:hover {
    text-decoration: underline;
}

.footer-tabs a.active {
    font-weight: bold;
}

.ascii-art {
    font-size: min(0.4vw, 0.6vh);
    line-height: 1;
    white-space: pre;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    margin-bottom: 1rem;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
        box-sizing: border-box;
        width: 100%;
    }

    .footer-tabs nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .footer-tabs a {
        font-size: 0.9rem;
    }
}

/* positioning & background ascii */
.container {
    position: relative;
    z-index: 1;
}

.sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(222, 115, 86, 0.2);
    font-weight: bold;
    font-size: 1.5vw;
    /* Increased size */
    line-height: 1;
    white-space: pre;
    pointer-events: none;
    z-index: 0;
}

@keyframes skyDrift {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-15px) translateX(15px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.sky-animated {
    animation: skyDrift 15s ease-in-out infinite;
}

.ascii-art {
    z-index: 2;
}

/* Influences Bento Box Grid */
.influences-container {
    justify-content: flex-start;
    padding-top: 5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.influence-block {
    border: 1px solid rgba(243, 190, 74, 0.3);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    cursor: pointer;
}

/* Bento Box Sizing Classes */
.bento-large {
    grid-column: 2 / 3;
    grid-row: span 2;
    font-size: 1.4rem;
    font-weight: bold;
}

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

.bento-tall {
    grid-row: span 2;
}

/* About Page Styles */
.about-text-wrapper {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-social {
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(243, 190, 74, 0.1);
}

/* 404 Page Styles */
.error-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
}

.error-title {
    font-size: 4rem;
    margin: 0;
}

.error-text {
    font-size: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.easter-egg-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.easter-egg-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--text-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(243, 190, 74, 0.2);
    max-width: 90%;
}

.easter-egg-box h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.easter-egg-box p {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.btn-easter-egg {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-easter-egg:hover {
    background: rgba(243, 190, 74, 0.1);
}

.influence-block:hover {
    border-color: var(--text-color);
    box-shadow: 0 0 10px rgba(243, 190, 74, 0.2);
    transform: translateY(-2px);
    background: rgba(243, 190, 74, 0.05);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.influence-modal-content {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--text-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(243, 190, 74, 0.2);
    max-width: 500px;
    width: 85%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.influence-modal-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(243, 190, 74, 0.3);
    padding-bottom: 0.5rem;
    width: 100%;
}

.influence-modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.close-modal:hover {
    transform: scale(1.2);
    opacity: 1;
}

@media (max-width: 1000px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

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

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 80px;
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 400px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 80px;
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}