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

/* Canvas cursor trail */
.cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999990;
}

@media (max-width: 767px), (pointer: coarse) {
    .cursor-canvas {
        display: none !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1, 'kern' 1;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: 
        radial-gradient(ellipse at 50% 0%, #9FA4C4 0%, #1E2A3A 50%, #0F1419 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 138, 128, 0.3), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(138, 180, 255, 0.3), transparent 40%),
        linear-gradient(180deg, #0D1117 0%, #1A1D29 100%);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
}

/* Authentic Mac Wallpaper Layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(190, 120, 210, 0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 170, 100, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 150, 255, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { opacity: 0.8; transform: translateY(0px); }
    50% { opacity: 1; transform: translateY(-10px); }
}

/* Wallpaper particle overlay for animated mode */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Stars only in Terminal - Beautiful colorful effect! */
.terminal-window .window-content::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(0,255,255,0.9), transparent 3px),
        radial-gradient(1px 1px at 60px 90px, rgba(255,255,0,0.8), transparent 2px),
        radial-gradient(2px 2px at 120px 60px, rgba(255,0,255,0.9), transparent 3px),
        radial-gradient(1px 1px at 180px 140px, rgba(0,255,0,0.8), transparent 2px),
        radial-gradient(2px 2px at 240px 50px, rgba(255,100,255,0.9), transparent 3px),
        radial-gradient(1px 1px at 300px 120px, rgba(100,255,255,0.8), transparent 2px),
        radial-gradient(2px 2px at 360px 80px, rgba(255,255,100,0.9), transparent 3px),
        radial-gradient(1px 1px at 420px 150px, rgba(255,150,0,0.8), transparent 2px),
        radial-gradient(2px 2px at 480px 100px, rgba(150,255,150,0.9), transparent 3px),
        radial-gradient(1px 1px at 540px 60px, rgba(255,200,200,0.8), transparent 2px);
    background-repeat: repeat;
    background-size: 600px 200px;
    animation: terminalStarsMove 100s linear infinite, colorTwinkle 3s ease-in-out infinite;
}

@keyframes terminalStarsMove {
    from { background-position: 0% 0%; }
    to { background-position: -600px 0%; }
}

@keyframes colorTwinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Startup Screen */
.startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.startup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.apple-logo-startup {
    opacity: 0;
    animation: logoFadeIn 1s ease forwards;
}

@keyframes logoFadeIn {
    to { opacity: 1; }
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    animation: progressAnimation 3s ease-in-out forwards;
}

@keyframes progressAnimation {
    to { width: 100%; }
}

/* Login Screen - Elegant Minimal Design */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 1;
}

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

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: loginContentFadeIn 1s ease forwards;
}

@keyframes loginContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-apple-logo {
    opacity: 0;
    animation: logoGlowIn 2s ease forwards, logoPulse 3s ease-in-out 2s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes logoGlowIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 80px rgba(100, 150, 255, 0.6));
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 50px rgba(100, 150, 255, 0.4));
    }
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 50px rgba(100, 150, 255, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 80px rgba(150, 180, 255, 0.7));
        transform: scale(1.03);
    }
}

.login-name {
    color: white;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.login-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    margin: -12px 0 8px 0;
    letter-spacing: 0.3px;
}

.login-input-wrapper {
    margin-top: 20px;
}

.login-password-input {
    width: min(350px, calc(100vw - 32px));
    max-width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0 24px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
}

.login-password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-password-input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.login-hint-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
    margin-top: 16px;
    animation: blinkHint 2s ease-in-out infinite;
}

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

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    z-index: 10000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-bar-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.apple-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    cursor: pointer;
    color: #1d1d1f;
}

.apple-logo:hover {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.menu-item {
    padding: 4px 8px;
    cursor: pointer;
    color: #1d1d1f;
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 4px;
}

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

.menu-item.active {
    font-weight: 600;
}

.menu-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #1d1d1f;
    flex-shrink: 0;
}

#launchpad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

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

.menu-icon#gesture-magic-toggle.gesture-magic-on {
    background: rgba(0, 122, 255, 0.18);
    color: #007aff;
}

body.dark-mode .menu-icon#gesture-magic-toggle.gesture-magic-on {
    background: rgba(10, 132, 255, 0.22);
    color: #64b5ff;
}

.menu-time {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
}

.menu-trigger {
    position: relative;
}

/* Dropdown Menus */
.dropdown-menu {
    position: fixed;
    top: 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 4px;
    min-width: 200px;
    z-index: 10001;
    animation: menuSlideDown 0.2s ease;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #1d1d1f;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-dropdown-item:hover {
    background: #007aff;
    color: white;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 8px;
}

.menu-shortcut {
    color: #86868b;
    font-size: 12px;
    margin-left: 32px;
}

.menu-dropdown-item:hover .menu-shortcut {
    color: rgba(255, 255, 255, 0.8);
}

/* Spotlight Search - Centered */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center; /* Perfectly centered */
    animation: fadeIn 0.2s ease;
}

.spotlight-search {
    width: 600px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    height: fit-content;
    max-height: 500px;
    animation: spotlightSlideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spotlightSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.spotlight-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#spotlight-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: 300;
    color: #1d1d1f;
    background: transparent;
}

#spotlight-input::placeholder {
    color: #86868b;
}

.spotlight-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.spotlight-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spotlight-result-item:hover,
.spotlight-result-item.selected {
    background: #007aff;
}

.spotlight-result-item:hover .spotlight-result-title,
.spotlight-result-item.selected .spotlight-result-title {
    color: white;
}

.spotlight-result-item:hover .spotlight-result-desc,
.spotlight-result-item.selected .spotlight-result-desc {
    color: rgba(255, 255, 255, 0.8);
}

.spotlight-result-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.spotlight-result-info {
    flex: 1;
}

.spotlight-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.spotlight-result-desc {
    font-size: 13px;
    color: #86868b;
}

.spotlight-no-results {
    padding: 32px;
    text-align: center;
    color: #86868b;
    font-size: 15px;
}

