:root {
  --ligth-green: rgb(75, 134, 125);
  --green: rgb(7, 56, 49);
  --peach: rgba(237, 209, 185, 0.755);
  --dark-peach: rgb(239 193 153);
}

:target {
  scroll-margin-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  color: var(--green);
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: white;
}

section {
  overflow: hidden;
}

.scroll {
  opacity: 0;
  transform: translate3d(-100px, 0, 0);
  transition: 0.3s;
}

.scroll-start {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 300px;
  height: 100%;
}

.hamburguer {
  display: block;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.hamburguer .line {
  display: block;
  width: 20px;
  height: 3px;
  background-color: black;
  margin-block: 3px;
  border-radius: 4px;
  transition: transform 0.5s, opacity 0.25s;
}

.hamburguer.active-btn .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburguer.active-btn .line:nth-child(2) {
  opacity: 0;
}

.hamburguer.active-btn .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

header {
  position: sticky;
  top: 0;
  height: 50px;
  background-color: rgb(228, 228, 228);
  font-weight: 700;
  z-index: 100;
}

header.title {
  font-size: 24px;
}

#header-nav-ds {
  display: none;
  z-index: 100;
}

#header-nav-mb {
  z-index: 100;
  position: absolute;
  top: -500px;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;

  background-color: rgb(228, 228, 228);

  width: 100%;
}

#header-nav-mb.active-btn {
  top: 50px;
}

#header-nav-mb .nav-itens {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  gap: 24px;
  padding: 24px;
}

#header-nav-mb .social-media {
  display: flex;
  align-items: center;
  gap: 24px;
}

#header-nav-mb .social-media a {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

#header-nav-mb .social-media a:hover {
  transform: scale(105%);
}

#header-nav-mb .social-media a img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 220px;
  text-align: center;
  border: 1px solid var(--green);
  background-color: var(--green);
  color: rgb(255 255 255);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 1;
  transition: all 0.3s ease;
}

.btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 220px;
  text-align: center;
  border: 1px solid var(--green);
  background-color: rgb(255 255 255);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 1;
  transition: all 0.3s ease;
}

.btn-white:hover,
.btn:hover {
  cursor: pointer;
  opacity: 0.8;
}

#home {
  height: 610px;
  background: linear-gradient(
    180deg,
    var(--green) 50%,
    rgb(255 255 255) 50%,
    rgb(255 255 255) 100%
  );
  text-align: center;
}

#home .container {
  flex-direction: column-reverse;
}

.home-img,
.home-txts {
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

.home-txts {
  max-width: 300px;
  gap: 18px;
}

.home-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-img img {
  max-width: 200px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#introduction {
  height: 720px;
  background: linear-gradient(
    180deg,
    var(--peach) 50%,
    rgb(255 255 255) 50%,
    rgb(255 255 255) 100%
  );
  text-align: left;
  margin: 42px 0;
}

#introduction .container {
  flex-direction: column;
}

.introduction-img,
.introduction-txts {
  position: relative;
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 24px 0;
}

.introduction-img img {
  width: 100%;
  object-fit: contain;
}

#projects {
  height: fit-content;
  padding: 50px 0;
  background-color: var(--peach);
}

#projects .container {
  flex-direction: column;
  position: relative;
}

/* Slideshow container */
.slideshow-container {
  position: relative;
  position: relative;
  margin: 0 auto;
  display: flex;
  transition: all 0.3s ease;
}

/* Hide the images by default */
.mySlides {
  position: relative;
  height: 300px;
  width: 300px;
}

/* Next & previous buttons */
.prev,
.next {
  display: flex;
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 5px;
  color: var(--green);
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: -10px;
  border-radius: 3px 0 0 3px;
}
.prev {
  left: -10px;
  border-radius: 3px 0 0 3px;
}

.content {
  padding: 8px 12px;
  position: absolute;
  top: 0;
  width: 100%;
  height: 300px;
}

.content a,
.content img {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgb(228, 228, 228);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--ligth-green);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: var(--green);
}

#about {
  display: flex;
  background-color: var(--green);
  padding: 50px 0;
}

#about h1,
#about h2,
#about h3,
#about h4,
#about p {
  color: #fff;
}

#about h4 {
  font-size: 12px;
}

hr {
  width: 100%;
}

.hr-light {
  opacity: 0.1;
}

#about .container {
  flex-direction: column;
  gap: 32px;
}

