:root {
  --light-red: #af3a3a;
  --light-second-red: #6d3e3e;
  --dark: #0c0b10;
  --font-main: "Bai Jamjuree", sans-serif;
  --font-para: "Inter", sans-serif;
}

* {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: #fafafa;
}

body::-webkit-scrollbar {
  width: 10px;
  height: 8px;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--light-red);
}

main section {
  margin-top: 150px;
}

@media (max-width: 1199px) {
  main section {
    margin-top: 120px;
  }
}

.section-title h1 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1.2rem);
  font-weight: 400;
}

.logo {
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 6vw, 1.7rem);
  line-height: 1.75rem;
  font-weight: 700;
}

.logo span {
  color: var(--light-red);
}



/* CSS Animations & Colors */
.light-linear {
  background: linear-gradient(to right, var(--dark), var(--light-red));
}

.dark-linear {
  background: linear-gradient(to right, #fff, var(--light-red));
}

.text-animation {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
  text-transform: uppercase;
  transform: translateY(20px);
  transition: all 2s ease;
}

.text-animation::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--light-second-red);
  transform: translateX(0);
}

.text-animation>* {
  opacity: 0;
  transition: all 3s ease;
}

.text-animation.reveal>* {
  opacity: 1;
}

.text-animation.reveal {
  transform: translateY(0);
}

.text-animation.reveal::before {
  animation: text-animation-before 2s forwards;
}

@keyframes text-animation-before {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(200%)
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(85px) scale(0.9);
  transition: all 1.7s ease;
}

.fade-up.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}



/* Buttons */
.btn-1 {
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 6vw, 1.1rem);
  font-weight: 500;
  color: #fff;
  max-width: 200px;
  padding: 10px 20px;
  border-radius: 30px;
  background-color: var(--light-red);
  transition: all 0.3s ease;
}

.btn-1:hover {
  background-color: #d14343;
  transform: translateY(-3px);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0) 0px 8px 16px -8px;
}

html.dark .btn-1:hover {
  box-shadow: rgba(255, 255, 255, 0.25) 0px 13px 27px -5px, rgba(255, 255, 255, 0) 0px 8px 16px -8px;
}

.btn-2 {
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 4vw, 1.3rem);
  font-weight: 500;
  color: var(--light-red);
  max-width: 400px;
  padding: 10px clamp(5px, 2vw, 40px);
  border-radius: 7px;
  border: 2px solid var(--light-red);
  transition: all 0.3s ease;
}

.btn-2:hover {
  color: #fff;
  background-color: var(--light-red);
  transform: translateY(-5px) scale(1.05);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

html.dark .btn-2:hover {
  box-shadow: rgba(255, 255, 255, 0.25) 0px 13px 27px -5px, rgba(255, 255, 255, 0) 0px 8px 16px -8px;
}

.btn-3 {
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 4vw, 1.3rem);
  font-weight: 500;
  color: #fff;
  max-width: 400px;
  padding: 10px clamp(5px, 5vw, 40px);
  border-radius: 7px;
  background-color: var(--light-red);
  transition: all 0.3s ease;
}

.btn-3:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

html.dark .btn-3:hover {
  box-shadow: rgba(255, 255, 255, 0.25) 0px 13px 27px -5px, rgba(255, 255, 255, 0) 0px 8px 16px -8px;
}



/* Cards */
.card-1 {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 7px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

html.dark .card-1 {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}

.card-1 .image-container {
  height: 400px;
  overflow: hidden;
}

.card-1 .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s ease;
}

.card-1:hover img {
  transform: scale(1.05);
}

.card-1 .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.795) 50%, rgba(0, 0, 0, 0) 100%);
}

.card-1 .card-body h1 {
  font-family: var(--font-main);
  font-size: clamp(1rem, 6vw, 1.8rem);
  font-weight: 700;
  color: #fff;
}

.card-1 .card-body p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1.2rem);
  font-weight: 400;
  color: #fff;
}

.card-2 {
  border-radius: 7px;
  padding: 20px;
  transform: scale(1);
  transition: all 0.5s ease;
}

