/**
 * SPHYNX TEQUILA - Premium Animation Styles
 * 
 * Advanced CSS animations and effects that work with GSAP
 * to create a luxurious, high-end animation experience
 */

/* Main animation containers */
.letter-container {
  display: flex;
  position: relative;
  justify-content: center;
  perspective: 1000px;
}

.letter {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  margin: 0 0.05em;
}

/* Premium shimmer effects */
.shimmer-premium {
  position: relative;
  overflow: hidden;
}

.shimmer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: premium-shimmer 3s infinite linear;
  pointer-events: none;
}

@keyframes premium-shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Special effects for premium subtitle animations */
.hero-subtitle span {
  opacity: 1;
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
}



/* Gold underline effect */
.gold-underline {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #C6A57C, transparent);
  opacity: 0;
  width: 0;
  transition: width 0.8s ease, opacity 0.8s ease;
}

.animations-complete .gold-underline {
  width: 80%;
  opacity: 0.7;
}

/* Enhanced button animations */
.hero-btn {
  position: relative;
  overflow: hidden;
}

.pulse-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(198, 165, 124, 0.3) 0%, rgba(198, 165, 124, 0) 70%);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Enhanced 3D hover effects for elements */
.animations-complete .letter:hover {
  transform: translateY(-5px) rotateX(10deg);
  filter: brightness(1.2);
}

/* Add depth to hero content */
.hero-content {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Ensure proper initial state of elements */
.hero-tequila-text .letter,
.hero-subtitle span,
.hero-btn {
  opacity: 0;
}

/* Fix for initial visibility */
.hero-content * {
  backface-visibility: hidden;
}

/* 3D text effects */
.hero-tequila-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity, text-shadow;
}

/* Enhanced subtitle styles */
.hero-subtitle {
  overflow: visible;
}

.hero-subtitle .just-sphynx {
  background: linear-gradient(to bottom, #e9c989, #C6A57C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 15px rgba(198, 165, 124, 0.5);
}

/* Enhanced button hover effects */
.hero-btn.buy-now-cta {
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, box-shadow;
}

.hero-btn.buy-now-cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.5s ease-in-out;
}

.hero-btn.buy-now-cta:hover:before {
  left: 100%;
}

/* Media queries for responsive animations */
@media (max-width: 768px) {
  .letter-container {
    perspective: 600px;
  }
  
  .hero-subtitle span {
    margin: 0 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-premium::before {
    animation: none;
  }
  
  .letter, 
  .hero-subtitle span, 
  #hero-title img, 
  .hero-btn.buy-now-cta {
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}
