/* Essential styles not available in Tailwind */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg,
    #0a0a0a 0%,
    #0d0b08 10%,
    #0a0a0a 20%,
    #0f0d0a 35%,
    #0a0908 50%,
    #0c0b09 65%,
    #0a0a0a 80%,
    #0d0c0a 90%,
    #0a0a0a 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle gold ambient glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(139, 105, 20, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lexend', sans-serif;
}

.font-lexend {
  font-family: 'Lexend', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================
   PREMIUM GOLD EFFECTS
   ========================================== */

/* Animated gold shimmer for headings */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #c9a227 0%,
    #d4af37 20%,
    #f4d03f 35%,
    #fff8dc 50%,
    #f4d03f 65%,
    #d4af37 80%,
    #c9a227 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s ease-in-out infinite;
}

/* Pulsing gold ring around profile photo */
@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4),
                0 0 20px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0),
                0 0 40px rgba(212, 175, 55, 0.25);
  }
}

.profile-glow {
  animation: pulseGold 3s ease-in-out infinite;
}

/* Hand-drawn circle draw-in animation */
.highlight-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawCircle 1.5s ease-out 0.8s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

/* Premium gold glow on card hover */
.card-gold-glow {
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.15s ease-out;
}

.card-gold-glow:hover {
  box-shadow:
    0 0 15px rgba(212, 175, 55, 0.15),
    0 0 40px rgba(212, 175, 55, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.6) !important;
}

/* Animated gradient border (Pack Plus Populaire) */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

.animated-border {
  border: 2px solid transparent;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    conic-gradient(from var(--border-angle), #c9a227, #f4d03f, #d4af37, #8b6914, #d4af37, #f4d03f, #c9a227) border-box;
  animation: borderRotate 4s linear infinite;
}

/* Cursor spotlight glow - desktop only */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
  display: none;
}

@media (min-width: 1024px) {
  #cursor-glow {
    display: block;
  }
}

/* Floating gold particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.8), transparent);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: -3s; }
.particle:nth-child(3) { left: 50%; animation-duration: 18s; animation-delay: -7s; }
.particle:nth-child(4) { left: 70%; animation-duration: 14s; animation-delay: -5s; }
.particle:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: -2s; }
.particle:nth-child(6) { left: 40%; animation-duration: 20s; animation-delay: -10s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

/* Mockup hero image glow */
.mockup-glow {
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.15)) drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* ==========================================
   EXISTING STYLES (preserved)
   ========================================== */

/* Custom fadeIn animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-fadeIn {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix for 360° hover rotation */
.hover\:rotate-360:hover {
  transform: rotate(360deg);
}

/* Mobile responsive fix */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }
}

/* Horizontal scroll carousel styles */
#carouselTrack {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Showcase image containers */
.showcase-image {
  flex-shrink: 0;
  cursor: pointer;
}

/* Subtle hover effect on showcase images */
.showcase-image img {
  will-change: transform;
  transition: transform 0.2s ease;
}

.showcase-image:hover img {
  transform: scale(1.05);
}

/* Navigation buttons with glassmorphism effect */
#prevBtn,
#nextBtn,
#prevBtnMobile,
#nextBtnMobile {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#prevBtn:hover,
#nextBtn:hover,
#prevBtnMobile:hover,
#nextBtnMobile:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Specific style for desktop external buttons */
#prevBtn,
#nextBtn {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Button animation on hover */
#prevBtn:hover,
#nextBtn:hover {
  transform: translateY(-50%) scale(1.15);
}

#prevBtnMobile:hover,
#nextBtnMobile:hover {
  transform: scale(1.1);
}

/* Navigation button animations */
#prevBtn,
#nextBtn {
  transition: all 0.2s ease;
}

#prevBtn:disabled,
#nextBtn:disabled {
  cursor: not-allowed;
}

/* Carousel drag styles */
#carouselTrack {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#carouselTrack img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Progress indicator styles */
#progressDots {
  min-height: 8px;
}

#progressText {
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
}

/* Horizontal scroll responsive design */
@media (max-width: 1024px) {

  /* Adjust arrow position on tablet */
  #prevBtn {
    left: -2rem;
  }

  #nextBtn {
    right: -2rem;
  }
}

/* Mobile carousel improvements */
@media (max-width: 768px) {

  /* Reduce carousel track padding on mobile */
  #carouselTrack {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Ensure mobile buttons are properly spaced */
  #prevBtnMobile,
  #nextBtnMobile {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {

  /* Further reduce spacing on small screens */
  #carouselTrack {
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {

  /* Minimal spacing for very small screens */
  #carouselTrack {
    gap: 0.5rem !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  /* Smaller mobile buttons for very small screens */
  #prevBtnMobile,
  #nextBtnMobile {
    padding: 0.625rem;
  }

  #prevBtnMobile svg,
  #nextBtnMobile svg {
    width: 20px;
    height: 20px;
  }
}

/* Full screen image modal */
#imageModal {
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#imageModal.show {
  opacity: 1;
  visibility: visible;
}

#modalImage {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: modalImageAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalImageAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#closeModal {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

#closeModal:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* Expand icon on showcase images */
.showcase-image .bg-white\/20 {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal responsive design */
@media (max-width: 768px) {
  #modalImage {
    max-width: 95vw;
    max-height: 80vh;
  }

  #closeModal {
    top: -3rem;
    right: 0;
  }

  #closeModal svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  #modalImage {
    max-width: 98vw;
    max-height: 75vh;
  }

  #closeModal {
    top: -2.5rem;
    padding: 0.375rem;
  }

  #closeModal svg {
    width: 20px;
    height: 20px;
  }
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #carouselTrack {
    transition: none !important;
  }

  .showcase-image img {
    transition: none !important;
  }

  #modalImage {
    animation: none !important;
  }

  .gold-shimmer {
    background-size: 100% auto;
    animation: none !important;
  }

  .profile-glow,
  .animated-border,
  .highlight-path {
    animation: none !important;
  }

  .particles,
  #cursor-glow {
    display: none !important;
  }
}

/* FAQ Accordion Styles */
.faq-item.active .faq-answer {
  max-height: 500px !important;
  /* Higher specificity to override Tailwind max-h-0 */
  opacity: 1 !important;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: rgba(212, 175, 55, 0.6) !important;
  background-color: rgba(26, 26, 26, 0.8) !important;
}

/* Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Motion fallback - if Motion library fails to load, show everything */
.no-motion [data-motion-hidden] {
  opacity: 1 !important;
  transform: none !important;
}