:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-bg: #111827; /* Ciemne tło dla sekcji */
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #1b1c1d; /* Jaśniejszy tekst na ciemnym tle */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Minimalistyczne tło z subtelnymi kształtami - NAPRAWIONE */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--light-bg);
    overflow: hidden;
}

/* Używamy .particle z HTML zamiast .shape */
.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: morph 20s ease-in-out infinite alternate;
    background: var(--gradient-1);max-width: 15%;
    max-height: 15%;
}

@media (max-width: 768px) {
    .particle {
        max-width: 25%;
        max-height: 25%;
    }
}

/* Przykładowe cząsteczki - reszta jest generowana przez JS */
.particle:nth-child(2) { background: var(--gradient-2); }
.particle:nth-child(3) { background: var(--primary-color); }

@keyframes morph {
    0%, 100% { border-radius: 50%; transform: rotate(0deg) scale(1); }
    33% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(80deg) scale(1.1); }
    66% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(-80deg) scale(0.9); }
}

/* Minimalistyczna nawigacja */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 1rem; /* Zwiększenie paddingu poziomego na małych ekranach */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsywność dla mniejszych ekranów - uprościliśmy reguły */
@media (max-width: 991.98px) {
    .navbar {
        min-height: auto;
        padding: 0.5rem 1rem;
    }

    .logo {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .logo {
        max-width: 120px;
    }
}
.navbar-nav { gap: 1rem; }
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0 !important; /* Mniejszy padding dla linków */
    transition: color 0.3s ease;
}
/* Poprawki dla paska nawigacyjnego */
.navbar {
    padding: 0.15rem 0 !important; /* Zmniejszenie paddingu górnego/dolnego */
    min-height: 60px; /* Minimalna wysokość paska */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 52, 54, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideIn 1s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: slideIn 1s ease-out 0.2s both;
}
.hero .lead { color: var(--text-light); }

/* DODANO: Style dla przycisków CTA i ogólne dla ikon */
.cta-button, .btn-modern {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}
.cta-button:hover, .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    color: white !important;
}
.fas, .fab { transition: all 0.3s ease; } /* Płynne przejścia dla ikon */

/* DODANO: Style dla sekcji Flow */
.flow-section { padding: 100px 0; }
.flow-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}
.flow-item:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2); }
.flow-item h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.flow-item p { color: var(--text-light); }
.flow-item i.text-primary { color: #667eea !important; }

/* DODANO: Style dla sekcji "Jak to działa" (Process Steps) */
.process-step {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-left: 5px solid;
    border-image: var(--gradient-1) 1;
    position: relative;
}
.process-step:hover { transform: translateX(10px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.process-step h4, .process-step h5 { color: var(--text-dark); font-weight: 700; }
.process-step p { margin: 0; color: var(--text-light); }
.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: -25px;
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .process-step {
        margin-left: 25px;
    }
    
    .process-step::before {
        left: -20px;
        top: 15px;
        transform: none;
        width: 35px;
        height: 35px;
    }
}

/* DODANO: Style dla sekcji "Kluczowe możliwości" (Features) */
.custom-table {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
	display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.custom-table .table { width: 100%; border-collapse: collapse; margin-bottom: 0 !important; }
.custom-table th {
    background: var(--gradient-1);
    color: white !important;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}
.custom-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    background-color: white !important;
}
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tr:hover td { background-color: #f8f9fa !important; }

@media (max-width: 768px) {
    .custom-table th, 
    .custom-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

/* DODANO: Style dla sekcji "Zalety" (Benefits) */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}
.feature-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2); }
.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}
.feature-card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.feature-card p { color: var(--text-light); line-height: 1.8; }

/* Sekcje ogólne i tła */
.section { padding: 100px 0; position: relative; }
.py-5.bg-dark { background-color: var(--dark-bg) !important; color: var(--text-light); }
.py-5.bg-dark h2, .py-5.bg-dark h5 { color: white; }
.py-5.bg-dark .process-step { background: #2d3436; border-color: transparent; }
.py-5.bg-dark .process-step h4, .py-5.bg-dark .process-step h5, .py-5.bg-dark .process-step p { color: var(--text-light); }


/* Ogólne nagłówki sekcji */
.display-4 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-dark);
}
.display-4::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}
.py-5.bg-dark .display-4 { color: white; }

