/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  position: fixed;
  z-index: 999;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: visibility 0s, opacity 0.3s ease-in-out;
  opacity: 0;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
}


body {
  font-family: Cairo;
  line-height: 1.6;
  background: linear-gradient(to top, #0B0B0B, #222222);
  color: #333;
  display: flex;
  /* Use flexbox for layout */
  flex-direction: column;
  /* Stack elements vertically */
  min-height: 100vh;
  /* Ensure the body is at least the height of the viewport */
}

/* Popup card styles */
.popup-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

/* Popup content */
.popup-content {
  padding: 20px;
  text-align: center;
  width: 300px;
  /* Fixed width */
  height: 450px;
  /* Equal height to create a square shape */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Popup image */
.popup-content img {
  width: 100%;
  /* Scales within the square */
  height: 70%;
  /* Keeps space for text below */
  object-fit: contain;
  /* Ensures image fits without distortion */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  aspect-ratio: 1/1;
  /* Square aspect ratio */
  background-color: rgb(226, 226, 226);
}

.popup-content p {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  color: white;
}

/* Buttons container */
.popup-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* General button styles */
.popup-buttons button {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Close button specific styles */
.close-popup {
  background-color: white;
  /* Red color for "Close" */
  display: inline-block;
  padding: 0.5rem;
  color: red;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: bold;
  width: 50%;
  font-size: 1rem;
}

.close-popup:hover {
  color: white;
  background-color: #c9302c;
  /* Darker red on hover */
}

/* Get button specific styles */
.get-popup {
  background-color: #007c50;
  /* Green color for "Get" */
}

.get-popup:hover {
  background-color: #005b3c;
  /* Darker green on hover */
}

/* Focus effect for both buttons */
.popup-buttons button:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  /* Soft glow */

}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}


/* TESTIMONIALS SECTION STYLES */
.testimonials-section {
  padding: 70px 20px;
  background: linear-gradient(to bottom, #0B0B0B, #222222);

  text-align: center;
  position: relative;
}

.testimonials-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.testimonials-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: red;
}

.testimonials-header p {
  font-size: 1.1rem;
  color: white;
}

.testimonials-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.testimonials-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  gap: 1rem;
}

/* Hide scrollbar but keep functionality */
.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonials-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stars {
  color: #f7c427;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.customer-name {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  font-size: 1.1rem;
}

.testimonials-indicators {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.indicator {
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #333;
}

.testimonials-cta {
  margin-top: 30px;
}

.view-more {
  background-color: red;
  border: 2px solid rgba(255, 0, 0, 0);
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more:hover {
  background-color: rgb(211, 0, 0);
  color: white;
}

/* Utility class for Arabic text */
.arabic-text,
[lang="ar"],
body[dir="rtl"] {
  font-family: 'Cairo', sans-serif !important;
  letter-spacing: 0;
}

/* Popup and general button font-size fix for Arabic */
.popup-buttons button,
button,
.add-cart,
.close-popup {
  font-family: inherit;
}

.popup-buttons button.arabic-text,
.popup-buttons button[lang="ar"],
.popup-buttons button[dir="rtl"],
button.arabic-text,
button[lang="ar"],
button[dir="rtl"],
.add-cart.arabic-text,
.add-cart[lang="ar"],
.add-cart[dir="rtl"],
.close-popup.arabic-text,
.close-popup[lang="ar"],
.close-popup[dir="rtl"] {
  font-family: 'Cairo', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    width: 85%;
    padding: 20px;
  }

  .testimonials-header h2 {
    font-size: 2rem;
  }

  .customer-name {
    font-size: 1.1rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

@media (min-width: 600px) {
  .testimonial-card {
    max-width: 400px;
  }
}

@media (min-width: 900px) {
  .testimonial-card {
    max-width: 500px;
  }
}