@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #f5f1e8;
    position: relative;
}

/* Windows System */
#windows-container {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 1000;
    pointer-events: none;
}

.window {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    pointer-events: auto;
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.window.dragging {
    transition: none;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 1px rgba(0, 0, 0, 0.15);
}

.window.active {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.2),
        0 0 1px rgba(0, 0, 0, 0.15);
}

.window.maximized {
    border-radius: 0;
    transition: all 0.3s ease;
}

.window.maximized .window-title-bar {
    border-radius: 0;
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

.resize-n, .resize-s {
    width: 100%;
    height: 5px;
    left: 0;
    cursor: ns-resize;
}

.resize-e, .resize-w {
    width: 5px;
    height: 100%;
    top: 0;
    cursor: ew-resize;
}

.resize-n {
    top: 0;
}

.resize-s {
    bottom: 0;
}

.resize-e {
    right: 0;
}

.resize-w {
    left: 0;
}

.resize-nw, .resize-ne, .resize-sw, .resize-se {
    width: 12px;
    height: 12px;
}

.resize-nw {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.resize-ne {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.resize-sw {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

.resize-se {
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
}

/* Hide resize handles when maximized */
.window.maximized .resize-handle {
    display: none;
}

/* Snap Preview Overlay */
.snap-preview {
    position: fixed;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 8px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: all 0.2s ease;
}

.snap-preview.show {
    opacity: 1;
}

.window-title-bar {
    background: rgba(245, 241, 232, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.window-title-bar:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: rgba(0, 0, 0, 0);
    font-weight: bold;
}

.window-button:hover {
    color: rgba(0, 0, 0, 0.6);
}

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

.window-button.close::before {
    content: '×';
    font-size: 14px;
    line-height: 1;
}

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

.window-button.minimize::before {
    content: '−';
    font-size: 10px;
    line-height: 1;
}

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

.window-button.maximize::before {
    content: '⤢';
    font-size: 9px;
    line-height: 1;
}

.window-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    background: #ffffff;
}

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

.window-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

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

/* Window content styling */
.window-content h1 {
    font-size: 32px;
    font-weight: 450;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.window-content h2 {
    font-size: 20px;
    font-weight: 450;
    margin: 40px 0 20px;
    color: #1a1a1a;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.window-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.window-content h3 {
    font-size: 20px;
    font-weight: 450;
    margin: 25px 0 10px;
    color: #1a1a1a;
}

.window-content p {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
}

.window-content a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease;
}

.window-content a:hover {
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.6);
}

.window-content ul, .window-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.window-content li {
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
}

.window-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
    color: #888;
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Writing/Blog items in windows */
.window-content .writing-item {
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.window-content .writing-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.window-content .writing-item .date {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.window-content .writing-item h3 {
    font-size: 22px;
    font-weight: 450;
    margin: 0 0 8px 0;
}

.window-content .writing-item .description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Contact items in windows */
.window-content .contact-links {
    margin-top: 30px;
}

.window-content .contact-item {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.window-content .contact-item .label {
    color: #888;
    font-size: 15px;
    min-width: 90px;
    font-weight: 400;
}

/* Experience items in windows */
.window-content .experience-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.window-content .experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.window-content .experience-item .exp-header h3 {
    margin: 0 0 5px 0;
}

.window-content .experience-item .company {
    font-size: 17px;
    color: #666;
    font-weight: 400;
}

.window-content .experience-item .meta {
    color: #888;
    font-size: 15px;
    margin: 8px 0 15px 0;
    font-weight: 400;
}

.window-content .experience-item ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.window-content .experience-item li {
    margin-bottom: 10px;
}

/* About layout in windows */
.window-content .about-layout {
    display: block;
}

.window-content .intro-text {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.window-content .contact-text {
    font-size: 17px;
}

/* Menu Bar (macOS style) */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    z-index: 10000;
    font-size: 13px;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.menu-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

.menu-item {
    padding: 2px 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 3px;
    font-weight: 500;
}

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

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

.menu-icon {
    padding: 2px 6px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.menu-icon:hover {
    opacity: 0.7;
}

.menu-time {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
}

/* Desktop Area */
.desktop {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 70px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(210, 200, 180, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 220, 200, 0.2), transparent 50%),
        #f5f1e8;
    overflow: hidden;
}

/* Desktop Icons Grid */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(2, 110px);
    grid-template-rows: repeat(auto-fill, 120px);
    gap: 22px;
    z-index: 100;
}

.desktop-icon {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.desktop-icon.selected {
    background: rgba(0, 0, 0, 0.06);
}

.icon-image {
    width: 80px;
    height: 80px;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-icon:hover .icon-image {
    transform: scale(1.05);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.icon-label {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    max-width: 110px;
    word-wrap: break-word;
}

.desktop-icon.dragging-icon {
    opacity: 0.8;
    cursor: grabbing !important;
}

/* Central Feature Card */
.central-feature {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
}

.feature-card {
    background: transparent;
    padding: 5px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-image {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.greeting {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

/* Special Desktop Icons (bottom right) */
.desktop-shortcuts {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.special-icon {
    width: 110px;
}

/* Dock (macOS style) */
.dock {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 10px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

.dock-item {
    width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    gap: 3px;
}

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

.dock-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dock-label {
    font-size: 11px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dock-separator {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 6px;
}

/* Minimized Window Indicators in Dock */
.minimized-indicator {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.minimized-indicator:hover {
    transform: translateY(-8px) scale(1.1);
}

.minimized-icon {
    width: 40px;
    height: 40px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.minimized-indicator:hover .minimized-icon {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dot indicator under minimized icon */
.minimized-indicator::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

/* Notification (for Stage 1 feedback) */
.notification {
    position: fixed;
    top: 40px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mobile Responsive (simplified) */
@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    .desktop {
        position: relative;
        min-height: 100vh;
        bottom: auto;
    }

    .desktop-icons {
        grid-template-columns: repeat(2, 100px);
        gap: 18px;
        position: relative;
        padding: 20px;
    }

    .desktop-icon {
        width: 100px;
    }

    .feature-card {
        padding: 15px 18px;
    }

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

    .greeting {
        font-size: 12px;
    }

    .central-feature {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        padding: 15px;
        display: flex;
        justify-content: center;
    }

    .desktop-shortcuts {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        padding: 20px;
        justify-content: center;
    }

    .dock {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        padding: 8px 12px;
        gap: 8px;
        justify-content: center;
    }

    .dock-item {
        width: 55px;
        height: 55px;
    }

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

    .menu-bar {
        font-size: 11px;
        padding: 15px 12px;
    }

    .menu-left {
        gap: 8px;
    }

    .menu-item {
        padding: 2px 6px;
    }

    .menu-item.logo {
        font-size: 12px;
    }

    /* Hide non-essential menu items on mobile */
    .menu-item:not(.logo) {
        display: none;
    }

    /* Window responsiveness */
    #windows-container {
        top: 0;
        bottom: 0;
    }

    .window {
        min-width: 95vw !important;
        min-height: 80vh !important;
        left: 2.5vw !important;
        top: 10vh !important;
        width: 95vw !important;
        height: 80vh !important;
    }

    .window-content {
        padding: 15px 20px;
        font-size: 16px;
    }

    .window-title-bar {
        padding: 10px 12px;
    }

    .window-title {
        font-size: 12px;
    }

    /* Hide resize handles on mobile */
    .resize-handle {
        display: none !important;
    }

    /* Disable snap preview on mobile */
    .snap-preview {
        display: none !important;
    }
}

/* Smooth scrolling for future stages */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

/* Timer Styles */
.timer-container {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    max-width: 600px;
    margin: 0 auto;
}

.session-input-container {
    width: 100%;
    max-width: 500px;
}

.session-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.session-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.session-input::placeholder {
    color: #999;
}

.timer-progress-container {
    width: 100%;
    max-width: 500px;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    border-radius: 2px;
    transition: width 0.5s linear;
}

.timer-display {
    font-size: 96px;
    font-weight: 200;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin: 30px 0;
    text-align: center;
    line-height: 1;
}

.timer-controls {
    display: flex;
    gap: 12px;
}

.timer-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.timer-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timer-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

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

.timer-presets {
    width: 100%;
    max-width: 500px;
}

.timer-presets h3 {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.preset-btn {
    padding: 9px 18px;
    margin: 0 5px 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.preset-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.preset-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timer-status {
    font-size: 15px;
    color: #666;
    text-align: center;
    font-weight: 400;
    margin-top: 5px;
}

.timer-log-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.timer-btn.secondary {
    background: white;
    color: #666;
    font-size: 13px;
    padding: 10px 20px;
    border-color: rgba(0, 0, 0, 0.08);
}

.timer-btn.secondary:hover:not(:disabled) {
    background: #fafafa;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.15);
}

