/* Globalne ustawienia */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('images/hero-background.jpg') center / cover no-repeat fixed;
}

/* Nagłówek */
.header {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(51, 51, 51, 0.8); /* Lekko przezroczyste tło dla czytelności */
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo {
    width: 250px;
    height: auto;
}

.nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

.nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ff5733; /* Kolor tekstu po najechaniu */
}

/* Sekcja Hero */
.hero {
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    min-height: 400px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background-color: #ff5733;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    background-color: #e04a29;
    transform: scale(1.05);
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    color: white; /* Biały kolor dla nagłówków */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Cień tekstu dla lepszej widoczności */
}

/* Kontakt - dane kontaktowe */
.contact-info {
    color: white; /* Biały kolor tekstu */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Cień tekstu */
    font-size: 1.5rem; /* Zwiększenie czcionki */
    margin-top: 2rem;
    text-align: center;
    padding: 20px;
    background-color: rgba(51, 51, 51, 0.7); /* Lekko przezroczyste tło */
    border-radius: 8px; /* Zaokrąglone rogi */
}

.contact-info h3 {
    font-size: 2rem; /* Większy rozmiar nagłówka */
    margin-bottom: 1rem;
}

/* Stopka */
.footer {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background-color: rgba(51, 51, 51, 0.8); /* Lekko przezroczyste tło dla czytelności */
}

/* Stylowanie dla karty samochodów */
.car-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.car-card {
    background-color: rgba(255, 255, 255, 0.9); /* Lekko przezroczyste tło dla czytelności */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    width: 80%;
    margin: 1rem 0;
}

/* Galeria zdjęć */
.gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gallery img {
    max-width: 150px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 4px solid white;
    border-radius: 8px;
}

.lightbox:target {
    display: flex;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
