@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at top, #050505, #000);
    color: #fff;
    overflow-x: hidden;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid red;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 20px red;
}

/* ===== NAV ===== */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid red;
    z-index: 10;
}

nav a {
    padding: 15px 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

nav a:hover {
    color: red;
    text-shadow: 0 0 15px red;
    transform: skewX(-10deg) scale(1.2);
}

/* ===== SEKCJE ===== */
section {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: 1.2s cubic-bezier(.19,1,.22,1);
    margin: 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 0 40px rgba(255,0,0,0.15);
}

section.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== TEXT ===== */
h1, h2 {
    text-shadow: 0 0 15px red;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    from { opacity: 1; }
    to { opacity: 0.85; }
}

/* ===== POWITANIE ===== */
#powitanie {
    font-size: 60px;
    animation: megaPulse 1.5s infinite alternate;
}

@keyframes megaPulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 10px red;
    }
    to {
        transform: scale(1.2);
        text-shadow: 0 0 60px red;
    }
}

/* ===== GIFY ===== */
#gif div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

.gif {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 0 40px red;
    transition: 0.6s;
    animation: float 4s infinite ease-in-out;
}

.gif:hover {
    transform: rotate(360deg) scale(1.3);
    box-shadow: 0 0 100px red;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

/* ===== LINKI ===== */
a {
    color: red;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 20px red;
}

/* ========================= */
/* ===== RESPONSYWNOŚĆ ===== */
/* ========================= */

/* TABLET */
@media (max-width: 1024px) {
    #gif div {
        grid-template-columns: repeat(2, 1fr);
    }

    #powitanie {
        font-size: 45px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    * {
        cursor: default;
    }

    .cursor {
        display: none;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        padding: 12px;
        border-bottom: 1px solid rgba(255,0,0,0.3);
    }

    section {
        min-height: auto;
        padding: 50px 10px;
        margin: 10px;
        opacity: 1;
        transform: none;
        animation: none;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 18px;
    }

    #powitanie {
        font-size: 32px;
        animation: none;
    }

    #gif div {
        grid-template-columns: 1fr;
    }

    .gif {
        width: 200px;
        height: 200px;
        animation: none;
    }
}
