/* =========================================
   s0ul's little corner
   cyber angel / grunge / y2k / coldcore
   ========================================= */


/* ---------- BASIC ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(55, 60, 90, 0.18),
            transparent 45%
        ),
        #050507;

    color: #c9cad8;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 14px;
    line-height: 1.7;

    letter-spacing: 0.02em;

    overflow-x: hidden;
}


/* ---------- CRT / GRAIN EFFECT ---------- */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.015) 0px,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 3px
        );

    z-index: 999;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.08;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

    z-index: 998;
}


/* ---------- MAIN CONTAINER ---------- */

.container {
    width: 90%;
    max-width: 1000px;

    margin: 50px auto;
}


/* ---------- HEADER ---------- */

header {
    border: 1px solid rgba(180, 190, 220, 0.35);

    padding: 25px 30px;

    margin-bottom: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.025),
            rgba(20,20,30,0.25)
        );

    box-shadow:
        0 0 30px rgba(70, 80, 130, 0.08);

    position: relative;
}


/* tiny corner decorations */

header::before {
    content: "＋";
    position: absolute;

    top: -12px;
    left: -8px;

    color: #8d94c7;
    font-size: 18px;
}

header::after {
    content: "✦";
    position: absolute;

    bottom: -12px;
    right: 10px;

    color: #8d94c7;
}


/* ---------- TITLE ---------- */

h1 {
    margin: 0 0 20px 0;

    color: #e2e3ef;

    font-size: clamp(22px, 4vw, 34px);

    font-weight: normal;

    letter-spacing: 0.08em;

    text-shadow:
        0 0 8px rgba(170, 180, 255, 0.35);
}


/* ---------- NAVIGATION ---------- */

nav {
    display: flex;

    flex-wrap: wrap;

    gap: 25px;
}

nav a {
    color: #aeb4d9;

    text-decoration: none;

    padding: 3px 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

nav a::before {
    content: "[ ";
    color: #666b88;
}

nav a::after {
    content: " ]";
    color: #666b88;
}

nav a:hover {
    color: white;

    background: rgba(120, 130, 190, 0.12);

    text-shadow:
        0 0 8px rgba(170, 180, 255, 0.7);
}


/* ---------- MAIN ---------- */

main {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(220px, 1fr);

    gap: 20px;
}


/*
   Your first section becomes the main
   "about me" panel.
*/

main > section:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}


/* ---------- SECTIONS / PANELS ---------- */

section {
    position: relative;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.025),
            rgba(10,10,15,0.7)
        );

    border: 1px solid rgba(180, 190, 220, 0.28);

    box-shadow:
        inset 0 0 30px rgba(80, 90, 130, 0.025),
        0 0 20px rgba(0,0,0,0.5);

    overflow: hidden;
}


/* faint background line */

section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(160,170,220,0.5),
            transparent
        );
}


/* little corner symbol */

section::after {
    content: "＋";

    position: absolute;

    top: 7px;
    right: 10px;

    color: #5e6385;

    font-size: 12px;
}


/* ---------- HEADINGS ---------- */

h2 {
    margin-top: 0;

    color: #d7d9e8;

    font-size: 17px;

    font-weight: normal;

    letter-spacing: 0.08em;

    border-bottom: 1px solid rgba(150,160,200,0.25);

    padding-bottom: 10px;

    margin-bottom: 20px;
}


/*
   Makes headings look like:

   // about me
*/

h2::before {
    content: "// ";

    color: #7d84ad;
}


/* ---------- TEXT ---------- */

p {
    margin: 0 0 18px;
}

strong {
    color: #dce0ff;

    font-weight: normal;

    text-shadow:
        0 0 5px rgba(140,150,220,0.35);
}


/* ---------- LINKS ---------- */

a {
    color: #aeb9ec;

    transition: 0.2s ease;
}

a:hover {
    color: white;

    text-shadow:
        0 0 7px rgba(150,160,255,0.8);
}


/* ---------- LISTS ---------- */

ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

li {
    margin: 8px 0;
}

li::before {
    content: "✦ ";

    color: #8d94c7;
}


/* ---------- "RIGHT NOW" STYLE ---------- */

/*
   If you use <strong> labels in your
   right-now section, they'll look like
   little metadata fields.
*/

section p strong {
    display: inline-block;

    min-width: 130px;

    color: #aeb8df;
}


/* ---------- FOOTER ---------- */

footer {
    margin-top: 50px;

    padding: 25px 0;

    text-align: center;

    border-top: 1px solid rgba(150,160,200,0.25);

    color: #666b7e;

    font-size: 12px;

    letter-spacing: 0.1em;
}

footer::before {
    content: "─── ✦ ───";

    display: block;

    margin-bottom: 15px;

    color: #555a78;
}


/* ---------- GLITCH EFFECT ---------- */

h1:hover {
    animation: glitch 0.25s steps(2);
}

@keyframes glitch {

    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(-2px, 1px);
        text-shadow:
            2px 0 #6870a8;
    }

    50% {
        transform: translate(2px, -1px);
        text-shadow:
            -2px 0 #a7acd0;
    }

    75% {
        transform: translate(-1px, 0);
    }

    100% {
        transform: translate(0);
    }
}


/* ---------- SELECTION ---------- */

::selection {
    background: #747da8;
    color: #050507;
}


/* ---------- SCROLLBAR ---------- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050507;
}

::-webkit-scrollbar-thumb {
    background: #3d4055;

    border: 1px solid #606581;
}

::-webkit-scrollbar-thumb:hover {
    background: #646b92;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .container {
        width: 92%;

        margin: 25px auto;
    }

    header {
        padding: 20px;
    }

    nav {
        gap: 8px;

        flex-direction: column;
    }

    main {
        display: block;
    }

    section {
        margin-bottom: 20px;

        padding: 20px;
    }

    h1 {
        font-size: 23px;
    }

}