.hero-section {
    position: relative;
    width: 100%;
    padding: 0px;
    padding-top: 50px;
    align-items: center;
    justify-content: center;
    color: #fff;
    height: auto;
    text-align: left;
    background: -webkit-linear-gradient(0deg, rgb(154, 179, 201), rgb(229, 185, 159));
    background: -moz-linear-gradient(0deg, rgb(154, 179, 201), rgb(229, 185, 159));
    background: linear-gradient(0deg, rgb(154, 179, 201), rgb(229, 185, 159));
}

@keyframes slideInLeft {
    from {
        /* Начинаем за левым краем */
        transform: translateX(-50%);
        /* И полностью прозрачным */
        opacity: 0;
    }

    to {
        /* Заканчиваем на своем месте */
        transform: translateX(0);
        /* И полностью видимым */
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        /* Начинаем за правым краем */
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-image {
    animation: slideInLeft 1s ease-out forwards;
}

.home-text-content {
    animation: slideInRight 1s ease-out forwards;
}






/* Новий контейнер для сітки (2 колонки) */
.hero-section .home-container {
    display: grid;
    /* Дві колонки: 40% під фото, 60% під текст. Можете змінити на "1fr 1fr" для рівних */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* Центрування вмісту по вертикалі */
    gap: 50px;
    /* Проміжок між колонками */
    max-width: 1240px;
    /* Загальна ширина макету */
    width: 100%;
    margin: 0 auto;
    /* Центрування самого контейнера */
}

/* Стилі для колонки з фото */
.hero-section .home-image {
    text-align: center;
    /* Центруємо фото в колонці */
}

.hero-section .home-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.hero-section .home-text-content {
    position: relative;
    z-index: 2;
    top: -10%;
    max-width: 100%;
    padding: 0;
    text-align: left;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-section .home-text-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-section .home-text-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .home-text-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 500px;
}

/* =====================================================
   НОВІ СТИЛІ ДЛЯ КНОПКИ 
   ===================================================== */

.hero-section .cta-button {
    background: #3cb878;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 700;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background-image: none;
    box-shadow: 0 4px 15px rgba(60, 184, 120, 0.4);
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.hero-section .cta-button:hover {
    background: #34a56a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 184, 120, 0.5);
}

.hero-section .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(60, 184, 120, 0.3);
}



/* =================================
   квадрати на фоні
   ================================= */

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;

}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}



/* =================================
  волни
   ================================= */


.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -8px;
    /*Fix for safari gap*/
    min-height: 100px;
    max-height: 150px;
}

.box_waves {
    position: absolute;
    bottom: 0px;
    width: 100%;

}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    .waves {
        height: 60px;
        min-height: 60px;
    }

    .header {
        padding-top: 30px;
    }

    .box_waves {
        bottom: -1px;
        width: 100%;
        left: 0;
    }


    .hero-section {
        padding: 20px 15px;
        min-height: calc(100vh - 50px);
    }

    .hero-section .home-container {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    /* * На мобільних фото буде зверху, а текст знизу. 
     * Якщо хочете навпаки (спочатку текст), додайте:
     * .hero-section .home-image { order: 2; }
     * .hero-section .home-text-content { order: 1; }
    */
    
    
    .hero-section .home-text-content {

        top: 0%;
    }
.hero-section .home-text-content h1 {
    margin-bottom: 15px;
}
    .hero-section .home-image img {
        max-width: 200px;
    }

    .hero-section .home-text-content h1 {
        font-size: 36px;
    }

    .hero-section .home-text-content p {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-section .cta-button {
        padding: 12px 25px;
        font-size: 18px;
    }
}

















