@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #8b5cf6;
    --purple-light: #b794ff;
    --purple-dark: #4c1d95;
    --black: #050505;
    --card: rgba(16, 12, 24, 0.72);
    --border: rgba(167, 139, 250, 0.14);
    --text: #f5f3ff;
    --muted: #8b8794;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--black);
    color: var(--text);
    font-family: "Inter", sans-serif;
}

/* =========================
   TŁO
========================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(92, 43, 160, 0.15),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #070509 0%,
            #030303 100%
        );
}

.grid {
    position: absolute;
    inset: -50%;

    background-image:
        linear-gradient(
            rgba(139, 92, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    transform:
        perspective(700px)
        rotateX(65deg)
        translateY(-10%);

    animation: gridMove 16s linear infinite;
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 55px;
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;

    background: #7c3aed;

    top: -220px;
    left: -180px;

    animation: orbOne 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 450px;
    height: 450px;

    background: #9333ea;

    right: -200px;
    bottom: -180px;

    animation: orbTwo 15s ease-in-out infinite alternate;
}

@keyframes orbOne {
    to {
        transform: translate(160px, 130px) scale(1.15);
    }
}

@keyframes orbTwo {
    to {
        transform: translate(-160px, -120px) scale(1.2);
    }
}

.noise {
    position: absolute;
    inset: 0;

    opacity: 0.035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='.8'/%3E%3C/svg%3E");

    pointer-events: none;
}

/* =========================
   GLOW KURSORA
========================= */

#cursor-glow {
    position: fixed;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(139, 92, 246, 0.04) 35%,
            transparent 70%
        );

    transform: translate(-50%, -50%);

    pointer-events: none;

    z-index: -1;

    opacity: 0;
}

/* =========================
   ENTER SCREEN
========================= */

#enter-screen {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle at center,
            #10081d 0%,
            #050306 42%,
            #000 100%
        );

    transition:
        opacity 1s cubic-bezier(.76, 0, .24, 1),
        visibility 1s;
}

#enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-content {
    text-align: center;
    animation: enterAppear 1.4s ease forwards;
}

@keyframes enterAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.enter-logo {
    font-size: clamp(52px, 8vw, 100px);
    font-weight: 900;

    letter-spacing: -6px;

    text-shadow:
        0 0 40px rgba(139, 92, 246, 0.25);
}

.enter-logo .purple {
    color: var(--purple);
}

.enter-subtitle {
    margin-top: 12px;

    font-family: "Space Mono", monospace;

    font-size: 10px;

    letter-spacing: 6px;

    color: #6f6878;
}

#enter-button {
    position: relative;

    margin-top: 55px;

    width: 165px;
    height: 54px;

    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.13),
            rgba(139, 92, 246, 0.035)
        );

    color: white;

    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 5px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

#enter-button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(167, 139, 250, 0.2),
            transparent
        );

    transform: translateX(-110%);

    transition: transform .6s ease;
}

#enter-button:hover::before {
    transform: translateX(110%);
}

#enter-button:hover {
    transform: translateY(-3px);

    border-color: rgba(167, 139, 250, 0.7);

    box-shadow:
        0 0 35px rgba(124, 58, 237, 0.18),
        inset 0 0 20px rgba(124, 58, 237, 0.06);
}

.enter-hint {
    margin-top: 17px;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    letter-spacing: 3px;

    color: #49434f;
}

/* =========================
   MAIN
========================= */

#main-content {
    min-height: 100vh;

    opacity: 0;
    transform: scale(1.015);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

#main-content.visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================
   TOP BAR
========================= */

.top-bar {
    width: min(1100px, calc(100% - 48px));

    margin: auto;

    height: 95px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: "Space Mono", monospace;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 9px;
    letter-spacing: 2px;

    color: #6d6872;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #a855f7;

    box-shadow:
        0 0 10px #a855f7,
        0 0 20px rgba(168, 85, 247, 0.5);

    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    50% {
        opacity: .35;
        box-shadow: none;
    }
}

.top-logo {
    font-weight: 700;

    letter-spacing: -1px;

    color: #aaa4b0;
}

.top-logo span {
    color: var(--purple);
}

/* =========================
   HERO
========================= */

.hero {
    width: min(900px, calc(100% - 40px));

    margin: 60px auto 0;
}

.profile {
    text-align: center;
}

.avatar {
    width: 94px;
    height: 94px;

    margin: auto;

    padding: 1px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(196, 181, 253, 0.9),
            rgba(124, 58, 237, 0.2),
            rgba(124, 58, 237, 0)
        );

    box-shadow:
        0 0 50px rgba(124, 58, 237, 0.12);
}

