@font-face {
    font-family: 'achth';
    src: url('/font/archth.ttf') format('truetype'); 
  }

  @font-face {
    font-family: 'navbarsing';
    src: url('/font/navbar.woff2') format('woff2'); 
  }
  
  #main {
    font-family: 'achth', sans-serif;
  }

  nav {
    font-family: 'navbarsing', sans-serif !important;
  }

  body::-webkit-scrollbar {
    width: 0.5em;
  }
   
  body::-webkit-scrollbar-track {
    background: #f8f8f8;
  }
   
  body::-webkit-scrollbar-thumb {
    border-radius: 10%;
    background-color: #42A5F5;
    outline: 1px solid slategrey;
  }
  
  #section2{
    margin-top: 25px;
  }

  .navbar {
    padding: 10px 0;
}

.navbar-nav {
    flex: 1;
    justify-content: space-between;
    align-items: center;
    
}

.nav-link {
    text-align: center;
}

.navbar-brand img {
    height: 70px;
    width: auto;
}

nav{
  width: 100%;
  background-color: aliceblue;
  transition: all 0.3s ease; 
  z-index: 999;
}
.cc5{
  display: none;
}
/* มือถือ */
@media screen and (max-width: 991px) {
  body > nav > div > a > img{
    width: auto !important;
    height: 40px !important;
  }
  #navbarNav > ul > li:nth-child(6){
    width: 100%;
  }
  .cb{
    margin-bottom: 20px;
  }
  .cc6{
    display: none;
  }
  .cc3{
    display: none;
  }
  .cc5{
    display: block;
  }
  .pd{
    padding: 50px 50px 50px 50px !important;

  }
  .contact-card {
    background-color: #83bdf7 !important;
  }
}

/* คอม */
@media screen and (min-width: 992px) {
  body > nav > div > a > img{
    width: auto !important;
    height: 70px !important;
  }
  #navbarNav > ul > li:nth-child(6){
    width: 120px;
  }
  .cc{
    width: 100%;
    height: 640px !important;
  }
  .cc2{
    width: 100%;
    height: calc(640px * 0.6) !important;
  }
  .cc3{
    width: 100%;
    height: calc(640px * 0.4) !important;
  }
  
  .cc4{
    width: 100%;
    height: calc(640px * 0.48) !important;
  }
  .contact-card {
    background-color: inherit !important;
  }
  
}

a {
  color: inherit !important ;
  text-decoration: none !important;
}
.card-img{
  width: auto !important;
}
#navid{
  position: fixed;
  top: 13px;
}

.service-card {
  background-color: #f7b195 !important;
}

.about-card {
  background-color: #bc5b3d !important;
}

.portfolio-card {
  background-color: #dc8c1c !important;
}

.material-card {
  background-color: #8d9065 !important;
}

.btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8D7CE !important;
  color: #F8D7CE;
}

.pd{
  padding: 50px 100px 50px 100px;
}



@import url("https://fonts.googleapis.com/css?family=Roboto");
@-webkit-keyframes come-in {
  0% {
    -webkit-transform: translatey(100px);
            transform: translatey(100px);
    opacity: 0;
  }
  30% {
    -webkit-transform: translateX(-50px) scale(0.4);
            transform: translateX(-50px) scale(0.4);
  }
  70% {
    -webkit-transform: translateX(0px) scale(1.2);
            transform: translateX(0px) scale(1.2);
  }
  100% {
    -webkit-transform: translatey(0px) scale(1);
            transform: translatey(0px) scale(1);
    opacity: 1;
  }
}
@keyframes come-in {
  0% {
    -webkit-transform: translatey(100px);
            transform: translatey(100px);
    opacity: 0;
  }
  30% {
    -webkit-transform: translateX(-50px) scale(0.4);
            transform: translateX(-50px) scale(0.4);
  }
  70% {
    -webkit-transform: translateX(0px) scale(1.2);
            transform: translateX(0px) scale(1.2);
  }
  100% {
    -webkit-transform: translatey(0px) scale(1);
            transform: translatey(0px) scale(1);
    opacity: 1;
  }
}
* {
  margin: 0;
  padding: 0;
}

html, body {
  background: #eaedf2;
  overflow-x: hidden;  
}

.floating2-container {
  z-index: 999;
  position: fixed;
  width: 100px;
  height: 100px;
  bottom: 0;
  right: 0px;
  margin: 35px 25px;
}

.floating-container {
  z-index: 999;
  position: fixed;
  width: 100px;
  height: 100px;
  bottom: 0;
  right: 0;
  margin: 120px 25px;
}
.floating-container.hover-effect {
  height: 480px;
}
.floating-container.hover-effect .floating-button {
  box-shadow: 0 10px 25px rgba(44, 179, 240, 0.6);
  transform: translatey(5px);
  transition: all 0.3s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(1) {
  animation: come-in 0.4s forwards 0.2s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(2) {
  animation: come-in 0.4s forwards 0.3s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(3) {
  animation: come-in 0.4s forwards 0.4s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(4) {
  animation: come-in 0.4s forwards 0.5s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(5) {
  animation: come-in 0.4s forwards 0.6s;
}
.floating-container.hover-effect .element-container .float-element:nth-child(6) {
  animation: come-in 0.4s forwards 0.7s;
}

.element-container{
  margin-right: 100px;
}
.floating-container .floating-button {
  position: absolute;
  width: 65px;
  height: 65px;
  background: #2cb3f0;
  bottom: 0;
  border-radius: 50%;
  left: 0;
  right: 0;
  margin: auto;
  color: white;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  z-index: 100;
  box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  
  display: flex;
  align-items: center;
  justify-content: center;

}
.floating2-container .floating2-button {
  position: absolute;
  width: 65px;
  height: 65px;
  background: #2cb3f0;
  bottom: 0;
  border-radius: 50%;
  left: 0;
  right: 0;
  margin: auto;
  color: white;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  z-index: 100;
  box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.floating-container .float-element {
  position: relative;
  display: block;
  border-radius: 9%;
  width: 100px;
  height: 50px;
  margin: 15px auto;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 50px;
  z-index: 999;
  opacity: 0;
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
}
.floating-container .float-element .material-icons {
  vertical-align: middle;
  font-size: 16px;
}
.floating-container .float-element:nth-child(1) {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  margin-left: 23px ;
  background: rgb(255, 255, 255);
  box-shadow: 0 20px 20px -10px rgba(66, 165, 245, 0.5);
}
.imgen {
  width: 50px; /* ปรับขนาดของรูปตามที่ต้องการ */
  height: 50px;
}
.imgth {
  width: 50px; /* ปรับขนาดของรูปตามที่ต้องการ */
  height: 50px;
}

.floating-container .float-element:nth-child(2) {
  background: #0769B2ff;
  box-shadow: 0 20px 20px -10px rgba(66, 165, 245, 0.5);
}
.floating-container .float-element:nth-child(3) {
  background: #42A5F5;
  box-shadow: 0 20px 20px -10px rgba(76, 175, 80, 0.5);
}
.floating-container .float-element:nth-child(4) {
  background: #00B900;
  box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}
.floating-container .float-element:nth-child(5) {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}
.floating-container .float-element:nth-child(6) {
  background: #FF9800;
  box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}



/*รูป4*/
.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.services-title {
  font-size: 36px;
  color: #555;
  margin-bottom: 20px;
  position: relative;
}

.services-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ddd;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.service-item {
  text-align: center;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.service-number {
  font-size: 24px;
  color: #333;
  
}

.service-description {
  font-size: 14px;
  color: #666;
}

/**/








