* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   text-decoration: none;
   list-style: none;
   scroll-behavior: smooth;
   font-family: 'Kanit', sans-serif;
}

html,
body {
   width: 100%;
   height: 100%;
   scroll-padding: 110px;
}

/* root variables to specify colors , change the color as you want */
:root {
   --bg-color: rgb(0, 0, 0);
   --text-color: #ffffff;
   --main-color: #ff7300;
   --main2-color: #0073FF;
   --second-color: gray;
   --other-color: #12141c;
   --h1-font: 5rem;
   --h2-font: 3.2rem;
   --p-font: 1.2rem;
}

a {
   color: var(--text-color);
}

/* :root{
  --bg-color:#060714
  --other-color:#0f1220;
  --main-color:#00d4ff;
  --main2-color:#9b5cff;
  --glow: linear-gradient(90deg,var(--accent1),var(--accent2));
  --second-color:#9aa3b2;
  --text-color:#eaf2ff;
} */

body {
   background: var(--bg-color);
   color: var(--text-color);
   overflow: auto;
}

header {
   position: fixed;
   right: 0;
   top: 0;
   width: 100%;
   z-index: 100;
   display: flex;
   align-items: center;
   background-color: #111;
   justify-content: space-between;
   padding: 10px 20px !important;
   transition: all .4 ease;
   border-bottom: 1px solid var(--main-color);
}

.linkFacebook {
   font-size: 30px;
   padding: 0px 20px;
}

.logo {
   height: 5rem;
}

.logo img {
   width: 100%;
   height: 100%;
   transition: all .40s ease;
   border-radius: 50%;
}

.logo img:hover {
   scale: 1.1;
}

.navbar {
   display: flex;
   gap: 20px;
   margin-right: 20px;
   position: relative;
}

.navbar>span {
   width: 100%;
   height: 2px;
   background: var(--main-color);
   position: absolute;
   bottom: 0px;
   transition: .1s ease;
   border-radius: 2px;
}

.navbar li a {
   color: var(--second-color);
   font-size: 1.2rem;
   transition: all .40s ease;
   text-align: center;
   padding: 10px 0px;
   display: block;
}

.navbar a:hover {
   color: var(--main-color);
   font-weight: 900;
   font-size: 1.3rem;
}

#menu-icon {
   font-size: 36px;
   color: var(--text-color);
   z-index: 10001;
   cursor: pointer;
   display: none;
}

section {
   padding: 160px 16% 90px;
}

.home {
   height: 100vh;
   width: 100%;
   position: relative;
   background: url(../img/bg.png);
   backface-visibility: hidden;
   background-size: cover;
   background-position: center;
   display: flex;
   align-items: center;
   justify-content: flex-start;
   padding-top: 100px;
   height: 100vh !important;
}

.home-text h1 {
   margin: 20px 0;
   font-size: var(--h1-font);
   font-weight: bold;
   line-height: 1.1;
   letter-spacing: 2px;
}

.home-text span {
   background: linear-gradient(45deg, #19E3D5 0%, rgba(168, 125, 208, 1) 100%);
   color: #0000;
   background-clip: text;
   animation: rotateColor 1s infinite ease-in-out;
}

.home-text h4 span {
   color: var(--text-color);
}

.home-text h4 {
   color: var(--main-color);
   font-size: 5vmin;
   font-weight: 600;
   margin-bottom: 1rem;
}

.home-text h4 img {
   width: 7vmin;
}

.home-text h5 {
   color: var(--main-color);
   font-size: 4vmin;
   font-weight: 600;
   margin-bottom: 1rem;
}

.home-text h5 Span {
   color: var(--text-color);
   font-size: 4vmin;
   font-weight: 600;
   margin-bottom: 1rem;
}

button:not(.back-to-top) {
   display: inline-block;
   padding: 14px 40px;
   border-radius: 0.5rem;
   font-size: 17px;
   font-weight: 800;
   transition: all 0.40s ease;
   background-color: var(--main-color);
   color: var(--text-color);
}

button:hover:not(.back-to-top) {
   background-color: var(--text-color);
   color: var(--bg-color);
}

.about {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   align-items: center;
   gap: 2rem
}

h4 {
   margin: 10px 0;
   color: var(--main-color);
   font-size: 20px;
}

h2 {
   font-size: var(--h2-font);
}

.about-text p {
   color: var(--second-color)
}

.about-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   grid-template-rows: repeat(2, auto);
   gap: 10px;
   margin: 1rem 0 1rem 0;
}

