/* ============================================
   CUPO.LI - macOS-Inspired Portfolio
   ============================================ */

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

:root {
    /* Colors - Light Mode */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #aeaeb2;
    --text-inverse: #f5f5f7;

    --bg-desktop: linear-gradient(135deg, #a855f7 0%, #7c3aed 25%, #6366f1 50%, #818cf8 75%, #c4b5fd 100%);
    --bg-window: rgba(255, 255, 255, 0.78);
    --bg-window-header: rgba(255, 255, 255, 0.6);
    --bg-menu: rgba(40, 40, 40, 0.85);
    --bg-dock: rgba(255, 255, 255, 0.2);
    --bg-dock-item: rgba(255, 255, 255, 0.25);
    --bg-spotlight: rgba(30, 30, 30, 0.95);
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-active: rgba(0, 0, 0, 0.08);

    --accent: #007aff;
    --accent-hover: #0056b3;
    --accent-light: rgba(0, 122, 255, 0.1);

    --border-window: rgba(0, 0, 0, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-dark: rgba(0, 0, 0, 0.08);

    --shadow-window: 0 22px 70px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
    --shadow-dock: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.25);
    --shadow-dock-item: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-dropdown: 0 10px 40px rgba(0, 0, 0, 0.3);

    --control-close: #ff5f57;
    --control-close-hover: #ff3b30;
    --control-minimize: #febc2e;
    --control-minimize-hover: #ff9500;
    --control-maximize: #28c840;
    --control-maximize-hover: #34c759;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode */
.dark-mode {
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;

    --bg-window: rgba(40, 40, 40, 0.85);
    --bg-window-header: rgba(50, 50, 50, 0.8);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(255, 255, 255, 0.1);

    --border-window: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: #000;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
    user-select: none;
}

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

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

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

.boot-logo {
    margin-bottom: 60px;
}

.boot-cupoli {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    animation: bootPulse 2s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.boot-cupoli-img {
    width: 100px;
    height: 100px;
    animation: bootPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.5));
}

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

.boot-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.boot-progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    animation: bootLoad 2s ease-out forwards;
}

@keyframes bootLoad {
    0% { width: 0; }
    20% { width: 20%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.boot-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-screen.visible {
    display: flex;
    opacity: 1;
}

.login-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-time {
    font-size: 96px;
    font-weight: 200;
    color: #fff;
    letter-spacing: -4px;
    margin-bottom: 8px;
}

.login-date {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 80px;
}

.login-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.avatar-circle-img {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.5));
}

.avatar-name {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.login-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.login-btn:hover svg {
    transform: translateX(4px);
}

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

.desktop-environment {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.desktop-environment.visible {
    display: block;
    opacity: 1;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: var(--bg-desktop);
    transition: background 1s ease;
}

/* Subtle grain texture */
.bg-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Soft vignette */
.bg-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(88, 28, 135, 0.15) 100%);
    pointer-events: none;
}

.bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: orbFloat 30s ease-in-out infinite;
}

.orb-1 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(139, 92, 246, 0.4) 50%, transparent 70%);
    top: -300px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(244, 114, 182, 0.4) 50%, transparent 70%);
    bottom: -300px;
    right: -200px;
    animation-delay: -10s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.7) 0%, rgba(129, 140, 248, 0.4) 50%, transparent 70%);
    top: 30%;
    left: 50%;
    animation-delay: -20s;
}

/* Fourth orb - adds warmth */
.orb-4 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.6) 0%, rgba(167, 139, 250, 0.3) 50%, transparent 70%);
    top: 60%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(60px, -40px) scale(1.1) rotate(5deg); }
    50% { transform: translate(-40px, 60px) scale(0.9) rotate(-5deg); }
    75% { transform: translate(-60px, -30px) scale(1.05) rotate(3deg); }
}

/* Wallpaper variations */
.wallpaper-1 .bg-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }
.wallpaper-2 .bg-gradient { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.wallpaper-3 .bg-gradient { background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%); }
.wallpaper-4 .bg-gradient { background: linear-gradient(135deg, #232526 0%, #414345 100%); }

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

.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--bg-menu);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.cupoli-logo {
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-inverse);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 28px;
}

