/* Advanced 3D Effects for Quantum Markets */

/* Основной контейнер для 3D */
.logo-3d-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
    display: inline-block;
}

/* Улучшенные световые эффекты */
.logo-3d-enhanced {
    position: relative;
    z-index: 1;
}

.logo-3d-enhanced::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 0, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Голографический эффект */
.logo-holographic {
    position: relative;
    overflow: hidden;
}

.logo-holographic::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: hologramScan 3s linear infinite;
    pointer-events: none;
}

/* Магнитное поле эффект */
.logo-magnetic-field {
    position: relative;
}

.logo-magnetic-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: magneticPulse 2s ease-in-out infinite;
    z-index: -1;
}

.logo-magnetic-field::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: magneticPulse 2s ease-in-out infinite 0.5s;
    z-index: -2;
}

/* Квантовые частицы */
.quantum-particles {
    position: relative;
}

.quantum-particles::before,
.quantum-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.quantum-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.quantum-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* Анимации */
@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes hologramScan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes magneticPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Интерактивные эффекты */
.logo-interactive:hover {
    animation-play-state: paused;
}

.logo-interactive:hover .logo-3d-enhanced::before {
    animation: pulseGlow 0.5s ease-in-out infinite alternate;
}

/* Responsive адаптация */
@media (max-width: 768px) {
    .logo-3d-enhanced::before,
    .logo-magnetic-field::before,
    .logo-magnetic-field::after {
        opacity: 0.5;
    }
    
    .quantum-particles::before,
    .quantum-particles::after {
        display: none;
    }
}

/* Эффект энергетического поля */
.energy-field {
    position: relative;
    overflow: visible;
}

.energy-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.15),
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent,
        rgba(255, 215, 0, 0.15),
        transparent
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: energyRotate 10s linear infinite;
    z-index: -1;
}

@keyframes energyRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Класс для комбинированных эффектов */
.logo-ultimate-3d {
    /* Объединяет все эффекты */
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}
