@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap');
/*give all the border box*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}
/*background will be a gradient color*/
body {
  min-height: 100vh;
  background: linear-gradient(#fcfcfb, #f7bea9,#ef98a7, #807094, #604f71);
  overflow-x: hidden;
}
/**/
nav {
  position: fixed;  
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; 
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.8); 
  z-index: 1000;
}

/* Hide the hamburger menu by default */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

nav li {
  height: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
  border-radius: 15px;
  display: inline-block;
}

nav a:hover,
nav a.active {
  background-image: linear-gradient( #f7bea9 , #ef98a7, #807094);
  background-size: 200% 200%;
  background-position: left center;
  transition: background-position 1s ease;
}

/* Hide navigation links on small screens */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
  }

  .nav-links li {
    padding: 15px;
  }

  .nav-links a {
    font-size: 1.5em;
  }

  /* Show hamburger icon */
  .menu-toggle {
    display: flex;
  }
}

/* Toggle active menu */
.nav-active {
  display: flex !important;
}

/*this is for the pictures layout*/
.parallax-container {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.parallax, .parallaxPlusX, .parallaxMinusX {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s ease-out; 
}

.parallaxPlusX {
  background-image: url("parallax/new-sun-v1.png");
}

#text, .content-bio h2 {
  text-align: center;
  padding-bottom: 50px;
  font-size: 3em;
  color: #fcfcfb;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}

@media (max-width: 400px) {
  nav {
    padding: 15px;
  }
  .parallax-container {
    height: 50vh;
  }
}

/*end of picture layout*/

/*Bio content*/
.content-bio {
  position: relative;
  z-index: 10;
  padding: 50px;
  color: white;
  max-width: 800px;
  margin: auto;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  margin-top: 90px;
}

.content-bio p {
  font-size: 1.2em;
  line-height: 1.6;
}


/* End of bio content */

/* Card styles */
.contain-cards {
  display: flex;
  justify-content: center;  
  align-items: stretch;  
  flex-wrap: wrap;
  gap: 40px; 
  margin: 100px auto;
  max-width: 1200px;
}
.card {
  position: relative;
  width: 400px;  
  height: 500px;  
  perspective: 1000px; 
}

.card .front-content, .card .back-content {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide back when front is shown */
  transition: transform 0.6s;
}

.front-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 10px;
}

.back-content {
  transform: rotateY(180deg); 
  background:white;
  color: black;
  border-radius: 10px;
  padding: 20px;
}

.card.flipped .front-content {
  transform: rotateY(180deg); /* Hide front when flipped */
}

.card.flipped .back-content {
  transform: rotateY(0deg); /* Show back when flipped */
}

button {
  display: inline-block;
  width: 80%;
  padding: 10px;
  font-size: 1em;
  background-color: #1F271B;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.05);
}

a {
  display: block;
  margin-top: 10px;
  font-size: 1.2em;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contain-cards {
    flex-direction: column; 
    align-items: center;
  }

  .card {
    width: 90%; 
    max-width: 500px;
  }

  .card img {
    max-width: 250px; 
  }


  .card h2 {
    font-size: 1.3em; 
  }

  .card button {
    width: 80%;
    max-width: 200px; 
  }
}

/* About me */

.about-container {
  text-align: center;
  padding: 80px 20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-content img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text {
  text-align: left;
}

.about-text h2 {
  font-size: 1.8em;
  margin-top: 20px;
  color: #333;
}

.about-text p, .about-text ul {
  font-size: 1.2em;
  line-height: 1.6;
  color: #555;
}

.about-text ul {
  padding-left: 20px;
}

.contact-button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1.2em;
  background-color: #ef98a7;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}

.contact-button:hover {
  background-color: #d26a85;
}

@media (max-width: 768px) {
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    width: 100%;
  }

  .about-content {
    max-width: 100%; /* Ensure full width on small screens */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
  }

  .about-content h2 {
    font-size: 1.5em; 
    text-align: center;
  }

  .about-content p {
    font-size: 1em; 
    max-width: 90%; 
    text-align: center;
    word-wrap: break-word; 
  }

  .about-content ul {
    padding: 0;
    list-style-position: inside;
    max-width: 90%;
    text-align: left; 
  }

  
  .about-content ul li {
    word-wrap: break-word;
    white-space: normal;
  }

  .contact-button {
    font-size: 1.2em;
    padding: 10px 15px;
  }
}

/* Contact Form */

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px;
}

.contact-container h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: black;
}

.contact-container form {
  max-width: 600px;
  text-align: center;
}

.contact-container label {
  display: block;
  font-size: 2em;
  margin-top: 20px;
  text-align: left;
  color: black;
}

.contact-container input, textarea {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  box-sizing: border-box;
}

.contact-container textarea {
  height: 200px;
}

.contact-container button {
  background-color: #ef98a7;
  color: #807094;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

.contact-container button:hover {
  background-color: #807094;
  color: #fff;
}

.front-content img, .back-content img {
  max-width: 100%; /* Images will scale down */
  height: auto;
  margin: 10px 0;
}

.back-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.back-images img {
  width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Container for Documentation Page */

.container {
  max-width: 900px;
  margin: 100px auto 50px; 
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.video-container iframe {
  width: 100%;
  max-width: 700px;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.narrative {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.narrative h2 {
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.narrative p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

.narrative ul {
  padding-left: 20px;
}

.narrative ul li {
  font-size: 1.1em;
  color: #444;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 30px;
  padding: 10px 20px;
  background: #ef98a7;
  color: white;
  font-size: 1.2em;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.back-home:hover {
  background: #d17a8b;
}