.cupoli-logo:hover {
    background: linear-gradient(135deg, #8b9ff7, #9b6fbd);
    -webkit-background-clip: text;
    background-clip: text;
}

.cupoli-logo-img {
    width: 16px;
    height: 16px;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.cupoli-logo-img:hover {
    transform: scale(1.15);
}

.menu-item {
    font-size: 13px;
    color: var(--text-inverse);
    opacity: 0.9;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

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

/* Dropdown menus */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-menu);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-dropdown);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.menu-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 8px;
}

.shortcut {
    font-size: 12px;
    opacity: 0.6;
}

.dropdown-toggle {
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    position: relative;
    transition: background var(--transition-fast);
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-fast);
}

.dropdown-toggle.active {
    background: var(--control-maximize);
}

.dropdown-toggle.active::after {
    transform: translateX(14px);
}

/* Menu right icons */
.menu-right {
    gap: 4px;
}

.menu-icon-btn {
    position: relative;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

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

.menu-icon-btn svg {
    color: var(--text-inverse);
    opacity: 0.9;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 14px;
    height: 14px;
    background: #ff3b30;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.menu-time {
    font-size: 13px;
    color: var(--text-inverse);
    opacity: 0.95;
    font-weight: 500;
    padding: 0 8px;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   NOTIFICATION CENTER
   ============================================ */

.notification-center {
    position: fixed;
    top: 36px;
    right: 8px;
    width: 340px;
    max-height: 500px;
    background: var(--bg-menu);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-dropdown);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9998;
    overflow-y: auto;
}

.notification-center.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.notif-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-inverse);
}

.notif-header button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.notif-header button:hover {
    opacity: 0.8;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notif-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 4px;
}

.notif-body {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

/* ============================================
   SPOTLIGHT SEARCH
   ============================================ */

.spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    z-index: 99997;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.spotlight-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spotlight-container {
    width: 680px;
    max-width: 90vw;
    background: var(--bg-spotlight);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: transform var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-overlay.visible .spotlight-container {
    transform: scale(1) translateY(0);
}

.spotlight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-input-wrapper svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.spotlight-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    color: var(--text-inverse);
    font-family: inherit;
}

.spotlight-input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.spotlight-shortcut {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

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

.spotlight-category {
    margin-bottom: 8px;
}

.spotlight-category-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 6px;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.spotlight-item:hover,
.spotlight-item.selected {
    background: var(--accent);
}

.spotlight-item-icon {
    font-size: 18px;
}

.spotlight-item-text {
    font-size: 14px;
    color: var(--text-inverse);
}

/* ============================================
   CONTEXT MENU
   ============================================ */

.context-menu {
    position: fixed;
    min-width: 200px;
    background: var(--bg-menu);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: var(--shadow-dropdown);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99996;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all var(--transition-fast);
}

.context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.context-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.context-item:hover {
    background: var(--accent);
}

.context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 8px;
}

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

.desktop {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 76px;
    z-index: 1;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
}

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

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

.desktop-icon:active {
    background: rgba(255, 255, 255, 0.2);
}

.desktop-icon .icon-image {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255,255,255,0.3);
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
    background: linear-gradient(145deg, #6a9dff, #4a7de0);
    position: relative;
    overflow: hidden;
}

/* Glossy effect */
.desktop-icon .icon-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 14px 14px 50% 50%;
}

.desktop-icon:hover .icon-image {
    transform: scale(1.1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 15px rgba(255,255,255,0.1);
}

.desktop-icon .icon-image svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    position: relative;
    z-index: 1;
}

