/* ==========================================================================
   1. ZMIENNE (VARIABLES) I RESET
   ========================================================================== */
:root {
    --primary-color: #00ffcc;
    --primary-color-dim: rgba(0, 255, 204, 0.2);
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden; 
}

/* ==========================================================================
   2. LAYOUT GŁÓWNY I TŁO (THREE.JS)
   ========================================================================== */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    outline: none;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 20px 200px 20px;
}

/* ==========================================================================
   3. TYPOGRAFIA I NAGŁÓWEK
   ========================================================================== */
header {
    text-align: center;
    margin-bottom: 250px;
    padding: 20px;
    perspective: 1000px; 
}

h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--text-main);
    text-shadow: 0 0 15px var(--primary-color), 0 0 40px var(--primary-color);
    opacity: 0; 
    animation: flyFromDeep 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.subtitle {
    
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: flyFromDeep 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}
/* Dodaj TO bezpośrednio pod klasą .subtitle w CSS */
.subtitle::after {
    content: '█';
    color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 5px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

p, li {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

ul {
    margin-left: 20px;
    list-style-type: none;
    margin-top: 15px;
}

ul li {
    margin-bottom: 10px;
}

ul li::before {
    content: ">>";
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 15px;
    font-family: monospace;
}

/* ==========================================================================
   4. SEKCJE (GLASSMORPHISM)
   ========================================================================== */
.seo-section {
    position: relative;
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    scroll-margin-top: 50px;
    
    margin: 80px auto;
    padding: 60px;
    max-width: 900px;
    border-radius: 20px; 
    background: rgba(10, 15, 12, 0.15); 
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid var(--primary-color-dim);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),             
                0 0 30px rgba(0, 255, 204, 0.15),           
                inset 0 0 20px rgba(0, 255, 204, 0.05);     
}

.seo-section.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
}

/* ==========================================================================
   5. UI: PRZYCISKI
   ========================================================================== */
.pricing-buttons-container {
    margin-top: 50px;
    opacity: 0;
    animation: fadeUpButtons 1s ease-out forwards;
    animation-delay: 1.2s; 
}

.pricing-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.cyber-button {
    display: inline-block;
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid var(--primary-color-dim);
    border-radius: 25px; 
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cyber-button:hover {
    background: var(--primary-color-dim);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
    transform: translateY(-3px);
}

.other-brands-note {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
}

.other-brands-note strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================================================
   6. UI: TABELE
   ========================================================================== */
.price-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent; 
}

.price-table th, .price-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1); 
}

.price-table td {
    color: #cccccc;
}

.price-table td:first-child {
    color: var(--text-main);
    font-weight: 600;
}

.price-table tbody tr:hover {
    background-color: rgba(0, 255, 204, 0.08);
}

/* ==========================================================================
   7. SEKCJA KONTAKTOWA
   ========================================================================== */
.contact-section {
    background: #111; 
    padding: 60px 20px; 
    border-top: 1px solid var(--primary-color);
}

.contact-container {
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 50px;
}

.contact-form-wrapper, .contact-info-wrapper {
    flex: 1; 
    min-width: 320px;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.contact-form {
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 14px; 
    background: #222; 
    border: 1px solid #444; 
    color: white; 
    border-radius: 12px; 
    outline: none;
    font-family: var(--font-body);
}

.contact-form textarea {
    height: 100px; 
    resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}

.cyber-button-solid {
    padding: 16px; 
    background: var(--primary-color); 
    color: black; 
    font-weight: bold; 
    border: none; 
    border-radius: 25px; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.3s;
}

.cyber-button-solid:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}

.contact-info-wrapper p {
    color: white; 
    margin-bottom: 20px;
}

.map-container {
    height: 320px; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid #333;
}

.map-container iframe {
    border: 0; 
    filter: grayscale(1) invert(0.9) contrast(1.2); 
    opacity: 0.8;
}

/* ==========================================================================
   8. ANIMACJE
   ========================================================================== */
@keyframes flyFromDeep {
    0% { opacity: 0; transform: translateZ(-1000px) scale(0.01); filter: blur(20px); }
    100% { opacity: 1; transform: translateZ(0) scale(1); filter: blur(0px); }
}

@keyframes fadeUpButtons {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   9. NEONOWY PRZYCISK TELEFONU
   ========================================================================== */
/* ==========================================================================
   9. NEONOWY PRZYCISK TELEFONU (POMNIEJSZONY x2)
   ========================================================================== */
.neon-phone-btn {
    display: inline-block;
    margin-top: 15px; /* Mniejszy margines góry */
    padding: 8px 23px; /* Zmniejszony padding */
    
    /* Typografia - mniejsze cyfry */
    font-family: var(--font-heading);
    font-size: 1.4rem; /* Zmniejszony rozmiar czcionki (z 2.8rem) */
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px; /* Mniejszy odstęp między literami */
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color); /* Delikatniejszy cień tekstu */
    
    /* Tło i obramowanie z gradientową poświatą */
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.15) 0%, rgba(0, 100, 80, 0.05) 100%);
    border: 1px solid var(--primary-color); /* Cieńsze obramowanie */
    border-radius: 25px; /* Mniejszy promień zaokrąglenia */
    
    /* Poświata (zewnętrzna i wewnętrzna) - delikatniejsza */
    box-shadow: 
        0 0 15px rgba(0, 255, 204, 0.4), 
        inset 0 0 8px rgba(0, 255, 204, 0.2);
    
    /* Animacja */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efekt pulsowania / rozświetlenia po najechaniu myszką (również delikatniejszy) */
