/* La Reine - Base Styles */

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f7fafc;
}

::-webkit-scrollbar-thumb {
  background: #2D4A6F;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1B3A5F;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1B3A5F;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Custom gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #0F2039 0%, #1B3A5F 50%, #D4A843 100%);
}

.gradient-hero-alt {
  background: linear-gradient(120deg, #152E4D 0%, #3D5A80 50%, #E8C472 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #D4A843 0%, #2D4A6F 50%, #1B3A5F 100%);
}

.gradient-card {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1) 0%, rgba(27, 58, 95, 0.05) 100%);
}

.gradient-overlay {
  background: linear-gradient(135deg, rgba(27, 58, 95, 0.95) 0%, rgba(45, 74, 111, 0.9) 100%);
}

/* Animate-in utility for intersection observer */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure elements are hidden before animation */
.will-animate {
  opacity: 0;
}

/* Testimonials Styles */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  position: relative;
  min-height: 400px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(100%);
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Testimonial card animation */
@keyframes testimonialSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-card {
  animation: testimonialSlideIn 0.6s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Quote icon animation */
@keyframes quoteFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.quote-icon {
  animation: quoteFloat 3s ease-in-out infinite;
}

/* Star rating animation */
@keyframes starShine {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.star-rating svg {
  display: inline-block;
  transition: transform 0.2s ease;
}

.star-rating:hover svg {
  animation: starShine 0.5s ease;
}

/* Testimonial dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #d1d5db;
}

.testimonial-dot:hover {
  background-color: #9ca3af;
  transform: scale(1.2);
}

/* Navigation buttons */
.testimonial-nav-btn {
  transition: all 0.3s ease;
}

.testimonial-nav-btn:hover:not(:disabled) {
  transform: scale(1.1);
  background-color: rgba(27, 58, 95, 0.1);
}

.testimonial-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Background image with overlay utilities */
.bg-image-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 58, 95, 0.85), rgba(45, 74, 111, 0.75));
  z-index: 1;
}

.bg-image-overlay > * {
  position: relative;
  z-index: 2;
}

/* Parallax effect for background images */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Image lazy loading blur-up effect */
.img-blur-up {
  filter: blur(20px);
  transition: filter 0.4s ease;
}

.img-blur-up.loaded {
  filter: blur(0);
}

/* Stagger animation for grids */
.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Magazine Popup Styles */
@keyframes magazinePopupIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes magazinePopupOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.95) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes magazinePopupIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes magazinePopupOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
}
