/* Reset podstawowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030303;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- TŁO I ANIMACJE GLOBALNE --- */
.gif-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Przyciemnienie tła nakładane na Twój plik tlo.gif */
    background-image: linear-gradient(rgba(3, 3, 3, 0.82), rgba(3, 3, 3, 0.82)), 
                      url('tlo.gif');
    background-size: cover;
    background-position: center;
    opacity: 1;
}

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

@keyframes auroraPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Zorza polarna w tle */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(120, 119, 198, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 15% 30%, rgba(167, 139, 250, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(34, 211, 238, 0.05) 0%, transparent 40%);
    animation: auroraPulse 12s ease-in-out infinite;
}

/* Przycisk języka */
.lang-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    color: #030303;
    background-color: #f9f9fa;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-btn:hover { transform: scale(1.05); background-color: #e0e0e0; }
.lucide-globe { width: 16px; height: 16px; }

/* Główny kontener */
.container-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px 16px 20px;
}

/* --- SEKCJA AWATARA + ANIMOWANA OBRÓBKA (NEON RING) --- */
.dashboard-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
    width: 100%;
}

.avatar-container-glow {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animowany pierścień RGB */
.avatar-glow-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #a78bfa, #22d3ee, #f472b6, #6ee7b7);
    background-size: 400% 400%;
    animation: glowShift 8s ease infinite, glowPulse 2s ease-in-out infinite alternate;
    z-index: 1;
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #111111;
    position: relative;
    z-index: 2;
    border: 3px solid #030303;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-avatar:hover .avatar-wrapper {
    transform: scale(1.04);
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.hero-title { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; font-weight: 900; letter-spacing: 0.08em; color: #ffffff; margin-top: 4px; }
.hero-subtitle { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; margin-top: 4px; }

@keyframes glowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 15px rgba(167, 139, 250, 0.5), inset 0 0 10px rgba(167, 139, 250, 0.3); }
    100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.9), inset 0 0 15px rgba(34, 211, 238, 0.5); }
}

