@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;900&family=Rajdhani:wght@500;700&display=swap');

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
    --yellow: #fcee0a;
    --cyan: #00f0ff;
    --pink: #ff2a6d;
    --bg: #05020d;
    --panel: rgba(12, 6, 30, .8);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --mx: 50vw; --my: 50vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    color: var(--cyan);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 42, 109, .35), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 240, 255, .25), transparent 55%),
        var(--bg);
    background-size: 140% 140%;
    overflow-x: hidden;
    animation: bg-drift 14s ease-in-out infinite alternate, boot 1.2s steps(1) both;
}

#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.glow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 240, 255, .16), rgba(255, 42, 109, .07) 40%, transparent 70%);
    mix-blend-mode: screen;
}

body::before {
    content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 55vh; z-index: -2;
    background:
        linear-gradient(var(--pink) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(90deg, var(--pink) 1px, transparent 1px) 0 0 / 60px 60px;
    opacity: .35;
    transform: perspective(350px) rotateX(62deg); transform-origin: bottom;
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
    mask-image: linear-gradient(to top, #000 10%, transparent 90%);
    animation: grid-move 2.5s linear infinite;
}

body::after {
    content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
    background:
        linear-gradient(to bottom, transparent 0, rgba(0, 240, 255, .09) 50%, transparent 100%) 0 -30vh / 100% 30vh no-repeat,
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75));
    animation: scanbar 5s linear infinite;
}

header { position: relative; z-index: 1; text-align: center; padding: 4rem 1rem 1.5rem; }

header::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow), var(--cyan), var(--pink), transparent);
    background-size: 200% 100%; box-shadow: 0 0 18px var(--yellow);
    animation: beam 3s linear infinite, line-in 1.2s var(--ease) both;
}

h1 {
    position: relative; display: inline-block;
    font-family: 'Orbitron', 'Rajdhani', sans-serif; font-weight: 900;
    font-size: clamp(1.5rem, 4.5vw, 3.4rem); letter-spacing: .12em; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--yellow), 0 0 30px rgba(252, 238, 10, .5);
    animation: h1-in 1.4s var(--ease) .3s both, neon-pulse 3.5s ease-in-out 1.7s infinite;
}
h1::before, h1::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; }
h1::before { color: var(--cyan); text-shadow: none; left: 3px; animation: glitch-a 2.8s infinite steps(1); }
h1::after  { color: var(--pink); text-shadow: none; left: -3px; animation: glitch-b 2.2s infinite steps(1); }

.status {
    min-height: 1.6em; margin-bottom: 2rem;
    font-family: 'Orbitron', monospace; font-size: .85rem; letter-spacing: .25em; color: var(--pink);
    text-shadow: 0 0 8px var(--pink);
    animation: fade-up .8s var(--ease) 1s both;
}
.status::after { content: "▌"; margin-left: 4px; animation: blink 1s steps(1) infinite; }

header img {
    display: block; margin: 0 auto; max-width: min(300px, 78%);
    padding: 10px; position: relative;
    background:
        linear-gradient(var(--panel), var(--panel)) padding-box,
        conic-gradient(from var(--angle), var(--cyan), var(--pink), var(--yellow), var(--cyan)) border-box;
    border: 3px solid transparent;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    filter: saturate(1.4) contrast(1.1) drop-shadow(-3px 0 var(--pink)) drop-shadow(3px 0 var(--cyan));
    transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .25s ease-out, filter .5s var(--ease);
    animation: spin 5s linear infinite, img-in 1.3s var(--ease) .7s both, float 5s ease-in-out 2s infinite;
}
header img:hover { filter: hue-rotate(160deg) saturate(2) drop-shadow(-6px 0 var(--pink)) drop-shadow(6px 0 var(--yellow)); }

nav { position: relative; z-index: 1; max-width: 760px; margin: 2rem auto 4rem; padding: 0 1rem; }

nav ul { list-style: none; display: grid; gap: 1.3rem; counter-reset: item; filter: drop-shadow(0 0 12px rgba(0, 240, 255, .3)); }

nav li {
    counter-increment: item; padding: 2px;
    background: conic-gradient(from var(--angle), var(--cyan), var(--pink), var(--yellow), var(--cyan));
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .25s ease-out;
    animation: spin 6s linear infinite, card-in 1s var(--ease) both;
}
nav li:nth-child(1) { animation-delay: 0s, 1.3s; }
nav li:nth-child(2) { animation-delay: -2s, 1.55s; }

