/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= ZMIENNE ================= */
:root {
    --bg-main: #0b111a;
    --bg-light: #111a26;
    --bg-dark: #070b11;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(110, 231, 249, 0.14);
    --border-strong: rgba(110, 231, 249, 0.4);
    --text: #e6edf5;
    --text-muted: #8a9bb0;
    --accent: #6ee7f9;
    --accent-2: #3b82f6;
    --glow: 0 0 24px rgba(110, 231, 249, 0.25);

    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ================= PODSTAWY ================= */
html, body {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.10), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(110, 231, 249, 0.06), transparent 40%),
        var(--bg-main);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* delikatna siatka w tle, "techniczny" klimat */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 231, 249, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 249, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ================= HEADER ================= */
.top {
    position: sticky;
    top: 0;
    background: rgba(7, 11, 17, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    height: 100px;
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}

.top.hide {
    transform: translateY(-100%);
}

/* Wewnętrzny układ */
.header-inner {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* ===== LEWA STRONA ===== */
.logo-left {
    display: flex;
    justify-self: start;
    align-items: center;
}

/* ===== ŚRODEK ===== */
.title {
    justify-self: center;
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}

.title a {
    text-decoration: none;
    color: var(--text);
}

/* ===== PRAWA STRONA ===== */
.logo-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 20px;
}

/* ===== LOGA ===== */
.logo-box {
    width: 110px;
    height: 72px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-box:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo-neuron { background-image: url("images/neuron-logo-white.png"); opacity: 1; }
.logo-umg    { background-image: url("images/umg.png"); }
.logo-wi     { background-image: url("images/wi.png"); }

/* ================= MENU ================= */
.menu {
    position: sticky;
    top: 100px;
    z-index: 99;
    background: rgba(7, 11, 17, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 56px;
    padding: 12px 20px;
    transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-links {
    grid-column: 2;
    display: flex;
    gap: 36px;
    justify-content: center;
}

.menu-brand {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    position: absolute;
    left: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-brand::after {
    display: none !important;
}

.menu.compact {
    top: 0;
}

.menu.compact .menu-brand {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
}

.menu-links a::before {
    content: "";	    
    color: var(--accent);
    opacity: 0.6;
}

.menu a:hover,
.menu a.active {
    color: var(--text);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: var(--glow);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* ================= HERO ================= */
.hero {
    min-height: calc(100vh - 156px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

.hero.fade-in.heim {
    background-image: url("images/herobg.jpg");
    background-image: image-set(url("images/herobg.webp") type("image/webp"), url("images/herobg.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.fade-in.heim::before {
    content: "";
    position: absolute;
    inset: 0;
    /* ciemniej w środku pod tekstem, płynne przejście w tło strony na dole */
    background:
        linear-gradient(180deg, rgba(11, 17, 26, 0.2) 0%, rgba(11, 17, 26, 0) 40%, var(--bg-main) 100%),
        radial-gradient(ellipse at center, rgba(5, 10, 18, 0.7) 0%, rgba(5, 10, 18, 0.4) 65%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border-strong);
    background: rgba(110, 231, 249, 0.06);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h2,
.h2hero {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero h2 .accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p,
.phero {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 0 0 rgba(110, 231, 249, 0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
    content: "→";
    transition: transform 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(110, 231, 249, 0.35);
}

.btn:hover::after {
    transform: translateX(4px);
}

/* ================= SEKCJE ================= */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section h2 {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 56px;
    text-align: center;
}

.section h2::before {
    content: "// ";
    color: var(--accent);
}

/* ================= GRID ================= */
.grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 1000px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid.two {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 999px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ================= ZWYKŁE CONTENT CARDS ================= */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* świecąca linia u góry karty */
.card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.card h3 {
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card a.btn {
    align-self: flex-start;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), var(--glow);
}

/* ===== TEAM GRID ===== */
.grid.team {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* ===== TEAM CARD FLIP ===== */
.team-card {
    width: 260px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    min-height: 320px;
}

.card-front, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--bg-light);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
}

.team-card:hover .card-front,
.team-card:hover .card-back {
    border-color: var(--border-strong);
    box-shadow: var(--glow);
}

.card-front h3,
.card-back h3 {
    font-family: var(--font-mono);
    font-size: 18px;
    margin-bottom: 6px;
}

.card-front p {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-back {
    transform: rotateY(180deg);
}

.card-back h3 {
    margin-bottom: 16px;
}

.card-back a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.card-back a:hover {
    background: rgba(110, 231, 249, 0.08);
    border-color: var(--border-strong);
}

.team-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* ===== AVATAR ===== */
.avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #1f3b57, #0d1825);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 20px rgba(110, 231, 249, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid.team .team-card:hover .avatar {
    transform: scale(1.05);
    box-shadow: inset 0 0 20px rgba(110, 231, 249, 0.2), var(--glow);
}

/* ================= FADE-IN ANIMACJA ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER ================= */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 28px 20px;
    margin-top: auto;
}

/* ================= RESPONSYWNOŚĆ ================= */
@media (max-width: 900px) {
    .header-inner {
        padding: 10px 20px;
    }

    .title {
        font-size: 26px;
    }

    .logo-box {
        width: 84px;
        height: 56px;
    }

    .menu-links {
        gap: 20px;
    }

    .hero h2,
    .h2hero {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .top {
        height: 72px;
    }

    .menu {
        top: 72px;
        padding: 12px 10px;
        display: flex;
        justify-content: center;
    }

    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo-right {
        gap: 6px;
    }

    .logo-box {
        width: 44px;
        height: 40px;
    }

    .title {
        font-size: 18px;
        letter-spacing: 0.15em;
    }

    .menu-links {
        gap: 14px;
    }

    .menu a {
        font-size: 12px;
        letter-spacing: 0.02em;
    }

    .menu-links a::before {
        display: none;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h2,
    .h2hero {
        font-size: 30px;
    }

    .hero p,
    .phero {
        font-size: 16px;
    }

    .section {
        padding: 70px 16px;
    }

    .section h2 {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .card {
        padding: 24px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .avatar {
        width: 90px;
        height: 90px;
        font-size: 28px;
    }
}

#slot-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: white;
    z-index: 9999;
}
.slot-title{
    font-family: 'Bangers', cursive;
    font-size: 3rem;            
    color: #ffcc00;           
    text-shadow: 2px 2px 5px #000; 
    text-align: center;
    margin-bottom: 30px;

}
.slot-hidden {
    display: none !important;
}

/* Bębny */
.reels {
    display: flex;
    gap: 20px;
    font-size: 4rem;
    margin-bottom: 20px;
    user-select: none;
    min-height: 4.5rem;
}

/* animacja płynnego obracania symboli */
.reel-spin {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20%); }
    100% { transform: translateY(0); }
}

/* Przyciski */
button {
    margin: 5px;
    padding: 10px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

button:hover {
    background-color: #ffaa00;
    transform: scale(1.05);
}

/* Wynik gry */
#result {
    margin-top: 15px;
    font-size: 2rem;
    font-weight: bold;
    min-height: 2.5rem;
}

/* Responsywność */
@media (max-width: 600px) {
    .reels { font-size: 3rem; gap: 15px; }
    button { font-size: 1rem; padding: 8px 20px; }
    #result { font-size: 1.5rem; }
}