.neon-phone-btn:hover {
    transform: scale(1.03) translateY(-3px); /* Mniejszy efekt skali i uniesienia */
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.3) 0%, rgba(0, 150, 120, 0.1) 100%);
    box-shadow: 
        0 0 25px rgba(0, 255, 204, 0.6), 
        inset 0 0 15px rgba(0, 255, 204, 0.4);
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color);
}
/* ==========================================================================
   10. POPRAWKI DLA TELEFONÓW (MOBILE / RWD) - PANCERNA WERSJA iOS
   ========================================================================== */

html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    /* Wyłączamy perspektywę, która na iPhonach "rozsadza" ekran przy animacjach */
    header {
        perspective: none !important;
        padding: 15px 5px;
        margin-bottom: 60px; 
    }

    /* GŁÓWNY TYTUŁ - VMINT DLA SKALOWANIA I PANCERNE ŁAMANIE */
    h1 {
        font-size: 10vmin !important; /* Używamy vmin, aby skalować czcionkę do szerokości ekranu na iPhone'ie */
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        width: 100%;
        max-width: 100% !important;
        overflow-x: hidden;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-top: 15px;
    }

    .neon-phone-btn {
        font-size: 1.2rem;
        padding: 10px 20px;
        margin-top: 15px;
    }

   /* --- PANCERNE FOLIE OD BRZEGU DO BRZEGU (PEŁNY EKRAN) --- */
    .content {
        padding: 50px 0 100px 0 !important;
        width: 100% !important;
        max-width: 100vw !important; /* Wymuszamy maksymalną szerokość */
        margin: 0 !important;
    }

    .seo-section {
        /* Magiczna sztuczka z calc(), która rozbija wszelkie marginesy i przykleja element do krawędzi szybki telefonu */
        width: 100vw !important; 
        max-width: 100vw !important;
        margin-top: 40px !important;
        margin-bottom: 40px !important;
        margin-left: calc(-50vw + 50%) !important; /* Rozlewa w lewo do samego końca */
        margin-right: calc(-50vw + 50%) !important; /* Rozlewa w prawo do samego końca */
        
        padding: 30px 15px !important; /* Tekst w środku nadal ma oddech, żeby nie dotykał ramki */
        
        border-radius: 0 !important; /* Kanciaste rogi */
        border-left: none !important; /* Usuwamy lewą świecącą linię, bo i tak wychodzi za ekran */
        border-right: none !important; /* Usuwamy prawą świecącą linię */
        box-sizing: border-box !important;
    }
    
    /* --- NOWE ZMIANY: MNIEJSZE CZCIONKI W SEKCJACH --- */
    .seo-section h2 {
        font-size: 1.5rem !important; /* Mniejsze nagłówki w sekcjach */
    }

    .seo-section p, 
    .seo-section li {
        font-size: 0.95rem !important; /* Mniejszy tekst w akapitach */
        line-height: 1.6 !important;
    }

    /* --- NOWE ZMIANY: ZMNIEJSZONY CENNIK --- */
    .price-table th, 
    .price-table td {
        padding: 10px 5px !important;
        font-size: 0.85rem !important; /* Znacznie mniejsze literki w tabelkach cennika */
    }
}
/* ==========================================================================
   11. PRZEZROCZYSTE SEKCJE Z POŚWIATĄ (WSZYSTKIE)
   ========================================================================== */
.seo-section {
    /* Wyłączamy tło i rozmycie szkła dla absolutnie wszystkich sekcji */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* Ramki i cienie zostają nienaruszone */
}
/* ==========================================================================
   12. PRZEZROCZYSTA SEKCJA KONTAKTOWA
   ========================================================================== */
.contact-section {
    background: transparent !important; /* Zdejmuje całkowicie twarde, czarne tło */
    /* Górna zielona ramka (border-top) zostaje nienaruszona! */
}

/* Szklany efekt dla pól do wpisywania tekstu w formularzu */
.contact-form input, 
.contact-form textarea {
    background: rgba(10, 15, 12, 0.4) !important; /* Półprzezroczyste zamiast sztywnego #222 */
    backdrop-filter: blur(4px); /* Lekkie rozmycie tła pod spodem */
    border: 1px solid rgba(0, 255, 204, 0.3) !important; /* Delikatniejsza, zielonkawa ramka */
}

/* Mocniejsze podświetlenie pola, w którym użytkownik aktualnie pisze */
.contact-form input:focus, 
.contact-form textarea:focus {
    background: rgba(0, 255, 204, 0.05) !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
/* ==========================================================================
   13. ŚWIECĄCA LINIA LASERA (SEKCJA KONTAKTOWA) - WERSJA NIEZAWODNA
   ========================================================================== */
.contact-section {
    border-top: none !important; 
    position: relative;
    width: 100%; /* Upewniamy się, że sekcja trzyma wymiar */
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Sztywno 100% od lewej do prawej */
    height: 2px; 
    background: var(--primary-color); 
    
    /* Potężna poświata */
    box-shadow: 
        0 0 15px var(--primary-color), 
        0 0 30px rgba(0, 255, 204, 0.6),
        0 5px 20px rgba(0, 255, 204, 0.2);
    
    z-index: 10;
}