/* Global theme */
:root {

    /* ── Accent Palette ──────────────────────── */
    --accent-dark: #0088cc;
    --accent: #33aadd;
    --accent-light: #66ccee;
    --accent-dim: #33aadd18; /* subtle fills */
    --accent-glow: #33aadd99; /* glow effects */
    --accent-border: #33aadd2e; /* border tints */

    /* ── Background Scale ────────────────────── */
    --bg-void: #000000; /* deepest — page base */
    --bg-primary: #000000; /* main bg — pure black */
    --bg-surface: #0a0a0a; /* cards, panels */
    --bg-raised: #111111; /* hover states */
    --bg-overlay: #000000cc; /* modals, drawers */

    /* ── Overlay / Tint Layers ───────────────── */
    --overlay-dark: rgba(0, 0, 0, 0.70);
    --overlay-mid: rgba(0, 0, 0, 0.45);
    --overlay-accent: rgba(51, 170, 221, 0.05); /* light blue accent wash */
    --overlay-glass: rgba(0, 0, 0, 0.60); /* frosted glass on black */

    /* ── Gradient Library ────────────────────── */
    --grad-accent: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
    --grad-subtle: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    --grad-hero: radial-gradient(ellipse 80% 50% at 50% 0%, #33aadd12 0%, transparent 70%);
    --grad-glow: radial-gradient(ellipse 60% 40% at 50% 50%, #33aadd0e 0%, transparent 70%);
    --grad-vignette: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, #000000ee 100%);
    --grad-text: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    --grad-border: linear-gradient(135deg, var(--accent-border), transparent, var(--accent-border));

    /* ── Text Scale ──────────────────────────── */
    --text-primary: #ffffff; /* pure white */
    --text-secondary: #aaaaaa; /* neutral grey */
    --text-muted: #555555; /* subtle, placeholders */
    --text-accent: var(--accent-light);

    /* ── Borders & Dividers ──────────────────── */
    --border-subtle: #1a1a1a; /* barely-there dividers */
    --border-mid: #2a2a2a; /* panel edges */
    --border-accent: var(--accent-border);
    --border-bright: var(--accent);

    /* ── Shadow System ───────────────────────── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.9);
    --shadow-accent: 0 0 20px rgba(51, 170, 221, 0.18);
    --shadow-glow: 0 0 40px rgba(51, 170, 221, 0.28),
    0 0 80px rgba(51, 170, 221, 0.10);

    /* ── Blur & Glass ────────────────────────── */
    --blur-glass: blur(12px) saturate(1.2);
    --blur-heavy: blur(24px);

    /* ── Layout ──────────────────────────────── */
    --padding: clamp(20px, 10vw, 120px);

    /* ── Transitions ─────────────────────────── */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 180ms;
    --duration-mid: 320ms;
    --duration-slow: 600ms;

    /* ── Typography ──────────────────────────── */
    --font-primary: "Raleway", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;

    /* -- Animations ---*/
    --anim-fade-up: fadeUp 0.7s ease both;

    /*    Language colors */
    --c-rust: #f54b00;
    --c-html: #e95625;
    --c-css: #1372b7;
    --c-js: #efdb4e;
    --c-postgres: #326691;
    --c-docker: #25bef3;
    --c-cloudflare: #f38020;

    --c-python: #ffd53d;
    --c-dart: #22d3c5;
    --c-php: #777bb3;
    --c-flutter: #3fb6d3;

    --c-godot: #478cbf;
    --c-blender: #e87500;

    /*    Custom colors */
    --c-knighterlab: #0f1b30;
}

@media (max-width: 550px) {
    :root {
        --padding: 20px;
    }
}

html {
    scroll-behavior: smooth;
}

/*  Global styles   */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

img {
    user-select: none;
    pointer-events: none;
    max-width: 90vw;
    max-height: 100svh;
}

/*  Body    */

body {
    width: 100%;
    min-height: 100dvh;

    background: var(--bg-primary);
    color: var(--text-primary);

    font-family: var(--font-primary), sans-serif;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6, a, p, em, b {
    pointer-events: auto;
    transition: .3s ease-out !important;
}

div {
    pointer-events: none;
}

.blur {
    opacity: .2;
}

p.blur {
    opacity: .1 !important;
}

.vanish {
    opacity: 0;
}

/* ---------- Overlay ---------- */
.overlay {
    position: fixed;
    z-index: 500;

    top: 0;
    left: 0;

    bottom: 0;
    right: 0;

    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);

    transition: .3s ease-out;
    backdrop-filter: blur(5px);
}

.overlay.hidden {
    pointer-events: none;
    backdrop-filter: blur(0);
    background: transparent !important;
}

/* ---------- Splash ---------- */
.splash {
    position: fixed;
    z-index: 200;

    top: 0;
    left: 0;

    width: 100%;
    height: 100dvh;

    background: var(--bg-primary);
    display: flex;

    justify-content: center;
    align-items: center;

    clip-path: circle(100%);
    transition: .3s ease-out;
}

.splash.hide {
    clip-path: circle(0%);
}

.splash svg {
    pointer-events: none;
    width: 50px;
    aspect-ratio: 747/911;
}

.splash svg path {
    transition: 0.3s ease-out;

    stroke-dasharray: 500;
    stroke-dashoffset: 2928;

    animation: load 2s linear infinite;
}

@keyframes load {
    0% {
        stroke-dashoffset: 2928;
        scale: 1;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}


/* ---------- Header ---------- */
header {
    position: fixed;
    z-index: 100;

    user-select: none;
    top: 0;

    left: 0;
    right: 0;

    height: 60px;
    background: oklch(from black l c h / .5);

    border-radius: 5px;

    display: flex;
    flex-direction: row;

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

    padding: 0 15px;
    animation: var(--anim-fade-up);
}

header a.logo {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    font-size: 22px;
}

header nav {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-start;
}

header nav ul {
    list-style: none;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

header nav ul li {
    display: block;
}

header nav ul li a {
    font-size: 18px;
}

nav #adakvjnkdsan {
    pointer-events: auto;

    position: relative;
    cursor: pointer;

    width: 50px;
    height: 35px;

    transition: .2s ease-out;
    z-index: 950;

    display: none;

}

nav #adakvjnkdsan span {
    position: absolute;

    width: 100%;
    height: 5px;

    background-color: #ffffff;
    border-radius: 50px;

    transition: top .3s ease-out .15s,
    bottom .3s ease-out .15s,
    transform .3s ease-out,
    opacity .3s ease-out;
    transform-origin: center;

}

nav #adakvjnkdsan span:nth-child(1) {
    top: 0;
    left: 0;

}

nav #adakvjnkdsan span:nth-child(2) {
    top: 15px;
    left: 0;

}

