/* Futuristic Telecommunications UI Elements */

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.futuristic-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.futuristic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Glowing Elements */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.3);
}

/* Network Connection Lines */
.network-visualization {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.network-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    height: 1px;
    animation: networkFlow 3s linear infinite;
}

@keyframes networkFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: float 20s infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

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

/* Holographic Text Effect */
.holographic-text {
    background: linear-gradient(90deg, #ffffff, #60a5fa, #818cf8, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic 3s linear infinite;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

@keyframes holographic {
    to {
        background-position: 200% center;
    }
}

/* Neon Border Effect */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#1e293b, #1e293b) padding-box,
                linear-gradient(45deg, #6366f1, #8b5cf6, #60a5fa, #6366f1) border-box;
    background-size: 200% 200%;
    animation: neonFlow 3s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

@keyframes neonFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 3D Card Tilt Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

/* Animated Statistics */
.stat-counter {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.stat-counter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    animation: statGrow 2s ease forwards;
}

@keyframes statGrow {
    to {
        transform: scaleX(1);
    }
}

/* Signal Strength Indicator */
.signal-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.signal-bar {
    width: 4px;
    background: linear-gradient(180deg, #10b981, #34d399);
    border-radius: 2px;
    animation: signalPulse 1.5s ease-in-out infinite;
}

.signal-bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.signal-bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.2s;
}

.signal-bar:nth-child(3) {
    height: 16px;
    animation-delay: 0.4s;
}

.signal-bar:nth-child(4) {
    height: 20px;
    animation-delay: 0.6s;
}

@keyframes signalPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    }
}

/* Data Stream Effect */
.data-stream {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.data-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    to {
        left: 100%;
    }
}

/* Holographic Button */
.btn-holographic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-holographic::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;
}

.btn-holographic:hover::before {
    left: 100%;
}

.btn-holographic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

/* Animated Grid Background */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Floating Icons */
.floating-icon {
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Connection Nodes */
.connection-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Hero Content Positioning */
.hero .container {
    position: relative;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .particles,
    .network-visualization {
        display: none;
    }
    
    .card-3d:hover {
        transform: none;
    }
    
    .hero-feature {
        flex-direction: column;
        text-align: center;
    }
}

