:root {
  --main-color: #e6ff00;
  --glow-color-1: #bbff00;
  --glow-color-2: #dbff3d;
  --glow-color-3: #d1ff47;
  --text-color: #d6ff0d;

  --topbar-height: 62px;
}

body {
    font-family: system-ui, sans-serif;
    color: white;
    background: linear-gradient(to right, black, #737373);
    min-height: 100vh;
    margin: 0;
}


/* ================= TOPBAR ================= */

.topbar {
    position: sticky;
    top: 0;

    width: 100%;
    backdrop-filter: blur(10px);
    background: linear-gradient(to right, black, #3f3f3f);
    
    height: var(--topbar-height);

    z-index: 1000;
}

.nav {
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 20px;
}

.logo {
    font-family: 'Petit Formal Script', cursive;
    font-size: 28px;
    color: var(--main-color);
    text-decoration: none;

    text-shadow:
        0 0 4px var(--glow-color-1),
        0 0 8px var(--glow-color-2),
        0 0 16px var(--glow-color-3);
}

.links a {
    color: white;
    text-decoration: none;
    margin-left: 24px;
    font-size: 16px;
    position: relative;
    transition: color 0.2s ease;
}

.links a:hover {
    color: var(--main-color);
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--main-color);
    transition: width 0.25s ease;
}

.links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 26px;
    height: 3px;
    background: white;
    display: block;
    border-radius: 2px;
}


/* ================= SIDEBAR ================= */

#sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;

    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);

    padding: 80px 30px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 24px;

    transition: right 0.35s ease;
    z-index: 2000;
}

#sidebar a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    width: fit-content;
    position: relative;
    transition: color 0.2s ease;
}

#sidebar a:hover {
    color: var(--main-color);
}

#sidebar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--main-color);
    transition: width 0.25s ease;
}

#sidebar a:hover::after {
    width: 100%;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;

    z-index: 1500;
}

#sidebar.open {
    right: 0;
}

#overlay.open {
    opacity: 1;
    pointer-events: auto;
}


/* ================= MOBILE MENU ================= */

@media (max-width: 900px) {
    .links {
        display: none;
    }

    .burger {
        display: flex;
    }
}
