@import url('./utils.css');
@import url('./swiper.css');
@import url('./contact.css');

@font-face {
    font-family: 'roboto';
    src: url('../font/Roboto-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: roboto;
    background-color: var(--mainBlue);
    padding: 0;
    margin: 0;
    color: white;
    overflow-x: hidden;
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background-color: #4caf50;
    color: white;
    border: 1px solid #45a049;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.alert.fade-out {
    animation: slideUp 0.3s ease-out;
}

menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    margin-bottom: 50px;
    padding: 0 20px;
    position: relative;
}

menu a.menu__logo {
    background-image: url('../img/logo_white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100px;
    width: 80px;
    flex-shrink: 0;
}

.menu__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu__burger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu__burger.active span:nth-child(2) {
    opacity: 0;
}

.menu__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu__nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: var(--mainBlue);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.menu__nav.active {
    display: flex;
}

.menu__link {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    padding: 15px 20px;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.menu__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 840px) {
    menu {
        display: grid;
        grid-template-columns: 10% 30% 30% 30%;
        text-transform: uppercase;
        height: 150px;
        margin-bottom: 150px;
        padding: 0;
    }

    menu a.menu__logo {
        height: 150px;
        width: 100%;
    }

    .menu__burger {
        display: none;
    }

    .menu__nav {
        display: grid !important;
        position: static;
        grid-column: 2 / 5;
        grid-template-columns: 1fr 1fr 1fr;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .menu__link {
        color: white;
        text-decoration: none;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        padding: 0;
        height: 150px;
    }

    .menu__link:hover {
        background-color: transparent;
    }
}

.titleBlock {
    width: 250px;
    margin-bottom: 25px;
}

.titleBlock__title {
    text-transform: uppercase;
    text-align: right;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
}

.titleBlock__underbar {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    background-color: var(--mainGreen);
    width: 250px;
    height: 15px;
    margin-top: 10px;
}

@media (min-width: 840px) {
    .titleBlock {
        width: 500px;
        margin-bottom: 50px;
    }
    
    .titleBlock__title {
        font-size: 1.4rem;
    }
    
    .titleBlock__underbar {
        width: 500px;
        height: 20px;
    }
}

.textBlock {
    width: 80%;
    position: relative;
}

.textBlock__text {
    border: 3px solid white;
    border-left: 0;
    background-color: var(--mainBlue);
    width: 100%;
    font-size: 0.8rem;
    padding: 15px;
    text-align: justify;
    z-index: 99;
    position: relative;
}

.textBlock__img {
    background-image: url('../img/textbg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 100px;
    height: 150px;
    z-index: 10;
    right: -70px;
    top: -65px;
}

@media (min-width: 840px) {
    .textBlock {
        width: 80%;
        position: relative;
    }
    
    .textBlock__text {
        font-size: 1.1rem;
    }
    
    .textBlock__img {
        width: 300px;
        height: 350px;
        z-index: 10;
        right: -120px;
        top: -180px;
    }
}

.middleBlock {
    width: 100%;
    height: 600px;
    margin-top: 100px;
    position: relative;
    margin-bottom: 50px;
}

.middleBlock__whiteSquare {
    position: absolute;
    top: 0;
    right: 22%;
}

.middleBlock__greenSquare {
    position: absolute;
    top: 0;
    left: 22%;
}

.greenSquare__square {
    width: 100px;
    height: 100px;
    border: 5px solid var(--mainGreen);
    background-color: #fff;
    transform: rotate(45deg);
    position: relative;
    top: -50px;
    z-index: 20;
}


@media (min-width: 840px) {
    .middleBlock__whiteSquare {
        right: 200px;
    }
    .middleBlock__greenSquare {
        left: 200px;
    }
    .middleBlock {
        margin-top: 400px;
        margin-bottom: 200px;
        height: 800px;
    }
    .greenSquare__square {
        border: 20px solid var(--mainGreen);
        width: 600px;
        height: 600px;
        top: -150px;
    }
}
@media (min-width: 1600px) {
    .middleBlock__whiteSquare {
        right: 400px;
    }
    .middleBlock__greenSquare {
        left: 400px;
    }
}

.greenSquare__text {
    position: absolute;
    color: black;
    font-size: 0.9rem;
    top: -20px;
    z-index: 25;
    right: 20px;
}

.whiteSquare__text {
    position: absolute;
    font-size: 0.9rem;
    top: -25px;
    z-index: 25;
    right: 15px;
    color: var(--mainGreen);
}


.whiteSquare__square {
    width: 100px;
    height: 100px;
    border: 5px solid white;
    transform: rotate(45deg);
    position: relative;
    top: -50px;
    z-index: 10;
}
@media (min-width: 840px) {
    .whiteSquare__square {
        width: 600px;
        height: 600px;
        top: -150px;
        border-width: 20px;
    }
    .greenSquare__text {
        font-size: 2.5rem;
        top: -100px;
        right: 210px;
    }
    .whiteSquare__text {
        font-size: 2.5rem;
        top: -100px;
        right: 190px;
    }
}

.middleBlock__mainBlock {
    width: 100%;
    height: calc(100% - 100px);
    position: relative;
    z-index: 100;
    background-color: #fff;
    padding: 50px 0;
}

.middleBlock__titleBlock {
    display: flex;
    align-items: end;
    flex-direction: column;

}

.middleBlock__titleBlock .titleBlock__title {
    text-align: left;
    color: black;
    width: 250px;
}

.middleBlock__titleBlock .titleBlock__underbar {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

@media (min-width: 840px) {
    .middleBlock__titleBlock .titleBlock__title {
        text-align: left;
        color: black;
        width: 500px;
    }
}

.squareDown {
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
    position: absolute;
    z-index: 10;
    bottom: -25px;
}

.squareDown--green {
    border: 5px solid var(--mainGreen);
    left: 250px;
    background-color: #fff;
}
.squareDown--white {
    border: 5px solid white;
    right: 250px;
}

input {
    background-color: unset;
    border: 0;
    outline: 0;
    border-bottom: 2px solid white;
    color: white;
    width: 100%;
    padding: 10px 0;
}

@media (min-width: 840px) {
    .squareDown {
        width: 450px;
        height: 450px;
        border-width: 20px;
    }
    .squareDown--green {
        left: 200px;
    }
    .squareDown--white {
        right: 200px;
    }
}
@media (min-width: 1600px) {
    .squareDown--green {
        left: 400px;
    }
    .squareDown--white {
        right: 400px;
    }
}