:root {
    --seethrough: rgba(0, 0, 0, 0.9);
    --transparent: rgba(0, 0, 0, 0);
    --transition-speed: 600ms;

    --danger: oklch(0.65 0.05 30);
    --warning: oklch(0.65 0.05 90);
    --success: oklch(0.65 0.05 140);
    --info: oklch(0.65 0.05 260);

    --gd: linear-gradient(180deg, var(--page) 0%, var(--overlay) 100%);
    --gd-hover: linear-gradient(180deg, var(--page) 0%, var(--overlay) 90%);

    --shadow: 0px 2px 4px hsla(0, 0%, 0%, 0.5),
        0px 6px 10px hsla(0, 0%, 0%, 0.7);

    --primary: #7A1F1F;
    --secondary: #4B2E5F;

    --btn: #4A2A2A;

    /* Onyx */
    --page: #141414;
    --card: #161A23;
    --overlay: #1D2230;

    /* Ghost White */
    --txt: #FAFAFF;
    --txt-muted: #B8AEB2;

    --highlight: #5A2E2E;
    --border: #3F2424;
    --border-muted: #241A1A;
}

/* =====================================================
   LIGHT THEME
===================================================== */
html[data-theme="light"] {
    --primary: #4B2E5F;
    --secondary: #7A1F1F;

    --btn: #5F5FFF;

    --page: #141A28;
    /* Dark night sky / background */
    --card: #1C2232;
    /* Slightly lighter card background */
    --overlay: #283246;
    /* Soft bluish overlay */

    --txt: #E6EAF2;
    /* Moonlit text (soft white) */
    --txt-muted: #A0A6B0;
    /* Muted text */

    --highlight: #7B7FFF;
    /* Cool glowing highlight / links */
    --border: #505770;
    /* Subtle border */
    --border-muted: #353C4F;
    /* Almost invisible divider */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        fill 0.35s ease,
        stroke 0.35s ease,
        box-shadow 0.35s ease;
}

html {
    font-size: 24px;
    scroll-behavior: smooth;
    background-color: var(--page);
    color: var(--txt);
    border-color: var(--border);
}

body {
    color: var(--txt);
    overflow-x: hidden;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    height: 100%;
}

body.has-fixed-header {
    padding-top: 90px;
}

body.theme-switching * {
    transition: none !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 40px;
    background: var(--page);
    border-bottom: thick double var(--border);
    z-index: 10;
}

main {
    display: flex;
    flex-direction: column;
    margin: 32px;
    margin-bottom: 80px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    border-top: thick double var(--border);
    background-color: var(--page);
    padding-top: 6px;
    padding-bottom: 16px;
    z-index: 5;
}

/* =====================================================
   UTILITIES
===================================================== */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px;
}

.blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* Safari support */
    z-index: 1000;
}

.date {
    text-align: center;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: var(--txt-muted);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--txt);
    cursor: pointer;
}

.close:hover {
    color: var(--txt-muted);
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   BUTTONS
===================================================== */
#nav-title {
    background: none;
    all: unset;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    color: var(--primary);
}

button {
    background-color: var(--highlight);
    padding: 8px;
    outline: none;
    border: none;
    color: var(--txt);
    cursor: pointer;
    box-shadow: var(--shadow);
}

button:hover {
    background-color: var(--page);
}

/* =====================================================
   NAVIGATION / HAMBURGER
===================================================== */
nav .hamburger {
    cursor: pointer;
    width: 40px;
    height: 30px;
    position: relative;
    z-index: 5001;
}

nav .hamburger .bar {
    width: 40px;
    height: 4px;
    background-color: var(--txt);
    border-radius: 5px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.bar1 {
    top: 0;
}

.bar2,
.bar3 {
    top: 13.5px;
}

.bar3 {
    right: 0;
}

.bar4 {
    bottom: 0;
}

#menu:checked+label .bar1 {
    transform: translateX(40px);
    background-color: transparent;
}

#menu:checked+label .bar2 {
    transform: rotate(45deg);
}

#menu:checked+label .bar3 {
    transform: rotate(-45deg);
}

#menu:checked+label .bar4 {
    transform: translateX(-40px);
    background-color: transparent;
}

#menu:checked~.menu_box {
    right: 0;
}

.menu_box {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    padding: 100px 0;
    margin: 0;
    background-color: var(--page);
    list-style: none;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
    transition: right .25s;
    z-index: 5000;
}

.menu_box button {
    background-color: var(--transparent);
    display: block;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: var(--txt);
    cursor: pointer;
}

/* =====================================================
   MEDIA / IMAGES
===================================================== */
img {
    vertical-align: middle;
    border-style: none;
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    max-width: 800px;
    max-height: 1000px;
    pointer-events: none;
}

/* =====================================================
   FORMS
===================================================== */
textarea {
    resize: none;
}

a {
    color: inherit;
    text-decoration: none;
}

li button {
    width: 100%;
    box-shadow: none;
}

input,
textarea {
    border: none;
    outline: none;
    padding: 10px;
    color: var(--txt);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.2),
        0 1px 1px rgba(255, 255, 255, 0.2);
    transition: box-shadow .5s ease;
}

input:focus {
    box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.4),
        0 1px 1px rgba(255, 255, 255, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6,
h7 {
    padding: 0;
    margin: 0;
}

form label {
    margin-top: 15px;
    display: block;
    font-weight: bold;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid var(--page);
    background-color: var(--page);
    color: var(--txt);
    border-radius: 6px;
    font-size: 15px;
}

/* =====================================================
   CONTENT
===================================================== */
#content .layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    font-family: system-ui, sans-serif;
}

#content .name {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-align: center;
}

#content .content-section {
    display: none;
}

#content .content-section.active {
    display: block;
}

#content .sidebar {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border);
}

#content .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#content .nav-buttons button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

/* =====================================================
   MODALS
===================================================== */
.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: var(--page);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.overlay-content h2 {
    margin-bottom: 16px;
}

.overlay-content button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}


@media (max-width: 768px) {

    #content .layout {
        grid-template-columns: 1fr;
    }

    #content .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    main {
        margin: 16px;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }

    header {
        padding: 12px 16px;
    }

    footer {
        padding: 8px 12px 14px;
    }
}