* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #020609;
    color: white;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}


/* =================================
   INTRO
================================= */

.intro {
    position: fixed;
    inset: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(0, 255, 255, 0.10),
            transparent 22%
        ),
        radial-gradient(
            circle at 50% 50%,
            #07161b,
            #020608 60%,
            #010304
        );

    z-index: 9999;
}


/* =================================
   GRID
================================= */

.grid {
    position: absolute;
    inset: -50%;

    background-image:
        linear-gradient(
            rgba(60, 230, 230, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(60, 230, 230, 0.035) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    transform:
        perspective(600px)
        rotateX(62deg);

    animation: gridMove 10s linear infinite;

    opacity: 0.7;
}

@keyframes gridMove {

    from {
        transform:
            perspective(600px)
            rotateX(62deg)
            translateY(0);
    }

    to {
        transform:
            perspective(600px)
            rotateX(62deg)
            translateY(60px);
    }
}


/* =================================
   SCAN LINE
================================= */

.scan-line {
    position: absolute;

    width: 100%;
    height: 1px;

    left: 0;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(72, 255, 255, 0.7),
        transparent
    );

    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.6);

    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {

    0% {
        top: 5%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }
}


/* =================================
   CENTER GLOW
================================= */

.ambient-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.13),
        transparent 65%
    );

    filter: blur(25px);

    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* =================================
   PARTICLES
================================= */

.particles span {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #61ffff;

    box-shadow: 0 0 10px #61ffff;

    animation: particleFloat 5s infinite ease-in-out;
}

.particles span:nth-child(1) {
    left: 12%;
    top: 20%;
}

.particles span:nth-child(2) {
    left: 25%;
    top: 70%;
}

.particles span:nth-child(3) {
    left: 82%;
    top: 24%;
}

.particles span:nth-child(4) {
    left: 90%;
    top: 65%;
}

.particles span:nth-child(5) {
    left: 70%;
    top: 15%;
}

.particles span:nth-child(6) {
    left: 35%;
    top: 12%;
}

.particles span:nth-child(7) {
    left: 17%;
    top: 55%;
}

.particles span:nth-child(8) {
    left: 76%;
    top: 80%;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}


/* =================================
   TOP HUD
================================= */

.hud-top {
    position: absolute;

    top: 5%;
    left: 5%;
    right: 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: "Space Mono", monospace;

    font-size: 10px;

    letter-spacing: 2px;

    color: rgba(180, 240, 240, 0.6);

    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #79ffff;
}

.brand-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #63ffff;

    box-shadow:
        0 0 8px #63ffff,
        0 0 18px #63ffff;
}

.system strong {
    color: #69ffca;

    margin-left: 7px;
}

.version {
    opacity: 0.5;
}


/* =================================
   SIDE INFORMATION
================================= */

.side-info {
    position: absolute;

    top: 30%;

    display: flex;
    flex-direction: column;

    gap: 45px;

    font-family: "Space Mono", monospace;

    z-index: 10;
}

.left-info {
    left: 5%;
}

.right-info {
    right: 5%;
    text-align: right;
}

