/* ============================================
   HERO ANIMATIONS - OPÇÃO A (SVG)
   ============================================ */

/* Container SVG */
.hero-svg-container {
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    height: 100%;
}

/* Pulse circles animation */
.pulse-circle {
    animation: pulse 3s ease-in-out infinite;
}

.pulse-circle-2 {
    animation: pulse 3s ease-in-out infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Float animations for main elements */
.float-element {
    animation: float 4s ease-in-out infinite;
}

.float-element-2 {
    animation: float 3s ease-in-out infinite 0.5s;
}

.float-element-3 {
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Blinking server lights */
.blink-1 {
    animation: blink 2s ease-in-out infinite;
}

.blink-2 {
    animation: blink 2s ease-in-out infinite 0.3s;
}

.blink-3 {
    animation: blink 2s ease-in-out infinite 0.6s;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Code lines typing effect */
.code-line-1 {
    animation: codeTyping 3s ease-in-out infinite;
}

.code-line-2 {
    animation: codeTyping 3s ease-in-out infinite 0.5s;
}

.code-line-3 {
    animation: codeTyping 3s ease-in-out infinite 1s;
}

@keyframes codeTyping {
    0%, 100% {
        stroke-dasharray: 0, 100;
    }
    50% {
        stroke-dasharray: 100, 0;
    }
}

/* Data dots in cloud */
.data-dot-1 {
    animation: dataPulse 2s ease-in-out infinite;
}

.data-dot-2 {
    animation: dataPulse 2s ease-in-out infinite 0.3s;
}

.data-dot-3 {
    animation: dataPulse 2s ease-in-out infinite 0.6s;
}

@keyframes dataPulse {
    0%, 100% {
        opacity: 1;
        r: 2;
    }
    50% {
        opacity: 0.3;
        r: 3;
    }
}

/* Floating particles */
.particle-1 {
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-2 {
    animation: particleFloat 7s ease-in-out infinite 0.5s;
}

.particle-3 {
    animation: particleFloat 8s ease-in-out infinite 1s;
}

.particle-4 {
    animation: particleFloat 6.5s ease-in-out infinite 1.5s;
}

.particle-5 {
    animation: particleFloat 7.5s ease-in-out infinite 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    25% {
        transform: translate(-10px, -20px);
        opacity: 1;
    }
    50% {
        transform: translate(10px, -10px);
        opacity: 0.8;
    }
    75% {
        transform: translate(-5px, 15px);
        opacity: 0.9;
    }
}

/* Connection lines animation */
.connection-1 {
    animation: connectionPulse 3s ease-in-out infinite;
}

.connection-2 {
    animation: connectionPulse 3s ease-in-out infinite 0.5s;
}

.connection-3 {
    animation: connectionPulse 3s ease-in-out infinite 1s;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 1;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2;
    }
}

/* Signal waves */
.signal-waves {
    animation: signalRotate 8s linear infinite;
}

.wave-1 {
    animation: waveExpand 2s ease-in-out infinite;
}

.wave-2 {
    animation: waveExpand 2s ease-in-out infinite 0.3s;
}

.wave-3 {
    animation: waveExpand 2s ease-in-out infinite 0.6s;
}

@keyframes signalRotate {
    0% {
        transform: translate(400px, 200px) rotate(0deg);
    }
    100% {
        transform: translate(400px, 200px) rotate(360deg);
    }
}

@keyframes waveExpand {
    0%, 100% {
        opacity: 0;
        stroke-width: 1;
    }
    50% {
        opacity: 0.8;
        stroke-width: 3;
    }
}

/* ============================================
   HERO ANIMATIONS - OPÇÃO C (PARTÍCULAS)
   ============================================ */

/* Container de partículas */
.hero-particles-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Canvas de partículas */
#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Overlay de código */
.code-overlay {
    position: relative;
    z-index: 2;
    background: rgba(10, 36, 99, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(62, 146, 204, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

/* Linhas de código */
.code-lines {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #3E92CC;
}

.code-line {
    display: block;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}

.code-line:nth-child(1) {
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    animation-delay: 1s;
}

.code-line:nth-child(4) {
    animation-delay: 1.5s;
}

.code-line:nth-child(5) {
    animation-delay: 2s;
}

.code-line:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status SUCCESS */
.success {
    color: #FB8500;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(251, 133, 0, 0.5);
}

/* Cursor piscante */
.terminal-cursor {
    display: inline-block;
    color: #FB8500;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    margin-top: 10px;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-svg-container {
        max-width: 300px;
        height: 300px;
    }
    
    .hero-particles-container {
        height: 400px;
    }
    
    .code-overlay {
        padding: 20px;
    }
    
    .code-lines {
        font-size: 12px;
    }
}
