@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body{
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* header */
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: #dca267;
}

.logo{
  font-size: 32px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

#check{
  display: none;
}

.icons{
  position: absolute;
  right: 5%;
  font-size: 45px;
  color: #fff;
  cursor: pointer;
  display: none;
  width: 64px;
  height: 64px;
}

nav a{
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 40px;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

nav a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

/* Responsive Nav */
/* Responsive */
@media (max-width: 992px){
  .header{
    padding: 30px 5%;
  }
}

@media (max-width: 768px){
  .icons{
    display: inline-flex;
  }

  nav{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: .3s ease;
  }

  #check:checked~nav{
    height: 180px;
    background-color: #7a4b2e;
    opacity: 0.7;
  }

  nav a{
    display: block;
    font-size: 18px;
    margin: 24px 0;
    text-align: center;
    transform: translateY(-50px);
    transition: .3s ease;
    opacity: 0;
    color: #fff;
  }
  

  #check:checked~nav a{
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(.15s * var(--i));
  }

  #check:checked~.icons #menu-icon{
    display: none;
  }

  .icons #close-icon{
    display: none;
  }

  #check:checked~.icons #close-icon{
    display: block;
  }
} 


/* parallax */
.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.parallax h2{
  position: absolute;
  font-size: 200px;
  color: #dca267;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}

.parallax img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  object-fit:cover;
}

/* Responsive Parallax */
@media (max-width: 1024px) {
  #text {
    font-size: 120px; 
  }
  .parallax img{
    display: none;
  }
  
}
@media (max-width: 768px) {
  #text {
    font-size: 15vw;
  }

  .parallax img{
    display: none;
  }
}

@media (max-width: 480px) {
  #text {
    font-size: 20vw; 
  }
  .parallax img{
    display: none;
  }
}

/* Intros */
.intro{
  position: relative;
  background: #dca267;
  padding: 50px;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  
}

.intro-text{
  margin-left: 120px;
  opacity: 0; 
  transform: translateX(-50px); 
  transition: opacity 0.5s ease, transform 0.5s ease; 
}

.intro-text.visible {
  opacity: 1; 
  transform: translateX(0); 
}

.intro-text h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #fff;
  
}

.intro-text h1 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: 69px;
  margin-top: 0px;
  color: #fff;

}

.intro-text p {
  font-size: 18px;
  color: #fff;
  margin-right: 150px;
  padding-right: 0%;
}

.intro img {
  width: 700px;
  height: 700px;
  border-radius: 100%;
  object-fit: cover;
  transition: 0.5s;
  animation: bounceIn 2s ease-in-out;
  opacity: 0; 
  transform: translateY(50px); 
  margin-right: 120px;
  margin-left: 0px;
}

.intro img.visible {
  opacity: 1; 
  transform: translateY(0); 
}

/* Responsive Intro */
@media (max-width: 1200px) {
  .intro {
    padding: 50px;
    flex-direction: column;
  }

  .intro-text {
    margin-left: 0;
    text-align: center;
    margin-bottom: 50px;
  }

  .intro-text h1 {
    font-size: 50px;
  }

  .intro-text p {
    margin-right: 0;
    text-align: center; 
  }

  .intro img {
    max-width: 500px;
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .intro {
    padding: 20px;
  }

  .intro-text {
    margin-left: 0;
    text-align: center;
    margin-bottom: 30px;
  }

  .intro-text h1 {
    font-size: 40px;
  }

  .intro-text p {
    margin-right: 0;
    text-align: center; 
  }

  .intro img {
    max-width: 400px;
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 20px;
    flex-direction: column;
  }

  .intro-text {
    margin-left: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  .intro-text h1 {
    font-size: 30px;
  }

  .intro-text p {
    margin-right: 0;
    text-align: center; 
  }

  .intro img {
    max-width: 300px;
    max-height: 300px;
  }
}

/* Card */
.container_card {
  display: grid;
  place-items: center;
  margin-inline: 24px;
  padding-block: 80px;
  min-height: 100vh;
}

.card__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px; 
  padding-bottom: 56px; 
  -webkit-overflow-scrolling: touch;
}

.card__article {
  position: relative;
  overflow: hidden;
  flex: 1 1 300px; 
  max-width: 500px; 
  margin: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card__article.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.card__img {
  width: 100%; 
  border-radius: 24px;
}

.card__data {
  width: 100%; 
  background-color: #dca267;
  padding: 24px 32px;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.15);
  border-radius: 16px;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.card__description {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
}

.card__title {
  font-size: 32px;
  margin-bottom: 4px;
  color: #fff;
}

.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity 0.3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(0.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/* datapop */

.wrapper{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #dca267;
  height: 100vh;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;;
}

.wrapper.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.wrapper h1{
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: 5rem;
  margin-top: 20px;
  color: #fff;
  display: inline-block;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrapper h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: rollIn 0.5s forwards ;
}

.wrapper p{
  color: #fff;
  font-size: 30px;
}

#btn{
  width: 150px;
  height: 70px;
  font-size: 2em;
  letter-spacing: 3px;
  border: 3px solid #fff;
  background-color: transparent;
  color: #fff;
  margin-top: 40px;
  user-select: none;
  border-radius: 30px;
  cursor: pointer;
}

#btn:focus{
  outline: none;
}

#btn:active{
  border: 3px solid darkgray;
  color: darkgray;
}

