/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 auto;
}
.nav {
  margin-top: 20px;

  display: flex;
  justify-content: space-around;
}
#container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 auto;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0px) scale(1);
  }
}
/* Smooth Theme Toggle Animation */
.theme-transition {
  transition: background-color 0.8s ease, color 0.8s ease;
}

.dark-mode {
  background-color: #181818;
  color: #fff;
}

/* Loading Screen Animation */
#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#content {
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Hamburger Menu Slide */
.menu-links {
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.menu-links.open {
  transform: translateX(0);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#backToTop:hover {
  background: #555;
}

/* Full-page loader */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 1s ease-out;
}
.menu {
  width: 50px;
  border: 2px solid black;
  /* height: 200px; */
}
.loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-loader {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.circle-loader img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: fadeIn 1s ease-in-out;
}

.circle-loader::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.circle-loader::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff9800;
  border-radius: 50%;
  animation: spinReverse 2s linear infinite;
}

.loading-text {
  letter-spacing: 1px;
  font-family: "Poppins";
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
  animation: fadeIn 2s ease-in-out;
}

.dots::after {
  content: "";
  display: inline-block;
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

/* Hide content initially */
#content {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-containers,
.animation {
  animation: appear 0.8s ease-out;
  view-timeline-name: --appear;
  animation-timeline: --appear;
  animation-range: entry 0% cover 50%;
}

h1 {
  font-family: "Playfair Display";
}
h2 {
  font-family: "Kanit";
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  margin-top: 20px;
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  /* height: 17vh; */
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  text-shadow: 2px 2px 9px rgba(0, 0, 0, 0.5);
}
.logo:hover {
  cursor: pointer;
}
.logo {
  border: 2px solid gray;
  padding: 10px;
  border-radius: 10px;
}
.a {
  text-transform: none;
  text-decoration: none;
}
/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}
/* Style the scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Adjust the width of the scrollbar */
  height: 10px; /* Adjust the height of the horizontal scrollbar */
}

/* Style the scroll handle */
::-webkit-scrollbar-thumb {
  background-color: #3498db; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Round corners */
}

/* Style the scrollbar track */
::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Background color of the track */
  border-radius: 10px;
}
.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  z-index: 10;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: white;
  width: 200px;
  max-height: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 12px 15px;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.menu-links a:hover {
  background-color: #f8f8f8;
  color: #000000;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 500px;
  opacity: 1;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 7px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-icon span {
  transform: none;
}

.hamburger-icon.open span {
  background-color: #363d45;
}

@media (max-width: 768px) {
  .menu-links {
    text-align: center;
  }

  .menu-links a {
    padding: 15px 10px;
  }
}

/* SECTIONS */

section {
  padding-top: 4vh;
  margin-bottom: 400px;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 20vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5px;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2.5rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
  /* flex-direction: column; */
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}
.rate {
  width: 100px;
  display: flex;
  margin: auto;
}
.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
}

.article-container {
  margin-top: 1.9rem;
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 20px;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}
.project-image-2 {
  width: 100px;
  display: flex;
  margin: auto;
}
.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  /* height: 70vh; */
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  margin: 0 1rem;
}

footer p {
  text-align: center;
  margin-bottom: 50px;
}
.profile-image {
  border-radius: 50%;
  border: 5px solid gray;
}
.hire {
  margin-top: 23px;
}
