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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #00d4ff;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

/* Boot Sequence */
.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 0.5s ease 3s forwards;
}

.boot-text {
    text-align: center;
}

.stark-logo {
    font-size: 3rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 2rem;
    animation: pulse 1s infinite;
}

.loading-text {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00d4ff;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: #111;
    border: 1px solid #00d4ff;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    animation: load 3s ease forwards;
}

@keyframes load {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Desktop */
.desktop {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg, rgba(0,212,255,0.1), rgba(255,0,0,0.1), rgba(0,212,255,0.1));
    border-bottom: 1px solid rgba(0,212,255,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.system-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.jarvis-label {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
    animation: pulse 2s infinite;
}

.time, .date {
    color: #00d4ff;
    text-shadow: 0 0 5px #00d4ff;
}

.arc-reactor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #00d4ff, #0066cc);
    box-shadow: 0 0 20px #00d4ff, inset 0 0 10px rgba(255,255,255,0.5);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Desktop Area */
.desktop-area {
    position: relative;
    width: 100%;
    height: calc(100% - 100px);
    top: 40px;
}

/* Windows */
.window {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00d4ff;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,212,255,0.5), inset 0 0 20px rgba(0,212,255,0.1);
    min-width: 300px;
    min-height: 200px;
    animation: windowAppear 0.3s ease;
}

@keyframes windowAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 30px;
    background: linear-gradient(90deg, rgba(0,212,255,0.2), rgba(0,212,255,0.1));
    border-bottom: 1px solid #00d4ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: move;
    user-select: none;
}

.window-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
    text-shadow: 0 0 5px #00d4ff;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-controls button {
    width: 20px;
    height: 20px;
    border: 1px solid #00d4ff;
    background: rgba(0,212,255,0.1);
    color: #00d4ff;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
    transition: all 0.3s;
}

.window-controls button:hover {
    background: rgba(0,212,255,0.3);
    box-shadow: 0 0 10px #00d4ff;
}

.close-btn:hover {
    background: rgba(255,0,0,0.3);
    border-color: #ff0000;
    color: #ff0000;
}

.window-content {
    padding: 15px;
    height: calc(100% - 30px);
    overflow: auto;
}

/* System Monitor */
#system-monitor {
    width: 350px;
    height: 280px;
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.monitor-item {
    padding: 10px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 5px;
}

.monitor-label {
    font-size: 0.7rem;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.monitor-value {
    font-size: 1.2rem;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
    margin-bottom: 5px;
}

.monitor-bar {
    height: 4px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.monitor-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    transition: width 0.5s ease;
}

.monitor-fill.pulse {
    animation: pulse 1s infinite;
}

.monitor-fill.arc-blue {
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    box-shadow: 0 0 10px #00d4ff;
}

/* AI Assistant */
#ai-assistant {
    width: 350px;
    height: 450px;
}

.ai-display {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-avatar {
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ai-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #00d4ff, #0066cc);
    box-shadow: 0 0 30px #00d4ff;
    animation: pulse 2s infinite;
}

.ai-ring {
    position: absolute;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    opacity: 0.5;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation: rotate 3s linear infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    animation: rotate 4s linear infinite reverse;
}

.ring-3 {
    width: 140px;
    height: 140px;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 5px;
    margin-bottom: 10px;
}

.ai-message {
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(0,212,255,0.1);
    border-left: 3px solid #00d4ff;
    border-radius: 3px;
    color: #00ff88;
    font-size: 0.9rem;
    animation: messageAppear 0.3s ease;
}

.user-message {
    border-left-color: #ff6600;
    background: rgba(255,102,0,0.1);
    color: #ff9933;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-input-container {
    display: flex;
    gap: 10px;
}

.ai-input {
    flex: 1;
    padding: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 3px;
    outline: none;
}

.ai-input::placeholder {
    color: rgba(0,212,255,0.5);
}

.ai-input:focus {
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.ai-send {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.ai-send:hover {
    box-shadow: 0 0 20px #00d4ff;
    transform: scale(1.05);
}

/* Notepad */
#notepad {
    width: 600px;
    height: 350px;
}

.notepad-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notepad-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.notepad-btn {
    padding: 5px 15px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: 1px solid #00d4ff;
    color: #000;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.notepad-btn:hover {
    box-shadow: 0 0 15px #00d4ff;
    transform: scale(1.05);
}

.word-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

.notepad-area {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,212,255,0.3);
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 10px;
    resize: none;
    outline: none;
}

.notepad-area:focus {
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* Web Browser */
#web-browser {
    min-width: 600px;
    min-height: 400px;
}

.browser-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    align-items: center;
}

.browser-btn {
    padding: 5px 10px;
    background: rgba(0,212,255,0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.browser-btn:hover {
    background: rgba(0,212,255,0.3);
    box-shadow: 0 0 10px #00d4ff;
}

.browser-url {
    flex: 1;
    padding: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 3px;
    outline: none;
}

.browser-url:focus {
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.browser-frame {
    flex: 1;
    width: 100%;
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(0,0,0,0.8);
    border-radius: 3px;
    overflow: auto;
}

.browser-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-welcome {
    text-align: center;
    margin-top: 50px;
}

.browser-welcome h2 {
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.browser-welcome p {
    color: #00ff88;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.quick-link {
    padding: 15px;
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,255,136,0.2));
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.quick-link:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.4), rgba(0,255,136,0.4));
    box-shadow: 0 0 20px #00d4ff;
    transform: scale(1.05);
}

