/* ==========================================================================
   ULTRA TECH EFFECTS - NEXT LEVEL ANIMATIONS
   ========================================================================== */

/* Digital DNA Helix */
.dna-helix {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 100px;
    height: 300px;
    opacity: 0.3;
}

.dna-strand {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    animation: dnaRotate 4s linear infinite;
}

.dna-strand:nth-child(1) { left: 20px; }
.dna-strand:nth-child(2) { right: 20px; animation-delay: 2s; }

.dna-connector {
    position: absolute;
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    left: 20px;
    animation: dnaConnector 2s ease-in-out infinite;
}

@keyframes dnaRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes dnaConnector {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Holographic interface panels */
.holo-panel {
    position: absolute;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    animation: holoPanelFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.holo-panel-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 100px;
    animation-delay: 0s;
}

.holo-panel-2 {
    bottom: 20%;
    right: 8%;
    width: 150px;
    height: 80px;
    animation-delay: 2s;
}

.holo-panel-3 {
    top: 60%;
    left: 3%;
    width: 180px;
    height: 90px;
    animation-delay: 4s;
}

@keyframes holoPanelFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotateX(5deg);
        opacity: 0.7;
    }
}

/* Data stream visualization */
.data-stream-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.data-byte {
    position: absolute;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: dataFlow 3s linear infinite;
    opacity: 0.7;
    box-shadow: 0 0 8px var(--success-color);
}

@keyframes dataFlow {
    0% { 
        transform: translateY(-100vh) translateX(0px);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { 
        transform: translateY(100vh) translateX(-50px);
        opacity: 0;
    }
}

/* Quantum field effect */
.quantum-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 212, 255, 0.1) 0%, 
        transparent 50%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Enhanced service cards with tech effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Tech badge with pulse effect */
.tech-pulse {
    position: relative;
}

.tech-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: techPulse 2s ease-out infinite;
}

@keyframes techPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Binary rain effect */
.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--success-color);
    animation: binaryFall 8s linear infinite;
    white-space: pre;
    line-height: 1.2;
}

@keyframes binaryFall {
    to {
        transform: translateY(calc(100vh + 200px));
    }
}

/* Cyberpunk glitch text */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    color: var(--accent-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    color: var(--primary-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, 0); }
    40% { transform: translate(0, 2px); }
    60% { transform: translate(-2px, 0); }
    80% { transform: translate(0, -2px); }
    100% { transform: translate(0); }
}

/* Enhanced portfolio cards */
.portfolio-card {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.1) 0%,
        rgba(0, 102, 255, 0.1) 50%,
        rgba(255, 107, 53, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: 
        0 25px 50px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.5);
}

/* Logo enhancement for all images */
.client-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}

.client-logo[src*="ermanna"] {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.client-logo[src*="haganat"] {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.client-logo[src*="kehilla"] {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.portfolio-card:hover .client-logo {
    transform: scale(1.1) rotateY(10deg);
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .holo-panel,
    .dna-helix,
    .data-stream-container {
        display: none;
    }
    
    .laser-scan {
        height: 1px;
    }
    
    .tech-grid-overlay {
        background-size: 50px 50px;
    }
}