@keyframes rollIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive datapop */
@media (max-width: 768px) {
  .wrapper h1 {
    font-size: 3rem;
  }

  .wrapper p {
    font-size: 20px;
  }

  #btn {
    width: 120px;
    height: 50px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .wrapper h1 {
    font-size: 2.5rem;
  }

  .wrapper p {
    font-size: 18px;
  }

  #btn {
    width: 100px;
    height: 45px;
    font-size: 1em;
  }
}
/* Content */
.contain{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #fff;
  height: 100vh;
  background-image: url(source/bg_cat.png);
  background-size: cover; 
  background-position: center; 
  opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

.contain.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.contain h1{
  font-size: 40px;
  font-weight: 500;
  color: #dca267;
}

/* Responsive Content */
@media (max-width: 1200px) {
  .contain h1 {
    font-size: 35px;
    
  }
}

@media (max-width: 992px) {
  .contain h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .contain h1 {
    font-size: 25px;
  }
}

@media (max-width: 576px) {
  .contain h1 {
    font-size: 20px;
  }
  .contain{
    background: none;
  }
}

@media (max-width: 360px) {
  .contain{
    background: none;
  }
  .contain h1 {
    font-size: 18px;
  }
}

/* Main */
.container-main {
  padding: 50px 10%;
  background: linear-gradient(135deg, #f9f9f9 25%, #e0e0e0 100%); /* Gradient background */
  text-align: center;
  height: 100vh;
  overflow: auto;
}

.title-main {
  font-size: 50px;
  color: #dca267;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px; /* เพิ่มช่องว่างระหว่างตัวอักษร */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* เพิ่มเงาที่ตัวอักษร */
}

.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px; /* เพิ่มช่องว่างระหว่างการ์ด */
}

.item-main {
  flex: 1 1 calc(50% - 20px);
  background-color: #fff;
  margin: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.item-main:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.item-main:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(220, 162, 103, 0.1); /* Light overlay effect */
  transition: background 0.3s ease;
  z-index: 1;
}

.item-main:hover:before {
  background: rgba(220, 162, 103, 0.2);
}

.item-main h3 {
  font-size: 24px;
  color: #dca267;
  margin-bottom: 15px;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

.item-main p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  z-index: 2;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-main {
  opacity: 0; /* Hidden by default */
  transform: translateY(20px); /* Move downwards by default */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Transition effect */
}

.item-main.show {
  animation: slideUp 0.6s ease-out forwards; /* Apply animation when class is added */
}

/* Responsive Design */
@media (max-width: 992px) {
  .item-main {
    flex: 1 1 calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .container-main {
    padding: 30px 5%;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 28px;
  }

  .item-main {
    padding: 15px;
  }

  .item-main h3 {
    font-size: 20px;
  }

  .item-main p {
    font-size: 14px;
  }
}


/* About */
.about{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  background: #fff;
  height: 100vh;
  color: #7a4b2e;
  padding: 100px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.about-img img{
  width: 600px;
  height: 600px;
  border-radius: 100%;
  object-fit: cover;
  transition: 0.5s;
  animation: bounceIn 2s ease-in-out, float 3s ease-in-out infinite;
  margin-left: 100px;
}

.heading{
  text-align: center;
  font-size: 72px;
  
}

.about-content{
  margin-left: 50px;
}

.about-content h2{
  text-align: left;
  line-height: 1.2;
  
}

.about-content h3{
  font-size: 41px;
}

.about-content span{
  color: #dca267;
}

.about-content p{
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 48px;
  margin-right: 100px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px); 
  }
  100% {
    transform: translateY(0); 
  }
}

/* Responsive About */

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    padding: 50px;
  }

  .about-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-left: 0;
  }

  .about-content {
    margin: 0;
    text-align: center;
  }

  .about-content h2 {
    font-size: 32px;
    text-align: center;
  }

  .about-content h3 {
    font-size: 24px;
    
  }

  .about-content p {
    font-size: 14px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 20px;
  }

  .about-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-left: 0;
  }

  .heading {
    font-size: 32px;
  }

  .about-content h2 {
    font-size: 24px;
  }

  .about-content h3 {
    font-size: 19px;
  }

  .about-content p {
    font-size: 13px;
  }
}