.desktop-icon .icon-image.project-icon {
    background: linear-gradient(145deg, #fcd34d, #f59e0b);
}

.desktop-icon .icon-image.contact-icon {
    background: linear-gradient(145deg, #6ee7b7, #10b981);
}

.desktop-icon .icon-image.terminal-icon {
    background: linear-gradient(145deg, #1f2937, #111827);
}

.desktop-icon span {
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.window {
    position: absolute;
    background: var(--bg-window);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-window);
    min-width: 400px;
    max-width: 90vw;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    resize: both;
}

/* Only animate windows opened after initial load */
.window.animate-open {
    animation: windowOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Make resize handle more visible */
.window::-webkit-resizer {
    background: linear-gradient(135deg, transparent 50%, var(--text-tertiary) 50%);
    border-radius: 0 0 var(--radius-lg) 0;
}

.window-large {
    min-width: 620px;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window.closing {
    animation: windowClose 0.2s ease-out forwards;
}

@keyframes windowClose {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.window.minimizing {
    animation: windowMinimize 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes windowMinimize {
    to {
        opacity: 0;
        transform: scale(0.3) translateY(300px);
    }
}

.window.maximized {
    position: fixed !important;
    top: 28px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 76px !important;
    width: auto !important;
    height: auto !important;
    max-width: none;
    border-radius: 0;
    animation: windowMaximize 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes windowMaximize {
    from { border-radius: var(--radius-lg); }
    to { border-radius: 0; }
}

.window.dragging {
    cursor: grabbing;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--transition-fast);
}

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

/* Window Header */
.window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-window-header);
    border-bottom: 1px solid var(--border-dark);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

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

.window-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.control::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.control.close {
    background: var(--control-close);
}

.control.close:hover {
    background: var(--control-close-hover);
}

.control.close::before {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' stroke='%23000' stroke-width='1.2' stroke-opacity='0.5' fill='none'/%3E%3C/svg%3E") center/8px no-repeat;
}

.control.minimize {
    background: var(--control-minimize);
}

.control.minimize:hover {
    background: var(--control-minimize-hover);
}

.control.minimize::before {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6h7' stroke='%23000' stroke-width='1.2' stroke-opacity='0.5'/%3E%3C/svg%3E") center/8px no-repeat;
}

.control.maximize {
    background: var(--control-maximize);
}

.control.maximize:hover {
    background: var(--control-maximize-hover);
}

.control.maximize::before {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3h6v6H3z' stroke='%23000' stroke-width='1.2' stroke-opacity='0.5' fill='none'/%3E%3C/svg%3E") center/7px no-repeat;
}

.window-header:hover .control::before {
    opacity: 1;
}

.window-title-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.nav-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
    background: var(--bg-active);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn svg {
    color: var(--text-secondary);
}

.window-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
}

.window-toolbar-actions {
    display: flex;
    gap: 8px;
}

.toolbar-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toolbar-icon-btn:hover {
    background: var(--bg-hover);
}

.toolbar-icon-btn svg {
    color: var(--text-secondary);
}

.window-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-left: auto;
}

.window-search svg {
    color: var(--text-tertiary);
}

.window-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 12px;
    color: var(--text-primary);
    width: 120px;
    font-family: inherit;
}

.window-search input::placeholder {
    color: var(--text-tertiary);
}

/* Window Content */
.window-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Window Body (for Finder) */
.window-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Window Status Bar */
.window-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-window-header);
    border-top: 1px solid var(--border-dark);
    font-size: 11px;
    color: var(--text-secondary);
}

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

.finder-body {
    display: flex;
    height: 400px;
}

.finder-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-dark);
    padding: 12px 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

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

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--bg-hover);
}

.sidebar-item.active {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-item svg {
    flex-shrink: 0;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.finder-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.finder-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.finder-breadcrumb .active {
    color: var(--text-primary);
    font-weight: 500;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.finder-item:hover {
    background: var(--bg-hover);
}

.finder-item-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finder-item-icon.folder svg {
    width: 48px;
    height: 48px;
    color: #54a3ff;
}

.finder-item-icon.file svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

.finder-item-icon.file.code svg {
    color: var(--accent);
}

.finder-item-name {
    font-size: 11px;
    color: var(--text-primary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   ABOUT WINDOW
   ============================================ */

.about-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-dark);
}

.about-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856d6, #ff2d55);
    animation: ringRotate 3s linear infinite;
}

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

.avatar-inner {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #5856d6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    border: 3px solid var(--bg-window);
}

.avatar-inner-img {
    position: relative;
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--control-maximize);
    border-radius: 50%;
    border: 3px solid var(--bg-window);
}

.about-intro h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #5856d6, #ff2d55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro .role {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.about-intro .location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.about-intro .location svg {
    color: var(--accent);
}

.about-bio {
    margin-bottom: 28px;
}

.about-bio p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.skills-section {
    margin-bottom: 28px;
}

.skills-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: var(--bg-active);
    transform: translateY(-2px);
}

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

.skill-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.stat-card {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    background: var(--bg-active);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-bar {
    height: 4px;
    background: var(--border-dark);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5856d6);
    border-radius: 2px;
    animation: statFill 1s ease-out;
}

@keyframes statFill {
    from { width: 0 !important; }
}

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

.project-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
}

.project-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.project-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.project-tab.active {
    background: var(--accent);
    color: #fff;
}

