
:root{
    --lemon-green : #72c93e;
    --light-lemon-green: #99f166;
    --off-white: #fffbd6;
}

*,html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    /* background-color: var(--off-white, #fffbd6); */
}

svg{
    width: inherit;
    object-fit: contain;
}

section{
    padding: 30px 0;
}

/* NAVIGATION */

nav{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: auto;
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 2px solid #72c93e;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.199);
}

.container{
    width: 95%;
    height: inherit;
    margin: 0 auto;
}

nav .contain{
    display: flex;
    align-items: center;
}

nav .logo{
    width: 40%;
}

nav .burger{
    width: 30px;
    height: 30px;
    margin-left: auto;
}

nav .nav{
    position: absolute;
    right: 0;
    top: 100%;
    width: 50%;
    padding: 3% 6%;
    background-color: #fff;
}

nav .nav ul{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-content: center;
    padding: 0;
    list-style: none;
}

nav .nav a{
    display: inline-block;
    width: 100%;
    color: #000;
    text-decoration: none;
    /* transform: scale(1); */
    /* transition: transform 400ms ease-in-out, color 350ms ease-in-out; */
}

.gap{
    height: 80px;
}

/* nav a:hover{
    color: var(--lemon-green, #72c93e);
    transform: scale(1.05);
} */

/* SUB MENU */

ul.sub-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 50%;
    top: 100%;
    text-align: left;
    opacity: 0;
    z-index: 1000;
    border-radius: 2px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.199);
    transition: opacity 480ms ease-in-out, transform 400ms ease-in-out;
    transform: translate(0, 5%);
}

ul.sub-list li {
    display: none;
    margin: 0;
    width: max-content;
    padding: 0;
}

ul.sub-list li a {
    width: 220px;
    padding: 15px 20px;
}

li.sub {
    position: relative;
}

li.sub:hover {
    cursor: pointer;
    color: #F1C599;
}

li.sub:hover>ul.sub-list li {
    display: flex;
}

li.sub:hover>ul.sub-list {
    opacity: 1;
    transform: translateY(0);
}

/* WELCOME VIDEO */
.welcome-video{
    display: none;
}



/* HEADERS */

header.polygon{
    position: relative;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

.polygon::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.315); */
}


/* OWL CAROUSEL SETTINGS */
.owl-carousel .item{
    position: relative;
    min-height: 65vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
}

.item::before{
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.493);
}
/* -------------ENDING */

.item{
    display: flex;
    justify-content: center;
    align-items: center;
}

.item .wrapper{
    width: 90%;
    color: #fff;
    z-index: 1;
}

.item p{
    line-height: 1.6;
}

/* MAIN ABOUT SECTION */

section.main-about,
section.main-project-site{
    padding: 30px 10px;
}

h1,h2,h3{
    font-size: 2em;
    margin-bottom: 15px;
}

header p,
.main-about p,
.main-project-site p{
    font-size: 1.1em;
    line-height: 1.6;
}

.main-about .container{
    display: flex;
    flex-direction: column;
}

.button{
    position: relative;
    display: inline-block;
    margin-top: 30px;
    padding: 15px 50px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    background-color: var(--lemon-green, #72c93e);
    transition: all ease-in-out 400ms;
}

.button:hover{
    text-decoration: none;
    background-color: var(--light-lemon-green, #99f166);
}



/* MAIN PROJECT SITES */

.main-project-site{
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-image: url('../media/Land.JPG');
    background-position: center center;
    background-size: cover;
}

.main-project-site::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.493);
}

.main-project-site .container{
    display: flex;
    justify-content: flex-end;
}

.main-project-site .wrapper{
    position: relative;
    z-index: 1;
    color: #fff;
}


/* FOOTER */
footer{
    padding: 40px 10px 20px;
    background-color: var(--off-white, #fff);
}

footer ul{
    display: flex;
    list-style: none;
}

ul.location{
    gap: 5px;
    flex-direction: column;
}

#telephone{
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bolder;
}

