@layer page {
    :root {
        --logo-font-size: 100px;
    }

    body {
        background-image: url('/assets/iris.jpg');
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;

        font-family: 'JetBrains Mono';
    }

    #welcome--intro {
        background: rgba(0, 0, 0, 0.8);
    }

    @keyframes cursorBlink {
        0% {
            opacity: 0%;
        }

        50% {
            opacity: 100%;
        }

        100% {
            opacity: 0%;
        }
    }

    #welcome--intro header .logo {
        font-size: var(--logo-font-size);
        user-select: none;
        position: relative;
    }

    #welcome--intro header .logo::after {
        position: absolute;
        left: auto;
        bottom: 4px;
        content: '_';
        animation: cursorBlink 1s none infinite;
    }

    #welcome--profile {
        background: black;
    }

    #welcome--profile #name {
        background: radial-gradient(circle at 20% 30%, rgba(104, 4, 192, 0.25), transparent 40%), radial-gradient(circle at 80% 70%, rgba(0, 100, 255, 0.2), transparent 50%), radial-gradient(circle at 50% 50%, #02010a, #000 80%);
    }

    #welcome--profile #name-display {
        user-select: none;

        height: 750px;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        transition: all 0.5s ease;
        position: relative;
        overflow: hidden;
    }

    #welcome--profile #name-display #lanzoor-letters span {
        font-family: 'Geist';
        font-style: italic;
        font-weight: 200;
        font-size: 4%;
        color: white;

        text-shadow: 0 0 20px rgb(121, 137, 255);

        line-height: 1;
        white-space: nowrap;
        display: inline-block;
        transform-origin: center;
    }

    #welcome--profile #name-display #optimization-indicator {
        position: absolute;

        left: 2%;
        bottom: 2%;
        opacity: 0;

        transition: opacity 0.5s ease;
    }

    #welcome--profile #name-display #optimization-indicator.active {
        opacity: 0.6;
    }

    #welcome--profile #name-display button {
        position: absolute;

        padding: 20px 40px;
        border-radius: 999px;

        right: 2%;
        bottom: 2%;

        font-family: 'JetBrains Mono';
        font-size: 20px;

        color: white;
        border: none;
        cursor: pointer;

        background: linear-gradient(135deg, #7b00ffaa, #008cffaa);
        background-size: 200% 200%;
        backdrop-filter: blur(4px);

        box-shadow: 0 0 20px rgba(87, 41, 255, 0.5);
        animation: floatAnimation ease-in-out 2s infinite;

        transition: all 0.2s ease;

        z-index: 101;
    }

    #welcome--profile #name-display button:hover {
        background-position: right center;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    #welcome--profile #name-display button:active {
        transform: scale(0.8);
        box-shadow:
            0 0 10px rgba(123, 0, 255, 0.6),
            inset 0 0 10px rgba(0, 0, 0, 0.6);
    }

    #welcome--profile #name-display canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    #welcome--profile #profile-wrapper {
        max-width: 30%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
    }

    #welcome--profile #profile-picture {
        max-width: 50%;
        max-height: auto;
    }

    #welcome--profile #hobbies #programming {
        background: radial-gradient(ellipse at top left, rgba(0, 195, 255, 0.1) 0%, transparent 30%), black;
    }

    #welcome--profile #hobbies #programming .stack-group {
        background: #111;
        border: 3px solid #333;
        border-radius: 30px;
        padding: 3%;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    #welcome--profile #hobbies #programming .stack-group .stack {
        background: #222;
        border: 3px solid #666;
        border-radius: 30px;

        margin: 1%;
        padding: 3%;
    }

    .stack-group .stack .header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }

    /* #welcome--profile #nationality #localtime-clock {
        font-family: 'Noto Sans Mono';
        background: #171717;
        padding: 2%;

        border: 2px solid #444;
        border-radius: 30px;

        box-shadow:
            -20px 10px 40px rgba(88, 241, 255, 0.5),
            0 0 40px rgba(88, 88, 255, 0.5),
            20px -10px 40px rgba(191, 88, 255, 0.5);

        text-align: center;
        user-select: none;

        animation: clockGlow 10s ease infinite;
    }

    @keyframes clockGlow {
        0% {
            box-shadow:
                -20px 10px 40px rgba(88, 241, 255, 0.25),
                0 0 40px rgba(88, 88, 255, 0.25),
                20px -10px 40px rgba(191, 88, 255, 0.25);
        }

        50% {
            box-shadow:
                20px -10px 40px rgba(88, 241, 255, 0.25),
                0 0 40px rgba(88, 88, 255, 0.25),
                -20px 10px 40px rgba(191, 88, 255, 0.25);
        }

        100% {
            box-shadow:
                -20px 10px 40px rgba(88, 241, 255, 0.25),
                0 0 40px rgba(88, 88, 255, 0.25),
                20px -10px 40px rgba(191, 88, 255, 0.25);
        }
    }

    #welcome--profile #nationality #localtime-clock #time {
        font-size: 50px;
    }

    #welcome--profile #nationality #localtime-clock #time b {
        text-shadow: 0 0 10px rgba(88, 88, 255, 0.5);
        color: transparent;

        background: linear-gradient(180deg, rgba(88, 241, 255, 0.5), rgba(88, 88, 255, 0.5), rgba(191, 88, 255, 0.5));
        background-clip: text;
    }

    #welcome--profile #nationality #localtime-clock #date {
        text-shadow: 0 0 10px rgba(88, 241, 255, 0.5);
        color: transparent;

        background: linear-gradient(180deg, rgba(88, 88, 255, 0.5), rgba(88, 255, 247, 0.5));
        background-clip: text;
    } */

    /* #welcome--profile #nationality #localtime-clock span {
        font-size: 30px;
        padding: 10px;
        color: var(--cyan);
        border: 2px solid rgb(0, 80, 146);
        border-radius: 5px;
    } */

    @media (max-width: 768px) {
        #welcome--intro {
            backdrop-filter: none;
        }

        #welcome--intro #buttons {
            flex-direction: column;
            margin: 100px 0;
        }

        #welcome--profile #name-description {
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: var(--div-padding);
        }

        #welcome--profile #profile-wrapper {
            max-width: none;
        }

        #connections #social-icons {
            gap: 5px;
        }

        .social-icon {
            width: 40px;
            height: 40px;
        }
    }

    @media (max-width: 1080px) {
        :root {
            --logo-font-size: 50px;
        }

        #welcome--profile #name-display {
            height: 500px;
        }

        #welcome--profile #nationality #localtime-clock {
            padding: 4%;
            margin: 4% 0;
        }
    }
}
