
/* GENERAL STYLES */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&display=swap');
*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    text-align:center;
}

body{
  font-family: 'Montserrat', sans-serif;
}
h1{
    text-transform:uppercase;
    font-size:4rem;
    letter-spacing:3px;
    color:#fff;
    text-shadow:0 0 5px #000;
    margin-top:40px;
}

h2{
  text-transform:uppercase;
  font-size:1.5rem;
  color:#fff;
  letter-spacing:2px;
}

h3{
  text-transform:uppercase;
  font-size:1.1rem;
  color:#fff;
  letter-spacing:2px;
}

p{
    text-transform:capitalize;
    letter-spacing:2px;
    margin:20px 0;
    color:#fff;
    text-shadow:0 0 5px #000;
    line-height: 1.5;
}

img{
    width:100%;
    height:auto;
    object-fit:cover;
}

li{
  list-style:none;
}

a{
  text-decoration:none;
  text-transform:uppercase;
  font-size:1.2rem;
  color:#fff;
}

/* HEADER----------------=== */
header{
    width:100%;
    height:100vh;
    /* perspective: 100rem; */
    overflow:hidden;
    position:relative;
}

.header-img{
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    overflow:hidden;
}

.header-img img{
    width:100%;
    height:auto;
    object-fit:cover;
    opacity:.5;
    animation:zout 25s infinite;
}

@keyframes zout{
    0%{
        transform:scale(1.5);
    }

    100%{
        transform:scale(1);
    }
}

.header-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.header-content h1{
  position: relative;
}
.header-span{
    background:linear-gradient(45deg,#A52A2A,#8B0000);
    padding:5px;
    border-radius:5px;
    font-size:5rem;
}
.header-btn{
    background:transparent;
    outline:none;
    border:1px solid #fff;
    width:200px;
    height:60px;
    font-size:2rem;
    color:#fff;
    text-transform:capitalize;
    position:relative;
    cursor:pointer;
    border-radius:5px;
}

.header-btn:after{
    position:absolute;
    content:"";
    top:0;
    left:0;
    width:0;
    height:100%;
    background:linear-gradient(45deg,#A52A2A,#8B0000);
    z-index:-1;
    transition:all .5s ease;
}

.header-btn:hover:after{
    width:100%;
}

/* NAVIGATION BAR------------------------------------ */
.navbar{
  display:flex;
  justify-content:center;
  align-items:center;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 0 15px #000;
}

#check{
  display:none;
}

.navbar .logo{
  width:50%;
  height:auto;
  flex:1;
  display:flex;
  justify-content: flex-strat;
  align-items: center;
  margin-left:25px;
}
.navbar .logo img{
  width:80px;
}

.navbar ul{
  display:flex;
  flex:1;
  justify-content: center;
}
.navbar ul .active{
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  padding:8px;
  border-radius:5px;
}

.navbar ul li{
  padding:0 20px;
}

.navbar .btn-bars .icon1,.icon2,.icon3{
  width:30px;
  height:5px;
  background:#fff;
  color:#fff;
  display:block;
  margin:5px auto;
  transition:all .5s ease-in-out;
  cursor:pointer;
  
}

.navbar .btn-bars{
  display:none;
}

/* MEDIA OF HEADER ------------------------- */

@media (max-width:500px){

  #check{
    display:none;
  }
  
    .header-img img{
        width:100%;
        height:100vh;
    }
    .header-content .header-span{
      font-size: 3rem;
    }
    
    
    .navbar{
      display: flex;
      justify-content:space-around;
      align-items: center;
    }
    
    .navbar .logo{
      flex: 1;
    }
    
    .navbar ul{
      display: none;
    }
    
    .navbar ul{
      position:fixed;
      top:80px;
      width:100%;
      height:100vh;
      background: rgba(0,0,0,.8);
      display:block;
      top:-800px;
      transition:all .5s ease-in-out;
    }
     
    input:checked ~ ul {
      top:0;
    }
    .navbar ul li{
      padding:40px 0;
    }
    .navbar label .btn-bars{
      color: #fff;
      flex: 2;
      align-self: center;
      display: block;
      margin-right:40px;
      border:2px solid #fff;
      padding:3px 5px;
      border-radius:5px;
    }

    input:checked ~ label #btn .icon1{
      transform:rotate(-45deg) translate(-7px,6px);
    }
    input:checked ~ label #btn .icon2{
      opacity:0;
    }
    input:checked ~ label #btn .icon3{
      transform:rotate(45deg) translate(-8px,-7px);
    }

}

/* ABOUT --------------------------*/

.border{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:20px;
  column-gap:5px;
  margin:20px auto;
}

.border .b1{
  width:80px;
  height:5px;
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  display:inline-block;
}

