@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400&display=swap');

* {
    box-sizing: border-box;
    scroll-behavior: smooth!important;
    font-family: 'Kanit', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  body::-webkit-scrollbar {
    width: 0;               /* width of the entire scrollbar */
  }
  
  body::-webkit-scrollbar-track {
    background: transparent;      /* color of the tracking area */
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: #8e8d8d;    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
    border: 3px solid white;  /* creates padding around scroll thumb */
  }
  
  body {
    margin: 0px;
    height: 100vh;
  }
  
/* navbar */
header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: #0b2239;
  z-index: 999;
}
.logo{
  text-align: center;
  margin: 0px;
  font-size: 30px;
  font-weight: 900;
  color: #c6c6c6;
  text-shadow: 0 1px 0 black;
}
header .header-left {
  display: flex;
  align-items: center;
}
header .header-left .logo {
  width: 140px;
}
header .header-left nav {
  margin-left: 50px;
}
header .header-left nav ul {
  display: flex;
}
nav ul li a {
  display: block;
  color: #cfd9e0;
  font-size: 18px;
  padding: 5px 10px;
  transition: 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #fff;
}
nav .login-signup {
  display: none;
}
header .header-right {
  display: flex;
  align-items: center;
}
header .login-signup {
  color: #cfd9e0;
  font-weight: bold;
}
header .login-signup a {
  display: inline-block;
  color: #0b2239;
  background: #4ad295;
  padding: 5px 12px;
  border-radius: 5px;
}
header .header-right .hamburger {
  margin-left: 20px;
  cursor: pointer;
  display: none;
}
header .header-right .hamburger div {
  width: 30px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}
@media only screen and (max-width: 1000px) {
  header {
      padding: 0 20px;
  }
  header .header-right .hamburger {
      display: block;
  }
  header .header-left nav {
      margin: 0;
      position: absolute;
      top: -100%;
      left: 0;
      width: 100%;
      height: fit-content;
      background-color: #0b2239;
      padding: 30px;
      transition: 0.3s;
      text-align: center;
      z-index: 999;
  }
  header .header-left nav.active {
      top: 70px;
  }
  header .header-left nav ul {
      display: block;
  }
}
@media only screen and (max-width: 500px) {
  nav .login-signup {
      display: block;
      margin-top: 20px;
  }
  header .header-right .login-signup {
      display: none;
  }
}

/* navbar end */

  .hero {
    margin: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
    padding: 5px;
    width: 100vw;
  }
  .title{
    text-align: center;
    margin: 0px;
    margin-top: 10px;
    font-size: 60px;
    font-weight: 900;
    color: #c6c6c6;
    text-shadow: 0 1px 0 black;          
  }
  .tit-sub{
    width: 100vw;
    padding-top: 0px;
    border-radius: 0px;
    background-color: #0b22394f;
    backdrop-filter: blur(5px);
  }
  .subtitle{
    margin: 0px;

    text-align: center;
    margin-bottom: 10px;
    padding: 0px;
    font-size: 30px;
    font-weight: 800;
    color: #c6c6c6;
    text-shadow: 0 1px 0 black;
  }
  
  #hero-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: changeBackground 9s infinite;
    z-index: -1;
  }
  .about{
    padding: 5%;
  }
  
  .left-line{
    border-left: 2px solid #0b2239;
    padding-left: 20px;
   
  }
  .about-img{
    width: 200%;
    max-height: 300px;
    object-fit: cover;
  }
  .about-box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }
  .services-text{
    display: flex;
    justify-content: space-evenly;
    height: 90px;
  }
  .services{
    text-align: center;
    padding: 5%;
  }
  .about-title{
    color: #0b2239;
    font-weight: 900;
    margin-top: 0;
  }
  .services-title{
    font-weight: 900;

    color: #0b2239;
    padding-bottom: 3%;
  }
  .services-option{
    display: flex;
    text-shadow: 0 1px 0 black;
    align-items: center;
    background-color: #0b2239;
    border-radius: 10px;
    margin-left: 1%;
    margin-right: 1%;
    padding: 1%;
    font-weight: 900;
    font-size: 15px;
    color: #c6c6c6;
    overflow-y: hidden;

    transition: 0.3s;
  }
  .services-option:hover{
    font-size: 20px;

  }
  .projects{
    padding: 5%;
    

  }
  .projects-title{
    color: #0b2239!important;
  }
  .project{
    background-color: rgb(11, 34, 57);
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    margin-top: 2%;
    border-radius: 10px;
    min-height: 130px;
    overflow-y: hidden!important;
  }
  .project-text{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    overflow-y: hidden!important;
    min-height: 90%;
  }
  .project-img{
    width: 120px;
  }
  .project-desc{
    color: #8e8d8d;
    display: none;
    transition: 0.3s;
  }
  .project-text:hover > .project-desc{
    display: flex;
    height: 90%;
    justify-content: space-evenly;
  }
  .contact{
    background-color: #0b2239;
    color: white;
    padding-bottom: 10px!important;
  }
  .contact{
    padding: 5%;
    color: #8e8d8d;
  }
  #map {
    height: 50vh;
    width: 80%;
    border-radius: 10px;
    border: 2px solid #0b2239;
    margin-top: 5%;
  }
  #location{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .contact-title{
    font-size: 20px;
    margin: 0;
  }
  .contact-subtitle{
    font-size: 15px;
    margin: 0;
  }
  .info{
    width: 50%;
    margin-top: 4%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .info-box{
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: center;
  }
  .contact-img{
    width: 60px;
    transition: 0.3s;
    overflow-y: hidden;
  }
  .contact-a{
    width: fit-content;
    height: 70px;
    overflow-y: hidden;
  }
  .contact-img:hover{
    width: 70px;
    overflow-y: hidden;
    
  }
  .appear{
    opacity:0;
    position: relative;
    top: 100px;
  }
  .footer{
    text-align: center;
    font-size: 13px;
  }
  a{
    text-decoration: none;
    color: #8e8d8d;
  }
  #arezza{
    background-image: url("./img/IMG-20230525-WA0010.jpg/")!important;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .project-text{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
  }
  .project-text{
    padding: 5%;
  }
  .project-desc{
    margin: 5%;
    width: 90%;
  }
  
  @keyframes changeBackground {
    0% { background-image: url('./img/IMG-20230525-WA0010.jpg'); }
    33% { background-image: url('./img/IMG-20230525-WA0006.jpg'); }
    66% { background-image: url('./img/IMG-20230525-WA0007.jpg'); }
    100% { background-image: url('./img/IMG-20230525-WA0012.jpg'); }
  }
  
  
  @media (max-width:600px) {
    .title{
        font-size: 30px;
    }
    .subtitle{
      font-size: 20px;
    }
    .tit-sub{
      padding: 5%;
    }
    .services-option{
        padding: 3%;
    }
    .services-text{
      padding: 3%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      height: 150px;
    }
    .footer{
        width: 95%;
      text-align: center;
      font-size: 7px;
    }
    .services-option{
      padding: 7%;
      height: 50px;
    }
    .services-option:hover{
      font-size: 15px;
    }
    #map{
      width: 100%;
    }
   
    .about-img{
      margin-top: 20px;
      margin-bottom: 20px;
    }
    .info{
      width: 90%;
    }

  }

  @media (max-width:900px) {
    .about-box{
      flex-direction: column;
    }
    
   
  }