:root {
    --primary-color: #1a237e; /* Głęboki granat */
    --primary-gradient: linear-gradient(135deg, #1a237e, #3949ab);
    --secondary-color: #ff4081; /* Nowoczesny różowy akcent */
    --secondary-gradient: linear-gradient(135deg, #ff4081, #f50057);
    --background-color: #f5f5f7;
    --card-background: rgba(255, 255, 255, 0.95);
    --text-color: #2c3e50;
    --light-gray-color: #e0e0e0;
    --white-color: #fff;
    --header-height: 70px;
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Style dla galerii */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Style dla modalu */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    transition: all 0.3s ease;
    opacity: 0;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 95%;
    max-width: 1400px;
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content img {
    transform: scale(1);
    opacity: 1;
}

.modal-content img.changing {
    opacity: 0;
    transform: scale(0.95);
}

/* Style dla przycisków nawigacji */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    z-index: 1001;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Animacja przycisków przy hover */
.nav-btn:hover {
    padding: 30px 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 1001;
}

.close:hover {
    color: var(--secondary-color);
    opacity: 1;
    transform: rotate(90deg);
}

/* Responsywność galerii */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Globalne style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--white-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

section:nth-of-type(even) {
    background-color: var(--background-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--white-color);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
}

.btn:hover::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Nagłówek i nawigacja */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    height: 100%;
}

.main-nav .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px;
}

.main-nav .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
    background: rgba(255, 64, 129, 0.1);
}

/* Przełącznik języków */
.lang-switcher {
    display: flex;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.lang-btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.lang-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: none;
}

/* Sekcja Hero */
.hero {
    position: relative;
    height: 60vh; /* Zmniejszona wysokość */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    overflow: hidden; /* Ukrycie części obrazu wychodzącej poza kontener */
}

.hero {
    --current-hero-image: url('assets/hero.png');
    --next-hero-image: url('assets/hero.png');
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.hero::before {
    z-index: -2;
    background: 
        linear-gradient(
            135deg,
            rgba(26, 35, 126, 0.9),
            rgba(57, 73, 171, 0.8),
            rgba(255, 64, 129, 0.7)
        ),
        var(--current-hero-image) no-repeat center center/cover;
    animation: kenburns 18s ease-out forwards,
               gradientMove 15s ease infinite;
    background-size: 400% 400%, cover;
}

.hero::after {
    z-index: -1;
    opacity: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(26, 35, 126, 0.9),
            rgba(57, 73, 171, 0.8),
            rgba(255, 64, 129, 0.7)
        ),
        var(--next-hero-image) no-repeat center center/cover;
    background-size: cover;
}

.hero.transitioning::after {
    opacity: 1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%, center; }
    50% { background-position: 100% 50%, center; }
    100% { background-position: 0% 50%, center; }
}

@keyframes kenburns {
    from {
        transform: scale(1.15);
    }
    to {
        transform: scale(1);
    }
}

/* Animacja dla tła */
@keyframes kenburns {
    from {
        transform: scale(1.15); /* Zwiększony efekt zoomu */
    }
    to {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1; /* Zapewnia, że treść jest nad tłem */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

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

/* Realizacje */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden; /* Kluczowe dla efektu zoomu w kontenerze */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zapewnia dopasowanie obrazu */
    display: block;
    transition: transform 0.5s ease-in-out; /* Płynne przejście */
}

.gallery-item:hover img {
    transform: scale(1.1); /* Efekt przybliżenia przy najechaniu */
}

/* Oferta */
.offer-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.offer-cards .card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow);
    text-align: center;
    flex-basis: 30%;
    min-width: 280px;
    transition: all 0.3s ease;
}

.offer-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.offer-cards .card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Kontakt */
.contact-form {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
    transform: translateY(-2px);
}

.contact-form button {
    align-self: center;
}

.contact-details {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

/* Stopka */
.main-footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px;
}

/* Style dla powiadomień */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #4CAF50;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

/* Responsywność */
@media(max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .main-nav {
        flex-direction: column;
        height: auto;
    }
    .main-nav .logo {
        padding: 20px 0;
    }
    .main-nav ul {
        padding-bottom: 15px;
    }
    .main-nav ul li {
        margin: 0 10px;
    }
    html {
        scroll-padding-top: 120px; /* Dostosowanie do wyższego nagłówka */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .offer-cards {
        flex-direction: column;
        align-items: center;
    }
}
