/* Hero */


.fade-in {
  animation: fadeIn 0.4s ease-in;
}

.fade-out {
  animation: fadeOut 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

.hero-subheading {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.video-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}


.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 0 5rem;
  height: 75vh;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.hero-main * {
  margin-bottom: 0.9rem;
}

.hero-heading {
  font-size: 2.5rem;
  text-align: left;
}

.hero-subheading {
  font-size: 1.25rem;
  text-align: left;
  color: var(--subheading-color);
}

.hero-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  transition: background-color 0.3s;
  width: auto;
  align-self: flex-start;
  transition: transform 0.1s ease-in;
}

.hero-btn:hover {
  transform: scale(1.05);
}

#hero-video {
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  overflow: hidden;
}

.hero-video {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.video-btn {
  align-self: flex-end;
  margin: 0.5rem 0;
}

/* Features */

.features {
  padding: 1rem 5rem;
  margin: 5rem 0 0 0;
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.features-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 50px 80px;
}

.features-box * {
  margin: 0.5rem 0;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  border-radius: 8px;
  transition: all 0.1s ease-in-out;
  /* cursor: pointer; */
}

.feature:hover {
  background-color: var(--secondary-background);
  color: white;
  transform: scale(1.05);
}

.feature:hover img {
  filter: brightness(0) invert(1);
}

.feature-image {
  width: 80px;
  transition: all 0.1s ease-in-out;
}

.feature-item-subheading {
  text-align: center;
  width: 300px;
}

.feature-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
}

.feature-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  transition: background-color 0.3s;
  width: auto;
  transition: transform 0.1s ease-in;
  margin-top: 2rem;
}

.feature-btn:hover {
  transform: scale(1.05);
}

/* Reviews */

.reviews {
  width: 100vw;
  padding: 4rem 5rem;
}

.reviews-heading {
  margin-bottom: 2rem !important;
}

.reviews-content {
  display: flex;
  justify-content: space-between;
}

.review-profile-picture {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review {
  margin: 3rem 0 0 0;
  /* background-color: var(--secondary-background);
  color: white; */
  box-shadow: 0 0 15px #8a8a8a;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.1s ease-in-out;
}

.review:hover {
  background-color: var(--secondary-background);
  color: white;
  transform: scale(1.05);
  box-shadow: none;
}

.review-header {
  display: flex;
  align-items: center;
}

.review-user-name {
  margin: 0 1rem;
}

.review-content {
  margin: 1rem 0 0 0;
}

.reviews-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* margin: 2rem 0 0 0; */
}

.review-image {
  max-width: 390px;
  border-radius: 5px;
  margin: 2.5rem 0 0 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero {
    padding: 0 3rem;
  }
  
  .features {
    padding: 1rem 3rem;
  }
  
  .reviews {
    padding: 4rem 3rem;
  }
  
  .features-box {
    gap: 40px 60px;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
    height: auto;
    min-height: 75vh;
    margin-top: 4rem;
  }

  .hero-video {
    align-items: center;
  }
  
  .hero-main {
    text-align: center;
    align-items: center;
  }
  
  .hero-heading {
    text-align: center;
    font-size: 2.2rem;
  }
  
  .hero-subheading {
    text-align: center;
  }
  
  .hero-btn {
    align-self: center;
  }
  
  .features-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
  }
  
  .reviews-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .reviews-right {
    align-items: center;
  }
  
  .review-image {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .hero-subheading {
    font-size: 1.1rem;
  }
  
  .features {
    padding: 1rem 2rem;
  }
  
  .section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .features-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .feature-item-subheading {
    width: 100%;
    max-width: 300px;
  }
  
  .reviews {
    padding: 3rem 2rem;
  }
  
  .review {
    margin: 2rem 0 0 0;
  }
  
  .review-image {
    margin: 1.5rem 0 0 0;
  }
  
  #hero-video {
    max-width: 100%;
  }
  
  .video-controls {
    /* flex-direction: column; */
    align-items: center;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }
  
  .hero-heading {
    font-size: 1.8rem;
  }
  
  .hero-subheading {
    font-size: 1rem;
  }
  
  .hero-btn, .feature-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .features {
    padding: 1rem 1rem;
  }
  
  .section-heading {
    font-size: 1.8rem;
  }
  
  .feature-item-heading {
    font-size: 1.1rem;
  }
  
  .feature-item-subheading {
    font-size: 0.9rem;
  }
  
  .reviews {
    padding: 2rem 1rem;
  }
  
  .review {
    padding: 0.8rem;
  }
  
  .review-profile-picture {
    width: 40px;
    height: 40px;
  }
  
  .review-user-name {
    font-size: 0.9rem;
  }
  
  .review-content {
    font-size: 0.9rem;
  }
  
  .video-controls {
    gap: 3px;
  }
  
  .video-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
