:root {
    --primary-color: #2A2AB8;
    --secondary-color: #6C5EB5;
    --accent-color: #6A6ACD;
    --hover-color: #f4f4fc;
    
    --text-color-primary: #f4f4fc;
    --border-width: 1px;
}

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

html {
    background: #000000;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    background: #000000;
    color: var(--text-color-primary);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    background: transparent;
    border-radius: 25px;
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 100;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 3px;
    backface-visibility: hidden;
    isolation: isolate;
    contain: layout style paint;
}

.sidebar {
    width: 240px;
    background: var(--primary-color);
    border-right: var(--border-width) solid var(--accent-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 80px);
    top: 40px;
    left: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    clip-path: inset(0 round 25px 0 0 25px);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: var(--border-width) solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button {
    box-shadow: none;
    transform: translate(0, 0);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

button:hover {
    transform: translate(3px, -3px);
    box-shadow: -3px 3px 0 black;
}

.logo-btn {
    background: none;
    border: none;
    color: var(--text-color-primary);
    font-family: 'Tiny5', monospace;
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: text-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    text-shadow: none;
}

.logo-btn:hover {
    text-shadow: 0 0 10px var(--hover-color);
}

.minimize-btn {
    font-family: 'Tiny5', monospace;
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--text-color-primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-weight: 400;
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.minimize-btn:hover {
    color: black;
    background: var(--hover-color);
    border-color: black;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0 1rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: letter-spacing 0.35s, text-shadow 0.15s;
    border-bottom: var(--border-width) solid var(--accent-color);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.5rem;
}

.nav-link:hover {
    color: var(--text-color-primary);
    letter-spacing: 0.15em;
    text-shadow: -2.2px 2.2px 0 black;
}

.sidebar-footer {
    font-family: 'Tiny5', monospace;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 400;
}

.inspired-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-family: 'Tiny5', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
}

.inspired-btn::before {
    content: 'ᑕ¥βєяรקค¢є.online';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: black;
}

.inspired-btn:hover {
    background: #EFE5C0;
    border-color: black;
    color: transparent;
}

.inspired-btn:hover::before {
    opacity: 1;
}

#secret-btn {
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: rgba(255, 255, 255, 0);
    padding: 0.4rem 0.8rem;
    font-family: 'Tiny5', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

#secret-btn:hover {
    background: var(--hover-color);
    border-color: black;
    color: rgba(255, 255, 255, 0);
}

.main-content {
    flex: 1;
    margin-left: 240px;
    margin-top: 0;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    background: var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
    clip-path: inset(0 round 0 25px 25px 0);
    border-radius: 0 25px 25px 0;
}

.footer {
    position: fixed;
    bottom: 40px;
    left: calc(40px + 240px);
    right: 40px;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border-top: var(--border-width) solid var(--accent-color);
    color: var(--text-color-primary);
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 100;
    clip-path: inset(0 round 0 0 25px 0);
    border-radius: 0 0 25px 0;
}

.footer p {
    margin: 0;
    text-align: center;
    grid-column: 2;
}

#secret-btn {
    grid-column: 3;
    justify-self: end;
}

.secret-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
}

.secret-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secret-modal-panel {
    position: relative;
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    padding: 2rem;
    z-index: 101;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.secret-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color-primary);
    width: 1.2rem;
    height: 1.2rem;
    
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s, background-color 0.3s;
}
.secret-modal-close::after {
    content: 'x';
    font-size: 1rem;
    font-family: 'Tiny5', monospace;
    position: absolute;
    inset: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateX(0.75px);
}

.secret-modal-close:hover {
    background: #b82a2a;
    border-color: black;
}

.secret-modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border: var(--border-width) solid var(--accent-color);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.window-frame {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.window-frame > * {
    position: relative;
    z-index: 1;
}

@keyframes edge-refract {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.01);
    }
}

#title {
    font-family: 'Tiny5', monospace;
    color: var(--hover-color);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: none;
}

.window-frame #title {
    margin-bottom: 0;
}

#discord {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--text-color);
    text-shadow: none;
}

.home-content {
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    word-wrap: break-word;
    hyphens: auto;
}

.page-content {
    min-height: 50vh;
    position: relative;
    z-index: 1;
}

.links-container {
    margin-top: 2rem;
}

.links, #discord, #github {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 3rem;
    color: var(--text-color-primary);
}

#discord, #github {
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
}

.discord-btn, .github-btn{
    color: var(--text-color-primary);
    background: transparent;
    padding: 0.2rem 0.4rem;
    border: 2px solid var(--accent-color);
    box-shadow: none;
    text-decoration: none;
    transition: box-shadow 0.3s, background 0.3s, color 0.3s, background-color 0.3s;
}

.discord-btn:hover {
    color: var(--hover-color);
    background: #7289da;
    box-shadow: -3px 3px 0 black;
    text-decoration: none;
}

.github-btn:hover {
    color: black;
    background: white;
    box-shadow: -3px 3px 0 black;
    text-decoration: none;
}

.caret {
    font-size: 1.2rem;
    font-weight: 800;
    animation: blink 1s steps(1,end) infinite;
    margin-left: 0.3rem;
}

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