@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;1,100&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit';
}

html {
  scroll-behavior: smooth;
  ;
}

body {
  background: #000000 !important;
}

.nabbar-bg {
  background: linear-gradient(to right, #000000 10%, #FFE194);
}

.nabbar-bg a {
  color: #000000;
  font-size: large;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #000000, transparent);
  z-index: 10000;
}

section img {
  position: absolute;
  /*อิสระ*/
  top: 0;
  left: 0;
  max-width: 70%;
}

section div {
  position: absolute;
  /*อิสระ*/
  color: #ffffff;
  top: 27%;
  right: 0%;
  background-color: #d30349;
  padding: 50px;
  /* font-size: 100px; */
  border-radius: 40px 0 0 40px;
}

@media (max-width: 991px) {
  .nabbar-bg a {
    color: #ffffff;
    font-size: large;
  }

  /* .nabbar-bg a.active {
    color: #d30349;
    font-size: large;
  }

  .nabbar-bg a.hover {
    color: #d30349;
    font-size: large;
  } */
}


@media (max-width: 768px) {
  section h1 {
    position: absolute;
    /*อิสระ*/
    color: #ffffff;
    top: 27%;
    right: 0%;
    background-color: #d30349;
    padding: 50px;
    font-size: 50px;
    border-radius: 40px 0 0 40px;
  }

  section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
  }

  .sec {
    position: relative;
    padding: 70px !important;
    text-align: center;
  }

}

@media (max-width: 600px) {
  section {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
  }

  .sec {
    position: relative;
    padding: 60px !important;
    text-align: center;
  }
}

@media (max-width: 500px) {
  section {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
  }

  .sec {
    position: relative;
    padding: 50px !important;
    text-align: center;
  }
}


.sec {
  position: relative;
  padding: 100px;
  text-align: center;
}

.sec h2 {
  font-size: 5rem;
  color: #FFE194;
  margin-bottom: 20px;
}

.sec h5 {
  color: #FFE194;
  margin-bottom: 20px;
}

.sec p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.5rem;
  font-family: consolas;
}


/* education */

.hover-menu {
  position: relative;
  overflow: hidden;
  margin: 8px;
  min-width: 340px;
  max-width: 480px;
  max-height: 290px;
  width: 100%;
  height: auto;
  background: #000;
  text-align: center;
  box-sizing: border-box;
  border-radius: 10px;
}

.hover-menu * {
  box-sizing: border-box;
}

.hover-menu img {
  position: relative;
  max-width: 100%;
  top: 0;
  right: 0;
  opacity: 1;
  transition: 0.3s ease-in-out;
}

.hover-menu div {
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  padding: 8px 4px;
  background: #0A1931;
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hover-menu div h5 {
  display: block;
  line-height: 2;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  padding: 5px 15px;
  position: relative;
  transition: 0.3s ease-in-out;
}

.hover-menu div a:hover {
  text-decoration: underline;
}

.hover-menu:hover img {
  opacity: 0.5;
  right: -120px;
}

.hover-menu:hover div {
  left: 0;
  opacity: 1;
}

/* skill */
.img-front {
  width: 150px;
  height: auto;
  padding: 8px;
}

.img-front:hover {
  box-shadow: #3DB2FF;
  border-width: 10px;
  border-color: #FFE194;
}

.img-cloud {
  position: absolute;
  /*อิสระ*/
  /* top: 0; */
  /* right: -300px; */
  max-width: 20%;
}

/* ล่างขึ้นบน */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

/* working */
.img-work {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  background-color: #ffffff;
  border-radius: 10px;
  ;
}


/* multiple carousel  */
@media (max-width: 768px) {
  .carousel-inner .carousel-item>div {
    display: none;
  }

  .carousel-inner .carousel-item>div:first-child {
    display: block;
  }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
  display: flex;
}

/* large - display 6 */
@media (min-width: 992px) {

  .carousel-inner .carousel-item-right.active,
  .carousel-inner .carousel-item-next {
    transform: translateX(50%);
  }

  .carousel-inner .carousel-item-left.active,
  .carousel-inner .carousel-item-prev {
    transform: translateX(-50%);
  }
}

.carousel-inner .carousel-item-right,
.carousel-inner .carousel-item-left {
  transform: translateX(0);
}

.movie-img {
  /* height:200px; */
  width: 150px;
  background-color: #000000;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: fill;
}

.movie-title {
  height: 40px;
  width: 150px;
  background-color: black;
  overflow: hidden;
}

/* work++++++++++++++++++++ */
.hover-img {
  background-color: #000;
  color: #fff;
  display: inline-block;
  margin: 8px;
  max-width: 320px;
  min-width: 240px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
  border-radius: 10%;
}

.hover-img * {
  box-sizing: border-box;
  transition: all 0.45s ease;
}

.hover-img:before,
.hover-img:after {
  background-color: rgba(0, 0, 0, 0.5);
  border-top: 32px solid rgba(0, 0, 0, 0.5);
  border-bottom: 32px solid rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0;
  transform: scaleY(2);
}

.hover-img img {
  vertical-align: top;
  max-width: 100%;
  backface-visibility: hidden;
}

.hover-img figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1em;
  opacity: 0;
  z-index: 2;
  transition-delay: 0.1s;
  font-size: 24px;
  font-family: sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hover-img:hover:before,
.hover-img:hover:after {
  transform: scale(1);
  opacity: 1;
}

.hover-img:hover>img {
  opacity: 0.7;
}

.hover-img:hover figcaption {
  opacity: 1;
}

/* .zoom:hover {
  transform: scale(1.2);
  scroll-behavior: smooth;
} */

/* ล่างขึ้นบน */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* display: none; */
}

/* ===== Workings (Modern) ===== */
.workings-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.work-card{
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.work-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
  border-color: rgba(255,225,148,.35);
}

.work-card__left{
  width: 96px;
  min-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(65,88,208,.25), rgba(200,80,192,.2), rgba(255,204,112,.18));
}

.work-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  padding: 8px;
}

.work-card__right{
  flex: 1;
  padding: 16px 16px;
}

.work-company{
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-align: start;
}

.work-position{
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-align: start;
}

.work-date{
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.work-badge{
  padding: .45rem .75rem;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Status colors */
.work-badge--intern{
  background: rgba(255,204,112,.18);
  border: 1px solid rgba(255,204,112,.35);
  color: #ffe194;
}

.work-badge--freelance{
  background: rgba(200,80,192,.18);
  border: 1px solid rgba(200,80,192,.35);
  color: #ffd3ff;
}

.work-badge--fulltime{
  background: rgba(65,88,208,.18);
  border: 1px solid rgba(65,88,208,.35);
  color: #dfe8ff;
}

/* Responsive spacing */
@media (max-width: 576px){
  .work-card__left{ width: 78px; min-width: 78px; padding: 12px; }
  .work-logo{ width: 52px; height: 52px; }
  .work-company{ font-size: 16px; }
}
