/* Code to Visual Animation Styles */
.hero .code-visual-container {
    width: 100%;
    height: 350px;
    position: relative;
    background-color: #0F172A;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero .code-container {
    position: absolute;
    width: 40%;
    height: 80%;
    left: 5%;
    top: 10%;
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: monospace;
    color: #E2E8F0;
    padding: 15px;
    font-size: 12px;
    line-height: 1.5;
}

.hero .code-line {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.hero .keyword {
    color: #93C5FD;
}

.hero .string {
    color: #FCA5A5;
}

.hero .function {
    color: #A5B4FC;
}

.hero .comment {
    color: #64748B;
}

.hero .visual-container {
    position: absolute;
    width: 45%;
    height: 80%;
    right: 5%;
    top: 10%;
    background-color: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero .visual-element {
    position: absolute;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.5s ease;
}

.hero .code-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #93C5FD;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(1px);
}

.hero .connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #93C5FD, #A5B4FC);
    left: 45%;
    top: 50%;
    width: 0;
    transition: width 1s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero .code-visual-container {
        height: 500px;
    }
    
    .hero .code-container,
    .hero .visual-container {
        width: 90%;
        height: 45%;
        left: 5%;
    }
    
    .hero .visual-container {
        top: 50%;
    }
    
    .hero .connection-line {
        height: 40px;
        width: 2px;
        left: 50%;
        top: 47%;
        transform: rotate(90deg);
    }
    
    /* Poprawki dla lepszej responsywności na urządzeniach mobilnych */
    .hero .code-line {
        font-size: 11px;
        margin-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .hero .code-visual-container {
        height: 450px;
    }
    
    .hero .code-container {
        height: 42%;
        overflow-y: auto;
    }
    
    .hero .visual-container {
        height: 42%;
    }
}
