:root {
    --accent-cyan: #00F2FF;
    --accent-purple: #7000FF;
    --accent-pink: #FF00E5;
    --bg-dark: #0A0A0B;
    --surface: #141416;
    --surface-glass: rgba(20, 20, 22, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --glow-cyan: rgba(0, 242, 255, 0.5);
    --glow-purple: rgba(112, 0, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* --- Multi-Layered Background --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-circuit {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.05), transparent 70%),
        linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

.bg-glow {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-cyan) 0%, transparent 40%);
    opacity: 0.3;
}

/* --- Layout --- */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
    transition: var(--transition);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.05), transparent 40%);
}

/* --- Components --- */
.logo-container {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 40px;
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

.nav-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: white;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--glow-cyan);
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

/* --- Workspace Explorer --- */
.explorer-list {
    list-style: none;
}

.explorer-item {
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.explorer-item.folder i { color: var(--accent-purple); }
.explorer-item.file i { color: var(--accent-cyan); }

/* --- Neon Editor --- */
.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#editor {
    width: 100%;
    height: 100%;
    background: #0d0d0e;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 16px;
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: var(--transition);
}

#editor:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* --- Chat Neon --- */
.chat-window {
    height: 300px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-glass);
}

.chat-bubble.me {
    align-self: flex-end;
    background: rgba(112, 0, 255, 0.1);
    border-color: var(--accent-purple);
}

/* --- Animations --- */
@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }
/* --- Landing Screen Overlay --- */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease;
    overflow: hidden;
}

.landing-overlay.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.landing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInScale 1s ease-out;
}

.landing-logo {
    height: 180px;
    filter: drop-shadow(0 0 30px var(--accent-cyan));
    margin-bottom: 10px;
    animation: float 4s ease-in-out infinite;
}

.landing-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.landing-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* --- Premium Neon Button --- */
.btn-neon-open {
    position: relative;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    letter-spacing: 2px;
}

.btn-neon-open:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: scale(1.05);
}

.btn-neon-open .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.btn-neon-open:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.2;
}

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

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Secondary Neon Button --- */
.btn-neon-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-neon-secondary:hover {
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 0 20px var(--glow-purple);
    background: rgba(112, 0, 255, 0.05);
}

/* --- Modal Base --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-cyan);
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.modal-title {
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--accent-cyan);
}

.modal-close {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

.modal-intro {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 24px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: white;
}

.feature-card p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.modal-footer-info {
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.modal-footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.modal-footer-info i {
    color: var(--accent-purple);
    margin-right: 8px;
}