.avatar-inner {
    width: 100%;
    height: 100%;

    border-radius: inherit;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle at 30% 20%,
            #21152e,
            #09070c 70%
        );

    font-weight: 900;
    font-size: 22px;

    letter-spacing: -2px;
}

.small-text {
    margin-top: 28px;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    letter-spacing: 5px;

    color: #6d6673;
}

.profile h1 {
    margin-top: 12px;

    font-size: clamp(42px, 8vw, 74px);

    letter-spacing: -5px;

    line-height: 1;

    font-weight: 900;
}

.profile h1 span {
    background:
        linear-gradient(
            135deg,
            #c4b5fd,
            #8b5cf6,
            #6d28d9
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    text-shadow:
        0 0 50px rgba(124, 58, 237, 0.12);
}

.description {
    margin-top: 20px;

    color: #77717d;

    font-size: 13px;

    letter-spacing: 2px;
}

/* =========================
   SOCIAL LINKS
========================= */

.links {
    margin-top: 65px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.social-card {
    position: relative;

    min-height: 88px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    text-decoration: none;

    color: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(20, 15, 28, 0.78),
            rgba(8, 7, 11, 0.7)
        );

    backdrop-filter: blur(14px);

    overflow: hidden;

    transition:
        transform .35s cubic-bezier(.2, .8, .2, 1),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

.social-card::before {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    top: -80px;
    left: -80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.12),
            transparent 70%
        );

    opacity: 0;

    transition: opacity .35s ease;
}

.social-card:hover {
    transform: translateY(-5px);

    border-color: rgba(139, 92, 246, 0.45);

    background:
        linear-gradient(
            135deg,
            rgba(35, 22, 50, 0.85),
            rgba(10, 8, 14, 0.8)
        );

    box-shadow:
        0 14px 45px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(124, 58, 237, 0.07);
}

.social-card:hover::before {
    opacity: 1;
}

.icon {
    position: relative;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 10px;

    background:
        rgba(139, 92, 246, 0.055);

    color: #bda7ff;

    font-family: "Space Mono", monospace;

    font-weight: 700;

    transition:
        transform .35s ease,
        background .35s ease;
}

.social-card:hover .icon {
    transform: scale(1.08) rotate(-3deg);

    background:
        rgba(139, 92, 246, 0.12);
}

.card-text {
    position: relative;

    margin-left: 16px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.card-small {
    font-family: "Space Mono", monospace;

    font-size: 7px;

    letter-spacing: 2px;

    color: #625c68;
}

.card-text strong {
    font-size: 14px;

    font-weight: 600;

    letter-spacing: .2px;
}

.arrow {
    position: relative;

    margin-left: auto;

    color: #514a57;

    font-size: 18px;

    transition:
        color .3s ease,
        transform .3s ease;
}

.social-card:hover .arrow {
    color: #b794ff;

    transform: translate(3px, -3px);
}

/* =========================
   FOOTER
========================= */

footer {
    height: 130px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    letter-spacing: 3px;

    color: #423d46;
}

.footer-dot {
    color: #6d28d9;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 650px) {

    .top-bar {
        width: calc(100% - 30px);
        height: 75px;
    }

    .hero {
        margin-top: 35px;
    }

    .links {
        grid-template-columns: 1fr;

        margin-top: 48px;
    }

    .profile h1 {
        letter-spacing: -3px;
    }

    .description {
        font-size: 11px;
    }

    .enter-logo {
        letter-spacing: -4px;
    }

}

@media (pointer: coarse) {

    #cursor-glow {
        display: none;
    }

}
/* =========================
   MUSIC PLAYER
========================= */

.music-player {
    width: min(620px, calc(100% - 40px));
    min-height: 72px;

    margin: 28px auto 0;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 15, 31, 0.78),
            rgba(7, 6, 10, 0.78)
        );

    backdrop-filter: blur(18px);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.015);

    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}

.music-player:hover {
    border-color: rgba(139, 92, 246, 0.35);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(124, 58, 237, 0.05);
}


/* PLAY / PAUSE */

.music-toggle {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.15),
            rgba(139, 92, 246, 0.04)
        );

    color: #c4b5fd;

    font-size: 13px;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.music-toggle:hover {
    transform: scale(1.06);

    border-color: rgba(167, 139, 250, 0.55);

    background:
        rgba(139, 92, 246, 0.16);

    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.12);
}

.music-toggle:active {
    transform: scale(.95);
}


/* INFO */