nav #adakvjnkdsan span:nth-child(3) {
    bottom: 0;
    left: 0;

}

nav #adakvjnkdsan.close span {
    background-color: #ffffff;
    transition: top .3s ease-out,
    bottom .3s ease-out,
    transform .3s ease-out .15s,
    opacity .3s ease-out .2s;


}

nav #adakvjnkdsan.close span:nth-child(1) {
    top: 15px;
    transform: rotateZ(225deg);

}

nav #adakvjnkdsan.close span:nth-child(2) {
    transform: rotateZ(225deg);
    opacity: 0;
    top: 15px;

}

nav #adakvjnkdsan.close span:nth-child(3) {
    transform: rotateZ(135deg);
    bottom: 15px;

}

@media (max-width: 500px) {
    nav #adakvjnkdsan {
        display: flex;

    }

    header nav ul {
        position: fixed;
        z-index: 400;

        top: 0;
        right: 0;

        width: 100%;
        height: 100dvh;

        background: #000000;
        padding: 10px !important;

        flex-direction: column;
        transition: .3s ease-out;

        pointer-events: none;
        clip-path: circle(0% at 100% 0%);
    }

    header nav ul.show {
        pointer-events: all;
        clip-path: circle(150% at 100% 0%);
    }

    header nav ul li {
        display: flex;
        width: 100%;
    }

    header nav ul li a {
        flex-grow: 1;
        padding: 15px;

        background: #2a2a2a;
        border-radius: 5px;

        text-align: center;
        text-transform: uppercase;
    }
}

/* ---------- Footer ---------- */
footer {
    pointer-events: auto;

    width: calc(100% - var(--padding));
    padding: 15px;

    border-radius: 5px;

    background: oklch(from #000000 calc(l + .2) c h);
    margin: 0 auto clamp(5px, 2vw, 20px) auto;

    display: flex;
    flex-direction: row;

    justify-content: flex-start;
    align-items: center;

    flex-wrap: wrap;

    gap: 15px;
}

footer .spacer {
    flex-grow: 1;
}

footer .status {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

footer .status {
    font-size: 14px;
    opacity: .6;
}

footer .live {
    width: 10px;
    height: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 0 0 oklch(from var(--accent-light) l c h / .5);
    animation: l1 1s infinite;
}

@keyframes l1 {
    100% {
        box-shadow: 0 0 0 15px #0000
    }
}

footer span {
    opacity: .8;
}

footer .actions a svg {
    width: 24px;
    height: 24px;

    color: #ffffff;
    transition: .3s ease-out;
}

footer .actions a:hover svg {
    color: var(--accent);
}

@media (max-width: 420px) {
    footer {
        justify-content: space-evenly;
        padding: 10px 5px;
    }

    footer .spacer {
        display: none;
    }

    footer a.status {
        font-size: 12px;
        gap: 5px;
    }

    footer .actions a svg {
        width: 20px;
        height: 20px;
    }
}

/* ---------- Sections ---------- */
main {
    width: 100%;
    min-height: 100vh;
}

section {
    position: relative;
    width: 100%;

    content-visibility: auto;
    padding: var(--padding);
}


/* ---------- Animations ----------*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pfpFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}