.border .b2{
  width:30px;
  height:30px;
  border-radius:50%;
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  display:inline-block;
}
.border .b3{
  width:80px;
  height:5px;
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  display:inline-block;
}
.about-images{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    grid-auto-rows:200px 300px;
    grid-auto-flow:dense;
    column-gap:10px;
}
.img-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:50% 50%;
}
.img-box:nth-child(1){
    position: relative;
    grid-column:1/2;  
    width:100%;
    height:100%;
  }
  .img-box:nth-child(2){
    position: relative;
    grid-column:2/3;  
    width:100%;
    height:100%;
  }
.img-box:nth-child(3){
    position: relative;
    grid-column:3/5;  
    width:100%;
    height:100%;
  }
.img-box:nth-child(4){
  position: relative;
  grid-column:1/4;  
  grid-column:2/4;  
}
.img-box:nth-child(5){
    position: relative;
    grid-column:1/2; 
    grid-row:2/3; 
  }

  .img-box:nth-child(6){
    position: relative;
    grid-column:4/5; 
    grid-row:2/3; 
  }
  .img-box:nth-child(7){
    position: relative;
    grid-column:1/2; 
    grid-row:3/4; 
  }
.img-box:nth-child(8){
    position: relative;
    grid-column:2/5;  
  }
.img-box:after{
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background:rgba(194, 67, 67, 0.8);
  transition: width .5s ease;
  cursor:pointer;
}

.img-box:hover:after{
  width: 100%;
}

.overlay{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 10;
  color: #fff;
  opacity: 0;
}

.img-box:hover .overlay{
  opacity: 1;
}

/* MEDIA OF ABOUT --------------------------*/
@media (max-width:500px){
    .about-images{
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;
      margin:0 20px;
  }
}

/* TEAMS -----------------------------*/

.team-box{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  margin-top: 40px;
}
.box-img{
  margin: 80px auto;
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  position: relative;
  padding: 40px;
  width:300px;
  box-shadow: 0 0 15px #000;
  border-radius:5px;
  cursor:pointer;
}

.box-img:hover{
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}

.box-img:hover h3{
  color: #fff;
}


.box-img img{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -70px;
  left:35%;
  transform:translate(-35%);
  border: 3px solid #fff;
  transition: all .5s;
  animation: move 3s infinite;
  overflow: hidden;
}

@keyframes move{
  0%{
    transform:rotate(360deg) scale(1.2); 
  }
  100%{
    transform:rotate(0deg) scale(1); 
  }
}

.box-content:hover{
  color: #fff;
}

@media (max-width:500px){
  .team-box{
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* CONTACT -----------------------*/

.contact-form{
  background:#29323c;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:15px 0;
  margin:0 auto;
}

.contact-left{
  width:100%;
  height:100%;
  flex:1;
}

.contact-left img{
  width:100%;
  height:auto;
  object-fit:cover;
}

.contact-right{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
}
.contact-right form{
  width:80%;
}

.input-group{
  display:flex;
  flex-direction:column;
  align-items: flex-start;
  position:relative;
}

.input-group .input-label{
  color:#fff;
  text-transform:uppercase;
  position:absolute;
}


.input-group .input-message{
  color:#fff;
  text-transform:uppercase;
  
}

.input-group .input-field{
  width:100%;
  text-align: left;
  border:none;
  outline:none;
  border-bottom:0.1rem dashed #636363;
  background:transparent;
  color:#fff;
  padding:20px 0;
  margin:15px 0;
  
}
.input-group .input-field:focus{
  border-bottom-style: solid;
}

.submit-btn{
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  border:none;
  outline:none;
  color:#fff;
  text-transform:uppercase;
  width:150px;
  padding:10px;
  font-size:1.5rem;
  border-radius:5px;
  cursor:pointer;
  margin-top:20px;
}

.submit-btn:hover{
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}


/* CONTACT MEDIA ----------------------------*/

@media (max-width:500px){
  .contact-form{
    display:grid;
    grid-template-columns:1fr;
  }
  .contact-left{
    margin-bottom:20px;
  }
}

/* FOOTER ------------------------*/

footer{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  background:linear-gradient(45deg,#A52A2A,#8B0000);
  justify-content:center;
  align-items:center;
  align-self:center;
}

.footer-media ul{
  display:flex;
  flex-direction:row;
  justify-content: center;
  align-items:center;
}

.footer-media ul li{
  display:inline-block;
  width:60px;
  color:#fff;
  background:#29323c;
  padding:10px 0;
  margin:10px 2px;
}

.footer-media ul li:hover:nth-child(1){
  background-color:#3b5999;
}
.footer-media ul li:hover:nth-child(2){
  background-color:#cd201f;
}
.footer-media ul li:hover:nth-child(3){
  background-color:#0077b5;
}

/* FOOTER MEDIA -----------*/
@media (max-width:500px){
  footer{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
  }

  .footer-media ul li{
    margin:10px 20px;
  }
}