/* Control Center */
.control-center {
    position: fixed;
    top: 36px;
    right: 12px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 16px;
    z-index: 10001;
    animation: controlCenterSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes controlCenterSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.control-item {
    background: rgba(103, 126, 234, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-item:hover {
    background: rgba(103, 126, 234, 0.25);
    transform: scale(1.05);
}

.control-item svg {
    color: #007aff;
}

.control-item span {
    font-size: 11px;
    font-weight: 600;
    color: #1d1d1f;
}

.brightness-control,
.volume-control {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brightness-control:last-child,
.volume-control:last-child {
    margin-bottom: 0;
}

.brightness-control svg,
.volume-control svg {
    color: #007aff;
    flex-shrink: 0;
}

.control-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.control-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
}

/* Desktop */
.desktop {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 80px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-auto-rows: 90px;
    gap: 16px;
    align-content: start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.desktop-icon-img svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.desktop-icon-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    word-break: break-word;
    max-width: 100%;
}

/* Windows */
.window {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: min(600px, calc(100vw - 20px));
    min-height: min(400px, calc(100vh - 140px));
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 120px);
    z-index: 100;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

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

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 100;
    touch-action: none;
}

.resize-handle::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(128, 128, 128, 0.4);
    border-bottom: 2px solid rgba(128, 128, 128, 0.4);
    pointer-events: none;
}

.window.minimized {
    display: none !important;
    pointer-events: none;
}

/* Genie Minimize Effect */
@keyframes genieMinimize {
    0% {
        transform: scale(1) translateY(0) perspective(600px) rotateX(0deg);
        opacity: 1;
    }
    30% {
        transform: scale(0.95) translateY(100px) perspective(600px) rotateX(5deg);
        opacity: 0.9;
    }
    60% {
        transform: scale(0.7) translateY(300px) perspective(600px) rotateX(15deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.05) translateY(calc(100vh - 100px)) perspective(600px) rotateX(45deg);
        opacity: 0;
    }
}

.window.minimizing {
    animation: genieMinimize 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Smooth Maximize */
@keyframes smoothMaximize {
    from {
        transform: scale(0.9);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Window Titlebar */
.window-titlebar {
    touch-action: none;
    height: 40px;
    background: rgba(246, 246, 246, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: move;
    -webkit-app-region: drag;
}

.window-controls {
    display: flex;
    gap: 8px;
    -webkit-app-region: no-drag;
}

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

.window-control:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: bold;
}

.window-control.close {
    background: #ff5f57;
}

.window-control.close:hover::after {
    content: '×';
    font-size: 12px;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.minimize:hover::after {
    content: '−';
}

.window-control.maximize {
    background: #28c840;
}

.window-control.maximize:hover::after {
    content: '+';
    font-size: 10px;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    pointer-events: none;
}

.window-controls-placeholder {
    width: 60px;
}

/* Window Toolbar */
.window-toolbar {
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

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

.toolbar-btn {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Window Content */
.window-content {
    height: calc(100% - 40px);
    overflow: auto;
    background: #ffffff;
}

.window-content::-webkit-scrollbar {
    width: 12px;
}

.window-content::-webkit-scrollbar-track {
    background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 3px solid #ffffff;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Finder Content */
.finder-content {
    display: flex;
    height: calc(100% - 84px);
}

.finder-sidebar {
    width: 200px;
    background: rgba(242, 242, 247, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 8px;
    overflow-y: auto;
}

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

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #86868b;
    padding: 4px 12px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #1d1d1f;
    transition: all 0.15s ease;
}

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

.sidebar-item.active {
    background: #007aff;
    color: white;
}

.sidebar-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.finder-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007aff;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}

.content-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    color: #86868b;
    font-weight: 500;
}

.about-content {
    max-width: 800px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #515154;
    margin-bottom: 12px;
}

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

.info-card {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: #515154;
    margin: 0;
}

/* Projects Window */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 32px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 16px;
}

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

.tag {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    color: #007aff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

/* Interactive Terminal */
.terminal-window .window-content,
.terminal-window .window-body {
    background: #1a1b26 !important;
    height: calc(100% - 40px);
    padding: 0;
    position: relative;
}

.interactive-terminal {
    width: 100%;
    height: 100%;
    background: #1a1b26 !important;
    padding: 16px;
}

.interactive-terminal .terminal,
.interactive-terminal .terminal .terminal-output,
.interactive-terminal .terminal .terminal-wrapper {
    --background: #1a1b26 !important;
    background: #1a1b26 !important;
    font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    --color: #a9dc76;
    --link-color: #78dce8;
    height: 100%;
    overflow-y: auto;
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #d4d4d4;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-prompt {
    color: #4ec9b0;
    font-weight: 600;
}

.terminal-path {
    color: #569cd6;
}

.terminal-symbol {
    color: #d4d4d4;
}

.terminal-command {
    color: #ce9178;
}

.terminal-title {
    color: #4fc1ff;
    font-weight: 600;
}

.terminal-label {
    color: #dcdcaa;
    font-weight: 700;
    text-decoration: underline;
}

.terminal-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-left: 20px;
}

.skill-name {
    color: #c586c0;
    width: 140px;
    font-weight: 600;
}

.skill-bar {
    color: #4ec9b0;
    letter-spacing: 2px;
    font-size: 11px;
}

.animated-skill-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ec9b0, #00ff88);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(78, 201, 176, 0.5);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px;
}

.terminal-window.active .skill-fill,
.terminal-window:hover .skill-fill {
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    to {
        width: attr(data-percent);
    }
}

.skill-percent {
    color: #9cdcfe;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.terminal-cursor {
    color: #4ec9b0;
    animation: blink 1s infinite;
}

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

/* Resume Window */
.resume-content {
    padding: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.resume-document {
    background: white;
}

.resume-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #007aff;
}

.resume-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.resume-subtitle {
    font-size: 18px;
    color: #86868b;
    font-weight: 600;
    margin-bottom: 16px;
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #515154;
}

.resume-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
    margin: 12px 0;
}

.resume-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.rb-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s ease;
}

.rb-card:hover {
    transform: translateY(-2px);
}

.rb-num {
    font-size: 24px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.rb-label {
    font-size: 10px;
    color: #86868b;
    font-weight: 500;
}

.rb-accent {
    background: linear-gradient(135deg, #0a84ff, #5856d6);
}

.rb-accent .rb-num,
.rb-accent .rb-label {
    color: #fff;
}

.rb-green {
    background: linear-gradient(135deg, #30d158, #34c759);
}

.rb-green .rb-num,
.rb-green .rb-label {
    color: #fff;
}

.resume-section {
    margin-bottom: 36px;
}

.resume-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    letter-spacing: -0.3px;
}

.resume-item {
    margin-bottom: 24px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.resume-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.company {
    font-size: 15px;
    color: #007aff;
    font-weight: 600;
}

.date {
    font-size: 14px;
    color: #86868b;
    font-weight: 600;
    white-space: nowrap;
}

.resume-item ul {
    list-style: none;
    padding-left: 0;
}

.resume-item li {
    font-size: 14px;
    line-height: 1.7;
    color: #515154;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.resume-item li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    position: absolute;
    left: 4px;
}

.certifications-list {
    list-style: none;
    padding-left: 0;
}

.certifications-list li {
    font-size: 15px;
    color: #515154;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.certifications-list li::before {
    content: '✓';
    color: #28c840;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

.resume-download {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #0051d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

/* Contact Window */
.contact-content {
    padding: 40px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-header p {
    font-size: 16px;
    color: #86868b;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007aff;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 13px;
    color: #515154;
    word-break: break-word;
}

.contact-form-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

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

.submit-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #0051d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

/* Experience Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.exp-item {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #007aff;
    transition: all 0.3s ease;
}

.exp-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.exp-year {
    display: inline-block;
    background: #007aff;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.exp-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.exp-item p {
    font-size: 14px;
    color: #515154;
    margin: 0;
}

/* Fun Section */
.fun-section {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.05), rgba(255, 59, 48, 0.05));
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(255, 149, 0, 0.2);
}

.fun-section h2 {
    color: #FF9500;
}

.fun-section p {
    margin-bottom: 12px;
}

.exp-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 8px;
}

/* Connect Section */
.connect-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
    padding: 32px;
    border-radius: 16px;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.connect-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    border: 2px solid rgba(0, 122, 255, 0.15);
    transition: all 0.3s ease;
}

.connect-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.2);
    border-color: #007aff;
}

.connect-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.connect-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.connect-card p {
    font-size: 13px;
    color: #86868b;
    margin: 0;
}

.mission-statement {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 122, 255, 0.2);
}

.mission-statement p {
    font-size: 16px;
    font-style: italic;
    color: #007aff;
    margin: 0;
}

/* About This Mac Window */
.about-mac-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-mac-container {
    text-align: center;
    max-width: 500px;
}

.about-mac-logo {
    margin: 0 auto 24px;
    width: 100px;
    height: 100px;
}

.about-mac-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.about-mac-container .version {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 32px;
}

.about-mac-info {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #1d1d1f;
}

.info-value {
    color: #515154;
    text-align: right;
}

.about-mac-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mac-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: white;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mac-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mac-btn.primary {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.mac-btn.primary:hover {
    background: #0051d5;
}

/* System Preferences Window */
.preferences-content {
    padding: 32px;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.pref-category h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.pref-item {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.theme-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: rgba(0, 122, 255, 0.08);
}

.theme-option.active {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.theme-preview {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-preview {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

.dark-preview {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}

.auto-preview {
    background: linear-gradient(90deg, #f5f5f7 0%, #f5f5f7 50%, #1c1c1e 50%, #1c1c1e 100%);
}

.theme-option span {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

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

.wallpaper-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallpaper-option:hover {
    background: rgba(0, 122, 255, 0.08);
}

.wallpaper-option.active {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.wallpaper-preview {
    width: 120px;
    height: 70px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
}

.wallpaper-preview.default-preview {
    background-image: url('../wallpapers/pexels-umkreisel-app-956999.jpg');
}

.wallpaper-preview.bigsur-preview {
    background-image: url('../wallpapers/ashim-d-silva-WeYamle9fDM-unsplash.jpg');
}

.wallpaper-preview.monterey-preview {
    background-image: url('../wallpapers/iswanto-arif-OJ74pFtrYi0-unsplash.jpg');
}

.wallpaper-preview.ventura-preview {
    background-image: url('../wallpapers/pexels-philippedonn-1169754.jpg');
}

.wallpaper-preview.sonoma-preview {
    background-image: url('../wallpapers/pexels-eberhardgross-691668.jpg');
}

.wallpaper-preview.catalina-preview {
    background-image: url('../wallpapers/pexels-souvenirpixels-417074.jpg');
}

.animated-preview {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wallpaper-option span {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
}

.pref-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.pref-toggle input[type="checkbox"] {
    width: 48px;
    height: 28px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pref-toggle input[type="checkbox"]:checked {
    background: #007aff;
}

.pref-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pref-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.pref-toggle span {
    font-size: 14px;
    color: #1d1d1f;
}

/* Launchpad - Beautiful like Spotlight */
.launchpad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(50px) saturate(150%);
    -webkit-backdrop-filter: blur(50px) saturate(150%);
    z-index: 30000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    opacity: 0;
    animation: launchpadFadeIn 0.4s ease forwards;
}

@keyframes launchpadFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.launchpad-search {
    margin-bottom: 50px;
    animation: launchpadSearchSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes launchpadSearchSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.launchpad-search input {
    width: min(500px, calc(100vw - 32px));
    max-width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 0 28px;
    color: white;
    font-size: 20px;
    font-weight: 400;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.launchpad-search input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.launchpad-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(6, 140px);
    gap: 40px 32px;
    margin-bottom: 50px;
    justify-content: center;
    animation: launchpadGridFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes launchpadGridFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.launchpad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation: launchpadItemAppear 0.5s ease forwards;
}

@keyframes launchpadItemAppear {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.launchpad-item:nth-child(1) { animation-delay: 0.05s; }
.launchpad-item:nth-child(2) { animation-delay: 0.1s; }
.launchpad-item:nth-child(3) { animation-delay: 0.15s; }
.launchpad-item:nth-child(4) { animation-delay: 0.2s; }
.launchpad-item:nth-child(5) { animation-delay: 0.25s; }
.launchpad-item:nth-child(6) { animation-delay: 0.3s; }
.launchpad-item:nth-child(7) { animation-delay: 0.35s; }
.launchpad-item:nth-child(8) { animation-delay: 0.4s; }
.launchpad-item:nth-child(9) { animation-delay: 0.45s; }
.launchpad-item:nth-child(10) { animation-delay: 0.5s; }
.launchpad-item:nth-child(11) { animation-delay: 0.55s; }
.launchpad-item:nth-child(12) { animation-delay: 0.6s; }

.launchpad-item:hover {
    transform: scale(1.15) translateY(-10px);
}

.launchpad-item:active {
    transform: scale(0.92);
}

.launchpad-item svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launchpad-item:hover svg {
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.85));
    transform: scale(1.05);
}

.launchpad-item span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}

.launchpad-dots {
    display: flex;
    gap: 10px;
    animation: launchpadDotsAppear 0.8s ease 0.7s backwards;
}

@keyframes launchpadDotsAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.launchpad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.launchpad-dot.active {
    background: white;
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Mac-Style Modal Dialog */
.mac-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50000;
    animation: fadeIn 0.2s ease;
    transition: backdrop-filter 0.3s ease;
}

.mac-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    padding: 32px;
    max-width: 450px;
    text-align: center;
    animation: welcomeModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.recent-item:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: translateX(4px);
}

/* Safari Window Content */
.safari-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.safari-message {
    text-align: center;
    max-width: 500px;
}

.safari-message svg {
    margin-bottom: 24px;
}

.safari-message h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.safari-message p {
    font-size: 16px;
    color: #515154;
    margin-bottom: 32px;
    line-height: 1.6;
}

.safari-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safari-btn {
    padding: 14px 28px;
    background: #007aff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.safari-btn:hover {
    background: #0051d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

/* Games Window */
.games-content {
    padding: 20px;
    overflow-y: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.game-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(201, 75, 126, 0.1));
    border-color: #FF6B9D;
    box-shadow: 0 16px 40px rgba(255, 107, 157, 0.3);
}

.game-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: gameIconFloat 3s ease-in-out infinite;
}

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

.game-item:hover .game-icon {
    animation: gameIconSpin 0.6s ease-in-out;
}

@keyframes gameIconSpin {
    to { transform: rotate(360deg) scale(1.2); }
}

.game-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.game-item p {
    font-size: 13px;
    color: #515154;
    margin: 0;
}

/* Game Overlay System */
#games-window .window-content,
#games-window .window-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#games-window .window-content,
#games-window .games-content {
    position: relative;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f7;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
    animation: gameOverlayIn 0.25s ease-out;
}

@keyframes gameOverlayIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

body.dark-mode .game-overlay {
    background: #282828 !important;
    color: #e0e0e0 !important;
}

.game-back-btn {
    background: none;
    border: 2px solid #007AFF;
    color: #007AFF;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.game-back-btn:hover {
    background: #007AFF;
    color: #fff;
}
body.dark-mode .game-back-btn {
    border-color: #4fc3f7;
    color: #4fc3f7;
}
body.dark-mode .game-back-btn:hover {
    background: #4fc3f7;
    color: #1a1a1a;
}

.game-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
}
body.dark-mode .game-title { color: #fff; }

.game-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0,122,255,0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
body.dark-mode .game-stats {
    background: rgba(79,195,247,0.12) !important;
    color: #e0e0e0 !important;
}

.game-win-msg {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, #34c759, #30d158);
    color: #fff;
    border-radius: 12px;
    animation: gameWinPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gameWinPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Whack-a-Pod */
.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}
.whack-hole {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    border: 3px solid #c0c0c0;
    transition: transform 0.1s, background 0.15s;
    user-select: none;
}
body.dark-mode .whack-hole {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a) !important;
    border-color: #555 !important;
}
.whack-hole.pod-up {
    background: linear-gradient(145deg, #bbf7d0, #86efac);
    border-color: #22c55e;
    animation: podPop 0.2s ease-out;
}
.whack-hole.bad-pod {
    background: linear-gradient(145deg, #fecdd3, #fda4af);
    border-color: #f43f5e;
    animation: podPop 0.2s ease-out;
}
@keyframes podPop {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}
.whack-hole:active {
    transform: scale(0.9);
}

/* Card Match */
.card-match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
.match-card {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #007AFF, #5856D6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    color: transparent;
    user-select: none;
    transition: transform 0.3s, background 0.3s;
    border: 2px solid rgba(0,122,255,0.3);
}
.match-card:hover {
    transform: scale(1.05);
}
.match-card.flipped {
    background: #fff;
    color: #1d1d1f;
    border-color: #007AFF;
    transform: rotateY(180deg);
}
.match-card.matched {
    background: linear-gradient(145deg, #34c759, #30d158);
    color: #fff;
    border-color: #22c55e;
    transform: scale(1.05);
    pointer-events: none;
}
body.dark-mode .match-card {
    background: linear-gradient(145deg, #4fc3f7, #5856D6);
    border-color: rgba(79,195,247,0.3);
}
body.dark-mode .match-card.flipped {
    background: #3a3a3a;
    color: #fff;
}
body.dark-mode .match-card.matched {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

/* Minesweeper */
.minesweeper-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    max-width: 360px;
    margin: 0 auto;
}
.mine-cell {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #d1d5db, #b0b5bd);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #9ca3af;
    user-select: none;
    transition: background 0.15s;
}
body.dark-mode .mine-cell {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a) !important;
    border-color: #666 !important;
}
.mine-cell:hover:not(.revealed) {
    background: linear-gradient(145deg, #c0c5cd, #a0a5ad);
}
.mine-cell.revealed {
    background: #f0f0f0;
    border-color: #e0e0e0;
    cursor: default;
}
body.dark-mode .mine-cell.revealed {
    background: #2a2a2a !important;
    border-color: #444 !important;
}
.mine-cell.mine-hit {
    background: #fca5a5 !important;
    border-color: #ef4444 !important;
}
.mine-cell.flagged::after {
    content: '🚩';
}
.mine-cell[data-adj="1"] { color: #2563eb; }
.mine-cell[data-adj="2"] { color: #16a34a; }
.mine-cell[data-adj="3"] { color: #dc2626; }
.mine-cell[data-adj="4"] { color: #7c3aed; }
.mine-cell[data-adj="5"] { color: #b91c1c; }

/* DevOps Quiz */
.quiz-progress {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
}
.quiz-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1d1f;
    line-height: 1.4;
}
body.dark-mode .quiz-question { color: #fff; }
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-option {
    padding: 14px 18px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    text-align: left;
    transition: all 0.2s;
    font-weight: 500;
}
body.dark-mode .quiz-option {
    background: #3a3a3a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}
.quiz-option:hover:not(.picked) {
    border-color: #007AFF;
    background: rgba(0,122,255,0.05);
}
.quiz-option.correct {
    border-color: #22c55e !important;
    background: rgba(34,197,94,0.15) !important;
    color: #16a34a !important;
}
.quiz-option.wrong {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.15) !important;
    color: #dc2626 !important;
}
.quiz-next-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #007AFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.quiz-next-btn:hover {
    background: #005ecb;
}
.quiz-result {
    text-align: center;
    padding: 24px;
}
.quiz-result h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.score-big {
    font-size: 48px;
    font-weight: 800;
    color: #007AFF;
    margin: 12px 0;
}

/* RETRO CASSETTE DECK MUSIC PLAYER */
.music-player-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0;
    overflow-y: auto;
    position: relative;
}

.music-player-content::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: musicParticleFloat 20s linear infinite;
}

@keyframes musicParticleFloat {
    to { transform: translate(-25px, -25px); }
}

.retro-cassette-player {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cassette-deck {
    background: linear-gradient(145deg, #2a2a3e, #1f1f2e);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.brand-logo {
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: #FFD60A;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(255, 214, 10, 0.4);
}

.cassette-top-section {
    margin-bottom: 24px;
}

.cassette-display-large {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.cassette-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid #FFD60A;
    box-shadow: 0 4px 16px rgba(255, 214, 10, 0.4);
}

.cassette-info h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cassette-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.cassette-tape-section {
    background: linear-gradient(90deg, #FFD60A 0%, #FF9500 50%, #FFD60A 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
}

.tape-label {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
}

.tape-reels-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0;
}

.tape-reel-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #1a1a1a 30%, #FFD60A 30%, #FFD60A 35%, #1a1a1a 35%, #1a1a1a 40%, transparent 40%);
    border: 3px solid #1a1a1a;
    animation: reelSpinContinuous 4s linear infinite;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.tape-window {
    flex: 1;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.tape-strip {
    width: 200%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 2px,
        #654321 2px,
        #654321 4px
    );
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: tapeScroll 8s linear infinite;
}

@keyframes tapeScroll {
    to { transform: translateY(-50%) translateX(-50%); }
}

.player-embed-section {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cassette-footer {
    text-align: center;
}

.vu-meter {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vu-bar {
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    border-radius: 4px;
    animation: vuPulse 0.5s ease-in-out infinite;
    opacity: 0.3;
}

.vu-bar:nth-child(2) { animation-delay: 0.1s; }
.vu-bar:nth-child(3) { animation-delay: 0.2s; }
.vu-bar:nth-child(4) { animation-delay: 0.3s; }
.vu-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes vuPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

.music-header-simple {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-header-simple:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 16px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.music-avatar-simple {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.music-header-simple:hover .music-avatar-simple {
    transform: scale(1.05);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.6);
}

.music-title-simple h1 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.music-title-simple p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
}

.playlist-embeds {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.embed-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(80px) saturate(220%) brightness(1.1);
    -webkit-backdrop-filter: blur(80px) saturate(220%) brightness(1.1);
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(201, 75, 126, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.embed-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.35),
        0 0 100px rgba(201, 75, 126, 0.4),
        0 0 160px rgba(102, 126, 234, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.embed-card h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.embed-card iframe {
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.spotify-container {
    display: flex;
    height: 100%;
}

.spotify-sidebar {
    width: 230px;
    background: #000;
    padding: 24px 16px;
    border-right: 1px solid #282828;
}

.spotify-user {
    text-align: center;
    margin-bottom: 32px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.spotify-user p {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.spotify-nav {
    margin-bottom: 32px;
}

.nav-item {
    padding: 12px 16px;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.nav-item:hover {
    color: white;
    background: #282828;
}

.nav-item.active {
    color: white;
}

.section-title {
    font-size: 11px;
    color: #b3b3b3;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.playlist-item {
    padding: 8px 16px;
    color: #b3b3b3;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.playlist-item:hover {
    color: white;
}

.playlist-item.active {
    color: white;
    background: #282828;
}

.spotify-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #1e3c72 0%, #000 40%);
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 32px;
}

.now-playing-large {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.album-cover-large {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.track-info-large h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.track-info-large p {
    font-size: 16px;
    color: #b3b3b3;
}

.song-embed-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.song-embed-container iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.music-info-bottom {
    margin-top: 24px;
}

.spotify-player {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: #181818;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.player-info {
    flex: 1;
}

.player-track-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-track-artist {
    color: #b3b3b3;
    font-size: 12px;
}

.player-controls-center {
    display: flex;
    gap: 16px;
    align-items: center;
}

.player-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b3b3b3;
    background: transparent;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.player-btn:hover {
    color: white;
    border-color: white;
    transform: scale(1.1);
}

.play-main {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    color: #000;
    font-size: 16px;
}

.play-main:hover {
    transform: scale(1.1);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
}

.time {
    color: #b3b3b3;
    font-size: 11px;
    min-width: 40px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    cursor: pointer;
}

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

.music-fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.music-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(126, 34, 206, 0.3), transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(42, 82, 152, 0.3), transparent 60%);
    filter: blur(60px);
}

.cassette-player {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 450px;
}

.cassette-top {
    margin-bottom: 24px;
}

.cassette-label {
    background: linear-gradient(135deg, #FFD60A, #FF9500);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.label-text {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.label-subtext {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.cassette-reels {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.reel {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #1a1a1a 30%, #FFD60A 30%, #FFD60A 35%, #1a1a1a 35%);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

.reel.spinning {
    animation: reelSpin 2s linear infinite;
}

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

.cassette-window {
    text-align: center;
    margin: 24px 0;
}

.cassette-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #FFD60A;
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.4);
}

.track-display {
    text-align: center;
    margin: 24px 0;
}

.track-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.track-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.cassette-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}

.cassette-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #3d3d3d, #2d2d2d);
    color: #FFD60A;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cassette-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 214, 10, 0.3);
}

.play-cassette {
    width: 72px;
    height: 72px;
    font-size: 28px;
    background: linear-gradient(145deg, #FFD60A, #FF9500);
    color: #1a1a1a;
}

.cassette-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cassette-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD60A, #FF9500);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 214, 10, 0.5);
}

.music-note {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 24px;
    text-align: center;
    font-style: italic;
}

@keyframes macModalSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mac-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

/* Animated Welcome Apple Logo */
.welcome-apple-logo {
    animation: welcomeLogoGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

@keyframes welcomeLogoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 40px rgba(118, 75, 162, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(102, 126, 234, 0.9)) drop-shadow(0 0 70px rgba(118, 75, 162, 0.7));
        transform: scale(1.05);
    }
}

.mac-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.mac-modal-message {
    font-size: 14px;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 24px;
    white-space: pre-line;
}

.mac-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mac-modal-btn {
    padding: 10px 32px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mac-modal-btn.primary {
    background: #007aff;
    color: white;
}

.mac-modal-btn.primary:hover {
    background: #0051d5;
    transform: scale(1.05);
}

.mac-modal-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.mac-modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Beautiful Shutdown Screen */
.shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

/* Below #startup-screen (99999) while fading boot overlay → avoids desktop flash */
.shutdown-screen.shutdown-layer-under-boot {
    z-index: 99990;
}

.shutdown-content {
    text-align: center;
    animation: shutdownFadeIn 1s ease;
}

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

.shutdown-logo {
    opacity: 0;
    animation: logoFadeIn 1s ease forwards, shutdownLogoPulse 2s ease 1s infinite;
    margin-bottom: 32px;
}

@keyframes shutdownLogoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.shutdown-text {
    color: white;
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.shutdown-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.shutdown-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ultra-Glossy Widgets with Hover Glow */
.desktop-widget {
    position: fixed;
    top: 80px;
    right: 24px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(60px) saturate(200%) brightness(1.2);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 0 0 0.5px rgba(255, 255, 255, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 24px 80px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 240px;
    text-align: center;
    animation: widgetFloat 1s ease;
    z-index: 10;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

.desktop-widget:hover {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.7),
        0 16px 50px rgba(0, 0, 0, 0.35),
        0 32px 100px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(0, 200, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.28);
}

.desktop-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

@keyframes widgetFloat {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.widget-title {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.widget-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* Live Experience Clock */
.live-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.clock-unit {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock-value {
    font-size: 22px;
    font-weight: 200;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-family: 'SF Mono', 'Consolas', monospace;
    transition: all 0.3s ease;
}

.clock-value:hover {
    transform: scale(1.1);
    color: #FFD60A;
}

.clock-label-small {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clock-quote {
    font-size: 11px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    line-height: 1.4;
}

/* Experience Timeline Widget - Professional Horizontal Chart */
.timeline-widget {
    min-width: 340px;
}

.timeline-chart {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.timeline-axis-y {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
}

.company-label {
    height: 28px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 8px;
    border-radius: 6px;
}

.company-label:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.timeline-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-bar-horizontal {
    height: 28px;
    cursor: pointer;
}

.bar-fill-horizontal {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-fill-horizontal:hover {
    transform: scaleX(1.05) translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2);
}

.skill-bar-fill:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px currentColor;
}

.bar-years {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Top Skills Widget - Compact */
.skills-widget {
    min-width: 200px;
}

.mini-skills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-skill {
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(0, 122, 255, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.mini-skill:hover {
    background: rgba(0, 122, 255, 0.35);
    transform: translateX(4px);
}

.mini-skill span {
    color: #FFD60A;
}

/* RETRO CASSETTE MUSIC WIDGET - Compact Player */
.cassette-widget {
    min-width: 280px;
    max-width: 300px;
}

.compact-cassette {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cassette-header {
    margin-bottom: 16px;
}

.cassette-label-mini {
    background: linear-gradient(90deg, #FFD60A, #FF9500);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cassette-reels-mini {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.reel-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #1a1a1a 25%, #FFD60A 25%, #FFD60A 30%, #1a1a1a 30%);
    animation: reelSpinSlow 3s linear infinite;
}

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

.cassette-player-embed {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
}

.expand-player-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-player-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Music Player Widget */
.music-widget {
    min-width: 260px;
}

.music-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-art {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vinyl-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #1a1a1a 30%, #FFD60A 30%, #FFD60A 35%, #1a1a1a 35%, #1a1a1a 100%);
    animation: vinylSpin 3s linear infinite paused;
}

.vinyl-disc.playing {
    animation-play-state: running;
}

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

.song-info {
    text-align: center;
}

.song-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.music-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.music-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.volume-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-mini {
    flex: 1;
    height: 4px;
}

/* Fidget Spinner Widget */
.spinner-widget {
    min-width: 200px;
}

.fidget-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fidget-spinner:hover {
    transform: scale(1.05);
}

.spinner-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD60A, #FF9500);
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.5);
    z-index: 2;
}

.spinner-blade {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spinner-blade:nth-child(2) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.spinner-blade:nth-child(3) {
    bottom: 0;
    left: 0;
}

.spinner-blade:nth-child(4) {
    bottom: 0;
    right: 0;
}

.fidget-spinner.spinning {
    animation: spinFast 0.3s linear infinite;
}

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

.spinner-text {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
}

/* REAL Mac Dock */
.dock {
    position: fixed;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    background: rgba(245, 245, 245, 0.25);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 6px 16px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.6),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 64px;
    padding-bottom: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.dock-item {
    width: 54px;
    height: 54px;
    cursor: pointer;
    position: relative;
    transform-origin: 50% 100%;
    will-change: transform;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dock-item svg,
.dock-profile-pic {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.dock-profile-pic {
    border-radius: 12px;
    object-fit: cover;
}

/* Running app indicator dot */
.dock-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dock-item.running::after {
    opacity: 1;
}

.dock-separator {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 6px;
    align-self: center;
}

.dock-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item:hover > .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===== APPLE BENTO GRID ===== */
.bento-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    margin: 16px 0;
}

.bento-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    animation: bentoPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bento-card:nth-child(1) { animation-delay: 0s; }
.bento-card:nth-child(2) { animation-delay: 0.05s; }
.bento-card:nth-child(3) { animation-delay: 0.1s; }
.bento-card:nth-child(4) { animation-delay: 0.15s; }
.bento-card:nth-child(5) { animation-delay: 0.2s; }
.bento-card:nth-child(6) { animation-delay: 0.25s; }
.bento-card:nth-child(7) { animation-delay: 0.3s; }
.bento-card:nth-child(8) { animation-delay: 0.35s; }
.bento-card:nth-child(9) { animation-delay: 0.4s; }
.bento-card:nth-child(10) { animation-delay: 0.45s; }
.bento-card:nth-child(11) { animation-delay: 0.5s; }

@keyframes bentoPop {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hero card - spans 2 rows */
.bento-hero {
    grid-row: span 2;
    padding: 24px;
    background: #111;
    justify-content: space-between;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #0a84ff, #30d158, #00b4d8) 1;
}

.bento-eyebrow {
    font-size: 10px;
    font-weight: 600;
    color: #30d158;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.bento-tagline {
    font-size: 28px;
    font-weight: 700;
    color: #f5f5f7;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.bento-tagline-dim {
    font-size: 28px;
    font-weight: 700;
    color: #3a3a3c;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.bento-footer {
    margin-top: auto;
    padding-top: 16px;
}

.bento-name {
    font-size: 12px;
    font-weight: 600;
    color: #636366;
    margin-bottom: 2px;
}

.bento-role {
    font-size: 11px;
    color: #48484a;
}

/* Stat cards */
.bento-num {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.bento-label {
    font-size: 11px;
    color: #6e6e73;
    line-height: 1.3;
}

.bento-label strong {
    color: #aeaeb2;
}

/* Highlight card (certs) */
.bento-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, #0a84ff 0%, #5856d6 50%, #bf5af2 100%);
    text-align: center;
    align-items: center;
}

.bento-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

/* Category cards */
.bento-category {
    padding: 14px 16px;
}

.bento-cat-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

.bento-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bento-pill {
    font-size: 9.5px;
    font-weight: 600;
    color: #8e8e93;
    background: #2c2c2e;
    border-radius: 100px;
    padding: 3px 8px;
    white-space: nowrap;
}

/* Release card */
.bento-release {
    grid-column: span 2;
}

.bento-release-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.bento-from {
    font-size: 18px;
    font-weight: 800;
    color: #3a3a3c;
    text-decoration: line-through;
    text-decoration-color: #636366;
}

.bento-arrow {
    font-size: 16px;
    font-weight: 700;
    color: #636366;
}

.bento-to {
    font-size: 26px;
    font-weight: 800;
    color: #ff453a;
    letter-spacing: -0.03em;
}

/* Quote card */
.bento-quote {
    grid-column: span 4;
    background: #111;
    padding: 20px 28px;
    border: 1px solid #2c2c2e;
}

.bento-quote-text {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.bento-quote-text em {
    color: #30d158;
    font-style: normal;
}

/* Light mode overrides */
body:not(.dark-mode) .bento-card {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.dark-mode) .bento-hero {
    background: #fff;
}

body:not(.dark-mode) .bento-tagline {
    color: #1d1d1f;
}

body:not(.dark-mode) .bento-tagline-dim {
    color: #d2d2d7;
}

body:not(.dark-mode) .bento-label {
    color: #86868b;
}

body:not(.dark-mode) .bento-label strong {
    color: #1d1d1f;
}

body:not(.dark-mode) .bento-pill {
    background: #e8e8ed;
    color: #636366;
}

body:not(.dark-mode) .bento-quote {
    background: #fff;
    border-color: #e8e8ed;
}

body:not(.dark-mode) .bento-quote-text {
    color: #1d1d1f;
}

body:not(.dark-mode) .bento-name {
    color: #86868b;
}

body:not(.dark-mode) .bento-role {
    color: #aeaeb2;
}

/* Responsive bento */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-hero { grid-row: span 1; }
    .bento-quote { grid-column: span 2; }
    .bento-highlight { grid-column: span 2; }
    .bento-release { grid-column: span 2; }
    .bento-num { font-size: 32px; }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-hero, .bento-quote, .bento-highlight, .bento-release, .bento-category {
        grid-column: span 1;
    }
}

/* Welcome Modal Animation */
@keyframes welcomeModalIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
        filter: blur(4px);
    }
    40% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

@keyframes welcomeOverlayIn {
    from { backdrop-filter: blur(0px); background: rgba(0, 0, 0, 0); }
    to { backdrop-filter: blur(8px); background: rgba(0, 0, 0, 0.35); }
}

.mac-modal-overlay.welcome-active {
    animation: welcomeOverlayIn 0.5s ease forwards;
}

.mac-modal-overlay.welcome-active .mac-modal {
    animation: welcomeModalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Perfect Mobile Responsive Design */
/* Tablet & Mobile Responsive */
@media (max-width: 1024px) {
    .desktop-widget {
        min-width: 220px;
        padding: 20px;
    }
    
    .experience-clock {
        top: 70px !important;
        right: 16px;
    }
    
    .timeline-widget {
        top: 310px !important;
        right: 16px;
    }
    
    .skills-widget {
        top: 560px !important;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }

    /* Same window model as desktop: shrink min size to fit narrow viewports */
    .window {
        min-width: min(560px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 12px) !important;
        min-height: min(360px, calc(100vh - 100px)) !important;
        max-height: calc(100vh - max(80px, env(safe-area-inset-bottom, 0px))) !important;
    }

    .finder-content {
        flex-direction: column;
    }

    .finder-sidebar {
        width: 100%;
        max-height: 150px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        overflow-x: auto;
    }

    .sidebar-section {
        display: flex;
        gap: 8px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .content-header h1 {
        font-size: 28px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods,
    .connect-grid {
        grid-template-columns: 1fr;
    }

    .resume-content {
        padding: 16px;
    }

    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dock {
        bottom: max(6px, env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100vw - 16px);
        padding: 6px 12px;
        gap: 8px;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        scroll-padding-inline: 8px;
    }

    .dock::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .dock-item {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    /* Icon grid / scroll: v2-features.css (narrow + touch tablets) */
    .desktop {
        bottom: 60px;
        padding: 12px;
        grid-template-columns: repeat(auto-fill, 80px);
        grid-auto-rows: 80px;
    }

    .desktop-icon {
        padding: 4px;
    }

    .live-clock-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .clock-value {
        font-size: 18px;
    }
    
    .timeline-chart {
        flex-direction: column;
    }
    
    .timeline-axis-y {
        flex-direction: row;
        min-width: auto;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .company-label {
        font-size: 9px;
        padding: 4px 8px;
    }

    .menu-bar-left {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 1;
        min-width: 0;
    }

    .menu-bar-left::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .menu-bar-left .menu-item {
        flex-shrink: 0;
    }

    .menu-bar-right .menu-icon {
        padding: 2px 4px;
        flex-shrink: 0;
    }

    .spotlight-search {
        max-width: 95vw;
    }

    .launchpad-overlay {
        padding: 20px 12px max(72px, env(safe-area-inset-bottom, 0px) + 56px);
        align-items: stretch;
    }

    .launchpad-search {
        margin-bottom: 24px;
        width: 100%;
        max-width: 100%;
    }

    .launchpad-search input {
        width: 100%;
        max-width: 100%;
    }

    .launchpad-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px 12px;
        width: 100%;
        max-width: 100%;
        justify-items: center;
        box-sizing: border-box;
    }

    .launchpad-item {
        width: 100%;
        max-width: 88px;
    }

    .resume-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-content {
        padding: 0 16px;
        max-width: 100%;
    }

    .login-name {
        font-size: clamp(22px, 6vw, 36px);
        text-align: center;
    }

    .login-tagline {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .live-clock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
    
    .clock-value {
        font-size: 16px;
    }

    .widget-title {
        font-size: 9px;
    }

    .launchpad-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
    }

    .launchpad-item {
        max-width: 76px;
    }

    .resume-impact-grid {
        grid-template-columns: 1fr;
    }

    .resume-bento {
        grid-template-columns: 1fr 1fr;
    }

    .apple-logo-startup {
        width: min(100px, 26vw) !important;
        height: auto !important;
    }

    .startup-content {
        gap: 28px;
        padding: 0 16px;
    }

    .progress-bar {
        width: min(200px, 72vw);
    }

    .login-hint-text {
        font-size: 12px;
        padding: 0 8px;
        text-align: center;
    }

    .resume-item-header {
        flex-direction: column;
        gap: 4px;
    }

    .resume-contact {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        margin: 0 auto;
    }
}

/* Animations */
@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Selection */
::selection {
    background: rgba(0, 122, 255, 0.3);
}

::-moz-selection {
    background: rgba(0, 122, 255, 0.3);
}

/* ========== DARK MODE — COMPREHENSIVE ========== */
body.dark-mode {
    color-scheme: dark;
}

/* Menu bar */
body.dark-mode .menu-bar {
    background: rgba(36, 36, 36, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .menu-item,
body.dark-mode .apple-logo,
body.dark-mode .menu-bar-right span,
body.dark-mode .menu-bar-right svg,
body.dark-mode #menu-app-name,
body.dark-mode #menu-time {
    color: rgba(255, 255, 255, 0.85) !important;
    fill: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .menu-item:hover,
body.dark-mode .apple-logo:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Dropdowns */
body.dark-mode .dropdown-menu {
    background: rgba(44, 44, 46, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .menu-dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .menu-dropdown-item:hover {
    background: #0a84ff !important;
    color: #fff !important;
}

body.dark-mode .menu-dropdown-item .shortcut {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .menu-divider {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Windows - ALL of them */
body.dark-mode .window {
    background: #282828 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .window-titlebar {
    background: rgba(56, 56, 56, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .window-title {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .window-toolbar {
    background: rgba(48, 48, 48, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .window-body,
body.dark-mode .window-content,
body.dark-mode .finder-content,
body.dark-mode .finder-main {
    background: #282828 !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .terminal-window .window-content,
body.dark-mode .terminal-window .window-body,
body.dark-mode .interactive-terminal,
body.dark-mode .interactive-terminal .terminal,
body.dark-mode .interactive-terminal .terminal .terminal-output,
body.dark-mode .interactive-terminal .terminal .terminal-wrapper {
    background: #1a1b26 !important;
}

/* Sidebar */
body.dark-mode .sidebar,
body.dark-mode .finder-sidebar {
    background: rgba(36, 36, 36, 0.98) !important;
    border-right-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .sidebar-item {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .sidebar-item:hover,
body.dark-mode .sidebar-item.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

body.dark-mode .sidebar-title {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ALL text inside windows */
body.dark-mode .window h1,
body.dark-mode .window h2,
body.dark-mode .window h3,
body.dark-mode .window h4 {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.dark-mode .window p,
body.dark-mode .window li,
body.dark-mode .window:not(.terminal-window) span:not(.window-control):not(.dock-tooltip) {
    color: rgba(255, 255, 255, 0.72);
}

body.dark-mode .window a {
    color: #4da3ff !important;
}

body.dark-mode .window strong {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Content sections */
body.dark-mode .content-header {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .about-section {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Experience timeline */
body.dark-mode .exp-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .exp-year {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Cards - project, game, connect, contact, embed, what-i-do, info-grid, fun-facts */
body.dark-mode .project-card,
body.dark-mode .game-card,
body.dark-mode .game-item,
body.dark-mode .connect-card,
body.dark-mode .contact-card,
body.dark-mode .embed-card,
body.dark-mode .what-i-do-card,
body.dark-mode .info-card,
body.dark-mode .info-grid-item,
body.dark-mode .fun-section p,
body.dark-mode .fact-item,
body.dark-mode .fun-facts-grid .fact-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .project-tag,
body.dark-mode .skill-tag,
body.dark-mode .tag {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Resume */
body.dark-mode .resume-document {
    background: #282828 !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .resume-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .resume-subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .resume-contact span {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .resume-section h2 {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .company {
    color: #4da3ff !important;
}

body.dark-mode .date {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .download-btn {
    background: #0a84ff !important;
    color: #fff !important;
}

/* Contact form section */
body.dark-mode .contact-form-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .form-group label {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Dock */
body.dark-mode .dock {
    background: rgba(36, 36, 36, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0.5px 0 rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .dock::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent) !important;
}

body.dark-mode .dock-separator {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Overlays */
body.dark-mode .control-center {
    background: rgba(44, 44, 46, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .control-item {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .control-item span {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .cc-item {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .cc-toggle.active {
    background: #0a84ff !important;
}

body.dark-mode .spotlight-search {
    background: rgba(44, 44, 46, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #spotlight-input {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .spotlight-result-title {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .spotlight-result-desc {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .spotlight-result-item:hover,
body.dark-mode .spotlight-result-item.selected {
    background: #0a84ff !important;
}

body.dark-mode .spotlight-result-item:hover .spotlight-result-title,
body.dark-mode .spotlight-result-item.selected .spotlight-result-title,
body.dark-mode .spotlight-result-item:hover .spotlight-result-desc,
body.dark-mode .spotlight-result-item.selected .spotlight-result-desc {
    color: #fff !important;
}

body.dark-mode .spotlight-no-results {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .spotlight-input-container {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .launchpad-app-name {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Widgets */
body.dark-mode .desktop-widget {
    background: rgba(36, 36, 36, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .desktop-widget::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent) !important;
}

/* Preferences */
body.dark-mode .pref-item {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .pref-section {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .theme-option {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .theme-option span {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .theme-option.active {
    border-color: #0a84ff !important;
}

body.dark-mode .wallpaper-option {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .wallpaper-option span {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .wallpaper-option.active {
    border-color: #0a84ff !important;
}

body.dark-mode .pref-toggle span {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Safari */
body.dark-mode .safari-toolbar {
    background: rgba(48, 48, 48, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .safari-toolbar input {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Bento impact cards */
body.dark-mode .rb-card {
    background: #2c2c2e !important;
}

body.dark-mode .rb-num {
    color: #f5f5f7;
}

body.dark-mode .rb-accent {
    background: linear-gradient(135deg, #0a84ff, #5856d6) !important;
}

body.dark-mode .rb-green {
    background: linear-gradient(135deg, #30d158, #34c759) !important;
}

/* About This Mac */
body.dark-mode .about-mac-info {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .info-row {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .info-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode .info-value {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .mac-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .mac-btn.primary {
    background: #0a84ff !important;
    color: #fff !important;
    border-color: #0a84ff !important;
}

/* Mac modal */
body.dark-mode .mac-modal {
    background: rgba(44, 44, 46, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .mac-modal-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.dark-mode .mac-modal-message {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .mac-modal-btn.primary {
    background: #0a84ff !important;
    color: #fff !important;
}

body.dark-mode .mac-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .recent-item {
    background: rgba(10, 132, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode .recent-item:hover {
    background: rgba(10, 132, 255, 0.22) !important;
}

/* Connect section */
body.dark-mode .connect-section {
    background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-mode .mission-statement p {
    color: #4da3ff !important;
}

/* Fun section */
body.dark-mode .fun-section {
    background: rgba(255, 149, 0, 0.04) !important;
    border-color: rgba(255, 149, 0, 0.15) !important;
}

/* Scrollbars */
body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-color: #282828;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection */
body.dark-mode ::selection {
    background: rgba(10, 132, 255, 0.35);
}

/* Smooth transitions on theme switch */
body, .menu-bar, .window, .window-body, .window-titlebar, .window-toolbar, .sidebar, .dock,
.dropdown-menu, .control-center, .spotlight-search, .desktop-widget,
.resume-document, .project-card, .game-card, .contact-card, .exp-item {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.notification {
    position: fixed;
    top: 40px;
    right: 16px;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
    z-index: 10002;
    animation: notificationSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
}

@keyframes notificationSlide {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.notification-app {
    font-weight: 600;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.notification-body strong {
    display: block;
    margin-bottom: 4px;
    color: #1d1d1f;
}

.notification-body p {
    color: #666;
    line-height: 1.4;
}

body.dark-mode .notification {
    background: rgba(50, 50, 52, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .notification-app { color: #aaa !important; }
body.dark-mode .notification-body strong { color: #f0f0f0 !important; }
body.dark-mode .notification-body p { color: #aaa !important; }
body.dark-mode .notification-close { color: #888 !important; }

@keyframes loginFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}


/* ===== CALCULATOR APP ===== */
.calculator-content {
    background: #1c1c1e !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.calc-display {
    background: #1c1c1e;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    text-align: right;
    padding: 20px 24px 10px;
    min-height: 80px;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow: hidden;
    word-break: break-all;
    line-height: 1.1;
}

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

.calc-btn {
    background: #333;
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.1s ease;
    font-family: 'Inter', -apple-system, sans-serif;
    user-select: none;
}

.calc-btn:hover { background: #444; }
.calc-btn:active { background: #555; }

.calc-fn {
    background: #a5a5a5;
    color: #000;
}
.calc-fn:hover { background: #b5b5b5; }
.calc-fn:active { background: #c5c5c5; }

.calc-op {
    background: #ff9f0a;
    color: #fff;
}
.calc-op:hover { background: #ffb340; }
.calc-op:active { background: #ffc560; }

.calc-zero {
    grid-column: span 2;
    text-align: left;
    padding-left: 32px;
}

.calc-eq { background: #ff9f0a; }

/* Battery menu bar icon layout */
.battery-menu-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.battery-menu-icon svg:first-child { flex-shrink: 0; }


/* ===== TABLET (≤768px) — bento only; desktop shell same as desktop rules above ===== */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .bento-hero { grid-row: span 1 !important; }
    .bento-highlight, .bento-quote, .bento-release {
        grid-column: span 2 !important;
    }
}

/* ===== PHONE (≤480px) — tighter spacing; same features as desktop ===== */
@media (max-width: 480px) {
    .menu-bar {
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }

    .menu-bar-right {
        gap: 4px;
    }

    #menu-time {
        font-size: 11px;
    }

    .dock {
        bottom: max(4px, env(safe-area-inset-bottom, 0px));
        padding: 5px 10px;
        gap: 6px;
        border-radius: 18px;
        width: max-content;
        max-width: calc(100vw - 12px);
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding-inline: 6px;
    }

    .dock::-webkit-scrollbar {
        display: none;
    }

    .dock-item {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0;
    }

    .dock-separator {
        height: 36px;
        margin: 0 4px;
    }

    .window {
        min-width: min(520px, calc(100vw - 12px)) !important;
        max-width: calc(100vw - 8px) !important;
        min-height: min(320px, calc(100vh - 96px)) !important;
        max-height: calc(100vh - max(72px, env(safe-area-inset-bottom, 0px))) !important;
        border-radius: 12px !important;
    }

    .window-content,
    .window-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .finder-main {
        width: 100% !important;
    }

    .finder-content {
        flex-direction: column !important;
    }

    /* Bento grid: 2 columns on mobile */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px;
    }

    .bento-hero {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .bento-highlight {
        grid-column: span 2 !important;
    }

    .bento-quote {
        grid-column: span 2 !important;
    }

    .bento-release {
        grid-column: span 2 !important;
    }

    .bento-num {
        font-size: 28px !important;
    }

    .bento-tagline {
        font-size: 22px !important;
    }

    /* Resume bento */
    .resume-bento {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Profile header */
    .profile-header {
        flex-direction: column !important;
        text-align: center;
    }

    .profile-pic {
        margin: 0 auto !important;
        width: 80px !important;
        height: 80px !important;
    }

    /* Experience items */
    .exp-item {
        padding: 12px !important;
    }

    .resume-item-header {
        flex-direction: column !important;
        gap: 4px;
    }

    /* Contact grid */
    .contact-methods,
    .connect-grid {
        grid-template-columns: 1fr !important;
    }

    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    /* Games grid */
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    /* Launchpad */
    .launchpad-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .launchpad-search input {
        width: calc(100vw - 40px) !important;
    }

    /* Spotlight */
    .spotlight-search {
        width: calc(100vw - 32px) !important;
        top: 40px !important;
    }

    /* Control center */
    .control-center {
        width: calc(100vw - 32px) !important;
        right: 16px !important;
    }

    /* Notifications */
    .notification {
        width: calc(100vw - 32px) !important;
        right: 16px !important;
    }

    /* Login screen */
    .login-content {
        transform: scale(0.9);
    }

    /* About This Mac */
    .about-mac-content {
        padding: 16px !important;
    }

    /* Calculator: slightly smaller */
    .calc-btn {
        padding: 16px !important;
        font-size: 18px !important;
    }

    .calc-display {
        font-size: 36px !important;
        padding: 12px 16px !important;
    }
}