@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap');

/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
}

/* Header Section */
body {
  margin: 0;
  padding: 0;
}

@keyframes revealAnimation {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background-color: rgb(255, 255, 255);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: top 0.3s;
}

.header-animate {
  opacity: 0;
  transform: translateY(-20px);
  animation: revealAnimation 1s ease-in forwards;
}

.logo {
  display: flex;
  align-items: center;
  transition-delay: 2ms;
}

.logo:hover{
  filter: drop-shadow(2px 2px 2px black);
  transition: 1s ease-in;
}

.logo img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: orange;
  text-decoration: underline orange;
  text-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  transition: 500ms ease-in;
}

nav ul li a:hover::after{
  transition: 2s;
  transition: 500ms ease-in;
  text-decoration: underline orange;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  line-height: 40px;
  margin-top: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('images/BANNER_WB.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 8px 12px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 8px 12px rgba(0, 0, 0, 0.6);
}

/* Product Section */
.products {
  padding: 50px 0;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.product-card {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card .product-details {
  padding: 20px;
}

.product-card h3 {
  font-size: 22px; /* Updated font size */
  margin-bottom: 10px;
}

.product-card p {
  margin-bottom: 20px;
  color: #888;
  font-size: 16px; /* Updated font size */
}

.view-details-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 16px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.view-details-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.view-details-button:hover:before {
  transform: translateY(0);
}

.view-details-button span {
  position: relative;
  z-index: 1;
}

.view-more-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 70px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.6);
}

.view-more-button:hover {
  background-color: #333;
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.products .view-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 18px;
  margin-top: 20px;
}

.products .view-more-button:hover {
  background-color: #555;
  cursor: pointer;
}

/* Shop Information Section */
.shop-info {
  background-color: #f8f8f8;
  padding: 50px 0;
  text-align: center;
}

.shop-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.shop-info p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer Styles */
footer {
  background: linear-gradient(to bottom, #333333, #000000);
  padding: 20px 0;
  color: #fff;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-media-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.social-media-links a {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-media-links a:hover {
  color: #ff0000;
  transform: scale(1.1);
}

.social-media-links a:last-child {
  margin-left: 20px;
}

/* CSS for Products Section */

.fx-products {
  padding: 40px 0;
  text-align: center;
}

.fx-products h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333333;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product-item {
  position: relative;
  width: 350px; /* Increase the width as desired */
  height: 450px; /* Increase the height as desired */
  background-color: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.product-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333333;
}

.product-item p {
  font-size: 16px;
  color: #777777;
  margin-bottom: 15px;
}

.product-item .price {
  font-size: 20px;
  color: #ff6600;
  margin-bottom: 10px;
}

.product-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.product-item:hover .overlay {
  opacity: 1;
}

.product-item .check-out {
  display: inline-block;
  background-color: #ff6600;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.product-item .check-out:hover {
  background-color: #ff8000;
  transform: scale(1.05);
}

.product-item .check-out span {
  position: relative;
  z-index: 1;
}

.product-item .check-out::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-item .check-out:hover::before {
  opacity: 1;
}

.view-details-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.product-image {
  margin-right: 20px;
}

.product-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.product-details {
  text-align: left;
}

.product-details h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-details p {
  margin-bottom: 10px;
}

.check-out-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff5500;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.check-out-link:hover {
  background-color: #cc4400;
}

/* Add this CSS to your existing CSS code */
/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #f5f5f5;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.close {
  color: #888;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.discord-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #7289da;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.discord-link:hover {
  background-color: #5c6bc0;
}

.about-section {
  padding: 50px;
}

.about-section .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333333;
}

.about-section p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #666666;
}

.contact-section {
  padding: 50px;
  background-color: #f9f9f9;
}

.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333333;
}

.contact-section form {
  margin-top: 30px;
}

.contact-section .form-group {
  margin-bottom: 20px;
}

.contact-section label {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333333;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-section textarea {
  height: 120px;
}

.contact-section button[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-section button[type="submit"]:hover {
  background-color: #555555;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}

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

#loader:before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  width: 80px;
  height: 80px;
  border: 4px solid #333;
  border-top-color: #ff6600;
  border-radius: 50%;
  animation: loading 1.2s infinite linear;
}

/* Media queries for responsive design */

@media only screen and (max-width: 768px) {
  .logo {
    flex-direction: column;
    align-items: center;
  }
  
  .logo img {
    margin-bottom: 10px;
  }
  
  nav {
    display: none;
  }
  
  .products-container {
    margin-top: 80px;
    padding: 10px;
  }
  
  .product img {
    width: 100%;
    height: auto;
  }

  .product-item {
    width: 100%;
  }

  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .about, .contact {
    padding: 60px 0;
  }
  
  .about-title, .contact-title {
    font-size: 24px;
  }
  
  .about-description, .contact-form input, .contact-form textarea {
    font-size: 14px;
  }

}

@media only screen and (max-width: 480px) {
  .products-container {
    margin-top: 60px;
  }
  
  .product h3 {
    font-size: 20px;
  }
  
  .product p {
    font-size: 14px;
  }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
  /* Adjust header */
  header {
    padding: 10px;
  }

  /* Adjust logo size */
  .logo img {
    width: 80px;
  }

  /* Adjust navigation */
  nav ul li {
    margin-right: 10px;
  }

  /* Adjust hero section */
  .hero {
    padding: 50px 0;
    line-height: 30px;
  }

  .hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 16px;
    max-width: 300px;
  }

  /* Adjust product container */
  .product-container {
    margin-bottom: 30px;
  }

  .product-container img {
    width: 100%;
    height: auto;
  }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  /* Adjust header */
  header {
    padding: 20px;
  }

  /* Adjust logo size */
  .logo img {
    width: 120px;
  }

  /* Adjust navigation */
  nav ul li {
    margin-right: 15px;
  }

  /* Adjust hero section */
  .hero {
    padding: 80px 0;
    line-height: 36px;
  }

  .hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 18px;
    max-width: 500px;
  }

  /* Adjust product container */
  .product-container {
    margin-bottom: 50px;
  }
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
  /* Adjust header */
  header {
    padding: 40px;
  }

  /* Adjust logo size */
  .logo img {
    width: 150px;
  }

  /* Adjust navigation */
  nav ul li {
    margin-right: 20px;
  }

  /* Adjust hero section */
  .hero {
    padding: 120px 0;
    line-height: 48px;
  }

  .hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 24px;
    max-width: 600px;
  }

  /* Adjust product container */
  .product-container {
    margin-bottom: 80px;
  }
}