
/* Reset stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
}

.body {
    align-items: center;
    justify-content: center;
}

/* Sekcja hero */
.header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
}

.filters {
    margin-top: 10px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    background: white;
    color: #022841;
    border-radius: 5px;
    font-size: 1em;
    transition: 0.3s;
    justify-content: center;
}

.filter-btn:hover {
    background: #ffffff;
    color: rgb(0, 1, 85);
}

/* Siatka produktów */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Karta produktu */
.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Zapewnia, że obraz i tekst trzymają się góry i dołu */
    align-items: center;
    height: 100%; /* Żeby wszystkie karty miały równą wysokość */
}

.product-card p {
    bottom: 10px;
    font-size: 1.25rem;
    color: darkblue;
}

.product-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.3s ease-out;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(228, 4, 4, 0.2);

}

.product-card:hover h2 {
    transform: translateY(-10px);
    transition: transform 0.3s;
}

.product-card:hover .product-description {
    opacity: 1;
    max-height: 50px;
}

/* Podgląd na hover */
.product-image {
    width: 100%;
    height: 200px; /* Stała wysokość dla lepszego wyglądu */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zamiast 'cover' - zawiera całe zdjęcie bez przycinania */
    transition: transform 0.5s ease-in-out;
}

.product-card:hover .product-image img {
    transform: scale(1.2) rotate(2deg); /* Powiększenie i lekki obrót */
}

/* Responsywność */
@media (max-width: 768px) {
    .filter-btn {
        font-size: 0.9em;

        padding: 8px 15px;
    }
}


.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid white;
    padding-top: 10px;
}

/* Efekt cząsteczek w tle */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: -1;
}


.scroll-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 20px;
    background-color: #ffffff;
    color: rgb(18, 4, 58);
    font-size: 50px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-btn:hover {
    background-color: rgb(18, 4, 58);
    color: white;
}

.scroll-btn span {
    display: block;
    font-size: 24px;
    margin-top: 10px;
}


/* Sekcja informacji kontaktowych */
.contact-info {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.contact-method:hover {
    transform: scale(1.05);
}

.contact-method h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.contact-method p {
    margin-bottom: 20px;
}

.contact-method a {
    color: white;
}
.btn {
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}