.browser-iframe-container {
    width: 100%;
    height: 100%;
}

.browser-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.browser-error {
    text-align: center;
    padding: 40px;
    color: #ff6600;
}

.browser-error h3 {
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff6600;
}

.open-external {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}

.open-external:hover {
    box-shadow: 0 0 20px #00d4ff;
    transform: scale(1.05);
}

/* Calculator */
#calculator {
    width: 320px;
    height: 420px;
}

.calculator-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.calc-display {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #00d4ff;
    color: #00ff88;
    font-size: 1.8rem;
    text-align: right;
    margin-bottom: 15px;
    border-radius: 5px;
    text-shadow: 0 0 5px #00ff88;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
}

.calc-btn {
    background: rgba(0,212,255,0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: rgba(0,212,255,0.3);
    box-shadow: 0 0 15px #00d4ff;
    transform: scale(1.05);
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-op {
    background: rgba(255,102,0,0.2);
    border-color: #ff6600;
    color: #ff9933;
}

.calc-op:hover {
    background: rgba(255,102,0,0.4);
    box-shadow: 0 0 15px #ff6600;
}

.calc-clear {
    background: rgba(255,0,0,0.2);
    border-color: #ff0000;
    color: #ff3333;
}

.calc-clear:hover {
    background: rgba(255,0,0,0.4);
    box-shadow: 0 0 15px #ff0000;
}

.calc-equals {
    grid-row: span 2;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #000;
}

.calc-equals:hover {
    box-shadow: 0 0 20px #00ff88;
}

.calc-zero {
    grid-column: span 2;
}

.calc-del {
    background: rgba(255,165,0,0.2);
    border-color: #ffa500;
    color: #ffb733;
}

.calc-del:hover {
    background: rgba(255,165,0,0.4);
    box-shadow: 0 0 15px #ffa500;
}

/* Armor Diagnostics */
#armor-diagnostics {
    width: 400px;
    height: 450px;
}

.armor-display {
    display: flex;
    gap: 20px;
    height: 100%;
}

.armor-model {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.armor-svg {
    width: 150px;
    height: 250px;
}

.armor-part {
    fill: rgba(0,212,255,0.2);
    stroke: #00d4ff;
    stroke-width: 2;
    transition: all 0.3s;
}

.armor-part:hover {
    fill: rgba(0,212,255,0.4);
    filter: drop-shadow(0 0 10px #00d4ff);
}

.arc-reactor-display {
    fill: radial-gradient(circle, #00d4ff, #0066cc);
    stroke: #00d4ff;
    stroke-width: 2;
    animation: pulse 1s infinite;
}

.armor-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    padding: 10px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1rem;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

/* Holographic Display */
.hologram-container {
    position: absolute;
    bottom: 100px;
    right: 50px;
    width: 300px;
    height: 200px;
    pointer-events: none;
}

.hologram {
    width: 100%;
    height: 100%;
    position: relative;
    transform: perspective(500px) rotateX(15deg) rotateY(-15deg);
    opacity: 0.7;
}

.holo-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(0,212,255,0.1) 10px,
            rgba(0,212,255,0.1) 11px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(0,212,255,0.1) 10px,
            rgba(0,212,255,0.1) 11px
        );
    animation: holoScan 2s linear infinite;
}

@keyframes holoScan {
    from { transform: translateY(0); }
    to { transform: translateY(10px); }
}

.holo-data {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
}

.data-stream {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: dataFlow 3s linear infinite;
}

.data-stream:nth-child(2) {
    animation-delay: 1s;
}

.data-stream:nth-child(3) {
    animation-delay: 2s;
}

@keyframes dataFlow {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Dock */
.dock {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #00d4ff;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dock-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.dock-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d4ff;
    opacity: 0;
    transition: all 0.3s;
}

.dock-item:hover {
    transform: translateY(-5px);
}

.dock-item:hover .dock-label {
    opacity: 1;
}

.dock-item:hover .dock-icon {
    filter: drop-shadow(0 0 10px #00d4ff);
}

/* Window States */
.window.minimized {
    display: none;
}

.window.maximized {
    left: 10px !important;
    top: 50px !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - 120px) !important;
}

/* Plantation by Eva */
#plantation {
    width: 400px;
    height: 380px;
}

.plantation-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(0,255,0,0.02);
}

.plant-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0,255,0,0.1);
    border: 1px solid rgba(0,255,0,0.3);
    border-radius: 5px;
}

.plant-icon {
    font-size: 2rem;
}

.plant-title {
    font-size: 1.2rem;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.plant-fact, .plant-tip {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0,212,255,0.05);
    border-left: 3px solid #00ff88;
    border-radius: 5px;
}

.plant-fact h3, .plant-tip h3 {
    color: #00ff88;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ff88;
}

.plant-fact p, .plant-tip p {
    color: #00d4ff;
    line-height: 1.5;
    font-size: 0.9rem;
}

.plant-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.plant-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.plant-btn:hover {
    box-shadow: 0 0 20px #00ff88;
    transform: scale(1.05);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,212,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0,212,255,0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,212,255,0.7);
}