
/* Custom CSS for QuantumPulse AI Nexus */
/* Remove spaces between sections */
section {
    margin: 0;
    padding: 0;
}

/* AI Particle Animations */
.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px #06b6d4;
    animation: float 6s ease-in-out infinite;
}

.ai-particle:nth-child(2n) {
    background: #10b981;
    box-shadow: 0 0 20px 5px #10b981;
    width: 6px;
    height: 6px;
}

.ai-particle:nth-child(3n) {
    background: #3b82f6;
    box-shadow: 0 0 20px 5px #3b82f6;
    width: 3px;
    height: 3px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-40px) translateX(20px);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) translateX(-30px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-60px) translateX(10px);
        opacity: 0.8;
    }
}

/* Crazy Visual Effects */
.quantum-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 20%, rgba(139, 92, 246, 0.8) 40%, transparent 60%);
    animation: ripple 3s linear infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 20px #8b5cf6, 0 0 40px #8b5cf6, 0 0 60px #8b5cf6;
    }
    50% {
        box-shadow: 0 0 40px #8b5cf6, 0 0 80px #8b5cf6, 0 0 120px #8b5cf6;
    }
}

.hologram-effect {
    background: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.2), transparent 70%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.hologram-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(139, 92, 246, 0.5),
        transparent 180deg,
        rgba(139, 92, 246, 0.3),
        transparent
    );
    animation: hologram-rotate 8s linear infinite;
}

@keyframes hologram-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #06b6d4, transparent);
    animation: data-stream 4s linear infinite;
}

@keyframes data-stream {
    0% {
        transform: translateY(-100px);
    opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.neon-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 40px currentColor;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.matrix-code {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 90%, rgba(16, 185, 129, 0.1);
    animation: matrix-fall 20s linear infinite;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.quantum-orb {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8b5cf6, #06b6d4);
    animation: quantum-spin 4s linear infinite;
    filter: blur(20px);
}

@keyframes quantum-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.5);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.neon-border-glow {
    border: 2px solid transparent;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        border-color: #8b5cf6;
        box-shadow: 0 0 20px #8b5cf6;
    }
    50% {
        border-color: #06b6d4;
        box-shadow: 0 0 40px #06b6d4, inset 0 0 20px #06b6d4;
    }
}

.glow-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    filter: blur(15px);
    animation: trail-fade 2s ease-out infinite;
}

@keyframes trail-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}
/* 3D Card Flip Effects */
.ai-service-card {
    perspective: 1000px;
    height: 300px;
}

.ai-service-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.ai-service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 50px 10px rgba(6, 182, 212, 0.3);
}

.glow-green {
    box-shadow: 0 0 50px 10px rgba(16, 185, 129, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 50px 10px rgba(6, 182, 212, 0.3);
}

.glow-red {
    box-shadow: 0 0 50px 10px rgba(239, 68, 68, 0.3);
}
/* Hover Scale Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 20px currentColor;
}

/* AI Response Area Animation */
.ai-response-area {
    position: relative;
    overflow: hidden;
}

.ai-response-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(168, 85, 247, 0.1),
        transparent 30%
    );
    animation: rotate 6s linear infinite;
}

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

/* Pulse Animation for Interactive Elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px 0px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px 10px rgba(139, 92, 246, 0.8);
    }
}

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

/* Matrix-style falling code rain effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Loading spinner for AI interactions */
.ai-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .ai-service-card {
        height: 250px;
    }
    
    .ai-particle {
        display: none;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* Cybersecurity Service Cards */
.cyber-service-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cyber-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

/* Neon border effects */
.neon-border {
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6, inset 0 0 10px #8b5cf6;
}