.about-work {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-work-div {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-work-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-graduation {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-graduation-div {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-graduation-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contact {
  display: flex;
  padding: 50px 0;
}

#contact .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

#contact .social-media {
  display: flex;
  align-items: center;
  gap: 24px;
}

#contact .social-media a {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

#contact .social-media a:hover {
  transform: scale(105%);
}

#contact .social-media a img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

footer {
  display: flex;
  background-color: var(--green);
  padding: 24px 0;
}

footer .container {
  align-items: center;
}

footer p {
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 700px;
  }
}

@media screen and (min-width: 556px) {
  .container {
    max-width: 500px;
  }
}

@media screen and (min-width: 992px) {
  header {
    height: 80px;
  }

  header.title {
    font-size: 30px;
  }

  .container {
    max-width: 900px;
  }

  .hamburguer {
    display: none;
  }

  #header-nav-mb {
    display: none;
  }

  #header-nav-ds {
    display: flex;
  }

  #header-nav-ds .nav-itens {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
  }

  #header-nav-ds .nav-itens .item {
    padding: 5px;
    transition: all 0.3s ease;
  }

  #header-nav-ds .nav-itens .item:hover {
    transform: translateY(-2px);
  }

  #home {
    height: 500px;
    background: linear-gradient(
      90deg,
      rgb(255 255 255) 50%,
      var(--green) 50%,
      var(--green) 100%
    );
    text-align: left;
    padding: 32px 0;
  }

  #home .container {
    flex-direction: row;
    gap: 56px;
  }

  .home-img,
  .home-txts {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-txts {
    padding-top: 0;
    max-width: 100%;
    gap: 24px;
    justify-content: center;
  }

  .home-txts h1 {
    font-size: 48px;
  }

  .home-txts h4 {
    font-size: 16px;
  }

  .home-txts p {
    font-size: 24px;
  }

  .home-btns {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .home-img img {
    align-self: center;
    max-width: 350px;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #introduction {
    height: 500px;
    background: linear-gradient(
      90deg,
      var(--dark-peach) 45%,
      rgb(255 255 255) 45%,
      rgb(255 255 255) 100%
    );
    text-align: left;
    margin: 80px 0;
  }

  #introduction .container {
    flex-direction: row;
    gap: 56px;
  }

  .introduction-img,
  .introduction-txts {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 0;
  }

  .introduction-img {
    width: 45%;
    padding: 40px;
  }

  .introduction-img img {
    width: 100%;
    object-fit: contain;
  }

  .introduction-txts {
    padding: 0;
    width: 50%;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }

  .introduction-txts h2 {
    font-size: 36px;
  }

  .introduction-txts p {
    font-size: 24px;
    text-align: justify;
  }

  .slideshow-container {
    max-width: 100% !important;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    transform: none !important;
  }

  .mySlides {
    transition: all 0.3s ease;
  }

  .mySlides:hover {
    scale: 105%;
  }

  .dots-div,
  .prev,
  .next {
    display: none !important;
  }

  #about {
    display: flex;
    background-color: var(--green);
    padding: 80px 0;
  }

  #about h1,
  #about h2,
  #about h3,
  #about h4,
  #about p {
    color: #fff;
  }

  #about h1 {
    font-size: 48px;
  }

  #about h2 {
    font-size: 20px;
  }

  #about h3 {
    font-size: 24px;
  }

  #about h4 {
    font-size: 14px;
  }

  #about p {
    font-size: 16px;
  }

  hr {
    width: 100%;
  }

  .hr-light {
    opacity: 0.1;
  }

  #about .container {
    flex-direction: column;
    gap: 32px;
  }

  .about-work {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .about-work-div {
    gap: 24px;
  }

  .about-work-cards {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .about-work-title,
  .about-work-text {
    flex: 1;
    text-align: justify;
  }

  .about-graduation {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 40px;
  }

  #about .about-graduation h3 {
    font-size: 20px;
  }

  .about-graduation-title,
  .about-graduation-div {
    flex: 1;
  }

  #about .about-graduation .about-graduation-title {
    font-size: 40px;
  }

  .about-graduation-div {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-graduation-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #contact {
    display: flex;
    padding: 50px 0;
  }

  #contact .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .contact-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 556px;
  }

  .contact-div h1 {
    font-size: 48px;
  }

  #contact .social-media {
    display: flex;
    align-items: flex-start;
    height: auto;
    gap: 24px;
  }

  #contact .social-media a {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
  }

  #contact .social-media a:hover {
    transform: scale(105%);
  }

  #contact .social-media a img {
    width: 100%;
    height: 100;
    object-fit: contain;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }
}
