:root {
    /* Colors */
    --bg: #ffffff;
    --text: #171717;
    --text-muted: #737373;
    --text-accent: #0969da;
    --border: #e5e5e5;

    /* Typography */
    --font-sans: 'Inter var', 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --container-width: 600px;
    --nav-height: 60px;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --text-muted: #737373;
    --text-accent: #58a6ff;
    --border: #262626;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background 0.2s, color 0.2s;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background 0.2s;
}

[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.8);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-accent);
    background: rgba(9, 105, 218, 0.1);
}

[data-theme="dark"] .nav-link.active {
    background: rgba(88, 166, 255, 0.1);
}

.nav-controls {
    position: absolute;
    right: 0;
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.theme-toggle:hover {
    color: var(--text);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.mobile-menu-toggle:hover {
    color: var(--text);
}

.nav-mobile-spacer {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .nav-mobile-spacer {
        display: block;
        flex: 1;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: var(--space-3) var(--space-4);
        border-radius: 0.375rem;
    }
}

/* Main Content */
.main {
    margin-top: var(--nav-height);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-6);
}

/* Hero */
.hero {
    padding: var(--space-16) 0;
    text-align: center;
}

.hero-profile-image {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--text-accent);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
}

.hero-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-intro.content-loaded {
    opacity: 1;
}

