@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

html[dir="rtl"] {
    text-align: right;
}

:root {
    --main-color: #AAF40C;
    --second-color: #085A6C;
    --third-color: #269089;
    --gradient: linear-gradient(105.55deg, #085A6C -6.68%, #269089 43.13%, #7ABC82 96.15%);
}

body {
    font-family: "Outfit", sans-serif;
    max-width: 100vw;
    max-height: 100vh;
    overflow-x: hidden !important;
    background-image: url(../Images/bg-1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

input {
    caret-color: var(--items-color);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--second-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 12px;
}

.container {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

/* Header */
header{
    direction: ltr !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-block: 15px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

header.scrolled {
    background-color: var(--second-color);
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo{
    display: flex;
    align-items: center;
}

header .logo img{
    width: 160px;
    margin-right: 10px;
    filter: drop-shadow(0px 5px 10px #269089);
    -webkit-filter: drop-shadow(0px 5px 10px #269089);
}

header .logo .text{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

header .logo .text p:first-child{
    color: var(--main-color);
    font-size: 12px;
    margin-bottom: -7px;
}

header .logo .text p:last-child{
    font-size: 24px;
    font-weight: bold;
    color: white;
}

header .lang a{
    background-image: var(--gradient);
    padding: 9px 18px;
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.4s;
}

header .lang a:hover {
    background-color: var(--third-color);
}

header .lang a i{
    font-size: 16px;
    margin-right: 5px;
    color: var(--main-color);
}

/* Main */
main{
    height: 100vh;
    position: relative;
    padding-block: 80px;
}

main .container{
    width: 75%;
    display: flex;
    gap: 40px;
    position: relative;
}

main .container .text{
    flex-basis: calc(60% - 20px);
    margin-top: 80px;
    position: relative;
    z-index: 1000;
}

main .container .form{
    flex-basis: calc(40% - 20px);
}

main .container .text p:first-child,
main .container .text span{
    color: var(--main-color);
}

main .container .text h1{
    font-size: 50px;
    color: white;
    line-height: 1.2;
    margin-block: 10px 20px;
}

main .container .text p:not(:first-child){
    color: white;
}

main .container .text p:last-of-type{
    margin-top: 10px;
}

main .container .text .contact{
    color: white;
    margin-top: 10px;
    display: flex;
    align-items: center;
    letter-spacing: 0.6px;
    font-weight: bold;
}

main .container .text .contact i{
    color: var(--main-color);
    font-size: 20px;
}

html[dir="ltr"] main .container .text .contact i{
    margin-right: 7px;
}

html[dir="rtl"] main .container .text .contact i{
    margin-left: 7px;
}

main > span:first-of-type{
    position: absolute;
    top: 150px;
    width: 25px;
    height: 25px;
    background: var(--main-color);
    border-radius: 70px;
    display: inline-block;
}

html[dir="ltr"] main>span:first-of-type{
    left: 80px;
}

html[dir="rtl"] main>span:first-of-type{
    right: 80px;
}

main > span:last-of-type{
    position: absolute;
    top: 550px;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 70px;
    display: inline-block;
}

html[dir="ltr"] main>span:last-of-type{
    right: 100px;
}

html[dir="rtl"] main>span:last-of-type{
    left: 100px;
}

main .image-span{
    position: absolute;
    top: 420px;
}

html[dir="rtl"] main .image-span {
    right: 70px;
}

html[dir="ltr"] main .image-span {
    left: 30px;
}

main .image-span img{
    position: relative;
    width: 70px;
    z-index: 1;
    bottom: 5px;
}

html[dir="ltr"] main .image-span img{
    left: 40px;
}

html[dir="rtl"] main .image-span img{
    right: 20px;
}

main .image-span span{
    width: 90px;
    height: 90px;
    background: var(--main-color);
    border-radius: 70px;
    display: inline-block;
    position: absolute;
    left: 0;
}

main .form form{
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    width: 100%;
}

main .form form h2{
    background-image: var(--gradient);
    background-clip: text;
    color: transparent;
    /* color: var(--main-color); */
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

main .form form .data{
    margin-bottom: 12px;
}

main .form form .data.ask{
    display: flex;
    align-items: center;
    gap: 7px;
}

main .form form .data label{
    display: block;
    font-size: 14px;
}

main .form form .data.ask label{
    display: inline !important;

}

main .form form .data input,
main .form form .data select{
    border: none;
    outline: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.4);
    padding: 7px 0;
    width: 100%;
}

main .form form .data.ask input {
    width: fit-content;
}

main .form form .data input[type="submit"] {
    border: none;
    background-image: var(--gradient);
    color: white;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    cursor: pointer;
}

main .copyright{
    position: absolute;
    bottom: 0px;
    color: white;
}

html[dir="ltr"] main .copyright{
    left: 0;
}

html[dir="rtl"] main .copyright{
    right: 0;
}

main .copyright span{
    color: var(--main-color);
}

.toast {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    background-color: #f44336;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    max-width: calc(100% - 40px);
}

html[dir="ltr"] .toast{
    right: 20px;
}

html[dir="rtl"] .toast{
    left: 20px;
}

.toast.success {
    background-color: #4caf50;
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
}

input.is-invalid,
select.is-invalid{
    border-bottom: 2px solid red !important;
}

@media (max-width: 1200px) {
    main .container {
        width: 90%;
    }
}

@media (max-width: 992px) {
    main .container {
        flex-direction: column;
        gap: 30px;
    }

    main .container .text,
    main .container .form {
        flex-basis: 100%;
        margin-top: 0;
    }

    main .container .text h1 {
        font-size: 36px;
        text-align: center;
    }

    main .container .text p {
        text-align: center;
    }

    main .container .text .contact {
        justify-content: center;
    }

    main .form form {
        padding: 25px 20px;
        margin-bottom: 45px;
    }

    main>span:first-of-type,
    main>span:last-of-type,
    main .image-span {
        display: none;
    }

    main .copyright{
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    header .logo .text p:first-child {
        font-size: 10px;
    }

    header .logo .text p:last-child {
        font-size: 20px;
    }

    header .lang a {
        padding: 6px 14px;
        font-size: 16px;
    }

    main .container .text h1 {
        font-size: 30px;
    }

    main .form form h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    header .logo img{
        width: 35px;
        margin-right: 7px;
    }

    header .logo .text p:first-child{
        font-size: 10px;
    }

    header .logo .text p:last-child{
        font-size: 20px;
    }

    main .container {
        width: 95%;
        gap: 20px;
    }

    main .container .text h1 {
        font-size: 26px;
    }

    main .form form {
        padding: 20px 15px;
    }

    main .form form h2 {
        font-size: 22px;
    }

    main .form form .data input,
    main .form form .data select {
        font-size: 14px;
    }

    main .copyright {
        font-size: 12px;
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }
}

/* Preloader */
.preloader{
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background-color: var(--second-color);
    opacity: 1;
    transition: opacity 0.5s ease;
    direction: ltr !important;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader h1 {
  position: absolute;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  left: 50%;
  top: 54%;
  transform: translateX(-50%);
  color: var(--main-color);
}

.body {
  position: absolute;
  top: 50%;
  margin-left: -70px;
  left: 50%;
  animation: speeder .4s linear infinite;

  > span {
    height: 5px;
    width: 35px;
    background: var(--main-color);
    position: absolute;
    top: -19px;
    left: 60px;
    border-radius: 2px 10px 1px 0;
  }
}

.base {
  span {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-right: 100px solid var(--main-color);
    border-bottom: 6px solid transparent;

    &:before {
      content: "";
      height: 22px;
      width: 22px;
      border-radius: 50%;
      background: var(--main-color);
      position: absolute;
      right: -110px;
      top: -16px;
    }

    &:after {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      border-top: 0 solid transparent;
      border-right: 55px solid var(--main-color);
      border-bottom: 16px solid transparent;
      top: -16px;
      right: -98px;
    }
  }
}

.face {
  position: absolute;
  height: 12px;
  width: 20px;
  background: var(--main-color);
  border-radius: 20px 20px 0 0;
  transform: rotate(-40deg);
  right: -125px;
  top: -15px;

  &:after {
    content: "";
    height: 12px;
    width: 12px;
    background: var(--main-color);
    right: 4px;
    top: 7px;
    position: absolute;
    transform: rotate(40deg);
    transform-origin: 50% 50%;
    border-radius: 0 0 0 2px;
  }
}

.body > span > span:nth-child(1),
.body > span > span:nth-child(2),
.body > span > span:nth-child(3),
.body > span > span:nth-child(4) {
  width: 30px;
  height: 1px;
  background: var(--main-color);
  position: absolute;
  animation: fazer1 .2s linear infinite;
}

.body > span > span:nth-child(2) {
  top: 3px;
  animation: fazer2 .4s linear infinite;
}

.body > span > span:nth-child(3) {
  top: 1px;
  animation: fazer3 .4s linear infinite;
  animation-delay: -1s;
}

.body > span > span:nth-child(4) {
  top: 4px;
  animation: fazer4 1s linear infinite;
  animation-delay: -1s;
}

@keyframes fazer1 {
  0% {
    left: 0;
  }
  100% {
    left: -80px;
    opacity: 0;
  }
}

@keyframes fazer2 {
  0% {
    left: 0;
  }
  100% {
    left: -100px;
    opacity: 0;
  }
}

@keyframes fazer3 {
  0% {
    left: 0;
  }
  100% {
    left: -50px;
    opacity: 0;
  }
}

@keyframes fazer4 {
  0% {
    left: 0;
  }
  100% {
    left: -150px;
    opacity: 0;
  }
}

@keyframes speeder {
  0% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -3px) rotate(-1deg);
  }
  20% {
    transform: translate(-2px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 3px) rotate(-1deg);
  }
  60% {
    transform: translate(-1px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-2px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.longfazers {
  position: absolute;
  width: 100%;
  height: 100%;

  span {
    position: absolute;
    height: 2px;
    width: 20%;
    background: var(--main-color);

    &:nth-child(1) {
      top: 20%;
      animation: lf .6s linear infinite;
      animation-delay: -5s;
    }

    &:nth-child(2) {
      top: 40%;
      animation: lf2 .8s linear infinite;
      animation-delay: -1s;
    }

    &:nth-child(3) {
      top: 60%;
      animation: lf3 .6s linear infinite;
    }

    &:nth-child(4) {
      top: 80%;
      animation: lf4 .5s linear infinite;
      animation-delay: -3s;
    }
  }
}

@keyframes lf {
  0% {
    left: 200%;
  }
  100% {
    left: -200%;
    opacity: 0;
  }
}
@keyframes lf2 {
  0% {
    left: 200%;
  }
  100% {
    left: -200%;
    opacity: 0;
  }
}
@keyframes lf3 {
  0% {
    left: 200%;
  }
  100% {
    left: -100%;
    opacity: 0;
  }
}
@keyframes lf4 {
  0% {
    left: 200%;
  }
  100% {
    left: -100%;
    opacity: 0;
  }
}