html, body, :root, * {
  cursor: url(/cursor/cursor.png) 5 5, auto !important;
}
html *, body *, :root * {
  cursor: url(/cursor/cursor.png) 5 5, auto !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(140deg, #040e22, #071530, #0a1e52, #0d2870, #071530, #040e22);
    background-size: 400% 400%;
    animation: bgshift 18s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes bgshift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 55% 45% at 22% 48%, rgba(24, 80, 255, 0.35) 0%, transparent 100%),
        radial-gradient(ellipse 45% 40% at 78% 72%, rgba(50, 130, 255, 0.26) 0%, transparent 100%),
        radial-gradient(ellipse 38% 35% at 58% 12%, rgba(0, 60, 200, 0.2)   0%, transparent 100%);
    pointer-events: none;
    animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar {
    background: linear-gradient(135deg, rgba(4, 14, 34, 0.96) 0%, rgba(10, 28, 70, 0.96) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 1px rgba(255, 255, 255, 0.06) inset;
    padding: 0;
    position: relative;
    z-index: 1000;
    animation: slideDown 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-bottom: 1px solid rgba(40, 90, 200, 0.35);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
}

.logo {
    cursor: pointer;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #4d8eff 0%, #3264ff 50%, #1e47ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    position: relative;
    letter-spacing: 1px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(50, 100, 255, 0.65)); }
    50%       { filter: drop-shadow(0 0 16px rgba(77, 142, 255, 0.9)); }
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    cursor: pointer;
}

nav {
    display: flex;
    gap: 16px;
}

nav a {
    color: #c8d8ff;
    text-decoration: none;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(50, 90, 220, 0.12) 0%, rgba(30, 60, 180, 0.12) 100%);
    border: 2px solid rgba(70, 110, 230, 0.35);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition:
        color        .45s cubic-bezier(.34, 1.56, .64, 1),
        border-color .45s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow   .45s cubic-bezier(.34, 1.56, .64, 1),
        text-shadow  .45s cubic-bezier(.34, 1.56, .64, 1),
        transform    .45s cubic-bezier(.34, 1.56, .64, 1);
}

/* Gradient rozszerzający się od środka */
nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    background: radial-gradient(circle,
        rgba(40, 90, 255, 0.92)  0%,
        rgba(28, 60, 200, 0.88) 45%,
        rgba(60, 130, 255, 0.85) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    transition: opacity .45s ease-out;
    pointer-events: none;
}

/* Efekt świetlny przesuwający się */
nav a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-110%) rotate(45deg);
    transition: transform .75s ease;
    z-index: 2;
    pointer-events: none;
}

nav a .txt {
    position: relative;
    z-index: 10;
    color: inherit;
}

/* Hover - rozszerzanie gradientu */
nav a:hover::before {
    opacity: 1;
}

/* Hover - świetlny błysk */
nav a:hover::after {
    transform: translateX(110%) rotate(45deg);
}

/* Wyjście z hovera - płynne zanikanie */
nav a:not(:hover)::before {
    opacity: 0;
    transition: opacity .45s ease-out;
}

nav a:hover {
    color: #ffffff;
    transform: translateY(-8px) scale(1.1);
    border-color: rgba(140, 190, 255, 0.75);
    box-shadow: 0 16px 48px rgba(28, 80, 255, 0.75),
                0 0   40px rgba(50, 120, 255, 0.5),
                inset 0 0 2px rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.95),
                 0 0 30px rgba(100, 180, 255, 0.7);
}

nav a:active {
    transform: translateY(-3px) scale(1.04);
    transition-duration: .1s;
}

/* Ripple canvas generowany przez JS */
nav a canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(28, 78, 255, 0.72) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.55;
    }
}

footer {
    background: linear-gradient(135deg, rgba(4, 14, 34, 0.96) 0%, rgba(10, 28, 70, 0.96) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    color: rgb(255, 255, 255);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: #1e4dff 4px solid;
    border-bottom: #1e4dff 4px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
                0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (max-width: 900px) {
    .navbar-content {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }

    nav {
        flex-direction: column;
        width: 90%;
    }

    nav a {
        text-align: center;
        width: 100%;
    }

    .content-demo h2 {
        font-size: 36px;
    }

    .logo {
        font-size: 28px;
    }
}