/* ========================================
   MAGICAL ANIMATIONS FOR ALL PAGES
   ======================================== */

/* Hero Section Animated Background Elements */
.animated-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Falling Stars Animation */
.star {
    position: absolute;
    font-size: 1.5rem;
    animation: fallingStars linear infinite;
    opacity: 0.8;
}

.star-1 { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.star-2 { left: 25%; animation-duration: 10s; animation-delay: 2s; }
.star-3 { left: 40%; animation-duration: 12s; animation-delay: 4s; }
.star-4 { left: 60%; animation-duration: 9s; animation-delay: 1s; }
.star-5 { left: 80%; animation-duration: 11s; animation-delay: 3s; }

@keyframes fallingStars {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Falling Diamonds Animation */
.diamond {
    position: absolute;
    font-size: 2rem;
    animation: fallingDiamonds linear infinite;
    opacity: 0.9;
}

.diamond-1 { left: 15%; animation-duration: 15s; animation-delay: 1s; }
.diamond-2 { left: 35%; animation-duration: 18s; animation-delay: 3s; }
.diamond-3 { left: 55%; animation-duration: 14s; animation-delay: 5s; }
.diamond-4 { left: 75%; animation-duration: 16s; animation-delay: 2s; }
.diamond-5 { left: 90%; animation-duration: 17s; animation-delay: 4s; }

@keyframes fallingDiamonds {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: rotate(90deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 1;
        transform: rotate(270deg) scale(1);
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Silver Coins Animation */
.silver-coin {
    position: absolute;
    font-size: 2.5rem;
    animation: fallingCoins linear infinite;
    opacity: 0.8;
}

.coin-1 { left: 20%; animation-duration: 20s; animation-delay: 0s; }
.coin-2 { left: 50%; animation-duration: 22s; animation-delay: 5s; }
.coin-3 { left: 85%; animation-duration: 19s; animation-delay: 10s; }

@keyframes fallingCoins {
    0% {
        transform: translateY(-100px) rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotateX(360deg) rotateY(360deg);
        opacity: 0;
    }
}

/* Floating Bubbles Animation */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 215, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: floatingBubbles ease-in-out infinite;
}

.bubble-1 { width: 20px; height: 20px; left: 10%; animation-duration: 6s; animation-delay: 0s; }
.bubble-2 { width: 15px; height: 15px; left: 30%; animation-duration: 8s; animation-delay: 1s; }
.bubble-3 { width: 25px; height: 25px; left: 50%; animation-duration: 7s; animation-delay: 2s; }
.bubble-4 { width: 18px; height: 18px; left: 70%; animation-duration: 9s; animation-delay: 3s; }
.bubble-5 { width: 22px; height: 22px; left: 85%; animation-duration: 6.5s; animation-delay: 4s; }
.bubble-6 { width: 16px; height: 16px; left: 25%; animation-duration: 7.5s; animation-delay: 5s; }
.bubble-7 { width: 28px; height: 28px; left: 60%; animation-duration: 8.5s; animation-delay: 6s; }
.bubble-8 { width: 12px; height: 12px; left: 90%; animation-duration: 5.5s; animation-delay: 7s; }

@keyframes floatingBubbles {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(30px) scale(1);
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
}

/* Floating Jewelry Elements */
.floating-jewelry-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-jewelry {
    position: absolute;
    font-size: 2.5rem;
    animation: floatingJewelry ease-in-out infinite;
    opacity: 0.7;
}

.ring-1 { top: 15%; left: 10%; animation-duration: 20s; animation-delay: 0s; }
.crown-1 { top: 25%; right: 15%; animation-duration: 25s; animation-delay: 3s; }
.necklace-1 { bottom: 20%; left: 20%; animation-duration: 18s; animation-delay: 6s; }
.watch-1 { bottom: 30%; right: 25%; animation-duration: 22s; animation-delay: 9s; }
.gem-1 { top: 50%; left: 50%; animation-duration: 24s; animation-delay: 12s; }

@keyframes floatingJewelry {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) translateX(-20px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(-40px) translateX(30px) rotate(270deg) scale(1);
        opacity: 0.8;
    }
}

/* Magical Section Background */
.magical-section {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(192, 192, 192, 0.1), 
        rgba(255, 255, 255, 0.2),
        rgba(218, 165, 32, 0.1)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
    position: relative;
}

.magical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Sparkle Rain Effect */
.sparkle-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sparkle-drop {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleRain linear infinite;
    opacity: 0.8;
}

.drop-1 { left: 5%; animation-duration: 7s; animation-delay: 0s; }
.drop-2 { left: 15%; animation-duration: 8s; animation-delay: 1s; }
.drop-3 { left: 25%; animation-duration: 9s; animation-delay: 2s; }
.drop-4 { left: 35%; animation-duration: 6s; animation-delay: 3s; }
.drop-5 { left: 45%; animation-duration: 7.5s; animation-delay: 4s; }
.drop-6 { left: 55%; animation-duration: 8.5s; animation-delay: 5s; }
.drop-7 { left: 65%; animation-duration: 6.5s; animation-delay: 6s; }
.drop-8 { left: 75%; animation-duration: 9.5s; animation-delay: 7s; }

@keyframes sparkleRain {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100% + 50px)) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Gems */
.floating-gems {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gem {
    position: absolute;
    font-size: 1.8rem;
    animation: floatingGems ease-in-out infinite;
    opacity: 0.7;
}

.gem-1 { top: 10%; left: 10%; animation-duration: 15s; animation-delay: 0s; }
.gem-2 { top: 20%; right: 15%; animation-duration: 18s; animation-delay: 2s; }
.gem-3 { bottom: 15%; left: 20%; animation-duration: 16s; animation-delay: 4s; }
.gem-4 { bottom: 25%; right: 25%; animation-duration: 20s; animation-delay: 6s; }
.gem-5 { top: 40%; left: 40%; animation-duration: 17s; animation-delay: 8s; }
.gem-6 { top: 60%; right: 40%; animation-duration: 19s; animation-delay: 10s; }

@keyframes floatingGems {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(0.6);
        opacity: 0.4;
    }
    33% {
        transform: translateY(-25px) translateX(15px) rotate(120deg) scale(1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-15px) translateX(-15px) rotate(240deg) scale(1.3);
        opacity: 1;
    }
}

/* Magic Bubbles */
.magic-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.magic-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 215, 0, 0.4), 
        rgba(192, 192, 192, 0.2)
    );
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: magicBubbles ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.mbubble-1 { width: 30px; height: 30px; top: 10%; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.mbubble-2 { width: 25px; height: 25px; top: 30%; right: 15%; animation-duration: 10s; animation-delay: 2s; }
.mbubble-3 { width: 35px; height: 35px; bottom: 20%; left: 20%; animation-duration: 9s; animation-delay: 4s; }
.mbubble-4 { width: 20px; height: 20px; bottom: 30%; right: 25%; animation-duration: 11s; animation-delay: 6s; }
.mbubble-5 { width: 40px; height: 40px; top: 50%; left: 50%; animation-duration: 12s; animation-delay: 8s; }

@keyframes magicBubbles {
    0%, 100% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -50px) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translate(30px, -30px) scale(1);
        opacity: 0.7;
    }
}

