/*
================
FONT
================

*/

@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@300&family=Roboto:wght@100&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&display=swap');
/*
================
VARIABLES
================
*/

:root {
    /*Dark shades of primary color*/
    --primary-clr-1: hsl(43,86%,17%);
    --primary-clr-2: hsl(43,77%,27%);
    --primary-clr-3: hsl(40,94%,58%);
    --primary-clr-4: hsl(37,90%,51%);
      /*primary main colour*/
      --primary-clr-5:hsl(42,78%,60%);
     /*Lighter shades of primary colour*/ 
     --primary-clr-6:hsl(43,89%,70%);
     --primary-clr-7:hsl(43,90%,76%);
     --primary-clr-8:hsl(45,86%,81%);
     --primary-clr-9:hsl(45,90%,88%);
     --primary-clr-10:hsl(45, 91%, 86%);
     --primary-clr-10:hsl(45, 91%, 86%);
     --primary-clr-11:#f6f8ee;
     /*Darkest grey - used for headings*/
     --clr-grey-1:hsl(209,61%,16%);
    --clr-grey-2: hsl(211,39%,23%);
    --clr-grey-3: hsl(209,34%,30%);
    --clr-grey-4: hsl(209,28%,39%);
    /*grey - used for paragraphs*/
    --clr-grey-5: hsl(210,22%, 49%);
    --clr-grey-6: hsl(209, 23%, 60%);
    --clr-grey-7: hsl(211, 27%, 70%);
    --clr-grey-8: hsl(210, 31%, 80%);
    --clr-grey-9: hsl(212, 33%, 89%);
    --clr-grey-10: hsl(210, 36%, 96%);
    --clr-grey-11: hsl(200, 2%, 26%);
    --white-clr: #fff;
    --primary-ff: "Catamaran", sans-serif;
    --secondary-ff: "Grand Hotel", cursive;
    --transition: all 1s linear;
    --spacing: 0.25rem;
    --radius: 0.5rem;
    --max-width:1170px;
    --light-shadow:0 5px 15px rgba(0,0,0,0.1);
    --dark-shadow:0 5px 15px rgba(0,0,0,0.2);

}




/*
==================

==================

*/



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-ff);
    background:var(--primary-clr-9);
    line-height: 1.5rem;
    font-size: 0.875rem;
}

a {
    text-decoration: none;
}


