/* ========================================
   MAHARAJAH TOURS - ANIMATIONS
   Keyframes, Transitions, Effects
   ======================================== */

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes successFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starSparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes testimonialLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ANIMATION UTILITIES ========== */
.hero-section .container {
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  animation: fadeInDown 0.8s ease-out;
}

.about-image-wrapper {
  animation: fadeInLeft 0.8s ease-out;
}

.values-image-wrapper {
  animation: fadeInRight 0.8s ease-out;
}

.testimonial-summary {
  animation: fadeInUp 0.6s ease-out;
}

.lightbox-overlay {
  animation: fadeIn 0.3s ease;
}

.modal-body .alert-success {
  animation: successFade 0.4s ease-out;
}

.cta-card::before {
  animation: pulse 4s ease-in-out infinite;
}

/* Card Stagger Animations */
.row.g-4>*,
.row>.col {
  animation: fadeInUp 0.6s ease-out backwards;
}

.row.g-4>*:nth-child(1),
.row>.col:nth-child(1) {
  animation-delay: 0.05s;
}

.row.g-4>*:nth-child(2),
.row>.col:nth-child(2) {
  animation-delay: 0.1s;
}

.row.g-4>*:nth-child(3),
.row>.col:nth-child(3) {
  animation-delay: 0.15s;
}

.row>.col:nth-child(4) {
  animation-delay: 0.2s;
}

.row>.col:nth-child(5) {
  animation-delay: 0.25s;
}

.row>.col:nth-child(6) {
  animation-delay: 0.3s;
}

.row>.col:nth-child(7) {
  animation-delay: 0.35s;
}

.row>.col:nth-child(8) {
  animation-delay: 0.4s;
}

.row>.col:nth-child(9) {
  animation-delay: 0.45s;
}


/* ========================================
   TESTIMONIALS SECTION
   Modern, polished testimonial carousel
   ======================================== */

/* Section Background */
.testimonials-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
  padding: 3rem 0;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 14, 16, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Rating Summary */
