/* Reviews Page Styling */
.reviews-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  opacity: 0;
  animation: fadeIn 1s ease-in-out 1.5s forwards;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out 2s forwards;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInDown 1s ease-in-out 2.5s forwards;
}

.reviews-tagline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out 3s forwards;
}

.hero-background {
  position: absolute;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/background/stfx_bg_12.jpg") no-repeat center
    center/cover;
  z-index: -1;
  opacity: 0.5;
  background-attachment: fixed;
}

/* Rating Summary */
.rating-summary {
  margin: 2rem 0;
}

/* Rating Stars */
.stars {
  display: inline-block;
  font-size: 2rem;
  position: relative;
  unicode-bidi: bidi-override;
  color: #ddd;
}

.star {
  display: inline-block;
  position: relative;
}

.star.full {
  color: #ffd700;
}

.star.half::before {
  position: absolute;
  content: "★";
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}

.rating-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-left: 1rem;
  color: #fff;
}

.rating-count {
  font-size: 1.2rem;
  color: #aaa;
  margin-left: 0.5rem;
}

/* Reviews Summary Section */
.reviews-summary {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  color: #fff;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ff88;
}

.summary-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.summary-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.summary-icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.summary-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.summary-card .stars {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.summary-card .score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ff88;
  margin-left: 0.5rem;
}

.summary-card p {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Verified Reviews Section */
.verified-reviews {
  padding: 4rem 2rem;
  background-color: #0a0a0a;
  color: #fff;
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: #2a2a2a;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: #00ff88;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.filter-btn:hover:not(.active) {
  background: #3a3a3a;
  transform: translateY(-2px);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.review-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.location {
  font-size: 0.8rem;
  color: #00ff88;
}

.review-rating {
  text-align: right;
}

.review-rating .stars {
  font-size: 1rem;
  color: #ffd700;
}

.review-rating .date {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.3rem;
}

.review-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.review-content p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-response {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #252525;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #ddd;
}

.review-response strong {
  color: #00ff88;
}

#hiddenReviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-container .cta-button {
  padding: 0.8rem 2rem;
  background: #00ff88;
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-container .cta-button:hover {
  background: #00cc6a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Video Testimonials Section */
.video-testimonials {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  color: #fff;
}

.testimonial-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.video-caption {
  padding: 1rem;
  background: #1a1a1a;
}

.video-caption h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.video-caption p {
  font-size: 0.9rem;
  color: #aaa;
}

/* Case Studies Section */
.case-studies {
  padding: 4rem 2rem;
  background-color: #0a0a0a;
  color: #fff;
}

.case-study-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.case-study-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.case-study-content .location {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.case-study-content .rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.case-study-content .stars {
  font-size: 1rem;
  color: #ffd700;
  margin-right: 0.5rem;
}

.case-study-content .plan {
  font-size: 0.8rem;
  color: #00ff88;
  font-weight: 600;
}

.case-study-content .summary {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #00ff88;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #00cc6a;
}

/* Trust Indicators Section */
.trust-indicators {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  color: #fff;
}

.trust-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.trust-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.trust-icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.trust-card p {
  color: #aaa;
  font-size: 0.9rem;
}

/* Call to Action Section */
.cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #aaa;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-feature i {
  color: #00ff88;
}

.cta-feature p {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reviews-hero h1 {
    font-size: 2.5rem;
  }

  .reviews-hero .reviews-tagline {
    font-size: 1.2rem;
  }

  .rating-value {
    font-size: 2rem;
  }

  .summary-cards,
  .trust-cards {
    flex-direction: column;
    align-items: center;
  }

  .summary-card,
  .trust-card {
    width: 100%;
    max-width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-videos {
    grid-template-columns: 1fr;
  }

  .case-study-cards {
    grid-template-columns: 1fr;
  }

  .review-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 80%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 360px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
  cursor: pointer;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.flip-card-front {
  background-color: #1a1a1a;
  color: white;
  justify-content: center;
}

.flip-card-back {
  background-color: #0f0f0f;
  color: white;
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow-y: auto;
}

.flip-card-back h3 {
  color: #00ff88;
  margin-bottom: 1rem;
}

.flip-card-back ul {
  text-align: left;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  color: #f0f8ff;
  font-size: 0.9rem;
}

.flip-card-back ul li {
  margin-bottom: 0.5rem;
}

.tip-icon {
  font-size: 2rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.flip-card-front h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.flip-card-front p {
  color: #f0f8ff;
  line-height: 1.4;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.flip-indicator {
  font-size: 0.8rem;
  color: #00ff88;
  margin-top: auto;
  transition: all 0.3s ease;
}

.flip-indicator:hover {
  color: #00cc6a;
  cursor: pointer;
}

.rating {
  display: flex;
  flex-direction: column;
}

.review-rating.stars {
  color: gold;
}

.avatar {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden; /* Prevent the overall modal from scrolling */
}

.modal-content {
  position: absolute;
  top: 1rem;
  left: 20%;
  right: 20%;
  bottom: 0;
  background-color: #1a1a1a;
  color: #f0f8ff;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  font-weight: bold;
  padding: 2rem;
  animation: modalFadeIn 0.3s;
  overflow: hidden; /* Prevent overflow from spilling outside modal */
}

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

.close {
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #f0f8ff;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #00ff88;
  text-decoration: none;
  cursor: pointer;
}

.modal h2 {
  color: #00ff88;
  margin: 0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1010; /* Ensure the header is above the modal content */
  background-color: #1a1a1a;
  border-bottom: 2px solid #00ff88;
}

.modal-body {
  padding: 1rem 0;
  overflow-y: scroll; /* Allow scrolling of content */
  height: calc(100% - 4rem); /* Adjust body height to make space for header */
  font-size: 1.6rem;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide the scrollbar */
.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-body {
  -ms-overflow-style: none; /* For Internet Explorer 10+ */
  scrollbar-width: none; /* For Firefox */
}

/* Optional: Style for body content */
.modal-body p {
  margin-bottom: 1rem;
}

/* Media Queries for Responsiveness */

/* Tablets and Larger Mobile Devices */
@media screen and (max-width: 1024px) {
  .modal-content {
    left: 10%;
    right: 10%;
    padding: 1.5rem;
  }

  .close {
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.6rem;
  }
}

/* Smartphones and Small Tablets */
@media screen and (max-width: 768px) {
  .modal-content {
    left: 5%;
    right: 5%;
    padding: 1.2rem;
  }

  .close {
    right: 1rem;
    top: 1rem;
    font-size: 1.4rem;
  }
}

/* Small Smartphones */
@media screen and (max-width: 480px) {
  .modal-content {
    left: 2%;
    right: 2%;
    padding: 1rem;
  }

  .modal h2 {
    padding: 0.8rem 0;
  }

  .close {
    right: 0.8rem;
    top: 0.8rem;
    font-size: 1.2rem;
  }
}
