/* Additional styles for quantum effects and animations */

/* Particle Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle-bg {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Quantum Wave Effect */
section {
    --mouse-x: 0.5;
    --mouse-y: 0.5;
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at calc(var(--mouse-x) * 100%) calc(var(--mouse-y) * 100%),
        rgba(138, 43, 226, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

section:hover::after {
    opacity: 1;
}

/* Reveal Animation */
.blueprint-card, .possibility-item, .journey-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.blueprint-card.revealed, .possibility-item.revealed, .journey-step.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveal for Cards */
.blueprint-card:nth-child(1) {
    transition-delay: 0.1s;
}
.blueprint-card:nth-child(2) {
    transition-delay: 0.2s;
}
.blueprint-card:nth-child(3) {
    transition-delay: 0.3s;
}
.blueprint-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Pulse Animation for Buttons */
@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

.btn.pulse {
    animation: pulse-button 1.5s ease-out;
}

/* Quantum Glow Effect */
.quantum-glow {
    position: relative;
}

.quantum-glow::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.quantum-glow:hover::before {
    opacity: 0.7;
}

/* Energy Flow Lines */
.energy-flow {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: flow-animation 8s linear infinite;
    opacity: 0.3;
}

@keyframes flow-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile Menu Animation */
.menu-toggle {
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-image {
        transform: scale(0.8);
    }
    
    .blueprint-card, .possibility-item {
        padding: 20px 15px;
    }
    
    .journey-step {
        padding: 0 10px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #b347ff;
        --secondary-color: #47b3ff;
        --accent-color: #ff47b3;
    }
    
    body {
        background-color: #000;
        color: #fff;
    }
    
    .blueprint-card, .contact-link {
        background: rgba(40, 40, 80, 0.9);
        border: 2px solid white;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .twinkling, .geometry-overlay, .orbit, .particle,
    .sphere-inner, .energy-flow {
        animation: none !important;
    }
    
    .blueprint-card:hover, .possibility-item:hover, .contact-link:hover {
        transform: none !important;
    }
    
    .scroll-top:hover {
        transform: none !important;
    }
}