.testimonial-summary {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.testimonial-summary .d-inline-flex {
  background: #fff;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 30px rgba(78, 14, 16, 0.08);
  transition: all 0.3s ease;
}

.testimonial-summary .d-inline-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(78, 14, 16, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.testimonial-stars i {
  color: var(--brand-gold);
  font-size: 1.3rem;
  margin: 0 2px;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.testimonial-score strong {
  color: var(--brand-burgundy);
  font-family: 'Playfair Display', serif;
}

/* Carousel Wrapper */
.testimonials-carousel-wrapper {
  position: relative;
  padding: 1rem 0;
  z-index: 1;
}

.testimonials-carousel {
  overflow: hidden;
  padding: 1.5rem 60px 1.5rem 60px;
}

/* Inner wrapper controls overflow */
.testimonials-carousel-inner {
  overflow: hidden;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(78, 14, 16, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: grab;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.testimonial-card:active {
  cursor: grabbing;
}

/* Decorative Quote Icon */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  font-family: 'Playfair Display', serif;
  color: rgba(212, 175, 55, 0.08);
  line-height: 1;
  font-weight: 700;
  z-index: 0;
  transition: all 0.4s ease;
}

/* Gradient Border on Hover */
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-burgundy) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(78, 14, 16, 0.15);
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-card:hover::before {
  color: rgba(212, 175, 55, 0.15);
  transform: scale(1.1);
}

/* Content Positioning */
.testimonial-card>* {
  position: relative;
  z-index: 1;
}

/* Stars */
.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-stars i {
  font-size: 1.1rem;
  color: var(--brand-gold);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
}

.testimonial-card:hover .testimonial-stars i {
  animation: starSparkle 0.6s ease-in-out;
}

.testimonial-stars i.bi-star-fill {
  color: var(--brand-gold);
}

.testimonial-stars i.bi-star {
  color: #e0e0e0;
}

.testimonial-date {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* Title */
.testimonial-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--brand-burgundy);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-title {
  color: var(--brand-gold);
}

/* Review Text */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Author */
.testimonial-author {
  padding-top: 1.25rem;
  border-top: 2px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-top: auto;
}

.testimonial-author strong {
  color: var(--brand-burgundy);
  font-weight: 600;
}

.testimonial-author .text-muted {
  color: #777 !important;
}

/* Enhanced Navigation Buttons */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(78, 14, 16, 0.2);
  background: #fff;
  color: var(--brand-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #c09b2d 100%);
  color: #fff;
  border-color: var(--brand-gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.testimonial-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
}

.testimonial-nav i {
  font-size: 1.5rem;
  font-weight: bold;
}

.testimonial-nav-prev {
  left: 0;
}

.testimonial-nav-next {
  right: 0;
}

/* Enhanced Indicators */
.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.testimonial-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(78, 14, 16, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.testimonial-indicator::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-indicator:hover {
  background: rgba(78, 14, 16, 0.4);
  transform: scale(1.3);
}

.testimonial-indicator.active {
  background: var(--brand-burgundy);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(78, 14, 16, 0.3);
}

.testimonial-indicator.active::after {
  opacity: 1;
  border-radius: 8px;
}

/* Loading Animation */
.testimonial-card {
  animation: testimonialLoad 0.5s ease-out backwards;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:nth-child(4) {
  animation-delay: 0.4s;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (iPad, small laptops) */
@media (max-width: 991px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
    padding: 2rem;
    min-height: 300px;
  }

  .testimonials-carousel {
    padding: 2.5rem 50px;
  }

  .testimonial-nav {
    width: 45px;
    height: 45px;
  }

  .testimonial-nav i {
    font-size: 1.3rem;
  }

  .testimonial-card::before {
    font-size: 100px;
    top: -15px;
  }

  .testimonial-title {
    font-size: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 2rem 0;
  }

  .testimonial-card {
    flex: 0 0 100%;
    padding: 2rem 1.5rem;
    min-height: 280px;
  }

  .testimonials-carousel {
    padding: 2rem 45px;
  }

  .testimonials-track {
    gap: 1rem;
  }

  .testimonial-nav {
    width: 42px;
    height: 42px;
  }

  .testimonial-nav i {
    font-size: 1.2rem;
  }

  .testimonial-nav-prev {
    left: 5px;
  }

  .testimonial-nav-next {
    right: 5px;
  }

  .testimonial-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .testimonial-card::before {
    font-size: 80px;
    top: -10px;
    left: 15px;
  }

  .testimonial-author {
    font-size: 0.9rem;
    padding-top: 1rem;
  }

  .testimonial-indicators {
    margin-top: 1.5rem;
    gap: 8px;
  }

  .testimonial-indicator {
    width: 10px;
    height: 10px;
  }

  .testimonial-indicator.active {
    width: 28px;
  }
}

/* Small Mobile */
@media (max-width: 575px) {
  .testimonials-section {
    padding: 1.5rem 0;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }

  .testimonials-carousel {
    padding: 1.5rem 40px;
  }

  .testimonial-nav {
    width: 38px;
    height: 38px;
  }

  .testimonial-nav i {
    font-size: 1.1rem;
  }

  .testimonial-title {
    font-size: 1.1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .testimonial-stars i {
    font-size: 1rem;
  }

  .testimonial-date {
    font-size: 0.8rem;
  }

  .testimonial-card::before {
    font-size: 70px;
    top: -8px;
    left: 10px;
  }

  .testimonial-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Extra Small (Very small phones) */
@media (max-width: 375px) {
  .testimonials-carousel {
    padding: 1.5rem 35px;
  }

  .testimonial-nav {
    width: 35px;
    height: 35px;
  }

  .testimonial-nav i {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .testimonial-title {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.875rem;
  }

  .testimonial-author {
    font-size: 0.85rem;
  }
}
