/* --- SEKCJA 3: 3D LAB (INTERACTIVE CHART) --- */
.section-tech {
    background-color: #f8f8f8;
    color: #111;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animowana Siatka 3D */
.grid-3d-floor {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(200, 200, 200, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(60deg) translateY(0px);
    transform-origin: 50% 50%;
    animation: gridFlow 15s linear infinite;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

@keyframes gridFlow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 80px;
    }
}

.tech-content-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
}

.controls-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border: 1px solid #ddd;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.btn-boost {
    background: linear-gradient(90deg, #000, #333, #000, #fff, #000);
    background-size: 400% 100%;
    color: #fff;
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    transition: all 0.3s;
    animation: btnGradientScroll 2s linear infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

@keyframes btnGradientScroll {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.btn-boost:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation-duration: 0.5s;
    /* Super fast on hover */
}

#chart3d-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
    z-index: 5;
}

@media (max-width: 1024px) {
    .tech-content-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .controls-panel {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem;
    }

    #chart3d-container {
        width: 100%;
        max-width: 500px;
    }
}