/* Global styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('house1/photo/dom1.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

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

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #cd9b47;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: rgb(175, 127, 43);
}

/* Responsiveness for Hero Section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Models Section */
.models {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.models h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.model-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.model {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.model h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.model p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.configure-button a {
    color: white; /* Ustawienie koloru tekstu na biały */
    text-decoration: none; /* Usunięcie podkreślenia */
    display: block; /* Sprawia, że cały przycisk jest klikalny */
    width: 100%; /* Dostosowanie do szerokości przycisku */
    height: 100%;
}

.configure-button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.configure-button:hover {
    background: #555;
}
.model:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsiveness for Models Section */
@media (max-width: 768px) {
    .model-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    padding: 10px;
    text-align: center;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* Logo styles */
.logo {
    position: absolute;
    top: 120px; /* Zwiększono odstęp, aby logo było na pewno poniżej navbaru */
    left: 20px;
    z-index: 1000;
}

.logo img {
    max-height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Logo responsiveness */
@media (max-width: 768px) {
    .logo {
        top: 80px; /* Zmniejszony odstęp na tabletach */
        left: 15px;
    }

    .logo img {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        top: 50px; /* Zmniejszony odstęp na telefonach */
        left: 10px;
    }

    .logo img {
        max-height: 100px;
    }
}

/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}