nav a {
    position: relative; display: block; overflow: hidden; z-index: 0;
    padding: 1.3rem 1.6rem 1.3rem 4.4rem;
    font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    color: var(--cyan); background: #0a0418;
    clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px));
    transition: color .4s var(--ease), letter-spacing .5s var(--ease), padding-left .5s var(--ease);
}
nav a::before {
    content: "0" counter(item) " //";
    position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
    font-family: 'Orbitron', monospace; font-size: .8rem;
    color: var(--pink); text-shadow: 0 0 8px var(--pink); transition: color .4s, transform .5s var(--ease);
}
nav a::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, var(--yellow), #ffb800);
    transform: translateX(-105%) skewX(-20deg); transition: transform .6s var(--ease);
}
nav a:hover, nav a:focus-visible { color: #05020d; letter-spacing: .13em; padding-left: 5rem; outline: none; }
nav a:hover::after, nav a:focus-visible::after { transform: translateX(0) skewX(-20deg) scaleX(1.3); }
nav a:hover::before { color: #05020d; text-shadow: none; transform: translateY(-50%) translateX(6px); }
nav li:hover { animation-duration: 1.8s, 1s; }

@keyframes spin { to { --angle: 360deg; } }
@keyframes bg-drift { to { background-position: 30% 20%; } }
@keyframes boot { 0%{opacity:0} 10%{opacity:1} 15%{opacity:.2} 25%{opacity:1} 30%{opacity:.4} 100%{opacity:1} }
@keyframes grid-move { to { background-position: 0 60px, 0 60px; } }
@keyframes scanbar { to { background-position: 0 130vh, 0 0, 0 0; } }
@keyframes beam { to { background-position: -200% 0; } }
@keyframes line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { translate: 0 -12px; } }

@keyframes h1-in {
    0%   { opacity: 0; letter-spacing: .6em; filter: blur(14px); clip-path: inset(0 100% 0 0); }
    60%  { opacity: 1; filter: blur(2px); }
    100% { opacity: 1; letter-spacing: .12em; filter: blur(0); clip-path: inset(-20% -5% -20% -5%); }
}
@keyframes neon-pulse {
    50% { text-shadow: 0 0 4px var(--yellow), 0 0 18px var(--yellow), 0 0 55px rgba(252, 238, 10, .7), 0 0 90px rgba(255, 42, 109, .5); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes img-in {
    0%   { opacity: 0; scale: .3; rotate: -12deg; filter: blur(20px) brightness(3); }
    100% { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes card-in {
    0%   { opacity: 0; translate: -80px 0; scale: .92; filter: blur(10px); }
    100% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
}
@keyframes glitch-a {
    0%{clip-path:inset(0 0 85% 0);transform:translate(-3px,0)} 20%{clip-path:inset(40% 0 40% 0);transform:translate(4px,0)}
    40%{clip-path:inset(70% 0 5% 0);transform:translate(-2px,0)} 60%{clip-path:inset(10% 0 70% 0);transform:translate(3px,0)}
    80%{clip-path:inset(50% 0 30% 0);transform:translate(-4px,0)} 100%{clip-path:inset(0 0 100% 0)}
}
@keyframes glitch-b {
    0%{clip-path:inset(60% 0 20% 0);transform:translate(3px,0)} 25%{clip-path:inset(5% 0 80% 0);transform:translate(-4px,0)}
    50%{clip-path:inset(30% 0 50% 0);transform:translate(2px,0)} 75%{clip-path:inset(80% 0 5% 0);transform:translate(-3px,0)}
    100%{clip-path:inset(0 0 100% 0)}
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body { display: flex; flex-direction: column; }
nav { width: 100%; }

main {
    position: relative; z-index: 1; overflow: hidden;
    width: min(760px, calc(100% - 2rem)); margin: 0 auto 4rem;
    padding: 2.6rem 2rem 2.2rem; text-align: center;
    font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #eaffff; text-shadow: 0 0 10px var(--cyan);
    background: var(--panel);
    border-top: 2px solid var(--cyan); border-bottom: 2px solid var(--pink);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
    backdrop-filter: blur(8px);
    animation: card-in 1s var(--ease) 1.8s both;
}
main::before {           
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(0, 240, 255, .22) 50%, transparent 60%);
    transform: translateX(-100%); animation: sweep 4.5s ease-in-out 2.5s infinite;
}
main::after {            
    content: "[ INFO // 01 ]"; position: absolute; top: .7rem; left: 1.2rem;
    font-family: 'Orbitron', monospace; font-size: .65rem; letter-spacing: .25em;
    color: var(--pink); text-shadow: 0 0 8px var(--pink);
    animation: blink 2.4s steps(1) infinite;
}
main:hover { text-shadow: 3px 0 var(--pink), -3px 0 var(--yellow); transition: text-shadow .3s; }

footer {
    position: relative; z-index: 1; margin-top: auto; padding: 1.8rem 1rem 2rem; text-align: center;
    font-family: 'Orbitron', 'Rajdhani', sans-serif; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(0, 240, 255, .75); text-shadow: 0 0 8px rgba(0, 240, 255, .6);
    animation: fade-up 1s var(--ease) 2.2s both;
}
footer::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--yellow), transparent);
    background-size: 200% 100%; box-shadow: 0 0 14px var(--pink); animation: beam 4s linear infinite;
}
footer::after {
    content: ""; display: block; width: 8px; height: 8px; margin: .9rem auto 0;
    background: var(--yellow); box-shadow: 0 0 12px var(--yellow), 0 0 30px var(--yellow);
    transform: rotate(45deg); animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
@keyframes pulse-dot { 50% { opacity: .25; transform: rotate(225deg) scale(.6); } }