/* ===========================
   Be You - Animations
   Advanced CSS Animations
   =========================== */

/* Gradient Definitions for SVG */
@keyframes goldGradient {
  0% {
    stop-color: var(--gold-base);
  }
  50% {
    stop-color: var(--gold-bright);
  }
  100% {
    stop-color: var(--gold-base);
  }
}

/* Logo Animations */
@keyframes logoReveal {
  0% {
    stroke-dasharray: 0 1000;
    fill-opacity: 0;
  }
  50% {
    stroke-dasharray: 1000 0;
    fill-opacity: 0;
  }
  100% {
    stroke-dasharray: 1000 0;
    fill-opacity: 1;
  }
}

/* Text Animations */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(212, 165, 116, 0.5),
      0 0 20px rgba(212, 165, 116, 0.3),
      0 0 30px rgba(212, 165, 116, 0.1);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(212, 165, 116, 0.8),
      0 0 30px rgba(212, 165, 116, 0.6),
      0 0 40px rgba(212, 165, 116, 0.3);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Particle Effects */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: sparkle 2s infinite;
}

/* Wave Animations */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(10px);
  }
}

@keyframes liquidGold {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Card Animations */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes flip {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(180deg);
  }
}

/* Bloom Effect */
@keyframes bloom {
  0% {
    transform: scale(0.8);
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* Ripple Effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gold-base);
  animation: ripple 1s ease-out;
  pointer-events: none;
}

/* Shine Effect */
@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.shine-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

/* Morph Animations */
@keyframes morphText {
  0%, 100% {
    filter: blur(0px);
    opacity: 1;
  }
  50% {
    filter: blur(3px);
    opacity: 0.7;
  }
}

/* Boho Pattern Animation */
@keyframes patternMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.boho-pattern {
  background-image: 
    radial-gradient(circle at 20% 30%, transparent 30%, rgba(212, 165, 116, 0.05) 30.5%),
    radial-gradient(circle at 60% 70%, transparent 20%, rgba(245, 213, 204, 0.05) 20.5%),
    radial-gradient(circle at 80% 20%, transparent 25%, rgba(212, 165, 116, 0.03) 25.5%);
  background-size: 50px 50px, 30px 30px, 40px 40px;
  animation: patternMove 30s linear infinite;
}

/* Mandala Rotation */
@keyframes mandalaRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mandala-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  animation: mandalaRotate 60s linear infinite;
}

/* Feather Float */
@keyframes featherFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  25% {
    transform: translateY(-20px) rotate(5deg) translateX(10px);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg) translateX(-10px);
  }
  75% {
    transform: translateY(-30px) rotate(3deg) translateX(5px);
  }
}

/* Dream Catcher Sway */
@keyframes dreamcatcherSway {
  0%, 100% {
    transform: rotate(-2deg) translateX(0);
  }
  50% {
    transform: rotate(2deg) translateX(10px);
  }
}

/* Crystal Shimmer */
@keyframes crystalShimmer {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Ethereal Glow */
@keyframes etherealGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(212, 165, 116, 0.3),
      0 0 40px rgba(212, 165, 116, 0.1),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(212, 165, 116, 0.5),
      0 0 60px rgba(212, 165, 116, 0.2),
      inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

/* Hover Classes */
.hover-glow:hover {
  animation: etherealGlow 2s ease-in-out infinite;
}

.hover-float:hover {
  animation: cardFloat 3s ease-in-out infinite;
}

.hover-bloom:hover {
  animation: bloom 0.6s ease-out;
}

/* Loading Animations */
@keyframes dotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-base);
  animation: dotPulse 1.4s infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Scroll Reveal Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animate on Scroll Classes */
.aos-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

.aos-slide-right {
  animation: slideInRight 0.8s ease-out;
}

.aos-slide-up {
  animation: slideInUp 0.8s ease-out;
}

.aos-zoom {
  animation: zoomIn 0.8s ease-out;
}

/* Mobile Touch Feedback */
@media (hover: none) {
  .touch-feedback {
    position: relative;
    overflow: hidden;
  }
  
  .touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .touch-feedback:active::after {
    width: 300px;
    height: 300px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .product-badge,
  .material-badge {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles here if needed */
}

/* Print Animations */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }
}