.about-in {
   padding: 10px;
   font-size: 1.4rem;
}

.about-img img {
   height: auto;
   width: 100%;
   max-width: 460px;
}

.main-text {
   text-align: center;
}

.main-text h4 {
   color: var(--main-color);
   font-size: 20px;
}

.main-text h2 {
   font-size: var(--h2-font);
}

.services-content {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   align-items: center;
   text-align: center;
   gap: 2rem;
   margin-top: 5rem;
}

.box {
   padding: 45px;
   background: var(--other-color);
   border-top: 5px solid transparent;
   transition: all .40s ease;
   cursor: pointer;
   border-radius: 0.6rem;
   height: 100%;
}

.box i {
   font-size: 4rem;
   color: var(--main-color);
   margin-bottom: 10px;
}

.box h3 {
   font-size: 24px;
   font-weight: 600;
   margin: 15px 0;
   transition: all .40s ease;
}

.box p {
   color: var(--second-color);
   font-size: var(--p-font);
   line-height: 30px;
}

.box:hover {
   background: #050504;
   transform: scale(1.01) translateY(-5px);
   border-top: 5px solid var(--main-color);
   
}

.portfolio-content {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   align-items: center;
   gap: 1rem;
   margin-top: 5rem;
}

.portfolio-content>.row img {
   height: auto;
   width: 100%;
   border-radius: 1rem;
   margin-bottom: .5rem;
}

.portfolio-content>.row img.small {
   background: #fff9;
   padding: 10px;
}

.portfolio-content>.row {
   padding: 25px;
   background: var(--other-color);
   border-radius: 1rem;
   transition: all .40s ease;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   height: 100%;
}

.main-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
}

.portfolio-content>.row h3 {
   font-size: 25px;
   text-align: center;
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-top: 10px;
}

.portfolio-content>.row h6 {
   color: var(--main-color);
   font-size: 1rem;
}

.portfolio-content>.row i {
   color: var(--text-color);
   font-size: 1.3rem;
   transition: all .40s ease;
   
}

.portfolio-content>.row i:hover {
   color: var(--main-color);
   font-size: 1.4rem;
}

.portfolio-content>.row:hover {
   background: #050504;
   transform: scale(1.01) translateY(-5px);
   border-top: 5px solid var(--main-color);
}

.contact {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   align-items: center;
   gap: 3rem;
}

.contact-text h4 {
   margin: 15px 0;
   color: var(--main-color);
   font-style: 20px;
   font-weight: 600;
   
}

.contact-text h2 {
   font-size: var(--h2-font);
}

.contact-text p {
   font-size: var(--p-font);
   color: var(--second-color);
   line-height: 30px;
   margin-bottom: 2rem;
}

.contact-list {
   margin-bottom: 3rem;
}

.contact-list li {
   margin-bottom: 10px;
   display: block;
}

.contact-list li a {
   display: block;
   color: var(--second-color);
   font-size: var(--p-font);
   font-weight: 400;
   transition: all .40s ease;
}

.contact-list li a:hover {
   transform: scale(1.01) translateY(-5px);
   color: var(--main-color);
}

.contact-icons i {
   height: 40px;
   width: 40px;
   font-size: 1.2rem;
   background: var(--other-color);
   border-radius: 0.5rem;
   color: var(--main-color);
   padding: 10px;
   margin-right: 2vh;
   transition: all .40s ease;
   animation: rotateColor 1s infinite;
}

.contact-icons i:hover {
   transform: scale(1.01) translateY(-5px);
   color: var(--text-color);
   background: var(--main-color);
   
}

.contact-form {
   position: relative;
}

.contact-form input,
.contact-form textarea {
   border: none;
   outline: none;
   width: 100%;
   padding: 18px;
   background: var(--other-color);
   color: var(--text-color);
   font-size: 1rem;
   margin-bottom: 0.5rem;
   border-radius: 0.5rem;
}

.contact-form textarea {
   resize: none;
   height: 220px;
}

.contact-form .send {
   display: inline-block;
   font-size: 20px;
   font-weight: 500;
   background: var(--main-color);
   width: 190px;
   transition: all .40s ease;
   padding: 15px;
}

.contact-form .send:hover {
   transform: scale(1.01);
   color: var(--bg-color);
   background-color: var(--text-color);
   
}

.footer-text {
   text-align: center;
   font-size: var(--p-font);
   line-height: 3rem;
}

.footer-text i {
   color: var(--main-color);
   font-size: 1.4rem;
}

.footer-text i:hover {
   color: var(--second-color);
   font-size: 1.8rem;
}

