/* Kablo ve Fiş Animasyonu */
.cable-animation-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header içindeki animasyon için özel stiller */
.header-cable-animation .cable-animation-container {
    height: 80px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cable-animation .cable-animation-container {
    height: 100px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cable-path {
    position: absolute;
    top: 50%;
    left: -100px;
    width: calc(100% + 200px);
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 20%, 
        #ffed4e 40%, 
        #ffd700 60%, 
        #ffed4e 80%, 
        transparent 100%);
    border-radius: 2px;
    animation: cable-move 8s linear infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.cable-path::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #333 20%, 
        #555 40%, 
        #333 60%, 
        #555 80%, 
        transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.plug {
    position: absolute;
    top: 50%;
    left: -50px;
    width: 30px;
    height: 20px;
    background: #2c3e50;
    border-radius: 5px 0 0 5px;
    transform: translateY(-50%);
    animation: plug-move 8s linear infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plug::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    width: 4px;
    height: 8px;
    background: #e74c3c;
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.8);
}

.plug::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 4px;
    height: 8px;
    background: #3498db;
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.8);
}

.socket {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 30px;
    background: #34495e;
    border-radius: 8px;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: socket-glow 2s ease-in-out infinite alternate;
}

.socket::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 12px;
    background: #e74c3c;
    border-radius: 3px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

.socket::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 6px;
    height: 12px;
    background: #3498db;
    border-radius: 3px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

/* Elektrik dalgaları */
.electric-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.electric-wave {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ff88 25%, 
        #00ffff 50%, 
        #0088ff 75%, 
        transparent 100%);
    transform: translateY(-50%);
    opacity: 0;
    animation: electric-pulse 3s ease-in-out infinite;
}

.electric-wave:nth-child(2) {
    animation-delay: 1s;
}

.electric-wave:nth-child(3) {
    animation-delay: 2s;
}

/* Animasyonlar */
@keyframes cable-move {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(100px);
    }
}

@keyframes plug-move {
    0% {
        transform: translateX(-50px) translateY(-50%);
    }
    100% {
        transform: translateX(calc(100vw + 50px)) translateY(-50%);
    }
}

@keyframes socket-glow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6);
    }
}

@keyframes electric-pulse {
    0% {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
}

/* Kıvrımlı kablo efekti */
.cable-curve {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 100px;
    transform: translate(-50%, -50%);
}

.cable-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #ffd700;
    border-radius: 50% 50% 0 0;
    animation: curve-move 6s ease-in-out infinite;
}

@keyframes curve-move {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        border-top-color: #ffd700;
    }
    25% {
        transform: rotate(15deg) scale(1.1);
        border-top-color: #ffed4e;
    }
    50% {
        transform: rotate(-10deg) scale(0.9);
        border-top-color: #ffd700;
    }
    75% {
        transform: rotate(20deg) scale(1.05);
        border-top-color: #ffed4e;
    }
}

/* Mobil responsive */
@media (max-width: 768px) {
    .cable-animation-container {
        height: 80px;
        margin: 15px 0;
    }
    
    .header-cable-animation .cable-animation-container {
        height: 60px;
        margin: 10px 0;
    }
    
    .hero-cable-animation .cable-animation-container {
        height: 70px;
        margin: 15px 0;
    }
    
    .cable-path {
        height: 3px;
    }
    
    .plug {
        width: 25px;
        height: 16px;
    }
    
    .socket {
        width: 35px;
        height: 25px;
    }
    
    .cable-curve {
        width: 150px;
        height: 75px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .cable-animation-container {
        background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    }
} 