body {
    margin: 0;
    background-color: black;
}

main{
margin-top: 0%;

}

@keyframes test {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.forGrad{
    position: absolute;
    width: 100%;
    height: 10vh;
     background: linear-gradient(-180deg, black, rgba(0, 0, 0, 0.71), rgba(0, 114, 255, 0.04));
}

.img-form {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    width: 100%;
    animation-name: test;
    animation-duration: 1s;
}
.section1 {
    position: relative; /* прив’язка для absolute */
    height: 90vh;
    overflow: hidden;
    display: flex;
    border: 20px solid black;
}
.section1 div {
    z-index: 1;
}
.right-left {
    height: 100%;
    justify-content: space-between;
    display: flex;
    width: 100%;
}
.left {
    margin-left: 0%;
    flex-direction: column;
    width: 29%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: space-between;
    text-align: center;

    animation-duration: 1.5s;
}

.right {
    margin-left: 0%;
    flex-direction: column;
    width: 25%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.left-up {
    height: 15%;
    background-color: black;
    border-radius: 0 0 30px 0;
    align-content: center;
    animation-name: left-up;
    animation-duration: 1.5s;
    text-align: center;
    color: #ffffff;
    text-shadow:
        0 0 2px #00d4ff,
        0 0 22px #00d4ff;
}
.left-up h4{
    font-size: 1.6rem;
}
@keyframes left-up {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.left-down {
    background-color: black;
    border-radius: 0 30px 0 0;
    animation-name: left-down;
    animation-duration: 1.5s;
}
@keyframes left-down {
    0% {
        /* Початкова позиція: повністю за лівим краєм екрана */
        /* Використання translateX допомагає уникнути проблем з розрахунками ширини */
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        /* Кінцева позиція: на екрані, лівий край на 0 */
        transform: translateX(0);
        opacity: 1;
    }
}
.right-up {
    background-color: black;
    border-radius: 0 0 0 30px;
    width: 100%;
    animation-name: right-up;
    animation-duration: 1.5s;
        padding: 14px;
}
.h-for-right-up {
    font-size: 25px;
    margin: 2% 0 0 2%;
}
@keyframes right-up {
    0% {
        transform: translateX(100%); /* Виїжджає справа наліво */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.right-down {
    background-color: black;
    border-radius: 30px 0 0 0;
    align-content: center;
    height: 15%;
    animation-duration: 1.5s;
    animation-name: right-down;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
@keyframes right-down {
    0% {
        transform: translateX(100%); /* Виїжджає справа наліво */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.avtomatization {
    color: #00d4ff;
    text-shadow:
        0 0 10px #00d4ff,
        0 0 20px #00d4ff;
    transform: translateY(2vh);
    padding: 1vh;
    text-align: left;
}
.div2{
margin-left: 2.4%

}
.div1 {
    background-color: black;
    width: 125%;
    color: #55e2ff;
    text-shadow:
        0 0 10px #00d4ff,
        0 0 20px #00d4ff;
    font-size: 125%;
    padding: 5%;
    padding-top: 10px;
    border-radius: 0 20px 0 0;
    text-align: left;

}
.ittech {
    margin: 0;
}

.Moreabtus {
    padding: 12px 25px;
    border-radius: 12px;
    border: solid white;
    cursor: pointer;
    font-size: 18px;
    color: white;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 1.5s ease;
}
.Moreabtus h3 {
    margin: 0 !important;
}
.Moreabtus a {
    color: white;
    text-decoration: none;
}
/* Псевдоелемент — градієнт, який плавно проявляється */
.Moreabtus::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    opacity: 0; /* спочатку невидимий */
    transition: opacity 1s ease;
    z-index: -1;
}

.Moreabtus:hover::before {
    opacity: 1; /* плавно проявляємо фон */
}
@media (max-width: 1000px) {
    .section1 {
        display: flex;
        flex-wrap: wrap;
        height: 100vh;
    }
    .left {
        position: absolute;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        height: 90%;
    }
    .right {
        transform: translateY(14vh);
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        height: 87%;
    }
    .left-up {
        display: flex;
        flex-wrap: wrap;
    }
    .left-up h4 {
        margin: 0 auto;
        font-size: 3.5rem;
    }
    .right-up {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
         border-radius: 0;
    }
    .h-for-right-up {
        margin-top: 5%;
        font-size: 2.5rem;
    }
    .img-form{
        transform: translateY(35vh);
    height: 40vh;
        width: 100%;;
    }
    .div1{
        text-align: center;
        margin: 0;
        padding: 5% 0;
    }
    .ittech{
        margin-right: 20%;
        font-size: 2.5rem;

    }
    .avtomatization{
        margin: 0;
        font-size: 3.7rem;
    }
    .Moreabtus{
        padding: 5% 25%;
        font-size: 1.7rem;
    }
}