/* DODANO: Style dla stopki */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 2px 0 3px; /* Zmniejszone wartości paddingu */
    margin-top: 100px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
footer h4, footer h5 { color: white; }
footer .logo i { color: white; font-size: 1.5rem; }
footer .logo { background: var(--gradient-2); }
footer p { color: var(--text-light); }
footer a { color: var(--text-light) !important; text-decoration: none !important; transition: color 0.3s ease; }
footer a:hover { color: var(--accent-color) !important; }
footer .list-unstyled i { margin-right: 0.5rem; color: var(--secondary-color); }

/* Przycisk Scroll to Top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.scroll-to-top-btn.show { opacity: 1; visibility: visible; }
.scroll-to-top-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6); }

/* Responsywność */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section, .flow-section { padding: 60px 0; }
    .display-4 { font-size: 2rem; }
    .flow-item, .feature-card, .process-step { padding: 2rem; margin-bottom: 1.5rem; }
    .process-step::before { left: -20px; width: 35px; height: 35px; }
    .footer-links { flex-direction: column; gap: 1rem; }
    footer { text-align: center; }
    footer .d-flex { justify-content: center; }
}
/* Responsywność dla mniejszych ekranów */
@media (max-width: 992px) {
    .navbar {
        min-height: auto; /* Automatyczna wysokość */
        padding: 0.5rem 1rem !important;
    }
    
    .logo {
        width: 150px;
        height: 50px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem; /* Mniejszy przycisk menu */
    }
}

@media (max-width: 768px) {
    .logo {
        width: 120px;
        height: 40px;
    }
}

/* Animacje na scroll */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* inny2.css */
/* DODAJ: */

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    overflow: visible; /* Ważne, aby cień był widoczny, nawet jeśli wychodzi poza wrapper */
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: none; /* Upewnij się, że nie ma innych cieni */
    position: relative;
    z-index: 1; /* Obrazek na wierzchu */
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; /* Cień jest pozycjonowany na dole kontenera */
    left: 10%;
    width: 80%;
    height: 40px; /* Wysokość (grubość) cienia */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); /* Gradient od ciemnego (na dole) do przezroczystego (na górze) */
    filter: blur(15px); /* Rozmycie cienia */
    pointer-events: none;
    z-index: 2; /* Cień jest POD obrazkiem */
    transform: translateY(80%); /* Przesuń cień W DÓŁ, tak aby jego góra zaczynała się pod obrazkiem, ale dolna rozmyta część była widoczna */
    border-radius: 50%; /* Opcjonalnie: sprawia, że cień jest bardziej owalny/miękki */
}

/* Dostosowanie dla responsywności */
@media (max-width: 768px) {
    .hero-image {
        max-width: 80%;
    }
    .hero-image-wrapper::after {
        height: 30px;
        left: 5%;
        width: 90%;
        transform: translateY(40%); /* Mniejsze przesunięcie dla mniejszych ekranów */
    }
}

/* Wyjustowanie treści opisów kursów i sekcji */
.card-body p,
.section p,
.lead {
  text-align: justify;
}

/* Wyjustowanie treści w boksach kursów */
#courses .card-body p {
  text-align: justify;
}

/* Plik: inny2.css */

/* Dodaj te reguły na końcu pliku, aby wyjustować tekst */
/* Zastąpią one ewentualne wyśrodkowanie w poniższych sekcjach */

.hero-subtitle,
.lead {
  text-align: justify !important;
}

.flow-item p,
.feature-card p,
.process-step p,
.custom-table td,
.custom-table th,
.promo-badge {
    text-align: justify !important;
}

/* Opcjonalnie, jeśli chcesz justować nagłówki w sekcjach */
.section h2, .section p, .hero-content p {
    text-align: justify !important;
}