:root {
    /* Kolory Główne - Dark Theme */
    --bg-dark: #0f172a;
    --bg-darker: #080e1c;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(59, 130, 246, 0.15);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    /* Akcenty - TYLKO NIEBIESKI */
    --neon-blue: #3b82f6;
    --neon-pink: #3b82f6;
    --neon-green: #3b82f6;
    --neon-purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animowane tło - czysto niebieskie */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1), transparent 30%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 30%);
    animation: backgroundPulse 10s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Wspólne klasy - Glassmorphism i NEON */
.glass-panel {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(75, 85, 99, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.neon-text-blue  { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4); }
.neon-text-pink  { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4); }
.neon-text-green { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4); }

/* Nawigacja */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* Główny kontener */
.container {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Karty Kursów */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.course-card {
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

/* Poświata przy najechaniu na kartę wg akcentu karty */
.course-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-color), 0.2);
}

.course-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lessons-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lessons-count::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: transparent;
    color: var(--btn-color);
    border: 1px solid var(--btn-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--btn-color);
    color: #111827;
    box-shadow: 0 0 20px var(--btn-color);
}

/* Responsywność */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* w prawidzwym potzebne menu hamburger */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Formularze i Autoryzacja */
.auth-container { width: 100%; max-width: 500px; padding: 2.5rem; border-radius: 16px; }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-control { width: 100%; padding: 0.8rem 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(75, 85, 99, 0.4); border-radius: 8px; color: #ffffff; font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-control:focus { border-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 600; }
.alert-error   { background: rgba(59, 130, 246, 0.1); border: 1px solid #3b82f6; color: #93c5fd; }
.alert-success  { background: rgba(59, 130, 246, 0.1); border: 1px solid #60a5fa; color: #60a5fa; }
/* Checkbox TEB */
.checkbox-container { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { height: 20px; width: 20px; background-color: rgba(255,255,255,0.1); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 4px; display: inline-block; position: relative; transition: all 0.2s; }
.checkbox-container input:checked ~ .checkmark { background-color: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.checkmark:after { content: ''; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-container input:checked ~ .checkmark:after { display: block; }

/* -------------------------------------------------------------------------- */
/* STYLE PREMIUM DRQWERCIAK.PL ---------------------------------------------- */
/* -------------------------------------------------------------------------- */
.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}
.glass-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
}
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-glow {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}
.section-title {
    font-size: 3.75rem; 
    font-weight: 700; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    letter-spacing: 0.025em; 
}
@media (min-width: 768px) {
    .section-title { font-size: 4.5rem; }
}
.section-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    margin-bottom: 3rem;
}
.tech-item {
    transition: all 0.3s ease;
}
.tech-item:hover {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    transform: scale(1.1);
}
.btn-cyber {
    position: relative;
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #3b82f6;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}
.btn-cyber:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    color: #3b82f6;
}
.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: 0.5s;
}
.btn-cyber:hover::before {
    left: 100%;
}
.btn-primary-glow {
    display: inline-block;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    position: relative;
    border: none;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 400%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowBtn 20s linear infinite;
}
@keyframes glowBtn {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.btn-primary-glow:hover {
    transform: scale(1.05);
    color: white;
}
.btn-primary-glow:hover::after {
    opacity: 0.7;
}

.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; }
.rotate-y-12 { transform: rotateY(12deg); }
.tagcloud { font-weight: bold; color: #3b82f6; }
.tagcloud--item:hover { color: #8b5cf6; }

@keyframes introSpin {
    0% { transform: perspective(1000px) rotateX(0) rotateY(0) scale(0.8); opacity: 0; }
    40% { transform: perspective(1000px) rotateX(10deg) rotateY(-15deg) scale(1.05); opacity: 1; }
    70% { transform: perspective(1000px) rotateX(-5deg) rotateY(10deg) scale(1.05); }
    100% { transform: perspective(1000px) rotateX(0) rotateY(0) scale(1); }
}

.animate-intro-spin {
    animation: introSpin 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}