/* Magical Text Effect */
.magical-text {
    background: linear-gradient(90deg, 
        #FFD700, 
        #FFA500, 
        #C0C0C0, 
        #FFD700, 
        #FFA500
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magicalShimmer 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes magicalShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg, 
        #FFD700, 
        #FFA500, 
        #FFD700, 
        #C0C0C0, 
        #FFD700
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Scrolling Text Animation */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Enhanced Social Media Cards */
#social_media .cards {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#social_media .cards:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

/* Gold Theme Animation */
.gold-theme {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700, #FF8C00);
    background-size: 400% 400%;
    animation: goldShimmer 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.gold-theme::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    animation: goldParticles 15s linear infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes goldParticles {
    0% { transform: rotate(0deg) translate(100px); }
    100% { transform: rotate(360deg) translate(100px); }
}

/* Silver Theme Animation */
.silver-theme {
    background: linear-gradient(135deg, #C0C0C0, #E5E5E5, #B8B8B8, #D3D3D3);
    background-size: 400% 400%;
    animation: silverShimmer 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.silver-theme::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(192, 192, 192, 0.2) 50%,
        transparent 70%
    );
    animation: silverParticles 20s linear infinite;
}

@keyframes silverShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes silverParticles {
    0% { transform: rotate(0deg) translate(150px); }
    100% { transform: rotate(-360deg) translate(150px); }
}

/* Hero Section Background Animation */
.hero-animated-bg {
    background: linear-gradient(270deg, #FFD700, #FFA500, #C0C0C0, #E5E5E5);
    background-size: 800% 800%;
    animation: heroGradient 15s ease infinite;
    position: relative;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Product Card Hover Effects */
.product-card-animated {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #C0C0C0, #FFD700);
    background-size: 400% 400%;
    animation: borderGlow 3s ease infinite;
    z-index: -1;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-animated:hover::before {
    opacity: 1;
}

.product-card-animated:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Jewelry Icons Animation */
.floating-jewelry {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.jewelry-icon-1 {
    top: 10%;
    left: 10%;
    animation: float1 20s infinite ease-in-out;
    color: #FFD700;
    font-size: 3rem;
}

.jewelry-icon-2 {
    top: 20%;
    right: 15%;
    animation: float2 25s infinite ease-in-out;
    color: #C0C0C0;
    font-size: 2.5rem;
}

.jewelry-icon-3 {
    bottom: 15%;
    left: 20%;
    animation: float3 18s infinite ease-in-out;
    color: #FFD700;
    font-size: 2rem;
}

.jewelry-icon-4 {
    bottom: 25%;
    right: 10%;
    animation: float4 22s infinite ease-in-out;
    color: #C0C0C0;
    font-size: 2.8rem;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(10px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(25px) rotate(-120deg); }
    66% { transform: translateY(-20px) rotate(-240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(15px) rotate(-90deg); }
    75% { transform: translateY(-25px) rotate(-270deg); }
}

/* Sparkle Effect */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 2;
}

.sparkle::before {
    content: '✦';
    position: absolute;
    color: #FFD700;
    animation: sparkle 3s linear infinite;
    font-size: 1.5rem;
}

.sparkle:nth-child(odd)::before {
    color: #C0C0C0;
    animation-duration: 4s;
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .star, .diamond, .silver-coin {
        font-size: 1rem;
    }
    
    .bubble {
        width: 15px !important;
        height: 15px !important;
    }
    
    .floating-jewelry {
        font-size: 1.8rem;
    }
    
    .gem {
        font-size: 1.5rem;
    }
    
    .magic-bubble {
        width: 25px !important;
        height: 25px !important;
    }
}
