@font-face {
  font-family: 'Alex Brush';
  src: url(../fonts/Alex_Brush/AlexBrush-Regular.ttf);
}
@font-face {
  font-family: 'Kanit';
  src: url(../fonts/Kanit-Medium.ttf);
}
@font-face {
  font-family: 'Roboto';
  src: url(../fonts/Roboto/Roboto-Light.ttf);
}
body{
  background-color: #4B4A54;
  color: #FDFEFD;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  overflow-x: hidden;
}
strong{
  font-weight: 900;
}
p {
  line-height: 1.8;
}
a{
  text-decoration: none;
  color: inherit;
  text-decoration: underline;
}
p a:hover{
  color: #4B4A54;
  background-color: #f2f2f2;
}
h2{
  font-family: 'Kanit',
  sans-serif;
  margin-bottom: 1em;
}
.special-title{
  font-family: 'Alex Brush', sans-serif;
  font-size: 300%;
}
.special-title:after{
  content: '';
  display: block;
  position: relative;
  height: 5px;
  width: 50px;
  bottom: -10px;
  margin: 0 auto;
  background-color: #02a1e8;
  border-radius: 5px;
}
h3{
  font-family: 'Kanit', sans-serif;
}
svg{
  margin: -2px 0;
}
section{
  overflow: hidden;
}
.top-page-socmed{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #969595;
  margin-bottom: 1.5rem;
}
.h-200px {
  height: 200px !important;
}
.form-control{
  border-radius: 0;
}
.form-floating>label {
  color: #969595;
}
.hover-light{
  background-color: rgb(41, 41, 41);
  transition: background-color .3s;
}
.hover-light:hover{
  background-color: rgb(65, 65, 65);
}
.hover-scale{
  transition: transform 1s;
}
.hover-scale:hover{
  z-index: 1;
  transform: scale(1.05) !important;
}
.zooming{
  overflow: hidden;
}
.zooming img{
  transition: transform .5s;
}
.zooming img:hover{
  transform: scale(1.2);
}
.lead{
  color: #dfdede;
  font-style: italic;
  margin: 25px 0;
  line-height: 1.5;
}
.card-body p{
  font-size: 18px;
  line-height: 1.3;
}
.card-title{
  font-weight: 700;
  line-height: 1;
}
.web-preview .vendor{
  color: #546e7a;
  font-style: italic;
  font-size: 14px;
}
.carousel-indicators [data-bs-target] {
  height: 15px;
  width: 15px;
  border-radius: 50%;
}
.carousel-caption {
  color: #ffeb00;
  text-shadow: 1px 1px #000;
  
}
.img-with-caption{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.img-with-caption:hover > .caption{
  background-color: rgba(0, 0, 0, .7);
  border: 3px solid whitesmoke;
  border-radius: 5px;
  padding: 5px 10px;
  width: 100%;
  transform: scale(1.09);
}
.img-with-caption .caption{
  font-size: 1rem;
  position: absolute;
  text-decoration: none;
  color: aliceblue;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .7);
  transition: all .3s;
  line-height: 1;
  text-align: center;
}
@media screen and (min-width: 1200px) {
  .gallery-preview .gallery-caption{
    height: 100vh;
  }
}
.hide{
  display: none;
}
#navbar {
  top: 0;
  transition: top 0.3s;
}
.navbar{
  background-color: #000;
}
.navbar-brand{
  font-family:'Alex Brush', cursive;
  font-size: 36px;
  line-height: 1;
}
.nav-link{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
}
.nav-link:after{
  content: '';
  border-radius: 5px;
  display: block;
  position: relative;
  bottom: -5px;
  margin: 0 auto;
  width: 0;
  opacity: 0;
  height: 3px !important;
  background-color: #02a1e8;
  transition: width .3s;
}
.nav-link:hover:after {
  width: 30px;
  opacity: 1;
  background-color: #fff;
}

