/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 120px;
    /* Zwiększony padding na dole, aby zrobić miejsce na pasek kontaktowy */
    overflow: hidden;
}

/* Ken Burns efekt na tle */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../images/hand-mature-man-shoulder-his-wife-sister-with-handkerchief_274679-45572.avif');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: kenBurns 30s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.1) translate(1%, 1%);
    }
}

/*.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}*/

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    width: 100%;
}

.hero-heading-container {
    position: relative;
    margin-bottom: 30px;
    height: 160px;
    overflow: hidden;
}

.hero-heading {
    font-family: 'Cinzel', serif;
    font-size: 62px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.heading-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 62px;
    line-height: 1.3;
}

.current {
    opacity: 1;
}

.hero p {
    color: #ffffff;
    font-size: 19px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-color-darker);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 140px;
    }

    .hero-heading-container {
        height: 150px;
    }

    .hero-heading,
    .heading-line {
        font-size: 54px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 130px;
        padding-bottom: 150px;
        min-height: 80vh;
    }

    .hero-heading-container {
        height: 120px;
    }

    .hero-heading,
    .heading-line {
        font-size: 44px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
        letter-spacing: 1.5px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    @keyframes kenBurns {
        0% {
            transform: scale(1) translate(0, 0);
        }

        50% {
            transform: scale(1.03) translate(-1%, -1%);
        }

        100% {
            transform: scale(1.05) translate(1%, 1%);
        }
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 180px;
        /* Większy padding dla miejsca na pasek kontaktowy */
    }

    .hero-heading-container {
        height: 100px;
    }

    .hero-heading,
    .heading-line {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 13px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 13px;
    }

    @keyframes kenBurns {
        0% {
            transform: scale(1) translate(0, 0);
        }

        50% {
            transform: scale(1.02) translate(-0.5%, -0.5%);
        }

        100% {
            transform: scale(1.03) translate(0.5%, 0.5%);
        }
    }
}