/* --- ZMIENNE I RESET --- */
:root {
    --bg-dark: #000814;
    --bg-secondary: #001d3d;
    --accent-blue: #003566;
    --accent-yellow: #ffc300;
    --neon-yellow: #ffd60a;
    --text-white: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 29, 61, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    color: var(--neon-yellow);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-yellow);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION Z TŁEM --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    padding-top: 80px;
    /* Łączymy zdjęcie z przyciemnieniem (linear-gradient) */
    background: linear-gradient(rgba(0, 8, 20, 0.8), rgba(0, 8, 20, 0.7)), 
                url('zdjecia/background2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt paralaksy - zdjęcie stoi, strona płynie */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.hero-text { flex: 1; }

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.neon-text {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 214, 10, 0.5);
}

.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 5px;
}

.btn-neon:hover {
    background-color: var(--neon-yellow);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-yellow);
}

.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--accent-blue);
}

/* --- OFERTA --- */
.offer-section {
    padding: 80px 50px;
    background-color: var(--bg-secondary);
    text-align: center;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    background-color: var(--bg-dark);
    padding: 40px 20px;
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    transition: 0.3s;
}

.offer-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.4);
}

.icon-box {
    font-size: 40px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* --- NOWOCZESNA GALERIA KAFELKOWA --- */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--bg-dark); /* Ciemne tło całej sekcji */
    text-align: center;
}

.gallery-grid {
    display: grid;
    /* Automatyczne kolumny - dopasują się do szerokości ekranu */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px; /* Zaokrąglone rogi kart */
    overflow: hidden;
    aspect-ratio: 16 / 10; /* Proporcje karty (pozioma) */
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--accent-blue); /* Tło pomocnicze zanim załaduje się zdjęcie */
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom zdjęcia przy najechaniu */
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Granatowa przezroczysta warstwa - zdjęcie lekko przebija */
    background: rgba(0, 53, 102, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.4s ease;
}

.gallery-item:hover .overlay {
    /* Przy najechaniu tło staje się jaśniejsze/bardziej przejrzyste */
    background: rgba(0, 53, 102, 0.3); 
}

.overlay h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Cień pod napisem dla czytelności */
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Na małych telefonach jedna karta na całą szerokość */
    }
}

/* Responsywność dla telefonów */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Na telefonie jedna karta pod drugą */
    }
}
/* --- LIGHTBOX --- */
#lightbox {
    display: none; /* JS zmienia na flex */
    position: fixed;
    z-index: 3000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 5, 10, 0.98);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--neon-yellow);
}

.close-lightbox {
    position: absolute;
    top: 25px; right: 45px;
    color: white;
    font-size: 60px;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-yellow);
    font-size: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 20px;
    cursor: pointer;
    border-radius: 10px;
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- KONTAKT --- */
.contact-section {
    padding: 80px 20px 20px;
    background-color: var(--bg-secondary);
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-item {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    border: 1px solid var(--accent-blue);
}

.contact-item i {
    font-size: 40px;
    color: var(--neon-yellow);
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
}

footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid var(--accent-blue);
    padding-top: 20px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; left: 0;
        background-color: var(--bg-secondary);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .hamburger { display: block; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
}