:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --neon-green: #00ff88;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --glass: rgba(20, 20, 35, 0.85);
    --glass-border: rgba(0, 243, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background: var(--dark-bg);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.boot-content {
    width: 600px;
}

.boot-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff88;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff88;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: #1a1a2e;
    border-radius: 2px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    animation: load 3s ease-out forwards;
    box-shadow: 0 0 20px var(--neon-blue);
}

@keyframes load {
    to { width: 100%; }
}

/* Desktop */
#desktop {
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
}

#desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hidden { display: none !important; }

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.start-button {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.neon-icon {
    margin-right: 8px;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.taskbar-app {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-app:hover, .taskbar-app.active {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--neon-blue);
}

.taskbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'Orbitron', monospace;
}

.clock {
    font-size: 18px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.date {
    font-size: 14px;
    color: var(--neon-pink);
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 60px;
    left: 15px;
    width: 400px;
    max-height: 600px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    z-index: 999;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.start-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
}

.start-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
}

.app-item:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: translateX(5px);
}

.app-item .icon {
    font-size: 20px;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

.desktop-icon:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: scale(1.1);
}

.desktop-icon .icon-img {
    font-size: 40px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.desktop-icon span {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

/* Windows */
.window {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    min-width: 400px;
    min-height: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: windowOpen 0.3s ease;
    overflow: hidden;
}

@keyframes windowOpen {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.window-header {
    background: linear-gradient(90deg, rgba(0,243,255,0.2), rgba(255,0,255,0.2));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid var(--glass-border);
}

.window-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.window-btn:hover { transform: scale(1.2); }

.btn-min { background: var(--neon-green); }
.btn-max { background: var(--neon-blue); }
.btn-close { background: #ff4444; }

.window-content {
    padding: 20px;
    height: calc(100% - 55px);
    overflow: auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.game-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
    border-color: var(--neon-blue);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
}

/* AI Chat */
.ai-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 400px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 80%;
}

.message.user {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    margin-left: auto;
}

.message.ai {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.send-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

/* Spotify Embed */
.spotify-embed {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Panic Mode */
#panic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-google {
    text-align: center;
}

.fake-google img {
    margin-bottom: 20px;
}

.fake-google input {
    width: 500px;
    padding: 15px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* Responsive */
@media (max-width: 768px) {
    .start-menu {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
    }
    
    .window {
        width: calc(100% - 40px) !important;
        height: calc(100% - 100px) !important;
        top: 20px !important;
        left: 20px !important;
    }
}