.reviews-info {
  justify-items: center;
  display: inline-block;
  position: center;
  width: 500px;
  padding: 25px;
}

/* Add glass effect only to review cards */
.review-card {
  background: rgba(202, 45, 81, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(202, 45, 81, 0.1);
  padding: 25px 25px;  /* Explicit padding for better responsive control */
}

/* Responsive padding adjustments */
@media (max-width: 1024px) {
  .review-card {
    padding: 20px 15px;  /* Reduced side padding */
  }
}

@media (max-width: 768px) {
  .review-card {
    padding: 15px 12px;  /* Further reduced side padding */
  }
}

@media (max-width: 480px) {
  .review-card {
    padding: 12px 10px;  /* Minimal padding for mobile */
  }
}

.reviews-heading {
  color: rgb(255, 255, 255);
  text-align: center;
  font-size: 35px;
  font-weight: 1000;
  line-height: 1.4;
  margin-bottom: 15px;
  font-family: 'Archivo Black', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 225, 255, 0.2);
}

.reviews-title {
  color: white;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reviews-subtext {
  text-align: center;
  font-size: 20px;
  color: white;
  margin-bottom: 4px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.review-button {
  font-family: 'Archivo Black', sans-serif;
  background: linear-gradient(135deg, rgba(250,172,224,0.8) 0%, rgba(127, 251, 255, 0.8) 100%);
  color: rgb(255, 255, 255);
  text-shadow: 0 1px 2px rgba(255, 0, 0, 0.25);
  border: none;
  border-radius: 25px;
  font-size: 24px;
  cursor: pointer;
  padding: 15px 40px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(250,172,224,1) 0%, rgba(0,238,247,1) 100%);
}

.review-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#reviews {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

#reviews-container {
  display: flex;
  gap: 30px;  /* Reduced from 60px */
  padding: 0 calc(50% - 200px); /* Centers the active review */
  transition: transform 0.5s ease;
  scroll-snap-type: x mandatory;
}

#reviews .reviews-preview {
  flex: 0 0 400px;
  opacity: 0.3;  /* Reduced from 0.5 to increase contrast */
  transition: all 0.5s ease;
  scroll-snap-align: center;
}

#reviews .reviews-preview.active {
  opacity: 1;
  transform: scale(1.02);  /* Slightly larger to stand out */
  z-index: 1;
}

.reviews-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 10px;
  justify-items: center;
  align-items: center;
  justify-content: center;
}

/* Hide scrollbar but keep functionality */
#reviews::-webkit-scrollbar {
  height: 8px;
}

#reviews::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

#reviews::-webkit-scrollbar-thumb {
  background: rgba(250,172,224,0.5);
  border-radius: 4px;
}

#reviews::-webkit-scrollbar-thumb:hover {
  background: rgba(250,172,224,0.8);
}

.review-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(250,172,224,0.8) 0%, rgba(0,238,247,0.8) 100%);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  color: rgb(255, 255, 255);
  font-family: 'Archivo Black', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  opacity: 1;
}

.review-nav-button:hover {
  background: linear-gradient(135deg, rgba(250,172,224,1) 0%, rgba(0,238,247,1) 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.review-nav-button:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-nav-button.prev {
  left: 20px;
}

.review-nav-button.next {
  right: 20px;
}

/* Responsive Design */
@media (max-width: 1530px) {
  .reviews-info {
    width: 325px;
  }
}

@media (max-width: 1024px) {
  .reviews-info {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .reviews-info {
    width: 225px;
  }

  .review-nav-button {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .review-nav-button.prev {
    left: 10px;
  }

  .review-nav-button.next {
    right: 10px;
  }

  #reviews-container {
    padding: 0 calc(50% - 140px);
    gap: 30px;
  }

  .reviews-subtext {
    font-size: 14px;
  }
}

@media (max-width: 676px) {
  .reviews-info {
    width: 100%;
    max-width: 400px;
  }

  .reviews-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .review-button {
    font-size: 20px;
    padding: 15px 30px;
  }
}

/* Responsive styles for reviews */
@media (max-width: 1024px) {
  #reviews .main-preview {
    flex: 0 0 350px;
  }
  
  #reviews-container {
    padding: 0 calc(50% - 175px);
    gap: 25px;  /* Slightly reduced gap */
  }
}

@media (max-width: 768px) {
  #reviews .main-preview {
    flex: 0 0 300px;
  }
  
  #reviews-container {
    padding: 0 calc(50% - 150px);
    gap: 30px;  /* Further reduced gap */
  }

  .review-nav-button {
    transform: translateY(-50%) scale(0.9);
  }
}

@media (max-width: 480px) {
  #reviews .main-preview {
    flex: 0 0 280px;
  }
  
  .reviews-subtext {
    font-size: 14px;
  }
}