/* contact */
.contact-container{
  background: linear-gradient(#dca267,#fff);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  overflow: hidden;
}

.contact-left{
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  transition:transform 0.5s ease; 
  opacity: 0;
  transform: translateY(20px);
}

.contact-left.visible {
  opacity: 1; 
  transform: translateY(0); 
}

.contact-left-title h2{
  font-weight: 600;
  color: #fff;
  font-size: 100px;
  margin-bottom: 5px;
}

.contact-left-title hr{
  border: none;
  width: 120px;
  height: 5px;
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-inputs{
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #666;
  border-radius: 50px;
  transition: border 0.3s;
}

.contact-left textarea{
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
}

.contact-inputs:focus{
  border: 2px solid #966a3e;
}

.contact-inputs::placeholder{
  color: #a9a9a9;
}

.contact-left button{
  display: flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(270deg,#dca267,#a37c67);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.contact-left button:hover {
  background: linear-gradient(270deg, #a37c67, #dca267); 
  transform: translateY(-3px);
}

.contact-left button img{
  height: 30px;
}

.contact-right img{
  width: 600px;
  height: 600px;
  border-radius: 50%;
  object-fit: cover;
  transition: 0.5s;
  animation: bounceInCon 2s ease-in-out;
}

@keyframes bounceInCon {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Contact */
@media(max-width:800px){
  .contact-inputs{
    width: 80vw;
  }
  .contact-right{
    display: none;
  }
}

/* footer */
footer{
  position: relative;
  width: 100%;
  background: #dca267;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

footer .social_icon,
footer .menu_footer{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

footer .social_icon li,
footer .menu_footer li{
  list-style: none;
}

footer .social_icon li a{
  font-size: 32px;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}

footer .social_icon li a:hover{
  transform: translateY(-10px);
}

footer .menu_footer li a {
  font-size: 20px;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
  position: relative;
  overflow: hidden;
}

footer .menu_footer li a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

footer .menu_footer li a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

footer .menu_footer li a:hover{
  opacity: 1;
}

footer p {
  color: #fff;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 18px;
}

footer .wave{
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background:url(source/wave.png);
  background-size: 1000px 100px;
}

footer .wave#wave1{
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWave_01 4s linear infinite;
}

footer .wave#wave2{
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animateWave_02 4s linear infinite;
}

footer .waves#wave3{
  z-index: 1000;
  opacity: 0.2;
  bottom: 15px;
  animation: animateWave_03 3s linear infinite;
}

footer .wave#wave4{
  z-index: 999;
  opacity: 0.7;
  bottom: 20px;
  animation: animateWave_04 3s linear infinite;

}
@keyframes animateWave_01{
  0%{
    background-position-x: 1000px;
  }
  100%{
    background-position-x: 0px ;
  }
}

@keyframes animateWave_02{
  0%{
    background-position-x: 0px;
  }
  100%{
    background-position-x: 1000px ;
  }
}

@keyframes animateWave_03{
  0%{
    background-position-x: 1000px;
  }
  100%{
    background-position-x: 0px ;
  }
}

@keyframes animateWave_04{
  0%{
    background-position-x: 1000px;
  }
  100%{
    background-position-x: 0px ;
  }
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer {
    padding: 20px;
  }

  footer .social_icon li a {
    font-size: 24px;
    margin: 0 5px;
  }

  footer .menu_footer li a {
    font-size: 18px;
    margin: 5px 10px;
  }

  footer p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  footer .social_icon,
  footer .menu_footer {
    flex-direction: column;
  }

  footer .social_icon li a {
    font-size: 20px;
    margin: 5px 0;
  }

  footer .menu_footer li a {
    font-size: 16px;
    margin: 5px 0;
  }

  footer p {
    font-size: 14px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #966a3e, #7a4b2e);
  border-radius: 10px;
  transition: background-color 0.3s;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover { 
  background: #7a4b2e;
}

::-webkit-scrollbar-thumb:active {
  background: #5a3420;
}