.music-info {
    min-width: 105px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.now-playing {
    font-family: "Space Mono", monospace;

    font-size: 6px;

    letter-spacing: 2px;

    color: #625b69;
}

.song-name {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #ddd6fe;
}


/* =========================
   VISUALIZER
========================= */

.visualizer {
    height: 30px;

    display: flex;
    align-items: center;
    gap: 3px;

    margin-left: 2px;
}

.visualizer span {
    display: block;

    width: 3px;
    height: 7px;

    border-radius: 10px;

    background:
        linear-gradient(
            to top,
            #6d28d9,
            #c4b5fd
        );

    box-shadow:
        0 0 7px rgba(139, 92, 246, 0.35);

    animation:
        musicBar .75s ease-in-out infinite alternate;

    transform-origin: center;
}

.visualizer span:nth-child(1) {
    animation-delay: 0s;
}

.visualizer span:nth-child(2) {
    animation-delay: .18s;
}

.visualizer span:nth-child(3) {
    animation-delay: .35s;
}

.visualizer span:nth-child(4) {
    animation-delay: .12s;
}

.visualizer span:nth-child(5) {
    animation-delay: .28s;
}

@keyframes musicBar {

    0% {
        height: 6px;
        opacity: .45;
    }

    50% {
        height: 23px;
        opacity: 1;
    }

    100% {
        height: 11px;
        opacity: .7;
    }

}

.visualizer.paused span {
    animation-play-state: paused;

    height: 4px;

    opacity: .3;
}


/* =========================
   VOLUME
========================= */

.volume {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #706779;
}

.volume i {
    width: 14px;

    font-size: 11px;

    color: #8b7a9c;
}

#volume-slider {
    width: 90px;
    height: 3px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 50px;

    outline: none;

    cursor: pointer;

    background:
        linear-gradient(
            to right,
            #8b5cf6 0%,
            #8b5cf6 35%,
            #302b35 35%,
            #302b35 100%
        );
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #c4b5fd;

    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.55);

    cursor: pointer;

    transition: transform .2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.35);
}

#volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;

    border: none;
    border-radius: 50%;

    background: #c4b5fd;

    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.55);

    cursor: pointer;
}


/* =========================
   MOBILE PLAYER
========================= */

@media (max-width: 650px) {

    .music-player {
        padding: 11px 12px;

        gap: 10px;
    }

    .music-info {
        min-width: 90px;
    }

    .visualizer {
        display: none;
    }

    .volume {
        gap: 7px;
    }

    #volume-slider {
        width: 60px;
    }

}
/* =========================
   2K2 AVATAR
========================= */

.avatar {
    position: relative;

    width: 104px;
    height: 104px;

    margin: auto;

    padding: 3px;

    border-radius: 50%;

    background: transparent;

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.15),
        0 0 60px rgba(124, 58, 237, 0.08);

    transition:
        transform .4s cubic-bezier(.2, .8, .2, 1),
        box-shadow .4s ease;
}


/* OBRACAJĄCA SIĘ OBWÓDKA */

.avatar-ring {
    position: absolute;

    inset: -3px;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 80deg,
            #6d28d9 130deg,
            #c4b5fd 180deg,
            #7c3aed 230deg,
            transparent 285deg,
            transparent 360deg
        );

    animation: avatarSpin 7s linear infinite;

    filter:
        drop-shadow(0 0 7px rgba(139, 92, 246, .55));

    z-index: 0;
}

.avatar-ring::after {
    content: "";

    position: absolute;

    inset: 2px;

    border-radius: 50%;

    background: #070509;
}


@keyframes avatarSpin {

    to {
        transform: rotate(360deg);
    }

}


/* ZDJĘCIE */

.avatar-inner {
    position: relative;

    width: 100%;
    height: 100%;

    z-index: 1;

    overflow: hidden;

    border-radius: 50%;

    display: block;

    background: #08060b;

    border: 1px solid rgba(196, 181, 253, 0.18);
}


.avatar-inner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    transform: scale(1.03);

    transition:
        transform .55s cubic-bezier(.2, .8, .2, 1),
        filter .55s ease;
}


/* HOVER */

.avatar:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 35px rgba(139, 92, 246, 0.3),
        0 0 80px rgba(124, 58, 237, 0.15);
}


.avatar:hover .avatar-inner img {
    transform: scale(1.12);

    filter: brightness(1.08);
}
/* =========================
   EPIC GAMES ICON FIX
========================= */

.epic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.epic-icon img {
    width: 27px;
    height: 32px;

    object-fit: contain;

    opacity: 0.9;

    filter:
        invert(72%)
        sepia(19%)
        saturate(1350%)
        hue-rotate(215deg)
        brightness(105%)
        contrast(105%);

    transition:
        transform .35s ease,
        filter .35s ease,
        opacity .35s ease;
}

.epic:hover .epic-icon img {
    transform: scale(1.08);

    opacity: 1;

    filter:
        invert(78%)
        sepia(25%)
        saturate(1700%)
        hue-rotate(215deg)
        brightness(115%)
        contrast(105%)
        drop-shadow(0 0 6px rgba(167, 139, 250, 0.45));
}