/* Card Effects for New Prime Sistemas */
/* Advanced visual effects for cards and interactive elements */

/* Enhanced Tech Cards */
.tech-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(10px);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.15),
        0 0 0 1px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.6);
}

/* Scan Effect */
.scan-effect {
    position: relative;
    overflow: hidden;
}

.scan-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    animation: scan-line 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes scan-line {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Neon Border Effect */
.neon-border {
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 
        inset 0 0 10px rgba(6, 182, 212, 0.1),
        0 0 10px rgba(6, 182, 212, 0.2);
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #06b6d4, #3b82f6);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-shift 4s ease infinite;
}

.neon-border:hover::before {
    opacity: 0.7;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
}

.pulse-glow::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
    border-radius: inherit;
    z-index: -1;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(6, 182, 212, 0.8),
            0 0 30px rgba(6, 182, 212, 0.6);
        transform: scale(1.05);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(6, 182, 212, 0.1) 50%, 
        transparent 70%);
    background-size: 200% 200%;
    animation: holographic-shift 3s ease infinite;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Data Flow Background */
.data-flow-bg {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e293b);
    background-size: 400% 400%;
    animation: data-flow 4s ease infinite;
}

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

/* Tech Grid Background */
.tech-grid {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: grid-move 20s linear infinite;
}

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

/* Enhanced Icon Effects */
.tech-icon {
    transition: all 0.3s ease;
    position: relative;
}

.tech-icon:hover {
    transform: rotateY(180deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.8));
}

/* Glitch Effect for Text */
.glitch-text {
    position: relative;
    color: #06b6d4;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    15%, 49% {
        transform: translate(-2px, -1px);
        opacity: 0.7;
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    21%, 62% {
        transform: translate(2px, 1px);
        opacity: 0.7;
    }
}

/* Circuit Board Pattern */
.circuit-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.2) 2px, transparent 2px),
        linear-gradient(0deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    animation: circuit-flow 10s linear infinite;
}

@keyframes circuit-flow {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 40px 40px, -40px -40px, 20px 20px, -20px -20px; }
}

/* Loading Bar Effect */
.loading-bar {
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(6, 182, 212, 0.4), 
        rgba(6, 182, 212, 0.6), 
        rgba(6, 182, 212, 0.4), 
        transparent);
    animation: loading-sweep 2s ease-in-out infinite;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Particle Trail Effect */
.particle-trail {
    position: relative;
}

.particle-trail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #06b6d4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 0 rgba(6, 182, 212, 0.7),
        0 0 0 10px rgba(6, 182, 212, 0.5),
        0 0 0 20px rgba(6, 182, 212, 0.3),
        0 0 0 30px rgba(6, 182, 212, 0.1);
    animation: particle-pulse 1.5s ease-out infinite;
}

@keyframes particle-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Enhanced Button Effects */
.tech-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    border: none;
    transition: all 0.3s ease;
}

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

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

.tech-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(6, 182, 212, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .pulse-glow {
        animation-duration: 3s;
    }
    
    .scan-effect::after {
        animation-duration: 4s;
    }
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .tech-card,
    .pulse-glow,
    .scan-effect::after,
    .neon-border::before,
    .holographic,
    .data-flow-bg,
    .tech-grid,
    .tech-icon,
    .loading-bar::after,
    .particle-trail::before,
    .tech-button::before {
        animation: none;
        transition: none;
    }
    
    .tech-card:hover {
        transform: none;
    }
}