.footer-bottom{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

ul.social-media{
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

footer .copyright{
    font-size: 0.8em;
}



@media(min-width: 720px){
    
    nav .contain{
        width: 90%;
        margin: 0 auto;
        align-items: center;
    }
    
    nav .logo{
        width: 35%;
    }
    
    nav .burger{
        display: none;
    }
    
    nav .nav{
        width: auto;
        padding: 0;
        margin-left: auto;
        margin-right: 0;
        position: relative;
        background-color: #fff;
    }

    nav .nav>ul{
        flex-direction: row;
    }

    nav ul.sub-list{
        left: 0;
        width: max-content;
    }
    
    nav .nav a {
        padding: 15px 0;
        font-size: 0.9em;
        transition: color 400ms ease-in-out;
    }
    
    /* HEADER */
    header h1,
    .main-about h2,
    .main-project-site h3 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    
    /* SECTION MAIN-ABOUT */
    
    section.main-about{
        padding: 80px 0;
    }
    
    section.main-about .container{
        gap: 40px;
        flex-direction: row-reverse;
        align-items: center;
    }
    
    .main-about .wrapper{
        width: 80%;
    }
    
    .main-about h2,
    .main-project-site h3{
        font-size: 2.5em;
    }
    
    .main-about .image-wrapper{
        width: 40%;
        height: 450px;
        clip-path: polygon(0 0, 62% 0, 100% 100%, 0% 100%);
        background-image: url('../media/forest.JPG');
        background-size: cover;
        background-position: center;
    }

    /* MAIN PROJECT SITE */

    .main-project-site p{
        width: 50ch;
    }

    .main-project-site .wrapper {
        width: 70ch;
        margin-right: 80px;
    }
}

.social-media i{
    font-size: 1.6em;
    color: #fa9f4a;
}

@media(min-width: 1024px){
    nav .logo {
        width: 28%;
    }
    
    nav .nav a {
        font-size: 1.05em;
    }

    nav .nav a {
        transform-origin: center;
        transition: transform 150ms ease-in-out, color 350ms ease-in-out;
    }

    nav a:hover {
        color: var(--lemon-green, #72c93e);
        transform: scale(1.05);
    }

    #welcome-video{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50000;
        display: block;
        transition: opacity 400ms ease-in-out;
        opacity: 1;
    }
/* 
    @keyframes video {
        0%{
            opacity: 1;
            position: fixed;
        }
        100%{
            opacity: 0;
            position: relative;
        }
    } */

    #welcome-video #welcome{
        width: 100%;
    }
    
    header .polygon{
        justify-content: flex-end;
    }
    
    header .wrapper{
        height: max-content;
        margin-top: 5%;
        margin-right: 0;
        border-radius: 5px;
        padding: 30px 25px;
        text-align: center;
        /* background-color: rgba(0, 0, 0, 0.493); */
    }

    header h1{
        font-size: 3.5em;
    }

    header p{
        width: 60ch;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.4em;
        font-weight: 300;
        line-height: 1.6;
    }

    /* .header-content{
        width: ;
    } */

    .main-about .container{
        flex-direction: row-reverse;
        justify-content: space-around;
    }

    .main-about .wrapper{
        width: auto;
    }

    .main-about .wrapper p{
        width: 65ch;
    }

    /* .main-about .image-wrapper{
        background-attachment: fixed;
    } */

    .main-project-site {
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    footer{
        padding-top: 80px;
    }

    footer .container{
        width: 80%;
    }

    li.e-mail{
        margin-top: 15px;
        font-style: italic;
    }

    ul.social-media{
        width: auto;
        align-self: flex-end;
    }

    .footer-bottom .social-media{
        width: 15%;
        margin-left: auto;
        margin-right: 40px;
    }


}


.owl-carousel{
    width: 100%;
    min-height: auto;
}



.one{
    background-image: url('../media/machine-working.JPG');
}

.two {
    background-image: url('../media/IMG_1157.JPG');
}

.three {
    background-image: url('../media/IMG_1131.JPG');
}

.four {
    background-image: url('../media/IMG_1124.JPG');
}

.come-out {
    opacity: 1;
    animation: fade-out 800ms ease-in;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* This Block of code is for the SlideShow */

header {
    overflow: hidden;
}

.hero-text h2 {
  margin-bottom: 50px;
}

.hero-text .hero {
  position: relative;
}

.hero-slide::after{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.493);
}

.img.cover,
.header-content{
    position: absolute;
    z-index: 100;
}

.hero-text .hero .hero-slide a:hover span {
  color: #033a71;
}

.hero .hero-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
}

.hero .hero-slide .header-content {
  top: 20%;
  margin-left: 8rem;
  max-width: 550px;
  width: 100%;
  padding: 2rem;
}

.slide-content {
  padding: 10px 20px 10px 0;
}

.slide-content .h1 {
  font-size: 62px
}

/** Text Animation **/

@-webkit-keyframes fadeInUpSD {
  0% {
      opacity: 0;
      -webkit-transform: translateY(100px);
      transform: translateY(100px)
  }

  100% {
      opacity: 1;
      -webkit-transform: none;
      transform: none
  }
}

@keyframes fadeInUpSD {
  0% {
      opacity: 0;
      -webkit-transform: translateY(100px);
      transform: translateY(100px)
  }

  100% {
      opacity: 1;
      -webkit-transform: none;
      transform: none
  }
}

.fadeInUpSD {
  -webkit-animation-name: fadeInUpSD;
  animation-name: fadeInUpSD;
}

.slick-active .slide-content {
  animation-name: fadeInUpSD;
  animation-duration: 1s;
  opacity: 1;
  width: 100%;
  padding: 10px 20px 30px 0;
}

/* Text Animation End **/

.slick-dots {
  position: absolute;
  bottom: 10px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li {
  width: auto;
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  padding: 5px;
  cursor: pointer;
  border-radius: 50%;
  border: 0;
  outline: none;
}

.slick-dots li button::before {
  font-size: 18px;
  color: #fff;
  opacity: 1;
}

.slick-active button {
  background:  #72c93e;
}

/* Media Queries */

@media (max-width: 768px) {
  .hero-text .hero .hero-slide a {
    padding-top: 0.8rem;
  }

  .hero-text .hero .hero-slide a span {
    font-size: 20px;
    margin-top: 0.5rem;
  }

  .hero .hero-slide .header-content {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0 auto;
  }
}