/* Podstawowe resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #eee; /* Jasny tekst na ciemnym tle */
    background-color: #0d0d0d; /* Bardzo ciemne tło bazowe */
    overflow-x: hidden; /* Zapobiega poziomemu scrollowaniu */
}

/* Globalne style dla sekcji */
.section-padded {
    padding: 100px 20px;
}

.text-center {
    text-align: center;
}

.light-bg {
    background-color: #f8f8f8;
    color: #333;
}

.dark-bg {
    background-color: #0d0d0d;
    color: #eee;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: inherit; /* Dziedziczy kolor z sekcji */
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* --- Kontener globalny --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Nawigacja główna --- */
.main-nav {
    position: fixed; /* Będzie przyklejona do góry */
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(13, 13, 13, 0.95); /* Lekko przezroczyste tło */
    padding: 15px 0;
    z-index: 1000; /* Upewnia się, że nawigacja jest nad innymi elementami */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8em;
    color: #00e5ff; /* Błękit */
    text-decoration: none;
    text-shadow: 0 0 3px rgba(0, 229, 255, 0.6);
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.2);
    text-stroke: 0.3px rgba(255, 255, 255, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: #e0f7fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #00e5ff; /* Błękit */
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #00e5ff; /* Błękit */
}

/* Hamburger menu (dla responsywności) */
.hamburger {
    display: none; /* Domyślnie ukryty na desktopie */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Klasy dla otwartego hamburgera */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Sekcja Nagłówka (Hero Section) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Pełna wysokość viewportu */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Ważne dla obrazu tła */
    background-image: url('images/background.jpg'); /* Pamiętaj, aby plik background.jpg był w folderze images! */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.background-video,
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6);
}

.background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.7));
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: none;
}

.highlight-text {
    color: #00e5ff;
    text-shadow:
        0 0 2px #00e5ff,
        0 0 4px #00e5ff,
        0 0 6px #00e5ff;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-stroke: 1px rgba(255, 255, 255, 0.3);
    display: block;
    transform: scale(1.0);
    margin-bottom: 10px;
}

.rest-of-title {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    color: #e0f7fa;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}


.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #e0f7fa;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(0, 229, 255, 0.6);
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 18px 35px;
    margin: 0 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: #00e5ff;
    color: #0d0d0d;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.primary-btn:hover {
    background-color: #00c0d1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 1);
}

.secondary-btn {
    background-color: transparent;
    color: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.secondary-btn:hover {
    background-color: #00e5ff;
    color: #0d0d0d;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 1);
}

/* Animacje */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Układ content-left / content-right (naprzemienny) --- */
.content-left,
.content-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.content-left .image-half,
.content-right .image-half {
    flex: 1 1 500px;
    order: 1;
}

.content-left .text-half,
.content-right .text-half {
    flex: 1 1 500px;
    order: 2;
}

.content-right .image-half {
    order: 2;
}

.content-right .text-half {
    order: 1;
}

/* --- STYLE DLA SEKCJI "O NAS" Z OBRAZEM TŁA --- */
#about {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    color: #eee; /* Jasny tekst na tle */
    background-image: url('images/o-nas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Opcjonalnie: stałe tło przy przewijaniu */
}

/* Dodajemy overlay na tło dla lepszej czytelności tekstu */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Ciemniejszy overlay dla lepszego kontrastu z tekstem */
    z-index: 1;
}

/* Zapewniamy, że zawartość jest nad overlayem */
#about .container {
    position: relative;
    z-index: 2;
}

/* Ważne: Ukrywamy DIV `.image-half`, który wcześniej zawierał obraz */
#about .image-half {
    display: none;
}


/* --- Sekcja Usług (Services) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3.5em;
    color: #00e5ff;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.6);
    margin-bottom: 20px;
}

/* --- Sekcja Kontakt (Contact) --- */
#contact {
    position: relative; /* Ważne dla pseudo-elementu */
    overflow: hidden; /* Upewnia się, że tło nie wyjdzie poza sekcję */
    padding: 100px 20px;
    color: #eee; /* Jasny tekst na tle */
    background-image: url('images/o-nas.jpg'); /* UŻYJ TEGO SAMEGO OBRAZU */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Opcjonalnie: stałe tło przy przewijaniu */
}

/* Overlay dla sekcji kontaktowej, aby tekst był czytelny */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Silniejszy overlay, aby tekst był wyraźny */
    z-index: 1;
}

/* Zapewniamy, że zawartość jest nad overlayem */
#contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 300px;
    text-align: left;
    padding: 20px;
}

.contact-intro {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-link {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e0f7fa;
    text-decoration: underline;
}

.contact-form {
    flex: 1 1 400px;
}

.contact-form form {
    background-color: rgba(34, 34, 34, 0.9); /* Delikatnie przezroczyste tło formularza */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #eee;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
}

/* --- Stopka (Footer) --- */
.main-footer {
    padding: 40px 20px;
    background-color: #111;
    color: #aaa;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

.main-footer p {
    margin-bottom: 10px;
}

.footer-link {
    color: #00e5ff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e0f7fa;
    text-decoration: underline;
}

/* --- Ikony społecznościowe w stopce --- */
.social-icons {
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-icon {
    color: #aaa;
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #00e5ff;
    transform: translateY(-5px) scale(1.1);
}


/* --- Responsywność --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-buttons .btn {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 300px;
    }

    h2 {
        font-size: 2em;
    }

    .section-padded {
        padding: 60px 15px;
    }

    .contact-info,
    .contact-form {
        flex: 1 1 100%;
    }

    /* Nawigacja mobilna */
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(13, 13, 13, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5em;
    }

    /* Dopasowanie układu content-left/right na małych ekranach */
    .content-left .image-half,
    .content-left .text-half,
    .content-right .image-half,
    .content-right .text-half {
        flex: 1 1 100%;
        order: initial;
    }

    .content-right .image-half {
        order: initial;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
}

/* Klasa dodawana przez JS do body, aby zapobiec scrollowaniu podczas otwarcia menu mobilnego */
body.no-scroll {
    overflow: hidden;
}

/* --- Styl dla ciekawostki --- */
.ciekawostka-hidden {
    display: none; /* Domyślnie ukrywa ciekawostkę */
}

#ciekawostka-energo,
#ciekawostka-smart,
#ciekawostka-druk3d { /* Zmieniono selektor, aby objąć wszystkie ciekawostki */
    background-color: rgba(0, 229, 255, 0.1); /* Delikatnie błękitne tło */
    border-left: 4px solid #00e5ff; /* Błękitna ramka z lewej */
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-style: italic;
    color: #e0f7fa; /* Jasny tekst */
    text-align: left; /* Tekst wyrównany do lewej w ramce */
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); /* Delikatny blask */
}

#ciekawostka-energo p,
#ciekawostka-smart p,
#ciekawostka-druk3d p { /* Zmieniono selektor */
    margin: 0; /* Usuwa domyślny margines z paragrafu wewnątrz ciekawostki */
    text-align: left; /* Upewnij się, że tekst paragrafu jest wyrównany do lewej */
    font-size: 0.95em;
}

#ciekawostka-energo strong,
#ciekawostka-smart strong,
#ciekawostka-druk3d strong { /* Zmieniono selektor */
    color: #00e5ff; /* Podświetlenie słowa "Ciekawostka" */
}