.side-info div {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.side-info small {
    font-size: 8px;

    letter-spacing: 2px;

    color: rgba(120, 220, 220, 0.35);
}

.side-info strong {
    font-size: 10px;

    letter-spacing: 1px;

    color: rgba(110, 240, 240, 0.65);
}

.online {
    color: #6effc7 !important;
}


/* =================================
   CENTER
================================= */

.core {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: min(700px, 85%);

    text-align: center;

    z-index: 15;
}


/* =================================
   PROTOCOL
================================= */

.protocol {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    font-family: "Space Mono", monospace;

    font-size: 9px;

    letter-spacing: 4px;

    color: rgba(110, 245, 245, 0.7);

    margin-bottom: 25px;
}

.protocol-line {
    width: 35px;
    height: 1px;

    background: rgba(80, 240, 240, 0.4);
}


/* =================================
   CORE VISUAL
================================= */

.core-visual {
    position: absolute;

    left: 50%;
    top: 100px;

    width: 250px;
    height: 250px;

    transform: translate(-50%, -50%);

    opacity: 0.8;

    pointer-events: none;
}

.ring {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    border: 1px solid rgba(75, 245, 245, 0.12);

    transform: translate(-50%, -50%);
}

.ring-outer {
    width: 240px;
    height: 240px;

    border-left-color: rgba(90, 255, 255, 0.55);

    animation: rotate 14s linear infinite;
}

.ring-middle {
    width: 175px;
    height: 175px;

    border-right-color: rgba(90, 255, 255, 0.5);

    animation: rotateReverse 9s linear infinite;
}

.ring-inner {
    width: 100px;
    height: 100px;

    border-top-color: rgba(90, 255, 255, 0.7);

    animation: rotate 6s linear infinite;
}

@keyframes rotate {

    from {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}

@keyframes rotateReverse {

    from {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }
}


/* Crosshair */

.crosshair {
    position: absolute;

    left: 50%;
    top: 50%;

    background: rgba(80, 245, 245, 0.15);
}

.horizontal {
    width: 280px;
    height: 1px;

    transform: translate(-50%, -50%);
}

.vertical {
    width: 1px;
    height: 280px;

    transform: translate(-50%, -50%);
}


/* Core point */

.core-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #79ffff;

    box-shadow:
        0 0 10px #79ffff,
        0 0 30px #79ffff;
}


/* Code */

.code {
    position: absolute;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: rgba(100, 255, 255, 0.4);
}

.code-top {
    top: 10px;
    right: 10px;
}

.code-bottom {
    bottom: 10px;
    left: 10px;
}


/* =================================
   IDENTITY
================================= */

.identity {
    position: relative;

    z-index: 5;

    animation: identityAppear 1.5s ease;
}

.small-name {
    font-family: "Space Mono", monospace;

    font-size: 9px;

    letter-spacing: 6px;

    color: rgba(160, 235, 235, 0.4);

    margin-bottom: 12px;
}

.identity h1 {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    font-size: clamp(42px, 7vw, 78px);

    line-height: 1;

    letter-spacing: 8px;

    font-weight: 700;
}
.signature-name {
    font-family: "Kaushan Script", cursive;

    font-size: clamp(55px, 8vw, 90px);

    font-weight: 400;

    letter-spacing: 1px;

    color: #e9ffff;

    text-shadow:
        0 0 20px rgba(100, 255, 255, 0.15);
}

.identity h1 span:first-child {
    color: #e9ffff;

    text-shadow:
        0 0 20px rgba(100, 255, 255, 0.15);
}

.last-name {
    color: #58eeee;

    text-shadow:
        0 0 15px rgba(70, 255, 255, 0.5);
}

.identity p {
    margin-top: 20px;

    font-family: "Space Mono", monospace;

    font-size: 9px;

    letter-spacing: 3px;

    color: rgba(130, 235, 235, 0.55);
}

.identity p b {
    color: #5effff;

    margin: 0 5px;
}

@keyframes identityAppear {

    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* =================================
   LOADER
================================= */

.loader-box {
    width: 400px;
    max-width: 80%;

    margin: 42px auto 0;
}

.loader-header {
    display: flex;
    justify-content: space-between;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    letter-spacing: 2px;

    color: rgba(150, 235, 235, 0.5);

    margin-bottom: 8px;
}

.loader-track {
    width: 100%;
    height: 2px;

    background: rgba(100, 240, 240, 0.1);
}

.loader-progress {
    width: 0%;
    height: 100%;

    background: #62ffff;

    box-shadow:
        0 0 10px #62ffff,
        0 0 25px rgba(0, 255, 255, 0.5);

    transition: width 0.08s linear;
}


/* =================================
   TERMINAL
================================= */

.terminal {
    margin-top: 18px;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: rgba(100, 235, 235, 0.45);
}

.terminal-symbol {
    color: #68ffff;

    margin-right: 8px;
}

.cursor {
    display: inline-block;

    width: 5px;
    height: 10px;

    margin-left: 4px;

    vertical-align: middle;

    background: #67ffff;

    animation: blink 0.8s infinite;
}

@keyframes blink {

    50% {
        opacity: 0;
    }
}


/* =================================
   BOTTOM HUD
================================= */

.hud-bottom {
    position: absolute;

    left: 5%;
    right: 5%;
    bottom: 5%;

    display: flex;
    justify-content: space-between;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    letter-spacing: 1px;

    color: rgba(120, 220, 220, 0.35);

    z-index: 20;
}


/* =================================
   MAIN PORTFOLIO
================================= */

#portfolio {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #020609;
}

#portfolio h1 {
    color: #68ffff;

    font-size: 35px;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {

    .side-info {
        display: none;
    }

    .hud-top {
        left: 7%;
        right: 7%;
    }

    .version {
        display: none;
    }

    .hud-bottom span:nth-child(2),
    .hud-bottom span:nth-child(3) {
        display: none;
    }

    .identity h1 {
        flex-direction: column;

        gap: 5px;

        font-size: 48px;

        letter-spacing: 5px;
    }

    .identity p {
        font-size: 7px;

        line-height: 2;

        padding: 0 20px;
    }

    .core-visual {
        width: 200px;
        height: 200px;

        top: 85px;
    }

    .ring-outer {
        width: 190px;
        height: 190px;
    }

    .ring-middle {
        width: 140px;
        height: 140px;
    }

    .ring-inner {
        width: 80px;
        height: 80px;
    }

    .horizontal {
        width: 220px;
    }

    .vertical {
        height: 220px;
    }

    .loader-box {
        margin-top: 35px;
    }

    .protocol {
        font-size: 7px;

        letter-spacing: 2px;
    }

}