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

:root {
    --window-bg: #f6f6f6;
    --sidebar-bg: #e8e8e8;
    --content-bg: #ffffff;
    --border-color: #d1d1d1;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-blue: #007aff;
    --accent-hover: #0056cc;
    --red: #ff5f57;
    --yellow: #ffbd2e;
    --green: #28ca42;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --window-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #2c2c2c;
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    padding: 20px;
}

/* Desktop Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,119,198,0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(120,219,226,0.15) 0%, transparent 50%);
    z-index: -1;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    color: white;
    z-index: 2000;
    justify-content: space-between;
}

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

.apple-logo {
    font-size: 16px;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

/* Main Window */
.window {
    background: var(--window-bg);
    border-radius: 8px;
    box-shadow: var(--window-shadow);
    height: calc(100vh - 40px);
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Window Header */
.window-header {
    height: 28px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

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

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.control-red { background: var(--red); }
.control-yellow { background: var(--yellow); }
.control-green { background: var(--green); }

.window-control:hover { opacity: 0.8; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Main Content Area */
.window-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 12px 0;
    overflow-y: auto;
}

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

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 8px;
}

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

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

.sidebar-icon {
    width: 16px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    background: var(--content-bg);
    overflow-y: auto;
    padding: 32px 40px;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    height: 100%;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Profile Hero */
.profile-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #34d399;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-intro {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.profile-title {
    font-size: 16px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.action-btn.primary {
    background: var(--accent-blue);
    color: white;
}

.action-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #f8f8f8;
    color: var(--text-primary);
    border: 1px solid #e8e8e8;
}

.action-btn.secondary:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

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

.stat-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* What I Do */
.what-i-do {
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
}

.what-i-do h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.capability-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s;
}

.capability-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.capability-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.capability-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.capability-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
}

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

/* Tech Stack */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-skill {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.2s;
}

.tech-skill.advanced {
    background: #e8f5e8;
    color: #22c55e;
    border-color: #bbf7d0;
}

.tech-skill.intermediate {
    background: #fef3c7;
    color: #f59e0b;
    border-color: #fed7aa;
}

.tech-skill:hover {
    transform: translateY(-1px);
}

/* Quick Info */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.status-available {
    color: #22c55e;
}

/* Recent Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.activity-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.project-image {
    height: 140px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.project-content {
    padding: 20px;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-tag {
    background: #e8f4fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

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

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

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

/* Experience Timeline */
.timeline {
    max-width: 700px;
}

.timeline-item {
    margin-bottom: 32px;
    padding: 20px;
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

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

.timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-period {
    font-size: 12px;
    color: var(--text-secondary);
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.timeline-company {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.contact-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 18px;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .sidebar {
        width: 180px;
    }

    .content-area {
        padding: 20px;
    }

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

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

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

    .profile-actions {
        justify-content: center;
    }
}