/* --- Zmienne CSS (Kolory z Logo i Tła) --- */
:root {
    --dark-background: #191B1E;
    --darker-accent: #111315; /* Nieco ciemniejszy odcień tła */
    --logo-orange: #FF8C00;   /* Przybliżony odcień pomarańczowego z logo */
    --logo-blue: #007BFF;     /* Przybliżony odcień niebieskiego z logo */
    --logo-purple: #8A2BE2;   /* Przybliżony odcień fioletowego z logo */
    --logo-pink: #FF1493;     /* Przybliżony odcień różowego z logo */
    --text-light: #F0F0F0;    /* Jasny kolor tekstu */
    --text-accent: #ADD8E6;   /* Jasny, lekko błękitny akcent do czytelności */
    --border-color: rgba(255, 255, 255, 0.08); /* Delikatna ramka/separator */
}

/* --- Globalne style --- */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--logo-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--logo-orange);
}

/* --- Nagłówek --- */
.header {
    width: 100%;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo-container {
    margin-left: 20px;
}

.logo {
    height: 55px;
    display: block;
}

/* --- Przełącznik Języków --- */
.language-switcher {
    margin-right: 20px;
    display: flex;
    gap: 18px;
}

.lang-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px 0;
    position: relative;
}

.lang-option:hover {
    color: var(--logo-blue);
    transform: translateY(-2px);
}

.lang-option.active {
    color: var(--logo-orange);
}

.lang-option.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--logo-orange);
}

.lang-option img {
    width: 26px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Sekcja Hero (WERSJA OSTATECZNA z poprawioną wysokością) --- */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* POPRAWKA: Używamy min-height zamiast height dla lepszej responsywności */
    min-height: 90vh; 
    
    /* POPRAWKA: Zmniejszamy padding, aby tekst był wyżej */
    padding: 140px 20px 40px 20px; 

    background: linear-gradient(135deg, var(--dark-background) 0%, var(--darker-accent) 50%, var(--dark-background) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

.hero-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin-bottom: 40px;
    color: var(--text-accent);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--logo-blue), var(--logo-purple), var(--logo-pink));
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, var(--logo-pink), var(--logo-purple), var(--logo-blue));
}

/* --- Sekcje Główne --- */
.section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--dark-background);
    border-top: 1px solid var(--border-color);
}

.section:nth-of-type(even) {
    background-color: var(--darker-accent);
}

.section h2 {
    font-size: 3em;
    margin-bottom: 25px;
    color: var(--logo-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section p {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--text-light);
}

/* --- Siatka Funkcji (Features Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 50px auto;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.07);
    padding: 35px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--logo-purple);
}

.feature-item h3 {
    color: var(--logo-pink);
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--logo-blue);
    padding-bottom: 10px;
    display: inline-block;
}

.feature-item p {
    font-size: 1em;
    color: var(--text-accent);
    margin: 0;
}

/* --- Sekcja Kontaktowa --- */
.contact-section {
    background-color: var(--darker-accent);
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-option-item {
    background-color: rgba(255, 255, 255, 0.07);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 300px;
    text-align: center;
}

.contact-option-item i {
    font-size: 3em;
    color: var(--logo-orange);
    margin-bottom: 15px;
}

.contact-option-item h3 {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-option-item p {
    color: var(--text-accent);
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    background: var(--logo-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background-color: var(--logo-purple);
    transform: translateY(-3px);
}

.contact-email {
    margin-top: 50px;
    font-size: 1.1em;
}

/* --- Stopka --- */
.footer {
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 0.95em;
    color: var(--text-accent);
    border-top: 1px solid var(--border-color);
}

/* --- Pływający Przycisk Kontaktowy --- */
.floating-contact-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--logo-blue), var(--logo-purple));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-contact-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, var(--logo-pink), var(--logo-purple));
}

/* --- Responsywność --- */
@media (max-width: 1024px) {
    .hero-section h1 { font-size: 2.8em; }
    .hero-section p { font-size: 1.1em; }
    .section h2 { font-size: 2.5em; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
}

/* Wklej ten blok w miejsce starego bloku @media (max-width: 768px) */

@media (max-width: 768px) {
    .header { flex-direction: column; padding: 10px 0; position: static; box-shadow: none; }
    .logo-container { margin: 10px 0; }
    .language-switcher { margin: 10px 0 0 0; gap: 10px; }
    .lang-option img { width: 20px; height: 14px; margin-right: 5px; }
    
    /* --- POPRAWKA JEST TUTAJ --- */
    .hero-section { 
        padding-top: 80px; 
        padding-bottom: 60px; /* Dodano brakujący padding */
        min-height: auto;     /* Zmieniono wysokość na automatyczną */
    }
    /* -------------------------- */

    .hero-section h1 { font-size: 2.2em; padding: 0 10px; }
    .hero-section p { font-size: 0.95em; padding: 0 15px; }
    .cta-button { padding: 12px 25px; font-size: 1em; }
    .section { padding: 40px 15px; }
    .section h2 { font-size: 2em; }
    .section p { font-size: 0.9em; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-item { padding: 25px; }
    .feature-item h3 { font-size: 1.4em; }
}

@media (max-width: 480px) {
    .logo { height: 45px; }
    .hero-section h1 { font-size: 1.8em; }
    .hero-section p { font-size: 0.85em; }
    .section h2 { font-size: 1.8em; }
    .feature-item h3 { font-size: 1.2em; }
}
/* --- Efekt "Niewidzialnego" Odsłaniania Nagłówka (WERSJA RESPONSYWNA) --- */

.hero-section h1 {
    font-size: 3.5em; /* Domyślny rozmiar dla dużych ekranów */
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    
    /* 1. Ustawiamy tło z gradientem */
    background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple), var(--logo-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;

    /* 2. Przygotowujemy maskę, która będzie się rozszerzać */
    mask-image: linear-gradient(to right, #000 100%, transparent 0%);
    mask-size: 0% 100%;
    mask-repeat: no-repeat;
    
    /* 3. Animujemy ROZMIAR maski */
    animation: reveal-by-size 2s cubic-bezier(0.6, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

/* 4. Definicja animacji */
@keyframes reveal-by-size {
    from {
        mask-size: 0% 100%;
    }
    to {
        mask-size: 100% 100%;
    }
}

/* --- POPRAWKI RESPONSYWNOŚCI DLA NAGŁÓWKA H1 --- */

/* Dla tabletów */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.8em; /* Zmniejszamy czcionkę */
    }
}

/* Dla większości telefonów */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2em; /* Jeszcze bardziej zmniejszamy */
        padding: 0 10px; /* Dodajemy mały margines po bokach */
    }
}

/* Dla bardzo małych telefonów */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.9em; /* Rozmiar na najmniejsze ekrany */
    }
}