/* ==========================================================================
   macOS SONOMA INSPIRED PORTFOLIO
   by Naveen Singh
   Modern macOS Design - Clean & Professional
   ========================================================================== */

:root {
    /* macOS Sonoma Colors */
    --aqua-blue: #007AFF;
    --aqua-light: #5AC8FA;
    --aqua-dark: #0051D5;
    --aqua-gradient: linear-gradient(180deg, #007AFF 0%, #0051D5 100%);
    
    /* Window Chrome - Sonoma Style */
    --window-bg: #ffffff;
    --window-header: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%);
    --window-header-active: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    --window-border: rgba(0, 0, 0, 0.12);
    --window-shadow: 0 22px 70px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    
    /* Traffic Lights - Sonoma */
    --close-red: #FF5F57;
    --minimize-yellow: #FEBC2E;
    --maximize-green: #28C840;
    
    /* Desktop - Sonoma Wallpaper Style */
    --desktop-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Menu Bar - Translucent */
    --menubar-bg: rgba(255, 255, 255, 0.72);
    --menubar-text: rgba(0, 0, 0, 0.85);
    
    /* Dock - Glass Morphism */
    --dock-bg: rgba(255, 255, 255, 0.18);
    --dock-border: rgba(255, 255, 255, 0.3);
    
    /* Terminal */
    --terminal-bg: rgba(30, 30, 30, 0.95);
    --terminal-text: #33FF33;
    --terminal-header: linear-gradient(180deg, #3D3D3D 0%, #2D2D2D 100%);
    
    /* Typography - SF Pro */
    --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    
    /* Sizing */
    --menubar-height: 28px;
    --dock-height: 72px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    overflow: hidden;
    user-select: none;
    height: 100vh;
    width: 100vw;
}

::selection {
    background: var(--aqua-blue);
    color: white;
}

/* ==========================================================================
   BOOT SCREEN
   ========================================================================== */

.boot-screen {
    position: fixed;
    inset: 0;
    background: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.apple-logo {
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

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

.boot-progress {
    width: 200px;
    height: 6px;
    background: #555555;
    border-radius: 3px;
    overflow: hidden;
}

.boot-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #888 0%, #ccc 50%, #888 100%);
    background-size: 200% 100%;
    animation: bootProgress 2s ease-out forwards, shimmer 1s linear infinite;
}

@keyframes bootProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* ==========================================================================
   DESKTOP
   ========================================================================== */

.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--desktop-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Classic Mac OS X Aurora Background */
.desktop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 150% 100% at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(0, 150, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(120, 200, 255, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, #1a237e 0%, #0d47a1 30%, #1565c0 60%, #42a5f5 100%);
    z-index: 0;
}

/* ==========================================================================
   MENU BAR
   ========================================================================== */

.menu-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--menubar-height);
    background: var(--menubar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.menu-item {
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--menubar-text);
    cursor: default;
    border-radius: 4px;
    transition: background 0.1s ease;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.apple-menu {
    padding: 3px 8px;
}

.apple-menu svg {
    display: block;
}

.active-app {
    font-weight: 600;
}

.status-available {
    color: #28c840;
    font-size: 11px;
    font-weight: 500;
}

#menuClock {
    font-variant-numeric: tabular-nums;
    min-width: 140px;
    text-align: right;
}

/* ==========================================================================
   DESKTOP ICONS
   ========================================================================== */

.desktop-icons {
    position: absolute;
    top: calc(var(--menubar-height) + 20px);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    width: 90px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon.selected {
    background: rgba(0, 122, 255, 0.35);
    backdrop-filter: blur(10px);
}

.icon-image {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transition: transform var(--transition-bounce);
}

.desktop-icon:hover .icon-image {
    transform: scale(1.08);
}

.icon-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.icon-fallback {
    font-size: 32px;
}

.icon-label {
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 80px;
    word-wrap: break-word;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   WINDOWS
   ========================================================================== */

.windows-container {
    position: absolute;
    top: var(--menubar-height);
    left: 0;
    right: 0;
    bottom: var(--dock-height);
    z-index: 100;
    pointer-events: none;
}

.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--window-bg);
    border-radius: 10px;
    box-shadow: var(--window-shadow);
    display: none;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.window.active {
    display: flex;
    z-index: 200;
}

.window.minimized {
    display: none !important;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

/* Window Header */
.window-header {
    display: flex;
    align-items: center;
    height: 38px;
    background: var(--window-header-active);
    border-bottom: 1px solid #b0b0b0;
    padding: 0 12px;
    cursor: grab;
    flex-shrink: 0;
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.window-control.close {
    background: var(--close-red);
    border: 1px solid #e33e32;
}

.window-control.minimize {
    background: var(--minimize-yellow);
    border: 1px solid #dea123;
}

.window-control.maximize {
    background: var(--maximize-green);
    border: 1px solid #1dad2b;
}

.window-controls:hover .window-control.close::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #4a0000;
}

.window-controls:hover .window-control.minimize::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #995700;
}

.window-controls:hover .window-control.maximize::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #006500;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Window Toolbar */
.window-toolbar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
    border-bottom: 1px solid #c0c0c0;
    gap: 12px;
}

.toolbar-buttons {
    display: flex;
    gap: 4px;
}

.toolbar-btn {
    width: 28px;
    height: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
}

.toolbar-btn:active {
    background: linear-gradient(180deg, #d0d0d0 0%, #e0e0e0 100%);
}

.toolbar-title {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.toolbar-search input {
    width: 150px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    font-size: 11px;
    background: white;
}

.view-toggle {
    display: flex;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    width: 28px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.view-btn.active {
    background: linear-gradient(180deg, #d0d0d0 0%, #e0e0e0 100%);
}

.view-btn:not(:last-child) {
    border-right: 1px solid #c0c0c0;
}

/* Window Content */
.window-content {
    flex: 1;
    overflow: auto;
    background: white;
}

/* ==========================================================================
   FINDER WINDOW STYLES
   ========================================================================== */

.finder-window {
    display: flex;
}

.finder-sidebar {
    width: 180px;
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    border-right: 1px solid #c0c0c0;
    padding: 10px 0;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 15px;
}

.sidebar-header {
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-item.active {
    background: var(--aqua-blue);
    color: white;
}

.sidebar-icon {
    font-size: 14px;
}

.finder-main {
    flex: 1;
    overflow: auto;
}

.finder-content {
    padding: 20px;
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e0e8f0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.profile-info h2 {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #28c840;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Info Sections */
.info-section {
    margin-bottom: 24px;
}

.info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.highlight-card {
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.highlight-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-item {
    padding: 20px;
    background: linear-gradient(135deg, var(--aqua-light) 0%, var(--aqua-blue) 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SKILLS WINDOW
   ========================================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skill-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--aqua-light);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--aqua-light) 0%, var(--aqua-blue) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.skill-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.skill-level {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4ff;
    color: var(--aqua-blue);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--aqua-light) 0%, var(--aqua-blue) 100%);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.skill-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   PROJECTS WINDOW
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
}

.project-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-header {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.project-body {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.project-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    padding: 4px 10px;
    background: #f0f0f0;
    color: #555;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

/* ==========================================================================
   MAIL/CONTACT WINDOW
   ========================================================================== */

.mail-window {
    display: flex;
    height: 100%;
}

.mail-sidebar {
    width: 160px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-right: 1px solid #d0d0d0;
    padding: 10px 0;
}

.mail-section {
    padding: 0;
}

.mail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mail-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mail-item.active {
    background: var(--aqua-blue);
    color: white;
}

.mail-icon {
    font-size: 14px;
}

.mail-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.mail-compose {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mail-field {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mail-field label {
    width: 70px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.mail-field input {
    flex: 1;
    border: none;
    font-size: 13px;
    padding: 4px 0;
    background: transparent;
    outline: none;
}

.mail-field input:read-only {
    color: var(--aqua-blue);
}

.mail-body {
    padding: 15px 0;
}

.mail-body textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-family: var(--font-system);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.mail-body textarea:focus {
    border-color: var(--aqua-blue);
}

.mail-actions {
    padding-top: 10px;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(180deg, var(--aqua-light) 0%, var(--aqua-blue) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--aqua-light);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--aqua-light) 0%, var(--aqua-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ==========================================================================
   TERMINAL WINDOW
   ========================================================================== */

.terminal-header {
    background: var(--terminal-header);
}

.terminal-header .window-title {
    color: #ccc;
    text-shadow: none;
}

.terminal-content {
    background: var(--terminal-bg);
    color: var(--terminal-text);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.terminal-line {
    margin-bottom: 4px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.command {
    color: #ffffff;
}

.terminal-line.response {
    color: #00ff00;
}

.terminal-line.error {
    color: #ff6b6b;
}

.terminal-line.info {
    color: #64b5f6;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #64b5f6;
    margin-right: 4px;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    caret-color: #00ff00;
}

/* ==========================================================================
   DOCK
   ========================================================================== */

.dock {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 6px 12px;
    background: var(--dock-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid var(--dock-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dock-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.dock-item:hover {
    transform: translateY(-10px) scale(1.2);
}

.dock-item:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    margin-bottom: 12px;
    pointer-events: none;
}

.dock-item:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.75);
    margin-bottom: 0;
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.dock-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock-icon span {
    font-size: 28px;
}

.dock-icon.terminal-icon {
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
}

.dock-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* ==========================================================================
   HIDDEN ADMIN
   ========================================================================== */

.hidden-admin {
    position: fixed;
    bottom: 5px;
    right: 5px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    z-index: 1;
}

.hidden-admin:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .highlights {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --menubar-height: 30px;
        --dock-height: 80px;
    }
    
    .menu-item:not(.apple-menu):not(.active-app):not(#menuClock) {
        display: none;
    }
    
    .desktop-icons {
        right: 10px;
        top: calc(var(--menubar-height) + 10px);
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .icon-image {
        width: 48px;
        height: 48px;
    }
    
    .icon-fallback {
        font-size: 24px;
    }
    
    .window {
        position: fixed !important;
        top: var(--menubar-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: var(--dock-height) !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
        border-radius: 0;
    }
    
    .finder-sidebar, .mail-sidebar {
        display: none;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h1 {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .dock-container {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .dock-icon {
        width: 44px;
        height: 44px;
    }
    
    .dock-icon span {
        font-size: 22px;
    }
    
    .dock-divider {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 20px;
    }
    
    .profile-info h2 {
        font-size: 14px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .skill-card, .project-card {
        padding: 16px;
    }
    
    .terminal-content {
        font-size: 11px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes windowOpen {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.window.active {
    animation: windowOpen 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.dock-item.bouncing {
    animation: dockBounce 0.5s ease-in-out 3;
}

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

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .boot-screen,
    .menu-bar,
    .dock,
    .desktop-icons,
    .window-controls,
    .window-toolbar {
        display: none !important;
    }
    
    .desktop {
        background: white !important;
    }
    
    .desktop::before {
        display: none;
    }
    
    .window {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.greeting {
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 12px;
}

.name {
    display: block;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.role {
    display: block;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s var(--ease-smooth);
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s var(--ease-smooth) 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.avatar-container {
    position: relative;
    width: 420px;
    height: 420px;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        transform: scale(0.95);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.scroll-icon {
    width: 28px;
    height: 48px;
    border: 2px solid var(--text-muted);
    border-radius: 16px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
    background: var(--bg-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.about-text .lead {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--text);
    font-weight: 500;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--border);
}

.highlight-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
    border-color: var(--primary);
}

.highlight-icon {
    font-size: 40px;
    line-height: 1;
}

.highlight-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.highlight-item p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-bounce);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
}

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.expertise-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-smooth);
}

.expertise-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.expertise-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.expertise-level {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 1.5s var(--ease-smooth);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.expertise-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects {
    background: var(--bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px);
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-image {
    width: 100%;
    height: 240px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.project-info {
    padding: 32px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.contact-intro h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 48px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--border);
}

.contact-method:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
    border-color: var(--primary);
}

.method-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.method-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.contact-form {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: all 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.footer .logo-icon {
    background: var(--gradient-primary);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s var(--ease-smooth);
}

.footer-link:hover {
    color: white;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .avatar-container {
        width: 320px;
        height: 320px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        padding: 48px 24px;
        gap: 24px;
        transition: left 0.3s var(--ease-smooth);
        box-shadow: var(--shadow-xl);
        align-items: flex-start;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-link::before {
        left: 0;
        transform: none;
    }
    
    .name {
        font-size: 48px;
    }
    
    .role {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .projects-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 260px;
        height: 260px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* ==========================================================================
   CALCULATOR APP
   ========================================================================== */

#window-calculator {
    width: 280px;
    min-width: 250px;
    max-width: 320px;
}

.calculator-content {
    background: #1C1C1E;
    padding: 0;
}

.calc-display {
    padding: 20px 15px 10px;
    text-align: right;
    background: #1C1C1E;
}

.calc-history {
    font-size: 14px;
    color: #8E8E93;
    min-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-result {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

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

.calc-btn {
    padding: 20px;
    font-size: 24px;
    border: none;
    background: #505050;
    color: #fff;
    cursor: pointer;
    transition: background 0.1s;
    font-family: var(--font-system);
}

.calc-btn:hover {
    background: #6a6a6a;
}

.calc-btn:active {
    background: #8a8a8a;
}

.calc-btn.func {
    background: #a5a5a5;
    color: #1C1C1E;
}

.calc-btn.func:hover {
    background: #c5c5c5;
}

.calc-btn.operator {
    background: #FF9500;
    color: #fff;
}

.calc-btn.operator:hover {
    background: #FFa726;
}

.calc-btn.operator:active,
.calc-btn.operator.active {
    background: #fff;
    color: #FF9500;
}

.calc-btn.zero {
    grid-column: span 2;
    text-align: left;
    padding-left: 30px;
    border-radius: 0 0 0 8px;
}

.calc-btn.equals {
    border-radius: 0 0 8px 0;
}

/* ==========================================================================
   NOTES APP
   ========================================================================== */

#window-notes {
    width: 600px;
    min-width: 400px;
}

.notes-content {
    display: flex;
    padding: 0;
    height: 400px;
    background: #fff;
}

.notes-header {
    background: linear-gradient(180deg, #FFF4D4 0%, #FFE9A0 100%);
}

.notes-sidebar {
    width: 200px;
    background: #F5F5F5;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.notes-header-bar {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.notes-new-btn {
    width: 100%;
    padding: 8px 12px;
    background: #FFCC00;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1C1C1E;
    cursor: pointer;
    transition: background 0.2s;
}

.notes-new-btn:hover {
    background: #FFD426;
}

.notes-list {
    flex: 1;
    overflow-y: auto;
}

.note-item {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.note-item:hover {
    background: #ECECEC;
}

.note-item.active {
    background: #FFCC00;
}

.note-item-title {
    font-weight: 500;
    font-size: 13px;
    color: #1C1C1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-preview {
    font-size: 11px;
    color: #8E8E93;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-date {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
}

.notes-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.notes-title {
    font-size: 24px;
    font-weight: 600;
    border: none;
    outline: none;
    padding: 10px 0;
    color: #1C1C1E;
    background: transparent;
}

.notes-textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 1.6;
    font-family: var(--font-system);
    color: #333;
    background: transparent;
}

.notes-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8E8E93;
    font-size: 14px;
}

/* ==========================================================================
   GAME COMMON STYLES
   ========================================================================== */

.game-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
}

.game-header .window-title {
    color: #fff;
}

.game-content {
    background: #1C1C1E;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
}

.game-score, .game-high-score, .game-level {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 6px;
}

#snakeCanvas, #tetrisCanvas {
    background: #000;
    border: 2px solid #333;
    border-radius: 4px;
}

.game-controls {
    padding: 15px 0;
    text-align: center;
}

.game-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(180deg, #34C759 0%, #28a745 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);
}

.game-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-hint {
    color: #8E8E93;
    font-size: 12px;
    margin-top: 10px;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.mobile-row {
    display: flex;
    gap: 5px;
}

.mobile-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-btn:active {
    background: #555;
}

/* ==========================================================================
   TETRIS SPECIFIC
   ========================================================================== */

#window-tetris {
    width: 420px;
}

.tetris-container {
    display: flex;
    gap: 20px;
}

.tetris-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tetris-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tetris-next {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.next-label {
    color: #8E8E93;
    font-size: 12px;
    margin-bottom: 8px;
}

#tetrisNextCanvas {
    background: #000;
    border-radius: 4px;
}

.tetris-stats {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}

.tetris-stats div {
    margin: 5px 0;
}

/* ==========================================================================
   MUSIC PLAYER
   ========================================================================== */

#window-music {
    width: 380px;
    min-width: 320px;
}

.music-header {
    background: linear-gradient(180deg, #FA233B 0%, #c71f32 100%);
}

.music-header .window-title {
    color: #fff;
}

.music-content {
    background: linear-gradient(180deg, #1C1C1E 0%, #2C2C2E 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.music-player {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album-art {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.track-info {
    text-align: center;
    margin-bottom: 15px;
}

.track-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.track-artist {
    color: #8E8E93;
    font-size: 13px;
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 0%;
    height: 100%;
    background: #FA233B;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.time-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8E8E93;
    margin-top: 5px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.player-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.player-btn:hover {
    background: rgba(255,255,255,0.1);
}

.player-btn.play {
    width: 56px;
    height: 56px;
    background: #FA233B;
    font-size: 20px;
}

.player-btn.play:hover {
    background: #ff3a50;
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #8E8E93;
}

.volume-control input[type="range"] {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.playlist {
    border-top: 1px solid #333;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-header {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.2);
}

.playlist-items {
    max-height: 150px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.playlist-item.active {
    background: rgba(250, 35, 59, 0.2);
}

.track-icon {
    font-size: 20px;
}

.track-details {
    flex: 1;
}

.track-title {
    color: #fff;
    font-size: 13px;
}

.track-duration {
    color: #8E8E93;
    font-size: 11px;
    margin-top: 2px;
}

/* ==========================================================================
   DOCK SVG ICONS
   ========================================================================== */

.dock-icon svg {
    width: 100%;
    height: 100%;
}

.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ==========================================================================
   DESKTOP ICONS SVG
   ========================================================================== */

.desktop-icon .icon-image svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE - GAMES
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
    
    #window-snake, #window-tetris {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    #snakeCanvas {
        width: 280px !important;
        height: 280px !important;
    }
    
    #tetrisCanvas {
        width: 180px !important;
        height: 360px !important;
    }
    
    .tetris-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tetris-sidebar {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    #window-notes {
        width: 100% !important;
    }
    
    .notes-content {
        flex-direction: column;
        height: auto;
    }
    
    .notes-sidebar {
        width: 100%;
        max-height: 150px;
    }
    
    #window-music {
        width: 100% !important;
    }
    
    .album-art {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   MACOS BIG SUR / SONOMA STYLE DOCK ICONS
   Pure CSS Icons - No SVG Junk
   ========================================================================== */

/* Base Dock Icon Reset */
.dock-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.dock-icon::before,
.dock-icon::after {
    content: '';
    position: absolute;
}

/* Finder Icon */
.finder-dock {
    background: linear-gradient(180deg, #42A5F5 0%, #1E88E5 50%, #1565C0 100%);
    box-shadow: 
        0 2px 8px rgba(21, 101, 192, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.finder-dock::before {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, 
        #fff 0%, #fff 45%, 
        transparent 45%, transparent 55%, 
        #fff 55%, #fff 100%);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(
        0% 30%, 30% 30%, 30% 0%, 70% 0%, 70% 30%, 100% 30%,
        100% 70%, 70% 70%, 70% 100%, 30% 100%, 30% 70%, 0% 70%
    );
}

.finder-dock::after {
    width: 12px;
    height: 8px;
    background: #1565C0;
    border-radius: 50%;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
}

/* Safari / Skills Icon */
.safari-dock {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(0,0,0,0.1);
}

.safari-dock::before {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        #FF3B30 0deg, #FF9500 45deg, #FFCC00 90deg, #34C759 135deg,
        #5AC8FA 180deg, #007AFF 225deg, #5856D6 270deg, #AF52DE 315deg, #FF3B30 360deg
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.safari-dock::after {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 2px #007AFF;
}

/* Folder Icon */
.folder-dock {
    background: linear-gradient(180deg, #64B5F6 0%, #42A5F5 30%, #1E88E5 100%);
    border-radius: 4px 12px 12px 12px;
    box-shadow: 
        0 2px 8px rgba(30, 136, 229, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.folder-dock::before {
    width: 24px;
    height: 8px;
    background: linear-gradient(180deg, #90CAF9 0%, #64B5F6 100%);
    border-radius: 4px 4px 0 0;
    top: -4px;
    left: 4px;
}

.folder-dock::after {
    width: 100%;
    height: 65%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.2) 0%, 
        transparent 50%);
    border-radius: 0 10px 10px 10px;
    bottom: 0;
    left: 0;
}

/* Mail Icon */
.mail-dock {
    background: linear-gradient(180deg, #42A5F5 0%, #1E88E5 100%);
    box-shadow: 
        0 2px 8px rgba(30, 136, 229, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.mail-dock::before {
    width: 36px;
    height: 24px;
    background: white;
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mail-dock::after {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 12px solid #1E88E5;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
}

/* Calculator Icon */
.calc-dock {
    background: linear-gradient(180deg, #424242 0%, #212121 100%);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.calc-dock::before {
    width: 38px;
    height: 14px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    border-radius: 4px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.calc-dock::after {
    width: 38px;
    height: 22px;
    background: 
        repeating-linear-gradient(
            90deg,
            #616161 0px, #616161 8px,
            transparent 8px, transparent 12px
        ),
        repeating-linear-gradient(
            0deg,
            #616161 0px, #616161 8px,
            transparent 8px, transparent 11px
        );
    background-size: 12px 100%, 100% 11px;
    border-radius: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Notes Icon */
.notes-dock {
    background: linear-gradient(180deg, #FFF59D 0%, #FFEB3B 50%, #FBC02D 100%);
    box-shadow: 
        0 2px 8px rgba(251, 192, 45, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.notes-dock::before {
    width: 32px;
    height: 4px;
    background: repeating-linear-gradient(
        0deg,
        #5D4037 0px, #5D4037 1px,
        transparent 1px, transparent 6px
    );
    background-size: 100% 6px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Music Icon */
.music-dock {
    background: linear-gradient(135deg, #FF1744 0%, #F50057 50%, #D50000 100%);
    box-shadow: 
        0 2px 8px rgba(213, 0, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.music-dock::before {
    width: 14px;
    height: 22px;
    border: 3px solid white;
    border-bottom: none;
    border-radius: 0;
    top: 10px;
    right: 12px;
    transform: skewX(-10deg);
}

.music-dock::after {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    bottom: 12px;
    left: 14px;
    box-shadow: 16px -6px 0 0 white;
}

/* Snake Game Icon */
.snake-dock {
    background: linear-gradient(180deg, #66BB6A 0%, #43A047 50%, #2E7D32 100%);
    box-shadow: 
        0 2px 8px rgba(46, 125, 50, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.snake-dock::before {
    width: 30px;
    height: 6px;
    background: white;
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    box-shadow: 
        -6px -8px 0 0 white,
        6px 8px 0 0 white;
}

.snake-dock::after {
    width: 8px;
    height: 8px;
    background: #FF5252;
    border-radius: 50%;
    bottom: 12px;
    right: 10px;
}

/* Tetris Game Icon */
.tetris-dock {
    background: linear-gradient(180deg, #7E57C2 0%, #5E35B1 50%, #4527A0 100%);
    box-shadow: 
        0 2px 8px rgba(69, 39, 160, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    display: grid;
    grid-template-columns: repeat(3, 12px);
    grid-template-rows: repeat(3, 12px);
    gap: 2px;
    padding: 8px;
}

.tetris-dock::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    background: #FF5252;
    border-radius: 2px;
}

.tetris-dock::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / 3;
    background: #FFAB40;
    border-radius: 2px;
}

/* Terminal Icon */
.terminal-dock {
    background: linear-gradient(180deg, #37474F 0%, #263238 100%);
    box-shadow: 
        0 2px 8px rgba(38, 50, 56, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.terminal-dock::before {
    content: '>';
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.terminal-dock::after {
    width: 10px;
    height: 3px;
    background: #4CAF50;
    bottom: 18px;
    right: 12px;
    animation: terminalBlink 1s infinite;
}

@keyframes terminalBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* GitHub Icon */
.github-dock {
    background: linear-gradient(180deg, #424242 0%, #212121 100%);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.github-dock::before {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: path('M16 0C7.16 0 0 7.16 0 16c0 7.07 4.58 13.07 10.94 15.18.8.15 1.09-.35 1.09-.77v-2.99c-4.45.97-5.39-2.14-5.39-2.14-.73-1.85-1.78-2.34-1.78-2.34-1.45-.99.11-.97.11-.97 1.61.11 2.46 1.65 2.46 1.65 1.43 2.45 3.75 1.74 4.67 1.33.14-1.04.56-1.74 1.02-2.14-3.55-.41-7.29-1.78-7.29-7.91 0-1.75.62-3.18 1.65-4.3-.17-.4-.72-2.03.16-4.24 0 0 1.35-.43 4.4 1.64 1.28-.36 2.65-.54 4.01-.54 1.36 0 2.73.18 4.01.54 3.05-2.07 4.4-1.64 4.4-1.64.88 2.21.32 3.84.16 4.24 1.03 1.12 1.65 2.55 1.65 4.3 0 6.15-3.74 7.5-7.31 7.89.58.5 1.09 1.47 1.09 2.97v4.4c0 .43.29.93 1.1.77C27.42 29.07 32 23.07 32 16c0-8.84-7.16-16-16-16z');
}

/* Desktop Icons - macOS Style */
.macos-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    position: relative;
}

.finder-icon {
    background: linear-gradient(180deg, #42A5F5 0%, #1E88E5 50%, #1565C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.finder-icon .icon-face {
    width: 36px;
    height: 36px;
    display: flex;
    overflow: hidden;
    border-radius: 6px;
}

.finder-icon .face-half {
    width: 50%;
    height: 100%;
}

.finder-icon .face-half.left {
    background: #0D47A1;
}

.finder-icon .face-half.right {
    background: white;
}

.folder-icon-mac {
    width: 64px;
    height: 52px;
    background: linear-gradient(180deg, #64B5F6 0%, #42A5F5 30%, #1E88E5 100%);
    border-radius: 4px 14px 14px 14px;
    position: relative;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.folder-icon-mac::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 10px;
    background: linear-gradient(180deg, #90CAF9 0%, #64B5F6 100%);
    border-radius: 6px 6px 0 0;
    top: -6px;
    left: 4px;
}

.terminal-icon-mac {
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg, #37474F 0%, #263238 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(38, 50, 56, 0.4);
}

.terminal-icon-mac::before {
    content: '>_';
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.mail-icon-mac {
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg, #42A5F5 0%, #1E88E5 100%);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
    overflow: hidden;
}

.mail-icon-mac::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 28px;
    background: white;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mail-icon-mac::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 14px solid #1E88E5;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}

/* Better Dock Styling */
.dock {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.dock-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
    transform: translateY(-12px) scale(1.15);
}

.dock-item:hover ~ .dock-item {
    transform: translateY(-4px) scale(1.05);
}

.dock-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(255,255,255,0.4) 20%,
        rgba(255,255,255,0.4) 80%,
        transparent 100%);
    margin: 0 6px;
    align-self: center;
}

/* Improved Desktop */
.desktop {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(100, 181, 246, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, #1565C0 0%, #0D47A1 40%, #1A237E 100%);
    overflow: hidden;
}

/* Improved Window Styling */
.window {
    border-radius: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.window-header {
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, 
        #f6f6f6 0%, 
        #e8e8e8 45%, 
        #dedede 50%, 
        #ececec 100%);
}

.window.active .window-header {
    background: linear-gradient(180deg, 
        #fafafa 0%, 
        #ececec 45%, 
        #e4e4e4 50%, 
        #f0f0f0 100%);
}

/* Smooth Window Animations */
.window {
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.window.minimized {
    transform: scale(0.5) translateY(100vh);
    opacity: 0;
}

/* Better Menu Bar */
.menu-bar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Icon Label Improvements */
.icon-label {
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Active Dock Item Indicator */
.dock-item.active::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Dock Reflection Effect */
.dock::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 25px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%);
    border-radius: 0 0 50% 50%;
    transform: scaleY(-1);
    filter: blur(2px);
    pointer-events: none;
}