/* ===== Scroll Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

/* ===== Hero Background ===== */
.hero-gradient {
  background: linear-gradient(135deg, #1E3D3D 0%, #2D5A5A 40%, #1E3D3D 70%, #2D5A5A 100%);
}

.hero-radial {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 162, 101, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232, 213, 183, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(196, 162, 101, 0.05) 0%, transparent 70%);
}

/* ===== Hero Glow Orbs ===== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 15%;
  background: rgba(196, 162, 101, 0.12);
  animation: heroOrbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 10%;
  background: rgba(232, 213, 183, 0.08);
  animation: heroOrbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(196, 162, 101, 0.1);
  animation: heroOrbFloat3 6s ease-in-out infinite;
}

@keyframes heroOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
}

@keyframes heroOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-20px, 15px) scale(1.15); opacity: 0.8; }
}

@keyframes heroOrbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

/* ===== Hero Sacred Geometry ===== */
.hero-geometry {
  animation: heroGeometryReveal 2s ease-out 0.5s forwards, heroGeometrySpin 60s linear infinite;
}

@keyframes heroGeometryReveal {
  to { opacity: 1; }
}

@keyframes heroGeometrySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Hero Light Rays ===== */
.hero-rays {
  background:
    linear-gradient(180deg, rgba(196, 162, 101, 0.03) 0%, transparent 40%),
    conic-gradient(from 0deg at 50% 0%, transparent 0deg, rgba(196, 162, 101, 0.04) 15deg, transparent 30deg, transparent 150deg, rgba(232, 213, 183, 0.03) 165deg, transparent 180deg, transparent 330deg, rgba(196, 162, 101, 0.04) 345deg, transparent 360deg);
  animation: heroRaysReveal 2s ease-out 0.3s forwards;
}

@keyframes heroRaysReveal {
  to { opacity: 1; }
}

/* ===== Hero Text Reveal ===== */
.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-reveal.hero-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Character-by-character reveal for heading */
.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-char.hero-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== Hero Divider Animated ===== */
.hero-divider-animated {
  width: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #C4A265, #E8D5B7, #C4A265, transparent);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-divider-animated.hero-visible {
  width: 120px;
}

/* ===== Floating Particles ===== */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-particle-gold {
  background: radial-gradient(circle, rgba(196, 162, 101, 0.6) 0%, rgba(196, 162, 101, 0) 70%);
}

.hero-particle-cream {
  background: radial-gradient(circle, rgba(232, 213, 183, 0.4) 0%, rgba(232, 213, 183, 0) 70%);
}

.hero-particle-white {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

@keyframes particleFloat {
  0% { transform: translate(var(--px-start), var(--py-start)) scale(0); opacity: 0; }
  15% { opacity: var(--p-opacity); transform: translate(var(--px-start), var(--py-start)) scale(1); }
  85% { opacity: var(--p-opacity); }
  100% { transform: translate(var(--px-end), var(--py-end)) scale(0); opacity: 0; }
}

/* ===== Hero Button Hover Effects ===== */
.hero-btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-btn-primary:hover::after {
  transform: translateX(100%);
}

/* ===== Testimonial Carousel (Upgraded) ===== */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 0.5rem;
  transition: opacity 0.4s ease;
}

.testimonial-card-inner {
  position: relative;
  overflow: hidden;
}

.testimonial-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #C4A265, #E8D5B7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.testimonial-card-inner:hover::before {
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 33.333%;
  }
}

/* Carousel dots */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8D5B7;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: #C4A265;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #C4A265;
  width: 24px;
  border-radius: 4px;
}

/* Carousel progress bar */
.carousel-progress-bar {
  width: 0%;
  transition: none;
}

.carousel-progress-bar.animating {
  transition: width linear;
}

/* ===== Star Rating ===== */
.star-rating {
  color: #C4A265;
  letter-spacing: 2px;
}

/* ===== Section Divider ===== */
.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, #C4A265, #E8D5B7);
  margin: 0 auto;
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Nav scroll effect ===== */
.nav-scrolled {
  background-color: rgba(45, 90, 90, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in,
  .hero-reveal,
  .hero-char {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-divider-animated {
    width: 120px;
    transition: none;
  }

  .hero-orb,
  .hero-geometry,
  .hero-rays,
  .hero-particle {
    animation: none;
    opacity: 0.5;
  }

  .testimonial-track {
    transition: none;
  }

  .carousel-dot,
  .testimonial-card-inner::before {
    transition: none;
  }
}
