/* ============================================
   Vibrant Purple Place Style Enhancements
   ============================================ */

/* Decorative Background Elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Enhanced Feature Icons with Gradient Background */
.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(147, 51, 234, 0);
    }
}

.btn-primary {
    animation: pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Sparkle Effect for Headers */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.section-title::before,
.section-title::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

.section-title {
    position: relative;
}

.section-title::before {
    left: -40px;
    animation-delay: 0s;
}

.section-title::after {
    right: -40px;
    animation-delay: 1.5s;
}

/* Card Shine Effect on Hover */
.feature-card::after,
.why-item::after,
.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.feature-card:hover::after,
.why-item:hover::after,
.faq-item:hover::after {
    left: 100%;
}

.feature-card,
.why-item,
.faq-item {
    position: relative;
    overflow: hidden;
}

/* Colorful Border Animation */
@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.3),
                    0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.4),
                    0 0 60px rgba(147, 51, 234, 0.3);
    }
}

.game-wrapper:hover {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Bounce Animation for Icons */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease-in-out;
}

/* Loading Screen Enhancement */
.loading-spinner {
    background: linear-gradient(135deg, #9333ea, #ec4899, #f59e0b);
    border: none;
    animation: spin 1s linear infinite, colorChange 3s ease-in-out infinite;
}

@keyframes colorChange {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(30deg);
    }
}

/* FAQ Item Enhanced */
.faq-item summary {
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.03), transparent);
}

.faq-item[open] summary {
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.05), rgba(236, 72, 153, 0.05), rgba(147, 51, 234, 0.05));
}

/* Hero Title Enhanced Effect */
.hero-title {
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #9333ea, #ec4899, #f59e0b);
    border-radius: 2px;
}

/* Smooth Scroll Indicator */
@keyframes scrollHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* Enhanced Link Hover Effects */
a:not(.btn-primary):not(.btn-secondary):not(.nav-link) {
    position: relative;
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    transition: width 0.3s ease;
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link):hover::after {
    width: 100%;
}

/* Footer Enhanced */
.footer-brand h3 {
    background: linear-gradient(135deg, #9333ea, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f4ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #ec4899);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7e22ce, #db2777);
}

/* Selection Color */
::selection {
    background: rgba(147, 51, 234, 0.3);
    color: #1e293b;
}

::-moz-selection {
    background: rgba(147, 51, 234, 0.3);
    color: #1e293b;
}