.footer-text a {
   color: rgb(0, 106, 255);
}


@media (max-width : 1325px) {
   header {
      padding: 16px 3%;
   }
   
   section {
      padding: 130px 3% 60px;
   }
}





/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
   height: 60px;
}

.skills .progress .skill {
   margin-bottom: 6px;
   text-transform: uppercase;
   display: block;
   font-weight: 600;
}

.skills .progress .skill .val {
   float: right;
   font-style: normal;
}

.skills .progress-bar-wrap {
   background: #111;
   height: 10px;
   border-radius: 5px;
   overflow: hidden;
}

.skills .progress-bar {
   width: 0%;
   height: 100%;
   transition: 0.9s;
   background-color: var(--main-color);
   border-radius: 5px;
}


/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
   padding-bottom: 50px;
}

.section-title h2 {
   font-weight: 700;
   padding-bottom: 20px;
   position: relative;
}

.section-title h2:after {
   content: "";
   position: absolute;
   display: block;
   width: 50px;
   height: 3px;
   background: var(--accent-color);
   left: 0;
   bottom: 0;
}

.section-title p {
   color: #aaa;
}

.card {
   padding: 20px;
   transform: translateY(30px);
   transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.visible {
   opacity: 1;
   transform: translateY(0);
}





.back-to-top {
   padding: 10px;
   position: fixed;
   right: 20px;
   bottom: 20px;
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: var(--main-color);
   color: var(--text-color);
   border: none;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 6px 18px rgba(2, 28, 75, 0.25);
   cursor: pointer;
   opacity: 0;
   transform: translateY(20px) scale(0.95);
   transition: opacity 0.28s ease, transform 0.28s ease;
   z-index: 101;
}

.back-to-top.show {
   opacity: 1;
   transform: translateY(0) scale(1);
}

.back-to-top:hover {
   outline: 3px solid rgba(0, 117, 255, 0.3);
   outline-offset: 3px;
}

.back-to-top i {
   font-size: 30px;
   pointer-events: none;
}

@media (max-width: 480px) {
   .back-to-top {
      right: 12px;
      bottom: 12px;
      width: 44px;
      height: 44px;
   }
}



#loadingPage {
   position: fixed;
   z-index: 1000;
   background: #111;
   width: 100vw;
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: .3s !important;
}

#loadingPage>span {
   font-size: 200px;
   background: linear-gradient(45deg, #19E3D5 0%, rgba(168, 125, 208, 1) 100%);
   color: #0000;
   background-clip: text;
   animation: jump 1s infinite ease-in-out;
}




@media (max-width: 970px) {
   :root {
      --h1-font: 3.5rem;
      --h2-font: 2.5rem;
      --p-font: 1rem;
   }
   
   section {
      padding: 70px 3% 60px;
   }
   
   .home {
      height: 85vh;
   }
   
   .about {
      grid-template-columns: 1fr;
   }
   
   .about-img {
      text-align: center;
      margin-bottom: -500px;
   }
   
   .about-img img {
      opacity: 0.2;
      z-index: 1;
   }
   
   .about-text {
      text-align: center;
      z-index: 0;
   }
   
   .contact {
      grid-template-columns: 1fr;
      align-items: center;
   }
   
   .contact-text {
      text-align: center;
   }
   
   #menu-icon {
      display: block;
   }
   
   .navbar {
      position: absolute;
      top: 100px;
      right: 3%;
      width: 40vw;
      background: var(--other-color);
      transition: all 0.40s ease;
      flex-direction: column;
      gap: 1px;
      opacity: 0;
      font-size: 2rem;
      font-weight: bold;
      overflow: hidden;
      padding: 20px 0px;
      border: 1px solid var(--main-color);
      border-radius: 0px 0px 20px 20px;
      border-top: none;
      pointer-events: none;
   }
   
   .navbar.active {
      opacity: 1;
      pointer-events: initial;
   }
   
   .back-to-top,
   a {
      cursor: none;
   }
   
   .portfolio-content>.row h3 {
      font-size: 21px;
   }
   
   .linkFacebook {
      display: none;
   }
}

@keyframes rotateColor {
   0% {
      filter: hue-rotate(0deg);
   }
   
   100% {
      filter: hue-rotate(360deg);
   }
}

@keyframes jump {
   
   0%,
   100% {
      transform: translateY(0px);
      filter: hue-rotate(0deg);
   }
   
   50% {
      filter: hue-rotate(360deg);
   }
   
   60% {
      transform: translateY(-50px);
   }
}