.active .nav-link:after{
  width: 30px;
  opacity: 1;
}
.lang-menu{
  display: flex;
  flex-direction: column;
  margin-left: auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.selected-lang{
  padding: 5px;
  cursor: pointer;
}
.lang-menu img{
  width: 20px;
  height: 20px;
}
.lang-menu ul{
  display: none;
  position: absolute;
  top: 48px;
  padding: 0;
  background-color: #2A272A;
  border: 1px solid #aaaaaa;
  box-shadow: 0 1px 10px rgb(0 0 0 / 20%);
}
.lang-menu:hover > ul{
  display: block;
}
.lang-menu ul li{
  list-style: none;
}
.lang-menu ul li a{
  display: block;
  padding: 5px 10px;
  text-decoration: none;
}
.lang-menu ul li a:hover{
  background-color: #f2f2f2;
  color: #4B4A54;
}

.message {
  position: absolute;
  top: 5rem;
  right: 0;
  left: 0;
  margin-top: 20px;
  animation: shake 1s;
  animation-iteration-count: infinite;
}
.message .alert{
  margin-left: auto;
  margin-right: 0;
}
@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.contact-icon{
  margin: 20px 0;
  display: flex;
  align-items: center;
}
.contact-icon a:first-child{
  margin-left: 0;
}
.contact-icon a{
  margin-left: 20px;
  color: inherit;
}
.bg-primary{
  background-color: #02a1e8;
}
.background-primary-g180{
  background-image: linear-gradient(180deg, #02a1e8, #30b3f0);
}
.text-primary{
  color: #02a1e8;
}
.btn{
  border-radius: 0;
}
.btn-primary{
  background-color: #02a1e8;
  border-color: #3fbbf5;
}
.btn-primary:hover{
  background-color: #3fbbf5;
  border-color: #3fbbf5;
}
.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  background-color: #02a1e8;
  border-color: #02a1e8;
}
.btn-outline-primary {
  color: #02a1e8;
  border-color: #02a1e8;
}
#hero{
  padding-top: 10rem;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero-bg{
  top: 0;
  min-height: 100%;
  min-width: 100%;
  position: absolute;
  z-index: -1;
  filter: brightness(0.3);
}
#hero h2{
  font-family: 'Kanit',
  sans-serif;
  color: #02a1e8;
  font-size: 30px;
  font-weight: 600;
}
#hero h2:after{
  display: none;
}
#hero h1{
  font-family: 'Kanit',
  sans-serif;
  margin: 25px 0;
  font-weight: bold;
  line-height: 110%;
}
.photoprofile img{
  max-width: 200px;
}

.shadow-onblack{
  stroke: #fff;
  stroke-width: 1px;
  stroke-linecap: butt;
  stroke-dasharray: 0;
}
.contact-form{
  background-color: #fff;
  padding: 20px 10px;
}
#aboutme{
  background-color: #4B4A54;
}
#whyhireme{
  background: url(../images/coding-bg.jpg) left no-repeat;
  background-size: cover;
}
#myworks{
  background-color: #4B4A54;
}
#hidroponic-gallery {
  background: url(../images/vegetable-bg.jpg) left no-repeat;
  background-size: cover;
}
#contact{
  background-color: #4B4A54;
}
#footer{
  padding: 6rem 0;
  color: darkgray;
  font-size: 14px;
  background-color: #000;
}

.invalid-feedback{
  color: #dc3545;
}

/* ANIMATING CONTENT */
.fade-in{
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1s ease-in,
  transform 400ms ease-in;
}
.fade-in.appear{
  opacity: 1;
  transform: scale(1);
}
.slide-in{
  opacity: 0;
  transform: translateY(20%);
  transition: transform 400ms ease-in,
  opacity 1s ease-in;
}
.slide-in.appear{
  opacity: 1;
  transform: translateY(0);
}
.from-left{
  grid-column: 2 / 3;
  transform: translateX(-50%);
}
.from-right{
  grid-column: 3 / 4;
  transform: translateX(50%);
}
.from-left,
.from-right{
  transition: opacity .8s ease-in, transform .8s ease-in;
  opacity: 0;
}
.from-left.appear,
.from-right.appear{
  transform: translateX(0);
  opacity: 1;
}
/* END of ANIMATING CONTENT */

/* Humburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  position: relative;
}

.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -6px;
  top: -5px;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #aaaaaa;
  border-radius: 3px;
  transition: .5s;
}

/* Hamburger Animation */
.menu-toggle span:nth-child(2) {
  transform-origin: 0 0;
}

.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}

.menu-toggle input:checked~span:nth-child(2) {
  transform: rotate(45deg) translate(-1px, -1px);
}

.menu-toggle input:checked~span:nth-child(4) {
  transform: rotate(-45deg);
}

.menu-toggle input:checked~span:nth-child(3) {
  opacity: 0;
  transform: scale(0);
}

@media screen and (max-width:991px){
  .menu-toggle {
    display: flex;
  }
  .navbar-nav{
    height: calc(100vh - 80px);
    justify-content: space-evenly;
    align-items: center;
  }
  .photoprofile img{
    filter: grayscale(0);
  }
}

/* Tab Screen */
@media screen and (max-width: 768px) {
  #hero .row{
    flex-direction: column-reverse;
    text-align: center;
  }
  #hero {
    margin-top: 3rem;
  }
  .photoprofile img {
    width: 80%;
    margin-bottom: 50px;
  }
  .contact-icon{
    justify-content: center;
  }
}
/* End of Tab Screen */

/* Phone Screen */
@media screen and (max-width: 576px) {
  #footer {
    font-size: 16px;
  }
  .nav-link:after {
    display: none;
  }
}
/* End of Phone Screen */