.card-2:hover {
  transform: scale(1.01) translateY(10px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

html.dark .card-2:hover {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}

.card-2 .image-container {
  position: relative;
  display: flex;
  height: clamp(30vh, 50vw, 50vh);
  max-height: clamp(30vh, 50vw, 50vh);
  min-height: clamp(30vh, 50vw, 50vh);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-2 .image-container img {
  height: 100%;
  width: 100%;
  border-radius: 7px;
  -o-object-fit: cover;
  object-fit: cover;
  transition: all 3s ease-in;
  -o-object-position: top center;
  object-position: top center;
}

.card-2:hover img {
  -o-object-position: bottom center;
  object-position: bottom center;
}

.card-2:has(a):hover img {
  filter: blur(3px);
}

.card-2 .image-container .btn-3 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 0.3s ease;
}

.card-2:hover .image-container .btn-3 {
  opacity: 1;
  pointer-events: auto;
}

.card-2 h1 {
  font-family: var(--font-main);
  font-size: clamp(1rem, 6vw, 1.4rem);
  font-weight: bold;
  margin: 20px 0;
}

.card-2 p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1rem);
  padding: 0 5px;
  font-weight: 400;
}

.card-2 p::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: transparent;
}

.card-2 p::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--light-red);
}



/* Swiper CSS */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  width: clamp(5px, 10vw, 54px);
  height: clamp(5px, 10vw, 54px);
  opacity: 0.4;
  border-radius: 50%;
  background-color: var(--light-red) !important;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  fill: #fff !important;
  width: clamp(15px, 5vw, 30px) !important;
  height: clamp(15px, 5vw, 30px) !important;
}

.swiper-pagination {
  position: relative;
  margin-top: 20px;
  color: #CCD5AE;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid var(--light-second-red);
}

.swiper-pagination-bullet-active {
  background-color: var(--light-second-red);
}



/* Header Section */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9;
  background: transparent;
  transition: all 0.5s;
}

.header-scrolled {
  background: #af3a3a36;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

html.dark .header-scrolled {
  box-shadow: 0px 2px 15px rgba(255, 255, 255, 0.1);
}

.header nav ul li {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.header nav ul li:hover {
  color: var(--light-red);
  transform: translateY(-3px);
}

.header .dropdown ul {
  position: absolute;
  top: calc(100% + 30px);
  left: -30px;
  width: 80px;
  margin-top: 10px;
  opacity: 0;
  text-align: center;
  visibility: hidden;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 0.3s ease;
}

html.dark .header .dropdown ul {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}

.header .dropdown:hover ul {
  top: 100%;
  opacity: 1;
  visibility: visible;
}

.header .dropdown ul li {
  transition: all 0.3s ease;
}

.header .dropdown ul .language-option:not(.active):hover {
  background-color: #eeeeee;
}

.header .dropdown ul .language-option.active {
  color: #fff;
  background-color: var(--light-red);
}

.header .dropdown ul .language-option h6 {
  font-family: var(--font-main);
  font-weight: 500;
  padding: 10px;
}

/* mobile Sidebar */
.nav-mobile-container .nav-mobile {
  position: fixed;
  top: 0;
  right: -400px;
  bottom: 0;
  width: 300px;
  overflow-y: auto;
  z-index: 11;
  transition: all 0.3s ease;
}

.nav-mobile-container nav ul li {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-mobile-container nav ul li:hover {
  color: var(--light-red);
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .nav-mobile-container .nav-mobile.opened {
    right: 0;
  }

  .nav-mobile-container .nav-mobile ul li {
    padding: 15px 0;
  }

  .nav-mobile-container .overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .nav-mobile-container .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}



/* Hero Section */
.hero {
  margin-top: 170px;
}

@media (max-width: 1199px) {
  .hero {
    margin-top: 120px;
  }
}

.hero .title {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  line-height: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
}

.hero .title span {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1.3rem);
  font-weight: 400;
}

.hero .image-container {
  width: clamp(300px, 50vw, 400px);
  height: clamp(300px, 50vw, 400px);
  overflow: hidden;
  border-bottom: 5px solid var(--light-red);
  border-right: 3px solid var(--light-red);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 13s infinite;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes morphing {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}



/* Quote Section */
.quote .message-text {
  position: relative;
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 6vw, 1.7rem);
  font-weight: 600;
}

.quote .message-text::before,
.quote .message-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 5px;
  background-color: var(--light-red);
  transition: width 0.4s linear;
  transition-delay: 0.4s;
}

.quote .message-text::before {
  top: 0;
  right: 0;
}

.quote .message-text::after {
  bottom: 0;
  left: 0;
}

.quote .message-text.active:before,
.quote .message-text.active:after {
  width: 100%;
}

.quote .message-text span::before,
.quote .message-text span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 0;
  background-color: var(--light-red);
  transition: height 0.4s linear;
}

.quote .message-text span::before {
  left: 0;
  top: 0;
}