.projects-grid {
    display: grid;
    gap: 20px;
}

.project-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.project-card:hover {
    background: var(--bg-active);
    border-color: var(--accent-light);
    transform: translateX(4px);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(88, 86, 214, 0.08));
    border-color: rgba(0, 122, 255, 0.2);
}

.project-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.project-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-icon {
    font-size: 40px;
}

.project-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-details {
    flex: 1;
    min-width: 0;
}

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

.project-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-year {
    font-size: 12px;
    color: var(--text-tertiary);
}

.project-details p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

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

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

.tag {
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

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

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-active);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.project-link:hover {
    background: var(--accent);
    color: #fff;
}

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

.contact-window {
    text-align: center;
}

.contact-hero {
    margin-bottom: 32px;
}

.contact-emoji {
    font-size: 56px;
    margin-bottom: 16px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

.contact-hero h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    max-width: 400px;
    margin: 0 auto;
}

.contact-method:hover {
    background: var(--bg-active);
    transform: translateY(-2px);
}

.contact-method.primary {
    background: linear-gradient(135deg, var(--accent), #5856d6);
    color: #fff;
}

.contact-method.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-info {
    flex: 1;
    text-align: left;
}

.method-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
}

.method-arrow {
    opacity: 0.6;
    transition: transform var(--transition-fast);
}

.contact-method:hover .method-arrow {
    transform: translateX(4px);
}

.contact-socials {
    margin-bottom: 24px;
}

.contact-socials h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-button:hover {
    transform: translateY(-2px);
}