.hero-intro a {
    color: var(--text-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.social-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.social-link:hover {
    background: var(--text-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-text {
    margin-left: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-actions.content-loaded {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: 0.5rem;
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-accent);
    color: var(--bg);
    border-color: var(--text-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-accent);
    border-color: var(--text-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

.content {
    text-align: left;
}

.content h1,
.content h2,
.content h3 {
    margin: var(--space-6) 0 var(--space-4) 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    line-height: 1.7;
}

.content ul,
.content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.content li {
    margin-bottom: var(--space-2);
    color: var(--text-muted);
}

.content a {
    color: var(--text-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content blockquote {
    border-left: 3px solid var(--text-accent);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-muted);
}

.content code {
    background: var(--border);
    padding: var(--space-1) var(--space-2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'SF Mono', Consolas, monospace;
}

.content pre {
    background: var(--border);
    padding: var(--space-4);
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--text-accent);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 var(--space-4);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: var(--space-6) 0;
        flex-direction: column;
        gap: var(--space-2);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(10, 10, 10, 0.95);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-link {
        padding: var(--space-3) var(--space-6);
        margin: 0 var(--space-6);
        text-align: center;
        border-radius: 0.5rem;
        font-size: 1rem;
    }

    .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
        border-bottom-color: var(--border);
    }

    [data-theme="dark"] .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
        background: rgba(9, 105, 218, 0.1);
        border-bottom-color: var(--text-accent);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-controls {
        position: static;
        gap: var(--space-2);
    }

    /* Add a spacer div to center the menu on mobile */
    .nav-mobile-spacer {
        display: block;
        width: 60px;
        /* Approximate width of controls */
    }

    .main {
        padding: 0 var(--space-4);
    }

    .hero-title {
        font-size: 2rem;
    }

    .social-links {
        gap: var(--space-3);
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Freelance Projects Section */
.freelance-projects,
.latest-products,
#dashboard {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
    display: none; /* Hidden by default, shown by JS if enabled */
}

.freelance-projects.section-visible,
.latest-products.section-visible,
#dashboard.section-visible {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
}

.section-actions {
    text-align: center;
    margin-top: var(--space-8);
}

.btn-outline {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
    padding: var(--space-3) var(--space-6);
    border-radius: 0.5rem;
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-outline:hover {
    background: var(--text-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

/* Projects Container */
.projects-container,
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

/* Client Boxes for Projects Container */
.projects-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
    max-width: 100%;
}

/* Client Box Styles */
.client-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
}

.client-box:hover {
    border-color: var(--text-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .client-box:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

.client-logo {
    font-size: 2rem;
    margin-bottom: var(--space-1);
    filter: grayscale(1);
    transition: filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.client-logo-emoji {
    font-size: 2rem;
}

.client-box:hover .client-logo {
    filter: grayscale(0);
}

.client-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.client-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.client-status.status-completed {
    background: #10b981;
}

.client-status.status-in-progress {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

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

/* Product Card Styles (keep existing) */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-accent), #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

.product-card:active {
    transform: translateY(-2px) scale(0.98);
}

.project-header,
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.project-title,
.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.project-status,
.product-status {
    padding: var(--space-1) var(--space-2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-launched {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.project-description,
.product-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}

.project-tech,
.product-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tech-tag {
    background: var(--border);
    color: var(--text);
    padding: var(--space-1) var(--space-2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-meta,
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.project-client,
.product-users {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-date,
.product-version {
    font-size: 0.875rem;
    color: var(--text-accent);
    font-weight: 500;
}

.project-links,
.product-links {
    display: flex;
    gap: var(--space-2);
}

.project-link,
.product-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
    padding: var(--space-1);
    border-radius: 4px;
}

.project-link:hover,
.product-link:hover {
    color: var(--text-accent);
    background: rgba(9, 105, 218, 0.1);
}

/* Loading states */
.projects-loading,
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--text-accent);
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--space-2);
}

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

/* Dashboard Analytics */
.dashboard {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-8);
    text-align: center;
    letter-spacing: -0.01em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.dashboard-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--text-accent);
}

[data-theme="dark"] .dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card-icon {
    width: 20px;
    height: 20px;
    color: var(--text-accent);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: var(--space-2);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.chart-container {
    position: relative;
    height: 200px;
    margin-top: var(--space-4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-accent);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.trending-list {
    list-style: none;
    padding: 0;
}

.trending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-name {
    font-weight: 500;
    color: var(--text);
}

.trending-value {
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.875rem;
}

.activity-timeline {
    position: relative;
    padding-left: var(--space-6);
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: var(--space-2);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.activity-item {
    position: relative;
    padding-bottom: var(--space-4);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-6) + var(--space-1));
    top: var(--space-1);
    width: 8px;
    height: 8px;
    background: var(--text-accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--text);
    margin-top: var(--space-1);
}

/* Dashboard Sections */
.dashboard-section {
    margin-top: var(--space-12);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: var(--text);
}

/* Skills Progress */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.skill-item {
    padding: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.skill-name {
    font-weight: 500;
    color: var(--text);
}

.skill-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-accent);
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
    animation: progressExpand 2s ease;
}

/* Recent Activity */
.activity-container {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-1);
}

.activity-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Stats Grid */
.stat-item {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
}

/* Code Quality */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.quality-metric {
    padding: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

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

.metric-progress {
    height: 100%;
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* Learning Progress */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.learning-item {
    padding: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.learning-topic {
    font-weight: 500;
    color: var(--text);
}

.learning-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-accent);
}

.learning-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.learning-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.learning-target {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressExpand {
    from {
        width: 0;
    }

    to {
        width: var(--progress-width, 0%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .chart-container {
        height: 180px;
    }

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

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

    .card-value,
    .stat-number {
        font-size: 1.5rem;
    }

    .dashboard-section {
        margin-top: var(--space-8);
    }

    /* New sections mobile styles */
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--space-2);
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .client-box {
        padding: var(--space-3);
        min-height: 100px;
        gap: var(--space-1);
    }

    .client-logo {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .client-name {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .client-status {
        width: 6px;
        height: 6px;
        top: 6px;
        right: 6px;
    }

    .product-card {
        padding: var(--space-4);
    }

    .product-title {
        font-size: 1.125rem;
    }

    .product-tech {
        gap: var(--space-1);
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: var(--space-1);
    }

    .product-meta {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
}

/* Hidden */
.hidden {
    display: none;
}