img:not(.img-logo) {
    display: block;
    width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
h4 {
    letter-spacing: var(--spacing);
    text-transform: capitalize;
    line-height: 2rem;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 0.87rem;
}

p {
    margin-bottom: 1.25rem;
}

.btn {
    text-transform: uppercase;
    background: var(--primary-clr-3);
    color:var(--clr-grey-11);
    padding: 0.75rem 1rem;
    letter-spacing: var(--spacing);
    display: inline-block;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.clearfix::after,
.clearfix::before {
    content: "";
    clear: both;
    display: table;

}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: 1170px;
   
}

/*
=====================
Nav Styles
====================
*/

.nav-links{
    display: none;
}

.nav{
   height: 4rem;
background: white;
padding-right: 1rem;
display: grid;
align-items: center;
transition: var(--transition);
position: fixed;
width: 100%;
z-index: 100;
border-bottom: 1px solid var(--primary-clr-3);
}


.nav-center{
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.nav-header{
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    
}

.nav-btn{
    background-color: transparent;
    border-color: transparent;
    background: transparent;
    color:#4f4f4f;
    font-size:1.5rem;
    cursor: pointer;
   justify-self: end;
}

@media screen and (min-width:760px) {
     

    .nav-link {
       text-decoration: none;
       list-style-type: none;
    }
 
      .nav-link a{
        letter-spacing: var(--spacing);
        text-transform: capitalize;
        line-height: 2rem;
        margin-bottom: 0.75rem;
        color:var(--clr-grey-11);
        font-weight: 700;
      }


    .nav-btn{
      display: none;
    }

    .nav-center{
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .nav-links{
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 0.5rem;
      
    
}
}

/*
======================
SIDEBAR STYLES
======================
*/

.sidebar{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: grid;
align-items: center;
justify-items: center;
background:var(--clr-grey-8);
z-index: 104;
transition: var(--transition);
transform: translateX(-100%);

}

 .closeSidebar{
  visibility: hidden;
 }

.close-btn{
    background-color: transparent;
    border-color: transparent;
}

.side-links{
    list-style-type: none;
    justify-items: center;
    text-align: center;
}

.hideSidebar{
  transform: translateX(0);
}

.side-links a{
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 1.2rem;
    transition: var(--transition);
    letter-spacing: var(--spacing);
    color:var(--clr-grey-11);

    line-height: 2.5rem;
   
}

.side-links a:hover{
    color:var(--primary-clr-5);
}

.social-icons{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 2rem;
  list-style-type: none;
 letter-spacing: var(--spacing);
 width: 20rem;
 justify-items: center;
 padding-bottom: 1rem;
}

.social-icons a{
    color: var(--clr-grey-2);
    font-size: 2rem;
    }

#close-toggle{
    position: absolute;
    right: 3%;
    top: 2%;
    font-size: 2rem;
    background: transparent;  
    border-color: transparent; 
    color: red;
    cursor: pointer;  
}

.social-icons a:hover{
    color: rgb(238, 120, 24);
    transition: var(--transition);
}
.show-sidebar{
    transform: translateX(0);
  }
 
   .hero-info .social-icons{
     justify-items: start;
   }
  .hero-icons a{
    font-size: 1.3rem;
   
  }

  .hero-center{
    display: grid;
    place-items: center;
    padding-top: 9rem;
    min-height: calc(100vh);
    padding-bottom: 2rem;

 }
 .hero-info h3{
   
    font-size: 40px;
    font-weight: bolder;
 }

 .hero-info h5{
    font-size: 13px;
    font-weight: lighter;
   letter-spacing: 0.3rem;
 }

 .hero-btn{
    border-radius: var(--radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0.4rem;
    font-size: 0.7rem;
 }

   .underline{
       height: 0.2rem;
       width: 3rem;
       color: var(--primary-clr-5);
       background: var(--primary-clr-5);
       margin: 0 auto;
       margin-bottom: 1rem;
   }


  @media screen and (min-width:400px){

     .hero-img{
        display: none;
     }
    
    .underline{
        margin-left: 0;
    }



    }
     @media screen and (min-width:760px){

   .hero-center{
      grid-template-columns: 1fr 1fr;
   }
   .hero-img{
     display: block;
     position: relative;
     padding-bottom: 2px;
   
 }

 .hero-img::before,.about-img:before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border:0.2rem solid var(--primary-clr-5);
        top:0.8rem;
        left: 0.8rem;
        border-radius: var(--radius);

 }


 
  }

  .hero-photo{
    max-width: 18rem;
    max-height: 22rem;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
  }

  /*===============
     About styles goes here
  ==================*/

   .about{
    background: var(--white-clr);
    padding-top: 3rem;;
    padding-bottom: 3rem;
   }
   
   .about-center{
     display: grid;
     gap: 3rem 2rem;
   }

     .about-img{
        justify-self: center;
        position: relative;
     }

     .about-info h5{
        font-size: 0.85rem;
        font-weight: lighter;
       letter-spacing: 0.1rem;
       margin-top: 1.2rem ;
       text-transform: capitalize;
     }
 
  @media screen and (min-width:720px) {
    .about-center{
        grid-template-columns: 1fr 1fr;
    }
    


  }

  /*=======================
  Service Styles
  ==========================*/


    .service-section{
          padding-top: 2rem;
         margin: 0 auto;
         padding-bottom: 2rem;
      
    }

  

  .service-section .section-title{
    text-align: center;
  }

  .service-section .underline{
    margin: 0 auto;
  }

  .service{
    background:white;
    padding: 2rem 0.5rem;
    margin: 0 auto;
    margin-top:1rem;
    text-align: center;
    transition: all 2s ease-in-out;
  }
  
   .service i{
    font-size: 1.5rem;
   }

   .service p{
    padding-top: 1.5rem;
   }
   .service h4{
    font-weight: lighter;
   letter-spacing: 0.1rem;
   margin-top: 0.2rem ;
   }
 
  .service:hover {
       color: white;
       transition: all 2s ease-in-out;
       background-color: var(--primary-clr-7);
       }

    .service:hover .underline{
        height: 0.2rem;
     
        color: var(--primary-clr-5);
       background-color: white;
        transition: var(--transition);
    }
    
  @media screen and (min-width:700px){
    .service-center{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .service{
        margin: 1rem 1rem;
    }
  }

  /*==================
  Project Section  
  ====================*/

  .projects{
    background: var(--white-clr);
   padding-bottom: 3rem;
  }

  .project-info{
    text-align: center;
  }

  .project-info{
    width: 80vw;
    max-width: 30rem;
    padding: 1.2rem;
   
  }

 .project-info{
    margin: 0 auto;
  }

  .project .underline{
    margin-bottom: 1rem;
  }

  .project{
    background: var(--primary-clr-3);
    position: relative;
 
    margin: 0 auto;
    margin-bottom: 2rem;
    border-radius: var(--radius);
  }

  .project-img{
    height: 15rem;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    
  }

  .projects-text{
    color: var(--white-clr);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    
 
  }

  .projects-text h4,h5{
    font-weight: bolder;
   letter-spacing: 0.2rem;
   margin-top: 0.2rem ;
   text-transform: uppercase;
  }

  .project:hover .projects-text{
    opacity: 1;
    transition: var(--transition);
  }

  .project:hover .project-img{
    opacity: 0.1;
  }

  .project::after{
    content: "";
    border: 0.25rem solid white;
    position: absolute;
    top:0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: var(--radius);
    transition: var(--transition);
  }

  .project:hover::after{
    transform: scale(0.8);
    opacity: 1;
    font-weight: lighter;
  }

  @media screen and (min-width:700px) {
    .project-center{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 200px 200px;
      grid-template-areas: 
      "a b b"
      "a c d"
      ;
    }
  

    .project-1{
      grid-area: a;
    }
    .project-2{
      grid-area: b;
    }
    .project-3{
      grid-area: c;
    }
    .project-4{
      grid-area: d;
    }

    .project-img{
      height: 100%;
    }
    .project{
      height: 100%;
    }

  }

  /*
  =============================
  Styles for Connect goes here
  =============================
  */

  .connect{
    min-height: 40vh;
    position: relative;
    padding: 5rem 0 5rem 0;
    margin: 5rem 0;
    display: grid;
    place-items: center;
  }

  .video-container{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }

  .connect::after{
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height: 100%;;
    background: var(--white-clr);
    opacity: 0.7;
    z-index: -1;
  }

  /*
  =======================
  Banner style Goes Here
  =======================
  */

  .banner{
     max-width:30rem;
    
     text-align: center;
     margin: 0 auto;
    background: var(--primary-clr-9);
    padding: 2rem;
    clip-path: polygon(0% 0%, 100% 0%, 100% 81%, 75% 82%, 75% 100%, 48% 83%, 0 83%);
  }

  .banner .underline{
     background: var(--primary-clr-3);
    margin: 0 auto;
  }
  .banner p{
    margin-top: 1rem;
  }

  .banner-text .hero-btn{
    margin-top: -4rem;
  }

  /*====================
  Modal styles goes here
  ======================*/
 
  .modal-overlay{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: grid;
    place-items: center;
    visibility: hidden;
    z-index: 150;
  }

    .modal-visible{
      visibility: hidden;
    }

    .modal-block{
      visibility: visible;
    }

   .modal-content{
    background: white;
    text-align: center;
    width:80%;
    max-width: 30rem;
    height: 80%;
    position: absolute;
    top:15%;
   
   }

   .modal-content button i {
    position: absolute;
    color: grey;
    top: 10%;
    right: 10%;
    border-color: transparent;
    background: transparent;
    background-color: transparent;
    font-size: 1.4rem;
    cursor: pointer;
   }


   .form-group{
    width: 80%;
    margin: 0 auto;
    padding: 2rem;
    
   }

   .form-control{
    display: block;
    width: 100%;
    padding:0.75rem 1rem;
    border:none;
    margin-bottom: 1rem;
    background: var(--clr-grey-9);
    border-radius: var(--radius);
   
    
   }
    
   .modal-content{
    box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.2);

   }
   .modal-content:hover{
    box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.3);
   }
   .submit-btn{
    cursor: pointer;
    color: white;
    background: var(--primary-clr-3);
    font-weight: bolder;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
   }

  .contactus{
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: bolder;
    color: grey;
    letter-spacing: 0.2rem;
  }
  .form-control::placeholder{
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-size: 0.7rem;
  }
  @media screen and (min-width:560px) {
    .modal-content{
      padding-top:2%;
    }
  }



  @media screen and (min-width:776px) {
    .modal-content{
      padding-top:1%;
    }
  }

  
  @media screen and (min-width:992px) {
    .modal-content{
      padding-top:4%;
    }
  }


  /*====================
  FOOTER
  ======================*/

  .footer{
    background: #4f4f4f;;
    display: grid;
    place-items: center;
    padding-top: 1rem;
  }

  .footer .social-icons{
    margin-top: .5rem;
    margin-bottom: .5rem;
  
  }

  .footer i{
    color: var(--primary-clr-3)
  } .footer i:hover{
    color: var(--primary-clr-8)
  }

  .footer p{
    color: white;
  }



 

  input:focus:valid{
    border-left: 4px solid green;
  }

  input:focus:invalid{
    border-left: 4px solid red;
  }