/* Definicja zmiennych kolorów dla spójności i łatwej modyfikacji */
:root {
    --color-background-dark: #0F111A; /* Bardzo ciemny granat/czerń kosmosu */
    --color-background-medium: #1A1C2A; /* Nieco jaśniejszy granat dla sekcji */
    --color-text-primary: #E0E0E0;   /* Jasnoszary/biały dla głównego tekstu */
    --color-text-secondary: #A0A0A0; /* Ciemniejszy szary dla tekstu pomocniczego */
    --color-accent-gold: #FFC107;   /* Złoty/Bursztynowy - nawiązanie do UI ED i budowania */
    --color-accent-blue: #00BFFF;   /* Głęboki błękit nieba - sci-fi, energia */
    --color-button-hover: #FFD700;  /* Jaśniejsze złoto na hover */
    --color-button-text-dark: #1A1C2A; /* Tekst na przyciskach */
}

/* Resetowanie podstawowych stylów przeglądarki */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Podstawowe style dla całego body */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-background-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
}

/* Kontener dla zawartości - centruje i ogranicza szerokość */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Nagłówki H1, H2, H3 */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-accent-gold);
    text-align: center;
    margin-bottom: 20px;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    text-align: center;
    margin-bottom: 15px;
}

/* Style przycisków */
.button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button.primary {
    background-color: var(--color-accent-gold);
    color: var(--color-button-text-dark);
    border: 2px solid var(--color-accent-gold);
}

.button.primary:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
}

.button.secondary {
    background-color: transparent;
    color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
}

.button.secondary:hover {
    background-color: var(--color-accent-blue);
    color: var(--color-background-dark);
}

/* Nagłówek strony (header) */
header {
    background-color: var(--color-background-medium);
    padding: 20px 0;
    border-bottom: 3px solid var(--color-accent-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: var(--color-text-primary);
    margin-bottom: 5px;
    font-size: 2.8em;
}

header p {
    color: var(--color-text-secondary);
    font-size: 1.2em;
}

/* Nawigacja (nav) */
nav ul {
    list-style: none;
    text-align: center;
    padding-top: 15px;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent-gold);
    border-bottom: 2px solid var(--color-accent-gold);
}

/* Sekcje strony */
section {
    padding: 60px 0;
    text-align: center;
}

.section-dark {
    background-color: var(--color-background-dark);
}

.section-light {
    background-color: var(--color-background-medium);
}

/* Sekcja Hero (pierwsza, duża sekcja) */
.hero-section_a {
    background: url('img/bg.jpg') no-repeat center center/cover; /*url('https://via.placeholder.com/1920x600/0A0A1A/FFFFFF?text=Twoj+Kosmiczny+Tlo') no-repeat center center/cover;*/
    /* Zastąp to URL prawdziwym obrazem kosmosu/gwiazd! */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white; /* Tekst na tle obrazu */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    border-bottom: 3px solid var(--color-accent-gold);
}

.hero-section_a::before { /* Nakładka dla lepszej czytelności tekstu */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Ciemniejsza nakładka */
    z-index: 1;
}

.hero-section_a .container {
    position: relative;
    z-index: 2;
}

.hero-section {
    /* background: url('img/bg.jpg') no-repeat center center/cover; /*url('https://via.placeholder.com/1920x600/0A0A1A/FFFFFF?text=Twoj+Kosmiczny+Tlo') no-repeat center center/cover;*/
    /* Zastąp to URL prawdziwym obrazem kosmosu/gwiazd! */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white; /* Tekst na tle obrazu */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    border-bottom: 3px solid var(--color-accent-gold);
}

.hero-section::before { /* Nakładka dla lepszej czytelności tekstu */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Ciemniejsza nakładka */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Grid dla funkcji */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: rgba(30, 30, 45, 0.7); /* Lekko przezroczyste tło */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
}

.feature-item h3 {
    color: var(--color-accent-gold);
    margin-top: 0;
}

/* Linki do pobierania */
.download-links {
    margin-top: 30px;
}

.small-text {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

/* Stopka strony (footer) */
footer {
    background-color: var(--color-background-medium);
    color: var(--color-text-secondary);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--color-accent-blue);
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

/* Responsywność (dostosowanie do mniejszych ekranów) */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    .hero-section {
        min-height: 400px;
    }
    .feature-grid {
        grid-template-columns: 1fr; /* Kolumny jedna pod drugą na małych ekranach */
    }
}

/* Styl dla logo w nagłówku */
.program-logo {
    /* Opcja 1: Stały rozmiar (np. 120x120px lub 150x150px) */
    /* height: 120px; */
    /* width: auto; */ /* Zachowa proporcje */

    /* Opcja 2: Dostosuj rozmiar do wysokości tekstu H1 */
    height: 5em; /* Wysokość logo będzie 1.2 razy większa niż rozmiar czcionki H1 */
    width: auto;   /* Zachowa proporcje */
    
    vertical-align: middle; /* Wyrównuje logo do środka wysokości tekstu */
    margin-right: 15px; /* Dodaje odstęp między logo a tekstem */
}

/* Możesz dostosować rozmiar H1, jeśli logo wydaje się za małe/duże */
header h1 {
    display: flex; /* Użyj flexbox, aby ładnie ułożyć logo i tekst obok siebie */
    align-items: center; /* Wyśrodkuj elementy w pionie */
    justify-content: center; /* Wyśrodkuj całość w poziomie */
    gap: 15px; /* Dodatkowy odstęp między logo a tekstem, jeśli nie używasz margin-right na logo */
    margin-bottom: 5px;
    font-size: 2.8em; /* Możesz dostosować */
}