/* --- MODUŁ SLIDERA / BANNERA --- */
.slider-wrapper {
    width: 100%;
    max-width: 780px;
    height: 160px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.slider-track { display: flex; width: 300%; height: 100%; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.slide { width: 33.3333%; height: 100%; padding: 32px; display: flex; align-items: center; position: relative; }
.slide-content { display: flex; flex-direction: column; gap: 8px; text-align: left; z-index: 2; }
.slide-content h2 { font-size: 1.35rem; font-weight: 800; color: #fff; }
.slide-content p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.slide-badge { align-self: flex-start; padding: 4px 10px; border-radius: 8px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.badge-live { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.pulse-dot { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
.badge-yt { background: rgba(167, 139, 250, 0.15); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.25); }
.badge-shop { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.code-highlight { color: #fbbf24; font-weight: 700; background: rgba(251,191,36,0.1); padding: 2px 6px; border-radius: 4px; }

.slide-red { background: linear-gradient(90deg, rgba(239,68,68,0.04) 0%, transparent 100%); }
.slide-purple { background: linear-gradient(90deg, rgba(167,139,250,0.04) 0%, transparent 100%); }
.slide-amber { background: linear-gradient(90deg, rgba(251,191,36,0.04) 0%, transparent 100%); }

.slider-dots { position: absolute; bottom: 16px; right: 32px; display: flex; gap: 8px; z-index: 5; }
.slider-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.slider-dots .dot.active { width: 18px; border-radius: 4px; background: #ffffff; }

/* --- SIATKA KAFELKÓW (WIDOCZNA NA KAŻDYM TLE) --- */
.links-grid {
    width: 100%;
    max-width: 780px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bottom-row { width: 100%; max-width: 780px; display: flex; justify-content: center; margin-top: 16px; }
.bottom-row .dashboard-card { width: calc(50% - 8px); }

.dashboard-card { text-decoration: none; opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.links-grid .dashboard-card:nth-child(1) { animation-delay: 0.3s; }
.links-grid .dashboard-card:nth-child(2) { animation-delay: 0.4s; }
.links-grid .dashboard-card:nth-child(3) { animation-delay: 0.5s; }
.links-grid .dashboard-card:nth-child(4) { animation-delay: 0.6s; }
.links-grid .dashboard-card:nth-child(5) { animation-delay: 0.7s; }
.links-grid .dashboard-card:nth-child(6) { animation-delay: 0.8s; }
.bottom-row .dashboard-card { animation-delay: 0.9s; }

.glass-panel {
    background: rgba(11, 11, 14, 0.78); /* Przyciemniony podkład blokujący wzory z tła */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 30%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(35deg); transition: none; opacity: 0; pointer-events: none;
}
.dashboard-card:hover .glass-panel::after { left: 140%; opacity: 1; transition: left 0.75s ease-in-out; }
.dashboard-card:hover .glass-panel { transform: scale(1.025) translateY(-4px); }

.dash-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dashboard-card:hover .dash-icon { transform: translateY(-4px) scale(1.08); }
.dash-icon i { font-size: 24px; }
.glass-panel h2 { font-size: 1.25rem; font-weight: 700; color: #ffffff; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.badge { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* PALETY POŚWIATY NEONOWEJ */
.card-purple .glass-panel { border-color: rgba(167, 139, 250, 0.25); box-shadow: 0 0 25px rgba(167, 139, 250, 0.05); }
.card-purple:hover .glass-panel { border-color: rgba(167, 139, 250, 0.6); box-shadow: 0 0 30px rgba(167, 139, 250, 0.3), 0 0 60px rgba(167, 139, 250, 0.15); }
.card-purple .dash-icon { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }

.card-blue .glass-panel { border-color: rgba(96, 165, 250, 0.25); box-shadow: 0 0 25px rgba(96, 165, 250, 0.05); }
.card-blue:hover .glass-panel { border-color: rgba(96, 165, 250, 0.6); box-shadow: 0 0 30px rgba(96, 165, 250, 0.3), 0 0 60px rgba(96, 165, 250, 0.15); }
.card-blue .dash-icon { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }

.card-pink .glass-panel { border-color: rgba(244, 114, 182, 0.25); box-shadow: 0 0 25px rgba(244, 114, 182, 0.05); }
.card-pink:hover .glass-panel { border-color: rgba(244, 114, 182, 0.6); box-shadow: 0 0 30px rgba(244, 114, 182, 0.3), 0 0 60px rgba(244, 114, 182, 0.15); }
.card-pink .dash-icon { background: rgba(244, 114, 182, 0.1); color: #f472b6; }

.card-cyan .glass-panel { border-color: rgba(34, 211, 238, 0.25); box-shadow: 0 0 25px rgba(34, 211, 238, 0.05); }
.card-cyan:hover .glass-panel { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.15); }
.card-cyan .dash-icon { background: rgba(34, 211, 238, 0.1); color: #22d3ee; }

.card-emerald .glass-panel { border-color: rgba(110, 227, 183, 0.25); box-shadow: 0 0 25px rgba(110, 227, 183, 0.05); }
.card-emerald:hover .glass-panel { border-color: rgba(110, 227, 183, 0.6); box-shadow: 0 0 30px rgba(110, 227, 183, 0.3), 0 0 60px rgba(110, 227, 183, 0.15); }
.card-emerald .dash-icon { background: rgba(110, 227, 183, 0.1); color: #6ee7b7; }

.card-purple-light .glass-panel { border-color: rgba(167, 139, 250, 0.25); box-shadow: 0 0 25px rgba(167, 139, 250, 0.05); }
.card-purple-light:hover .glass-panel { border-color: rgba(167, 139, 250, 0.6); box-shadow: 0 0 30px rgba(167, 139, 250, 0.3), 0 0 60px rgba(167, 139, 250, 0.15); }
.card-purple-light .dash-icon { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }

.card-amber .glass-panel { border-color: rgba(251, 191, 36, 0.25); box-shadow: 0 0 25px rgba(251, 191, 36, 0.05); }
.card-amber:hover .glass-panel { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.15); }
.card-amber .dash-icon { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* Stopka i czat */
.footer-root { position: relative; z-index: 2; width: 100%; max-width: 860px; margin: 32px auto 28px auto; padding: 0 20px; }
.footer-divider { height: 1px; width: 100%; background: rgba(255, 255, 255, 0.08); margin-bottom: 16px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.copyright { color: rgba(255, 255, 255, 0.3); font-size: 0.68rem; }
.social-links { display: flex; align-items: center; gap: 10px; }
.contact-label { color: rgba(255, 255, 255, 0.25); font-size: 0.68rem; }
.social-links a { color: rgba(255, 255, 255, 0.3); font-size: 14px; transition: all 0.2s ease; }
.social-links a:hover { color: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }

.chatbot-toggle {
    position: fixed; bottom: 28px; right: 28px; z-index: 20; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px); color: #ffffff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: all 0.25s ease;
}
.chatbot-toggle:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.06); }
.lucide-message { width: 20px; height: 20px; }

/* Responsywność */
@media (max-width: 640px) {
    .links-grid { grid-template-columns: 1fr; }
    .bottom-row .dashboard-card { width: 100%; }
    .hero-title { font-size: 1.85rem; }
    .glass-panel { padding: 24px; }
    .slider-wrapper { height: 180px; }
    .slide { padding: 20px; }
}