/* Live Animated Background for Traq Networks */
.animated-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #001F54 0%, #0a3d62 50%, #001F54 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 40%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Camera Animation Elements */
.camera-element {
    position: absolute;
    width: 60px;
    height: 40px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.camera-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00d4ff 0%, #001F54 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
    animation: camera-scan 2s ease-in-out infinite;
}

.camera-element::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    background: #333;
    border-radius: 4px 4px 0 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes camera-scan {
    0%, 100% { box-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff; }
    50% { box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff; }
}

/* Sensor Elements */
.sensor-element {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: sensor-pulse 3s ease-in-out infinite;
}

.sensor-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88;
}

.sensor-element.green::before {
    background: #00ff88;
    box-shadow: 0 0 15px #00ff88;
}

.sensor-element.red::before {
    background: #ff4444;
    box-shadow: 0 0 15px #ff4444;
}

.sensor-element.orange::before {
    background: #ffaa00;
    box-shadow: 0 0 15px #ffaa00;
}

@keyframes sensor-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Grid Lines Effect */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Scanning Line Effect */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Data Points */
.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: data-flow 2s ease-in-out infinite;
}

@keyframes data-flow {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Network Connections */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: connection-pulse 2s ease-in-out infinite;
}

@keyframes connection-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Facts Section Enhanced Cards */
.facts-card {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.facts-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.facts-card .sensor-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.facts-card .sensor-dot.green {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Service Cards with Camera Preview Effect */
.service-card-enhanced {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-card-enhanced:hover::before {
    left: 100%;
}

.service-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Live Status Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 20px;
    font-size: 12px;
    color: #00ff88;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: live-blink 1s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Protection Level Badge */
.protection-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #001F54, #0a3d62);
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}
