/* Neon Effects CSS */

/* Circuit Background Animation */
.circuit-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Canvas for animated circuits */
#neonCircuits {
    pointer-events: none;
}

/* Neon Text Effects */
.neon-text {
    color: #00b3ff;
    text-shadow: 
        0 0 3px rgba(0, 179, 255, 0.65),
        0 0 6px rgba(0, 179, 255, 0.65),
        0 0 13px rgba(0, 179, 255, 0.65),
        0 0 26px rgba(0, 128, 255, 0.65),
        0 0 52px rgba(0, 128, 255, 0.65),
        0 0 58px rgba(0, 128, 255, 0.65);
    animation: neon-pulse 2s ease-in-out infinite;
}

.neon-text-subtle {
    color: #0080ff;
    text-shadow: 
        0 0 2px rgba(0, 179, 255, 0.65),
        0 0 4px rgba(0, 179, 255, 0.65),
        0 0 8px rgba(0, 179, 255, 0.65),
        0 0 13px rgba(0, 128, 255, 0.65);
    animation: neon-pulse-subtle 3s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 3px rgba(0, 179, 255, 0.65),
            0 0 6px rgba(0, 179, 255, 0.65),
            0 0 13px rgba(0, 179, 255, 0.65),
            0 0 26px rgba(0, 128, 255, 0.65),
            0 0 52px rgba(0, 128, 255, 0.65),
            0 0 58px rgba(0, 128, 255, 0.65);
    }
    50% {
        text-shadow: 
            0 0 6px rgba(0, 179, 255, 0.65),
            0 0 13px rgba(0, 179, 255, 0.65),
            0 0 20px rgba(0, 179, 255, 0.65),
            0 0 32px rgba(0, 128, 255, 0.65),
            0 0 65px rgba(0, 128, 255, 0.65),
            0 0 71px rgba(0, 128, 255, 0.65);
    }
}

@keyframes neon-pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Neon Box Effects */
.neon-box {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid rgba(0, 179, 255, 0.8);
    border-radius: 8px;
    position: relative;
    box-shadow: 
        inset 0 0 6px rgba(0, 179, 255, 0.13),
        0 0 6px rgba(0, 179, 255, 0.2),
        0 0 13px rgba(0, 179, 255, 0.13);
}

.neon-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, #00b3ff, transparent, #0080ff);
    z-index: -1;
    opacity: 0;
    animation: neon-border 3s ease-in-out infinite;
}

@keyframes neon-border {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
}

.neon-box-large {
    padding: 20px;
    border: 2px solid rgba(0, 179, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(240, 248, 255, 0.9));
    box-shadow: 
        inset 0 0 20px rgba(0, 179, 255, 0.065),
        0 0 20px rgba(0, 179, 255, 0.065),
        0 0 39px rgba(0, 179, 255, 0.032);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.neon-box-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 179, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: neon-sweep 4s linear infinite;
}

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

.neon-box-small {
    padding: 6px 12px;
    border: 1px solid rgba(0, 179, 255, 0.35);
    border-radius: 6px;
    box-shadow: 
        0 0 3px rgba(0, 179, 255, 0.2),
        inset 0 0 3px rgba(0, 179, 255, 0.065);
}

/* Neon Logo */
.neon-logo-large {
    display: inline-block;
    padding: 30px;
    position: relative;
}

.neon-logo-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(0, 179, 255, 0.2) 0%,
        transparent 70%
    );
    animation: neon-glow 3s ease-in-out infinite;
}

@keyframes neon-glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Neon Buttons */
.neon-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #00b3ff, #0080ff);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 13px rgba(0, 179, 255, 0.32),
        inset 0 0 13px rgba(0, 179, 255, 0.13);
}

.neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(0, 179, 255, 0.45),
        0 6px 26px rgba(0, 179, 255, 0.26),
        inset 0 0 20px rgba(0, 179, 255, 0.2);
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #0080ff;
    font-weight: 600;
    border: 2px solid rgba(0, 179, 255, 0.8);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 6px rgba(0, 179, 255, 0.2),
        inset 0 0 6px rgba(0, 179, 255, 0.065);
}

.neon-button-outline:hover {
    background: rgba(0, 179, 255, 0.065);
    transform: translateY(-2px);
    box-shadow: 
        0 0 13px rgba(0, 179, 255, 0.32),
        0 3px 13px rgba(0, 179, 255, 0.2),
        inset 0 0 13px rgba(0, 179, 255, 0.065);
}

/* Neon Icon Effects */
.neon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(0, 179, 255, 0.065), 
        rgba(0, 128, 255, 0.032));
    box-shadow: 
        0 0 13px rgba(0, 179, 255, 0.13),
        inset 0 0 13px rgba(0, 179, 255, 0.065);
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 13px rgba(0, 179, 255, 0.13),
            inset 0 0 13px rgba(0, 179, 255, 0.065);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 20px rgba(0, 179, 255, 0.26),
            inset 0 0 20px rgba(0, 179, 255, 0.13);
    }
}

/* Feature Cards with Neon */
.feature-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 179, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #00b3ff, 
        transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 179, 255, 0.26);
    box-shadow: 
        0 6px 26px rgba(0, 179, 255, 0.13),
        0 0 13px rgba(0, 179, 255, 0.13),
        inset 0 0 13px rgba(0, 179, 255, 0.032);
}

/* Circuit Line Animations */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 179, 255, 0.8) 10%, 
        rgba(0, 179, 255, 0.8) 90%, 
        transparent);
    box-shadow: 
        0 0 6px rgba(0, 179, 255, 0.65),
        0 0 13px rgba(0, 179, 255, 0.32);
}

.circuit-line-h {
    height: 2px;
    width: 100px;
    animation: move-h 4s linear infinite;
}

.circuit-line-v {
    width: 2px;
    height: 100px;
    animation: move-v 4s linear infinite;
}

@keyframes move-h {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes move-v {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Glow particles */
.glow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 179, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(0, 179, 255, 0.65),
        0 0 13px rgba(0, 179, 255, 0.65),
        0 0 20px rgba(0, 179, 255, 0.65);
    animation: float-particle 10s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(10px, 90vh) scale(1);
    }
    100% {
        transform: translate(100px, -100vh) scale(0);
        opacity: 0;
    }
}