.social-button.github:hover { background: #24292e; color: #fff; }
.social-button.linkedin:hover { background: #0077b5; color: #fff; }
.social-button.twitter:hover { background: #1da1f2; color: #fff; }
.social-button.dribbble:hover { background: #ea4c89; color: #fff; }

.contact-availability {
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
}

.availability-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--control-maximize);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

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

.window-terminal {
    background: #1e1e1e;
    min-width: 500px;
}

.terminal-header {
    background: #323232;
    border-bottom-color: #3c3c3c;
}

.terminal-header .window-title {
    color: #cccccc;
}

.terminal-body {
    padding: 16px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #d4d4d4;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
}

.terminal-welcome {
    margin-bottom: 16px;
}

.ascii-art {
    color: #569cd6;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.terminal-info {
    color: #6a9955;
    margin-bottom: 4px;
}

.terminal-output {
    margin-bottom: 8px;
}

.terminal-line {
    margin-bottom: 4px;
}

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

.terminal-line.output {
    color: #d4d4d4;
}

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

.terminal-line.success {
    color: #4ec9b0;
}

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

.terminal-prompt {
    margin-right: 8px;
    white-space: nowrap;
}

.prompt-user { color: #4ec9b0; }
.prompt-at { color: #d4d4d4; }
.prompt-host { color: #569cd6; }
.prompt-symbol { color: #dcdcaa; margin-left: 4px; }

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #d4d4d4;
    caret-color: #fff;
}

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

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

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-dock);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-dock);
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

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

.dock-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #6a9dff, #4a7de0);
    box-shadow:
        var(--shadow-dock-item),
        inset 0 1px 1px rgba(255,255,255,0.3),
        inset 0 -1px 1px rgba(0,0,0,0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Glossy shine effect */
.dock-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    border-radius: 14px 14px 50% 50%;
    pointer-events: none;
}

.dock-item:hover .dock-icon-wrapper {
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 20px rgba(255,255,255,0.15);
}

.dock-icon-wrapper.about-dock {
    background: linear-gradient(145deg, #c084fc, #a855f7);
}

.dock-icon-wrapper.projects-dock {
    background: linear-gradient(145deg, #fcd34d, #f59e0b);
}

.dock-icon-wrapper.contact-dock {
    background: linear-gradient(145deg, #6ee7b7, #10b981);
}

.dock-icon-wrapper.terminal-dock {
    background: linear-gradient(145deg, #1f2937, #111827);
}

.dock-icon-wrapper.github-dock {
    background: linear-gradient(145deg, #374151, #111827);
}

.dock-icon-svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.dock-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--bg-menu);
    backdrop-filter: blur(20px);
    color: var(--text-inverse);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dock-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dock-indicator.active {
    opacity: 1;
}

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

/* Dock magnification effect on neighbors */
.dock-item:hover + .dock-item {
    transform: translateY(-5px) scale(1.08);
}

.dock-item:has(+ .dock-item:hover) {
    transform: translateY(-5px) scale(1.08);
}

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

@media (max-width: 900px) {
    .window {
        min-width: 340px !important;
        max-width: calc(100vw - 32px);
    }

    .window-large {
        min-width: 360px;
    }

    .desktop-icons {
        display: none;
    }

    .project-card {
        flex-direction: column;
    }

    .project-preview {
        width: 100%;
        height: 120px;
    }

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

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

    .stat-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .menu-left .menu-dropdown:not(:first-child):not(:nth-child(2)) {
        display: none;
    }

    .dock-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .dock-icon-svg {
        width: 24px;
        height: 24px;
    }

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

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

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-card:last-child {
        grid-column: auto;
    }

    .social-buttons {
        flex-direction: column;
    }

    .spotlight-container {
        margin: 16px;
    }

    .login-time {
        font-size: 64px;
    }

    .finder-sidebar {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-window: rgba(255, 255, 255, 0.95);
        --border-dark: rgba(0, 0, 0, 0.2);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orb {
        animation: none;
    }
}

/* Print styles */
@media print {
    .menu-bar, .dock, .boot-screen, .login-screen {
        display: none !important;
    }

    .window {
        position: static !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* ============================================
   NEW APP DOCK COLORS
   ============================================ */

.dock-icon-wrapper.notes-dock {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
}

.dock-icon-wrapper.music-dock {
    background: linear-gradient(145deg, #ec4899, #db2777);
}

.dock-icon-wrapper.calculator-dock {
    background: linear-gradient(145deg, #6b7280, #4b5563);
}

.dock-icon-wrapper.weather-dock {
    background: linear-gradient(145deg, #60a5fa, #3b82f6);
}

.dock-icon-wrapper.settings-dock {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
}

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

.window-calculator {
    min-width: 280px !important;
    max-width: 280px;
}

.calculator-body {
    background: #1c1c1e;
    padding: 16px;
}

.calc-display {
    text-align: right;
    padding: 16px 8px;
    margin-bottom: 16px;
}

.calc-history {
    font-size: 14px;
    color: #8e8e93;
    height: 20px;
    margin-bottom: 8px;
}

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

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

.calc-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: #333;
    color: #fff;
}

.calc-btn:hover {
    opacity: 0.8;
}

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

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

.calc-btn.op {
    background: #ff9f0a;
    color: #fff;
}

.calc-btn.op:hover {
    background: #ffb340;
}

.calc-btn.zero {
    grid-column: span 2;
    border-radius: 36px;
    aspect-ratio: auto;
    padding: 0 24px;
    text-align: left;
}

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

.window-notes {
    min-width: 700px;
}

.notes-body {
    display: flex;
    height: 450px;
}

.notes-sidebar {
    width: 160px;
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-dark);
    padding: 12px 8px;
}

.notes-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notes-folder:hover {
    background: var(--bg-hover);
}

.notes-folder.active {
    background: var(--accent-light);
    color: var(--accent);
}

.notes-folder svg {
    flex-shrink: 0;
    color: var(--accent);
}

.notes-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-tertiary);
}

.notes-list {
    width: 200px;
    border-right: 1px solid var(--border-dark);
    overflow-y: auto;
}

.note-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.note-item:hover {
    background: var(--bg-hover);
}

.note-item.active {
    background: var(--accent-light);
}

.note-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.note-preview {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.note-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

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

.notes-editor-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.note-title-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    margin-bottom: 4px;
}

.note-modified {
    font-size: 11px;
    color: var(--text-tertiary);
}

.note-content {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    outline: none;
}

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

.window-music {
    min-width: 320px !important;
    max-width: 320px;
}

.music-body {
    padding: 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
}

.music-artwork {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.artwork-placeholder svg {
    color: rgba(255,255,255,0.8);
}

.artwork-reflection {
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 30px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    filter: blur(10px);
    border-radius: 50%;
}

.music-info {
    text-align: center;
    margin-bottom: 24px;
}

.music-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.music-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.music-progress {
    margin-bottom: 20px;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: var(--border-dark);
    border-radius: 2px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.music-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.music-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.music-btn.play-btn {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-volume svg {
    color: var(--text-tertiary);
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: var(--border-dark);
    border-radius: 2px;
}

.volume-fill {
    height: 100%;
    background: var(--text-tertiary);
    border-radius: 2px;
}

/* ============================================
   WEATHER
   ============================================ */

.window-weather {
    min-width: 300px !important;
    max-width: 300px;
}

.weather-body {
    padding: 24px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
}

.weather-current {
    text-align: center;
    margin-bottom: 24px;
}

.weather-icon svg {
    color: #fcd34d;
    filter: drop-shadow(0 4px 12px rgba(252, 211, 77, 0.4));
}

.weather-temp {
    font-size: 64px;
    font-weight: 200;
    margin: 8px 0;
}

.weather-desc {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.weather-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 16px;
}

.weather-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
}

.forecast-day {
    text-align: center;
}

.forecast-day .day-name {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.forecast-day svg {
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.forecast-day .day-temp {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   SETTINGS
   ============================================ */

.window-settings {
    min-width: 600px;
}

.settings-body {
    display: flex;
    height: 420px;
}

.settings-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-dark);
    padding: 12px 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.settings-item:hover {
    background: var(--bg-hover);
}

.settings-item.active {
    background: var(--accent-light);
    color: var(--accent);
}

.settings-item svg {
    flex-shrink: 0;
}

.settings-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.theme-options {
    display: flex;
    gap: 16px;
}

.theme-option {
    text-align: center;
    cursor: pointer;
}

.theme-preview {
    width: 80px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

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

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

.theme-preview.auto {
    background: linear-gradient(135deg, #f5f5f7 50%, #2c2c2e 50%);
}

.theme-option.active .theme-preview {
    border-color: var(--accent);
}

.theme-option span {
    font-size: 12px;
    color: var(--text-secondary);
}

.theme-option.active span {
    color: var(--accent);
}

.accent-options {
    display: flex;
    gap: 12px;
}

.accent-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--accent);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.accent-btn:hover {
    transform: scale(1.1);
}

.accent-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-window);
}

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

.wallpaper-option {
    cursor: pointer;
}

.wallpaper-preview {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.wallpaper-option.active .wallpaper-preview {
    border-color: var(--accent);
}

.wallpaper-option:hover .wallpaper-preview {
    transform: scale(1.02);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dark);
}

.setting-row span {
    font-size: 14px;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.setting-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-dark);
    -webkit-appearance: none;
    cursor: pointer;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.about-system {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
}

.system-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.system-logo-img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.system-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.system-version {
    font-size: 13px;
    color: var(--text-secondary);
}

.system-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 13px;
}

.system-details .detail-row span:first-child {
    color: var(--text-secondary);
}

.system-details .detail-row span:last-child {
    color: var(--text-primary);
}

/* More wallpaper options */
.wallpaper-5 .bg-gradient { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.wallpaper-6 .bg-gradient { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }

/* ============================================
   FEATURED PROJECT CARDS - PATCHIFY & PROFITPANEL
   ============================================ */

/* Patchify Styling */
.project-patchify .project-preview {
    background: linear-gradient(145deg, #0d9488 0%, #14b8a6 50%, #5eead4 100%);
}

.patchify-preview {
    position: relative;
    overflow: hidden;
}

/* Glossy shine overlay */
.patchify-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px 20px 60% 60%;
    pointer-events: none;
    z-index: 1;
}

/* Project logo base styles are in the PostHog enhancement section */

.patchify-tag {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #0d9488 !important;
}

/* ProfitPanel Styling */
.project-profitpanel .project-preview {
    background: linear-gradient(145deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.profitpanel-preview {
    position: relative;
    overflow: hidden;
}

/* Glossy shine overlay */
.profitpanel-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px 20px 60% 60%;
    pointer-events: none;
    z-index: 1;
}

/* Project preview enhancements */
.project-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profitpanel-tag {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #16a34a !important;
}

/* Live Badge */
.live-badge {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.9) !important;
    backdrop-filter: blur(4px);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

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

/* Project Tagline */
.project-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px !important;
    font-style: italic;
}

/* Project Features */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.feature-chip {
    padding: 4px 10px;
    background: var(--bg-hover);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Primary Link (external) */
.project-link.primary-link {
    background: var(--accent);
    color: #fff !important;
}

.project-link.primary-link:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* Glassmorphism enhancements */
.window {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Project Card Hover Enhancements */
.project-patchify:hover,
.project-profitpanel:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-patchify:hover .project-preview {
    box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

.project-profitpanel:hover .project-preview {
    box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

/* Featured cards get more width for preview */
.project-card.featured .project-preview {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.project-card.featured .project-details p {
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================
   EXTRA VISUAL POLISH
   ============================================ */

/* Smooth hover glow on dock */
.dock-item:hover .dock-icon-wrapper {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* Window focus ring */
.window.focused {
    box-shadow:
        var(--shadow-window),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Subtle gradient overlay on windows */
.window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 0;
}

/* Button press effect */
.calc-btn:active,
.dock-item:active,
.project-tab:active {
    transform: scale(0.95);
}

/* Smoother text rendering */
h1, h2, h3, .stat-number, .weather-temp {
    text-rendering: optimizeLegibility;
}

/* Gradient text on hover for project titles */
.project-card:hover h3 {
    background: linear-gradient(135deg, var(--accent), #5856d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulsing notification badge */
.notification-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Menu bar subtle gradient */
.menu-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Project preview shine effect */
.project-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .project-preview::after {
    transform: translateX(100%);
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

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

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

/* Selection styling */
::selection {
    background: var(--accent);
    color: #fff;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smoother animations for reduced motion users handled above */

/* Stats counter animation */
.stat-number {
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   POSTHOG-STYLE VISUAL ENHANCEMENTS
   ============================================ */

/* Floating particles container */
.bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; animation-delay: -3s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; animation-delay: -12s; animation-duration: 18s; }
.particle:nth-child(7) { left: 70%; animation-delay: -2s; animation-duration: 24s; }
.particle:nth-child(8) { left: 80%; animation-delay: -7s; animation-duration: 21s; }
.particle:nth-child(9) { left: 90%; animation-delay: -15s; animation-duration: 27s; }
.particle:nth-child(10) { left: 95%; animation-delay: -4s; animation-duration: 19s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* Star sparkles */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 15%; left: 25%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; left: 75%; animation-delay: -1s; }
.sparkle:nth-child(3) { top: 60%; left: 15%; animation-delay: -2s; }
.sparkle:nth-child(4) { top: 45%; left: 85%; animation-delay: -0.5s; }
.sparkle:nth-child(5) { top: 80%; left: 45%; animation-delay: -1.5s; }

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

/* Dock ambient glow effect */
.dock-container {
    position: relative;
}

.dock-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}

/* Individual dock icon glow on hover */
.dock-item:hover .dock-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

/* Vibrant icon colors with better gradients */
.dock-icon-wrapper.finder-dock {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}

.dock-icon-wrapper.notes-dock {
    background: linear-gradient(145deg, #fbbf24, #d97706);
}

.dock-icon-wrapper.music-dock {
    background: linear-gradient(145deg, #f472b6, #db2777);
}

.dock-icon-wrapper.calculator-dock {
    background: linear-gradient(145deg, #6b7280, #374151);
}

.dock-icon-wrapper.weather-dock {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.dock-icon-wrapper.settings-dock {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
}

/* Enhanced project logo styles - clean glassmorphism */
.project-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: none;
    padding: 0;
    border-radius: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover .project-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* Project card shine sweep animation */
.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card.featured:hover::before {
    left: 100%;
}

/* Patchify & ProfitPanel gradients are defined in their main styling sections above */

/* Subtle rainbow border animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.project-card.featured {
    position: relative;
}

.project-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: conic-gradient(
        from var(--angle),
        #14b8a6, #22c55e, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #14b8a6
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 4s linear infinite;
}

.project-card.featured:hover::after {
    opacity: 0.5;
}

@keyframes borderRotate {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

/* Improved boot screen visuals */
.boot-cupoli {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.boot-cupoli::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
}

/* Login screen enhancement */
.login-screen {
    background:
        radial-gradient(ellipse at top, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Avatar glow effect */
.avatar-circle {
    position: relative;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

/* Window header subtle gradient */
.window-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
}

/* Subtle scan line effect on windows (retro aesthetic) */
.window-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
}

/* Enhanced menu bar */
.menu-bar {
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.85) 100%);
}

/* Dock reflection effect */
.dock::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    filter: blur(5px);
    pointer-events: none;
    opacity: 0.5;
    mask-image: linear-gradient(to top, transparent, black);
    -webkit-mask-image: linear-gradient(to top, transparent, black);
}
