:root {
    --primary-red: #ff0000;
    --dark-bg: #0a0a0a;
    --pure-white: #ffffff;
}

.pro-editor-section {
    background: var(--dark-bg);
    padding: 100px 5%;
    overflow: hidden;
    color: var(--pure-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    perspective: 1000px;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* 3D Visual Engine */
.visual-engine {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-wrapper {
    width: 200px;
    height: 200px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-red);
    background: rgba(255, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Floating VFX Elements */
.element {
    position: absolute;
    border: 1px solid var(--pure-white);
    animation: float 6s infinite ease-in-out;
}

.el-1 { width: 50px; height: 50px; top: 10%; left: 10%; border-radius: 50%; }
.el-2 { width: 30px; height: 30px; bottom: 20%; right: 10%; border-color: var(--primary-red); }
.el-3 { width: 20px; height: 80px; top: 40%; right: 5%; transform: rotate(45deg); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Content & Typography */
.glitch-text {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--pure-white);
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 var(--primary-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { clip: rect(10px, 9999px, 50px, 0); }
    100% { clip: rect(80px, 9999px, 100px, 0); }
}

.skill-card {
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateX(10px);
}

.bar {
    height: 4px;
    background: #333;
    margin-top: 10px;
    border-radius: 2px;
}

.fill {
    height: 100%;
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

.btn-3d {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    position: relative;
    transition: 0.4s;
    overflow: hidden;
}

.btn-3d:hover {
    background: var(--primary-red);
    box-shadow: 0 0 30px var(--primary-red);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .editor-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .glitch-text { font-size: 2.2rem; }
    .cube-wrapper { width: 150px; height: 150px; }
    .face { width: 150px; height: 150px; }
    .front { transform: translateZ(75px); }
    /* adjust other faces similarly for mobile if needed */
}