/* HERO SECTION FINAL - DZIAŁAJĄCA KARUZELA + CIEMNE TŁO */

/* GŁÓWNE TŁO STRONY - PROSTE I SKUTECZNE */
body {
    background-color:transparent !important;
}

html {
    background-color: transparent !important;
}

/* Hero Section - podstawowe ustawienia */
.hero-section {
    position: relative !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* CAROUSEL - FIXED BACKGROUND */
.hero-carousel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important;
}

.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    opacity: 0 !important;
    transition: opacity 2s ease-in-out !important;
}

.hero-slide.active {
    opacity: 1 !important;
}

/* Hero Overlay - CIEMNIEJSZA NAKŁADKA */
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important; /* ZMIANA: 0.6 zamiast 0.4 */
    z-index: 1 !important;
}

/* Hero Layout - 1/3 - 2/3 - 3/3 */
.hero-top {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: flex-end !important; /* ZMIANA: flex-end zamiast center */
    justify-content: center !important;
    text-align: center !important;
    padding: 2rem !important;
    padding-top: 8rem !important; /* DODANE: odstęp od góry */
}

.hero-middle {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 2rem !important;
}

.hero-bottom {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 2rem !important;
}

/* Hero Typography */
.hero-main-title {
    color: white !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.7) !important;
    font-weight: 800 !important;
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    background: transparent !important;
    -webkit-text-fill-color: white !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* CIENIE DLA OPISU W HERO */
.hero-description {
    text-shadow: 
        0 4px 12px rgba(0,0,0,1),
        0 0 25px rgba(0,0,0,0.9),
        0 6px 18px rgba(0,0,0,0.8) !important;
}

/* CIENIE DLA TEKSTÓW POD IKONKAMI */
.feature-item span,
.hero-features .feature-item span {
    text-shadow: 
        0 3px 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,0.9),
        0 5px 15px rgba(0,0,0,0.8) !important;
}

/* CIENIE DLA WSZYSTKICH TEKSTÓW W HERO */
.hero-section p,
.hero-section span,
.hero-bottom p,
.hero-bottom span {
    text-shadow: 
        0 3px 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,0.9) !important;
}

.hero-description {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    max-width: 700px !important;
}

/* Hero Buttons */
.hero-buttons {
    display: flex !important;
    gap: 2rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.hero-buttons .btn {
    margin: 0.5rem !important;
}

/* Hero Features */
.hero-features {
    display: flex !important;
    gap: 3rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

.feature-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: white !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
}

.feature-item i {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    color: #667eea !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) !important;
}

.feature-item span {
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* Statistics Section - PIERWSZE tło po hero */
.stats-section {
    position: relative !important;
    z-index: 3 !important;
    background: transparent !important;
    padding: 4rem 2rem !important;
    margin-top: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
}

/* Wszystkie sekcje po hero - białe tło */
#about,
.about,
.accidents,
.services,
.contact,
.footer {
    position: relative !important;
    z-index: 3 !important;
    background: rgba(0, 0, 0, 0.922) !important;
    margin-top: 0 !important;
}

/* Ukryj niepotrzebne elementy */
.hero-content,
.hero-title,
.hero-subtitle {
    display: none !important;
}

/* Statystyki - styling */
.stat-item {
    text-align: center !important;
    padding: 2rem !important;
}

.stat-number {
    font-size: 3rem !important;
    font-weight: bold !important;
    color: #667eea !important;
    margin-bottom: 0.5rem !important;
}

.stat-label {
    color: #666 !important;
    font-size: 1rem !important;
}

/* Grid dla statystyk */
.stats-section .row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.stats-section .col-md-4 {
    flex: 1 !important;
    min-width: 250px !important;
}

/* FORMULARZ KONTAKTOWY - CHECKBOX W PRAWO */
.contact .form-group.checkbox {
    display: flex !important;
    justify-content: flex-end !important; /* Przesunięcie w prawo */
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
}

.contact .form-group.checkbox input[type="checkbox"] {
    margin-right: -15rem !important;
}

.contact .form-group.checkbox label {
    text-align: right !important;
    margin: 0 !important;
}

/* SMOOTH CAROUSEL TRANSITIONS */
.hero-slide {
    will-change: opacity !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem !important;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
    }
    
    .hero-features {
        gap: 2rem !important;
    }
    
    .hero-buttons {
        gap: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        width: 200px !important;
        text-align: center !important;
    }
    
    .stats-section .row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Mobile - disable fixed background for performance */
    .hero-slide {
        background-attachment: scroll !important;
    }
    
    /* Mobile - checkbox na środku */
    .contact .form-group.checkbox {
        justify-content: center !important;
    }
    
    .contact .form-group.checkbox label {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .hero-features {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-top,
    .hero-middle,
    .hero-bottom {
        padding: 1rem !important;
    }
    
}
