/* ============================================
   PREMIUM UPGRADES - Violet Rae Site
   ULTRA-LUXURY EDITION
   ============================================ */

:root {
  --gold: #d4af37;
  --gold-light: #f4e5c2;
  --gold-dark: #b8941f;
  --luxury-gradient: linear-gradient(135deg, #d4af37, #f4e5c2, #d4af37);
}

/* Preloader Animation */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #02030a 0%, #050816 50%, #0a0c1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader__content {
  text-align: center;
}

.preloader__logo {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preloader__letter {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: preloaderFloat 2s ease-in-out infinite;
}

.preloader__letter:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.preloader__text {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader__progress {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius: 999px;
  animation: preloaderProgress 2s ease-in-out infinite;
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  z-index: 9998;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* Enhanced Brand Mark */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 138, 199, 0.4);
}

/* Hero Animated Background */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 138, 199, 0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(123, 188, 255, 0.4), transparent 50%);
  animation: heroGradientMove 8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes heroGradientMove {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

/* Animate-in Elements */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

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

/* Title Line Animation */
.title-line {
  display: block;
  overflow: hidden;
}

/* Enhanced Pills */
.pill--animated {
  animation: pillFloat 3s ease-in-out infinite;
}

.pill--animated:nth-child(2) { animation-delay: 0.2s; }
.pill--animated:nth-child(3) { animation-delay: 0.4s; }

@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Magnetic Button Effect */
.primary-button--magnetic {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.primary-button--magnetic .button-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Luxury Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.stats-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--luxury-gradient);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(16, 22, 36, 0.7);
}

/* Gallery Lightbox */
.gallery-tile {
  cursor: pointer;
  position: relative;
}

.gallery-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 138, 199, 0.9), rgba(123, 188, 255, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.gallery-tile:hover .gallery-tile__overlay {
  opacity: 1;
}

.gallery-tile__icon {
  width: 48px;
  height: 48px;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-tile:hover .gallery-tile__icon {
  transform: scale(1);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__close {
  top: 2rem;
  right: 2rem;
}

.lightbox__prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  gap: 2rem;
}

.testimonial-card {
  min-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  color: var(--pink);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(16, 22, 36, 0.9);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 22, 36, 0.1);
}

.testimonial-initial {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 138, 199, 0.4);
}

.testimonial-name {
  font-weight: 600;
  color: rgba(16, 22, 36, 0.9);
  margin-bottom: 0.25rem;
}

.testimonial-meta {
  font-size: 0.85rem;
  color: rgba(16, 22, 36, 0.6);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(16, 22, 36, 0.7);
}

.testimonial-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.testimonial-btn svg {
  width: 20px;
  height: 20px;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 22, 36, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot--active {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 350px;
    background: rgba(2, 3, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    height: calc(100vh - 80px);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .brand-mark__text {
    font-size: 0.9rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
  }
}

