/**********************************************
 * RESET & BODY SETUP FOR STICKY FOOTER
 **********************************************/
 html, body {
  height: 100%;           /* ensure flex container spans full viewport height */
  margin: 0;
  padding: 0;
}

body {
  display: flex;          /* enable flex layout */
  flex-direction: column; /* stack content vertically */
  font-family: Arial, sans-serif;

  /* Example pattern background (replace or customize as desired) */
  background: repeating-linear-gradient(
    45deg,
    #f0f0f0,
    #f0f0f0 20px,
    #eaeaea 20px,
    #eaeaea 40px
  );
}

/**********************************************
 * NAVIGATION MENU STYLING
 **********************************************/
.menu {
  background: linear-gradient(to right, #333, #555);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  align-items: center;
}

.right-aligned {
  position: absolute;
  right: 20px;
  top: 50px;
  text-align: right;
}
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.faq h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.faq-item {
  max-width: 800px;
  width: 100%;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.faq-item h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #007BFF;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.connect-wallet {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.connect-wallet:hover {
  background-color: #45a049;
}

.menu::after {
  content: "";
  display: table;
  clear: both;
}

.menu a {
  float: left;
  display: block;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, font-weight 0.3s ease;
}

.menu a:hover,
.dropdown:hover .dropbtn {
  background-color: #666;
  font-weight: bold;
}

/* Dropdown Container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown Button */
.dropdown .dropbtn {
  font-size: 16px;
  background-color: inherit;
  color: #ffffff;
  border: none;
  outline: none;
  padding: 14px 20px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s ease, font-weight 0.3s ease;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  float: none;
  color: #333333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.2s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f7f7f7;
  font-weight: bold;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/**********************************************
 * CATALOGUE SECTION (Flex item that can grow)
 **********************************************/
.catalogue {
  flex: 1;               /* allow catalogue to expand and push footer down */
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
/* Product Card Styling with Popup Animation */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px; /* Adjust card width */
  height: 380px; /* Adjust card height */
  margin: 20px; /* Add margin around each card */
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: popupFadeIn 0.5s ease-out forwards;
}

/* Animate on Hover */
.product-card:hover {
  transform: scale(1.07);
  box-shadow: 20px 20px 25px rgba(0.5, 0, 0, 0.2);
}

/* Animation Keyframes */
@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  50% {
    opacity: 0.5;
    transform: translateY(10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered Animation Effect for Multiple Cards */
.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.product-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Keyframe Animation */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Delay Each Card Animation for Staggered Effect */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

.catalogue h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #333;
}

.catalogue h3 {
  margin-bottom: 10px;
  color: #555;
}

.catalogue h5 {
  margin-bottom: 30px;
  color: #777;
}

/* Product Grid */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px; /* Adjust card width */
  height: 380px; /* Adjust card height */
  margin: 20px; /* Add margin around each card */
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-in-out forwards;
}

/* Product Grid */
.product-grid {
  display: flex; /* Change from grid to flex for better margin handling */
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin: 20px auto; /* Center the grid with automatic horizontal margin */
  max-width: 1200px; /* Prevent grid from stretching too wide */
}

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

.pagination-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination-controls button {
  margin: 0 5px;
  padding: 5px 10px;
  cursor: pointer;
}

.pagination-controls button.active {
  background-color: #007bff;
  color: white;
}

.search-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.search-container input {
  padding: 5px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  margin-right: 5px;
}

.search-container button {
  background-color: #555;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.search-container button:hover {
  background-color: #777;
}



/**********************************************
 * FOOTER (Sticks to Bottom)
 **********************************************/
.footer {
  text-align: center;
  background: linear-gradient(135deg, #222 0%, #333 100%);
  color: #fff;
  padding: 20px;
  border-top: 4px solid #444;
  /* margin-top: auto ensures footer is pushed to bottom 
     if not enough content in the main section */
  margin-top: auto;
}

.footer p {
  margin: 0.4em 0;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0ff; /* Neon cyan */
    text-shadow: 0 0 10px #0ff, 0 0 20px #00e6e6, 0 0 30px #009999;
    letter-spacing: 3px;
    position: relative;
    margin-left: 5vh;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

/* Hover Effect - Enhanced Digital Flicker */
.logo:hover {
    text-shadow: 0 0 25px #0ff, 0 0 50px #00e6e6, 0 0 75px #009999;
    transform: scale(1.1);
}

/* Glitch Effect - Flickering & Matrix-like distortion */
.logo::before, .logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    opacity: 0.8;
    overflow: hidden;
}

/* High-speed left-right glitch */
.logo::before {
    left: -2px;
    text-shadow: -2px 0 #ff00ff;
    animation: matrix-glitch-left 1.2s infinite linear alternate;
}

.logo::after {
    left: 2px;
    text-shadow: 2px 0 #00ff00;
    animation: matrix-glitch-right 1.5s infinite linear alternate-reverse;
}

/* Random Matrix-like Glitching */
@keyframes matrix-glitch-left {
    0% { clip-path: inset(10% 0 90% 0); transform: translateX(-3px); }
    15% { clip-path: inset(30% 0 60% 0); transform: translateX(2px); }
    30% { clip-path: inset(5% 0 85% 0); transform: translateX(-1px); }
    45% { clip-path: inset(60% 0 30% 0); transform: translateX(4px); }
    60% { clip-path: inset(15% 0 85% 0); transform: translateX(-2px); }
    75% { clip-path: inset(80% 0 10% 0); transform: translateX(3px); }
    100% { clip-path: inset(5% 0 95% 0); transform: translateX(-4px); }
}

@keyframes matrix-glitch-right {
    0% { clip-path: inset(5% 0 95% 0); transform: translateX(2px); }
    15% { clip-path: inset(40% 0 50% 0); transform: translateX(-3px); }
    30% { clip-path: inset(10% 0 90% 0); transform: translateX(1px); }
    45% { clip-path: inset(50% 0 30% 0); transform: translateX(-4px); }
    60% { clip-path: inset(20% 0 80% 0); transform: translateX(3px); }
    75% { clip-path: inset(70% 0 20% 0); transform: translateX(-2px); }
    100% { clip-path: inset(10% 0 90% 0); transform: translateX(4px); }
}

/* Rapid Flickering Effect */
.logo::before {
    animation: matrix-glitch-left 0.8s infinite steps(2, jump-none);
}
.logo::after {
    animation: matrix-glitch-right 1s infinite steps(3, jump-none);
}