.quote .message-text span::after {
  right: 0;
  bottom: 0;
}

.quote .message-text.active span::before,
.quote .message-text.active span::after {
  height: 100%;
}



/* skills Section */
.skills {
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  overflow: hidden;
}

.skills .skills-wrapper {
  position: relative;
  padding: 30px 0;
}

.skills .skills-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 100%;
  background-color: var(--light-second-red);
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: -1;
}

.skills .scroller-container {
  height: 10vh;
  transform: rotate(-2deg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.skills .scroller {
  display: flex;
  animation: scroll 200s linear infinite;
  animation-delay: calc(200s / -1);
}

.skills .scroller:nth-child(2) {
  animation: sec-scroll 200s linear infinite;
  animation-delay: calc(200s / -2);
}

.skills p {
  font-family: var(--font-main);
  font-size: clamp(0.5rem, 6vw, 1.7rem);
  line-height: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin: 0 clamp(50px, 5vw, 100px);
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes sec-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-200%);
  }
}



/* Specialization Section */
@media (min-width: 1024px) {
  .specialization .specialization-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .specialization .specialization-container .specialization-1 {
    grid-row: span 1;
    grid-column: span 2;
  }

  .specialization .specialization-container .specialization-2 {
    grid-row: span 1;
    grid-column: span 1;
  }

  .specialization .specialization-container .specialization-3 {
    grid-row-start: 3;
    grid-row: span 2;
    grid-column: span 1;
  }

  .specialization .specialization-container .specialization-4 {
    grid-row: 2 / span 1;
    grid-column: 1 / span 1;
  }

  .specialization .specialization-container .specialization-5 {
    grid-row: 2 / span 1;
    grid-column: span 2;
  }

  .specialization-3 .card-1 {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    border-radius: 7px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }

  .specialization-3 .card-1 .image-container {
    height: 100%;
  }

  .specialization-3 .card-1 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .specialization .specialization-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
  }

  .specialization .specialization-container .specialization-3 {
    grid-column: span 2;
  }
}

@media (max-width: 599px) {
  .specialization .specialization-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-row-gap: 1rem;
  }
}

.specialization .tab-layout .tab-list .tab-item {
  font-family: var(--font-main);
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: bold;
  line-height: 60px;
  margin-left: 20px;
  cursor: pointer;
  color: var(--light-red);
  transition: all 0.3s ease;
}

.specialization .tab-layout .tab-list .tab-item.active {
  color: #fff;
}

.specialization .tab-layout .slider-tab {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  border-radius: 7px;
  z-index: -1;
  background-color: var(--light-second-red);
  transition: all 0.3s ease;
}

.specialization .tab-layout .tab-content .tab-description {
  height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(70px);
  transition: all 0.3s ease;
}

.specialization .tab-layout .tab-content .tab-description.active {
  height: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.specialization .tab-layout .tab-content .tab-description p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1.2rem);
  font-weight: 400;
}



/* Contact Section */
.contact .link {
  transition: all 0.5s ease;
}

.contact .svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-second-red);
}

.contact .link span {
  font-family: var(--font-main);
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 700;
}

.contact .link:hover {
  transform: scale(1.1);
}

.contact .link span::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

html.dark .contact .link span::before {
  background-color: #fff;
}

.contact .link:hover span::before {
  width: 100%;
}



/* Footer Section */
footer {
  background-color: var(--light-second-red);
}

footer p {
  font-family: var(--font-para);
  font-size: clamp(0.5rem, 4vw, 1.2rem);
  font-weight: 500;
  color: #fff;
  padding: 10px 0;
}



/* Tools */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fafafa;
  transition: opacity 1s ease;
}

.page-loader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 1em;
  height: 1em;
  color: var(--light-second-red);
  font-size: 45px;
  text-indent: -9999em;
  border-radius: 50%;
  transform: translateZ(0);
  animation: mltShdSpin 1.7s infinite ease, round 1.7s infinite ease;
}

@keyframes mltShdSpin {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }

  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }

  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em,
      -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em,
      -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
  }

  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }

  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
      -0.82em -0.09em 0 -0.477em;
  }

  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em,
      0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}

@keyframes round {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 35px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(5px, 10vw, 54px);
  height: clamp(5px, 10vw, 54px);
  z-index: 1;
  border-radius: 50%;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 0.3s ease;
}

html.dark .scroll-top {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

.scroll-top svg {
  width: clamp(15px, 5vw, 30px);
  height: clamp(15px, 5vw, 30px);
}