/**
 * TachyonBuilt Quantum Effects System
 * Enhanced visual effects inspired by the AI demo page
 */

/* Quantum T Logo Animation */
.tachyon-logo {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3));
    animation: quantumPulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tachyon-logo:hover {
    filter: drop-shadow(0 0 25px rgba(74, 144, 226, 0.8));
    transform: scale(1.05);
}

@keyframes quantumPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(74, 144, 226, 0.6));
        transform: scale(1.02);
    }
}

/* Enhanced Quantum Background Effects - Ensure it doesn't affect navigation */
body.quantum-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -10;
    animation: quantumShift 20s ease-in-out infinite;
}

/* Ensure header maintains its original styling */
header {
    position: relative;
    z-index: 1000;
    background-color: #0A1F44 !important;
    background-image: linear-gradient(to bottom, #0c2040, #0a1f44) !important;
}

/* Force navbar to maintain dark styling */
.navbar {
    background: transparent !important;
}

/* Force container inside navbar to be transparent */
.navbar .container {
    background: transparent !important;
}

/* Additional header styling fixes */
header, header * {
    background-color: #0A1F44 !important;
    background-image: linear-gradient(to bottom, #0c2040, #0a1f44) !important;
}

.logo-container, .logo-container * {
    background: transparent !important;
}

/* Override any white backgrounds on nav elements */
nav, nav *, .nav-links, .nav-links * {
    background-color: transparent !important;
}

@keyframes quantumShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Quantum Particle Effects Container - Lower z-index to avoid nav interference */
.quantum-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
    overflow: hidden;
}

.quantum-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255,107,53,0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(150px);
        opacity: 0;
    }
}

/* Enhanced Card Animations */
.feature-card, .ai-card, .card {
    position: relative;
    overflow: hidden;
}

.feature-card::before, .ai-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B35, #764ba2, #4A90E2, #FF6B35);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card:hover::before, .ai-card:hover::before {
    opacity: 0.3;
}

/* Quantum Button Effects */
.btn-primary, .btn-large, .demo-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-large:hover, .demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Glass Morphism Enhancement */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* AI Assistant Floating Elements */
.ai-assistant-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Quantum Grid Pattern */
.quantum-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .tachyon-logo {
        max-height: 40px;
    }
    
    .quantum-particle {
        width: 2px;
        height: 2px;
    }
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 50%,
        rgba(255, 107, 53, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Quantum Text Effects */
.quantum-text {
    background: linear-gradient(90deg, #FF6B35, #764ba2, #4A90E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

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