/* ========================================
   🌟 PREMIUM VISUAL EFFECTS STYLES 🌟
   Complementary styles for enhanced interactions
   ======================================== */

/* Cursor speciale per gli elementi interattivi */
.premium-cursor {
    cursor: none;
}

.premium-cursor * {
    cursor: none !important;
}

/* Effetti di glow per elementi quando il cursore è vicino */
.glow-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-on-hover:hover {
    filter: drop-shadow(0 0 20px rgba(210, 105, 30, 0.3)) 
            drop-shadow(0 0 40px rgba(44, 95, 93, 0.2));
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Effetto magnetico enhanced per le card */
.magnetic-enhanced {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-enhanced:hover {
    transform: translate3d(0, -5px, 0) scale(1.02);
}

/* Particelle di background per sezioni speciali */
.premium-section {
    position: relative;
    overflow: hidden;
}

.premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(210, 105, 30, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(44, 95, 93, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 241, 232, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(10px, -10px) rotate(0.5deg) scale(1.02);
    }
    50% { 
        transform: translate(-5px, 10px) rotate(-0.3deg) scale(0.98);
    }
    75% { 
        transform: translate(-10px, -5px) rotate(0.3deg) scale(1.01);
    }
}

/* Effetti speciali per il testo nei titoli */
.premium-text {
    position: relative;
    display: inline-block;
}

.premium-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(210, 105, 30, 0.6), 
        rgba(44, 95, 93, 0.6), 
        rgba(245, 241, 232, 0.6)
    );
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-text:hover::after {
    width: 100%;
}

/* Floating action button con effetti premium */
.premium-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--golden-dome), 
        var(--copper-roof)
    );
    box-shadow: 
        0 8px 32px rgba(210, 105, 30, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: fabAppear 0.6s ease-out 2s forwards;
}

@keyframes fabAppear {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.premium-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(210, 105, 30, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.premium-fab::before {
    content: '✨';
    font-size: 24px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Effetto parallasse per le immagini e cards */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Responsive - Disabilita effetti su mobile per performance */
@media (max-width: 768px) {
    .premium-cursor,
    .premium-cursor * {
        cursor: auto !important;
    }
    
    .premium-section::before {
        animation: none;
    }
    
    .premium-fab {
        display: none;
    }
}

/* High contrast mode - Accessibilità */
@media (prefers-contrast: high) {
    .glow-on-hover:hover {
        filter: contrast(1.2) brightness(1.1);
    }
    
    .premium-section::before {
        display: none;
    }
}

/* Reduced motion - Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .premium-section::before,
    .premium-fab::before {
        animation: none !important;
    }
    
    .magnetic-enhanced:hover {
        transform: none;
    }
    
    .glow-on-hover {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .premium-section::before {
        background: 
            radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255, 150, 100, 0.02) 0%, transparent 50%);
    }
    
    .premium-fab {
        background: linear-gradient(135deg, 
            rgba(100, 200, 255, 0.8), 
            rgba(255, 150, 100, 0.8)
        );
    }
}