/* ===================================
   CSS Variables & Theme
   =================================== */
:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #dbeafe;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-light: #1e3a5f;
    --border: #334155;
    --border-hover: #475569;
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
}

/* ===================================
   Base Styles
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Keyboard focus visibility (accessibility) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Language Toggle */
.lang-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.lang-toggle .lang-text {
    display: block;
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger-line:nth-child(3) {
    margin-top: 5px;
}

/* Hamburger animation when open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

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

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

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* ===================================
   Hero Section (Unified)
   =================================== */
.hero-unified {
    min-height: 100vh;
    padding: 100px 24px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-primary);
}

.hero-unified-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Profile Section (Left) */
.profile-section {
    padding-right: 40px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-name {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.profile-summary strong {
    color: var(--text-primary);
}

.profile-metrics {
    display: flex;
    gap: 32px;
}

.profile-metric {
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.metric-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Capabilities Section (Right) */
.capabilities-section {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.expertise-grid-unified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.expertise-card-unified {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.expertise-card-unified:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.expertise-icon-unified {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
}

.expertise-content-unified h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.expertise-content-unified p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tech-stack-unified {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tech-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tech-tags-unified {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Certifications Bar */
.certifications-bar {
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-icon {
    font-size: 1.2rem;
}

.cert-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive for Unified Hero */
@media (max-width: 1024px) {
    .hero-unified-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-section {
        padding-right: 0;
        text-align: center;
    }

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

    .certifications-bar {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .profile-name {
        font-size: 2.5rem;
    }

    .profile-metrics {
        flex-direction: column;
        gap: 12px;
    }

    .profile-metric {
        padding: 12px 16px;
    }

    .expertise-grid-unified {
        grid-template-columns: 1fr;
    }

    .certifications-bar {
        padding: 16px 20px;
        gap: 16px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

/* Code Window */
.hero-visual {
    flex: 1;
    max-width: 520px;
}

.code-window {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    margin-left: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.code-content {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--code-text);
}

.code-content .keyword { color: #c792ea; }
.code-content .namespace { color: #82aaff; }
.code-content .class { color: #ffcb6b; }
.code-content .type { color: #82aaff; }
.code-content .function { color: #82aaff; }
.code-content .string { color: #c3e88d; }
.code-content .comment { color: #546e7a; }

/* ===================================
   Sections
   =================================== */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* ===================================
   About Section
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.highlight-card:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    margin-bottom: 16px;
}

.highlight-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   Expertise Section
   =================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.expertise-category {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.expertise-category:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.expertise-icon {
    font-size: 1.5rem;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ===================================
   Projects Section
   =================================== */

/* Project Filter Tabs */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.project-category {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.project-category.hidden {
    display: none;
}

@media (max-width: 768px) {
    .project-filters {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

.projects-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.project-card.featured {
    padding: 36px;
}

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

.project-icon {
    font-size: 2rem;
}

.project-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-badge {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.project-stars {
    color: var(--warning);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card:not(.featured) .project-title {
    font-size: 1.1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    word-break: keep-all;
}

.project-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.project-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.project-stat {
    flex: 1;
    text-align: center;
}

.project-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.project-stat .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.project-link {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.project-period {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-duration {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

[data-theme="dark"] .project-duration {
    background: rgba(96, 165, 250, 0.15);
}

.project-company {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-company-small {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-details {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.project-details li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.project-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.projects-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.projects-note {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

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

/* Open Source Projects */
.opensource-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.project-card.opensource {
    border-left: 3px solid var(--accent);
}

.project-card.opensource:hover {
    border-left-color: var(--accent-hover);
}

.project-card .github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.project-card .github-link:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.project-card .project-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0;
    background: none;
}

.project-card .star-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 600;
}

.project-card .star-count::before {
    content: '★';
}

.opensource-cta {
    text-align: center;
    margin-top: 32px;
}

.opensource-cta .btn {
    display: inline-flex;
    align-items: center;
}

/* Role Badges */
.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.architect {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-badge.lead {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge.core-dev {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-badge.qa-doc {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Project Metrics */
.project-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
    min-width: 90px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.metric-change {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.metric-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Expand Button */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.expand-btn[aria-expanded="true"] {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.expand-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.expand-icon {
    transition: transform 0.3s ease;
}

/* Expandable Content */
.project-expanded {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.project-card.expanded .project-expanded {
    display: block;
}

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

.expanded-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.expanded-section:last-child {
    margin-bottom: 0;
}

.expanded-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expanded-section h4::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
}

.expanded-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expanded-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.expanded-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Certification Badges */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Responsive adjustments for expanded content */
@media (max-width: 768px) {
    .project-metrics {
        flex-direction: column;
        gap: 12px;
    }

    .metric {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .metric-value {
        font-size: 1.1rem;
    }
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.language-card {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.language-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.language-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.language-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   Lifecycle Diagram Section
   =================================== */
.lifecycle-diagram {
    max-width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    padding: 20px 0;
}

.lifecycle-svg {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.lifecycle-phase {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lifecycle-phase:hover {
    transform: translateY(-5px);
}

.lifecycle-phase:hover rect {
    opacity: 1 !important;
}

.lifecycle-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.lifecycle-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.lifecycle-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.lifecycle-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.lifecycle-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lifecycle-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .lifecycle-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lifecycle-details {
        grid-template-columns: 1fr;
    }

    .lifecycle-svg {
        min-width: 600px;
    }
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonial-highlight {
    max-width: 800px;
    margin: 0 auto 60px;
}

.testimonial-featured {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 40px;
    border-radius: 20px;
    color: white;
    position: relative;
}

.testimonial-featured::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-quote strong {
    color: #fef08a;
}

.testimonial-featured .testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-featured .author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-featured .author-role {
    opacity: 0.9;
    font-size: 0.9rem;
}

.testimonial-featured .author-relation {
    opacity: 0.7;
    font-size: 0.85rem;
}

.testimonial-featured .testimonial-labels {
    margin-top: 16px;
    margin-bottom: 16px;
}

.testimonial-featured .testimonial-label {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-text strong {
    color: var(--text-primary);
}

.testimonial-card .testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-card .author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-card .author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-card .author-relation {
    font-size: 0.8rem;
    color: var(--accent);
}

/* Testimonial Metadata */
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

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

.testimonial-context {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Testimonial Strength Labels */
.testimonial-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.testimonial-label {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.testimonial-label.leadership {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.testimonial-label.technical {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.testimonial-label.communication {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.testimonial-label.mentoring {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.testimonial-label.domain {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-featured {
        padding: 28px;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}

/* ===================================
   Timeline / Career Section
   =================================== */
.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--accent);
    background: var(--accent);
}

.timeline-item.highlight .timeline-marker {
    border-color: var(--accent);
    background: var(--accent);
    width: 16px;
    height: 16px;
    left: -7px;
    top: 4px;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
}

.timeline-item.highlight .timeline-content {
    border-color: var(--accent);
    border-width: 2px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-duration {
    color: var(--accent);
    font-weight: 500;
}

.timeline-badge {
    background: var(--success);
    color: white;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.timeline-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-description strong {
    color: var(--text-primary);
}

.timeline-achievements {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.timeline-achievements strong {
    color: var(--text-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-note {
    margin: 16px 0;
    padding: 16px;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.timeline-note p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.timeline-note strong {
    color: var(--accent);
}

.timeline-company-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 4px 0 12px 0;
}

.timeline-responsibilities {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 12px 0;
    line-height: 1.6;
}

.timeline-responsibilities strong {
    color: var(--text-primary);
}

.timeline-scale {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 12px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-scale .scale-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-scale strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-leave-reason {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 12px 0;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.timeline-leave-reason strong {
    color: var(--text-secondary);
}

.timeline-related-projects {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.timeline-related-projects strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

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

.project-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-link:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Project card highlight animation when navigating from career */
.project-card.highlight-flash {
    animation: highlightFlash 2s ease-out;
}

@keyframes highlightFlash {
    0% {
        box-shadow: 0 0 0 4px var(--accent);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 0 4px var(--accent);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    max-width: 600px;
    margin: 60px auto 0;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.contact-link.pdf-download {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.contact-link.pdf-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
}

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

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

/* ===================================
   Manager/Leadership Section
   =================================== */

/* Leadership Highlights */
.manager-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 48px;
}

.manager-highlight-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.manager-highlight-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.highlight-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent);
}

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

.manager-highlight-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.manager-highlight-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.manager-highlight-description {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* PM Capabilities Grid */
.manager-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.manager-capability-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.manager-capability-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.capability-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.capability-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.capability-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.capability-highlights {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.capability-highlights li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.capability-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-badge {
    background: var(--bg-tertiary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Two Column Layout */
.manager-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

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

.subsection-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
}

/* Leadership Style */
.leadership-style-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
}

.leadership-principles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: background 0.2s ease;
}

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

.principle-icon {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Soft Skills */
.soft-skills-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
}

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

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.skill-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.skill-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    display: flex;
    gap: 4px;
}

.level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.level-dot.filled {
    background: var(--accent);
}

/* Business Impact */
.business-impact-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 16px;
    padding: 28px;
    color: white;
}

.business-impact-section .subsection-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.impact-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.impact-number {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.impact-number .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.impact-number .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.impact-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-highlights li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

.impact-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Management Projects */
.management-projects-section {
    margin-top: 16px;
}

.management-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.management-project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.management-project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

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

.management-project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.management-project-card .project-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
}

.project-team {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.team-icon {
    margin-right: 4px;
}

.project-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.cert-badge-small {
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-outcomes {
    margin: 0;
    padding-left: 20px;
}

.project-outcomes li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.on-time-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Manager Section Responsive */
@media (max-width: 1024px) {
    .manager-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .manager-capabilities-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 480px) {
    .impact-numbers {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .impact-number .number {
        font-size: 1.5rem;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* nav-links handled in mobile navigation section above */

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

    .project-stats {
        flex-direction: column;
        gap: 16px;
    }

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

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-marker {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .section {
        padding: 60px 16px;
    }

    .expertise-category,
    .project-card,
    .timeline-content {
        padding: 20px;
    }

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

/* ===================================
   Animations
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .hero-visual,
    .highlight-card,
    .expertise-category,
    .project-card,
    .timeline-content {
        animation: fadeInUp 0.6s ease-out;
    }

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

/* ===================================
   Skeleton Loading UI
   =================================== */
.skeleton-wrapper {
    animation: skeleton-fade-in 0.3s ease;
}

@keyframes skeleton-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--border) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-title {
    height: 40px;
    width: 200px;
    margin: 0 auto 16px;
}

.skeleton-description {
    height: 20px;
    width: 400px;
    max-width: 80%;
    margin: 0 auto 40px;
}

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

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

.skeleton-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-card {
    height: 200px;
}

.skeleton-card-large {
    height: 350px;
}

.skeleton-featured {
    height: 180px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.skeleton-timeline {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skeleton-timeline-item {
    height: 150px;
}

@media (max-width: 1024px) {
    .skeleton-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-grid,
    .skeleton-grid-2,
    .skeleton-grid-3 {
        grid-template-columns: 1fr;
    }

    .skeleton-title {
        width: 150px;
        height: 32px;
    }

    .skeleton-description {
        width: 100%;
    }
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .back-to-top {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    /* Hide non-essential elements */
    .nav,
    .theme-toggle,
    .mobile-menu-toggle,
    .hero-visual,
    .btn,
    .expand-btn,
    .project-expanded,
    .skeleton-wrapper,
    .opensource-cta,
    .contact-availability {
        display: none !important;
    }

    /* Reset backgrounds for print */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    .section,
    .section-alt {
        background: white !important;
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .hero-unified {
        min-height: auto;
        padding: 20px 0;
    }

    /* Ensure text is readable */
    .profile-name,
    .section-title,
    .project-title,
    .timeline-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
        background: none !important;
    }

    /* Certification badges for print */
    .certifications-bar {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
        padding: 10px 20px;
        margin-top: 20px;
    }

    .cert-badge,
    .role-badge,
    .tag {
        background: #e0e0e0 !important;
        color: black !important;
        border: 1px solid #ccc;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    /* Metrics for print */
    .project-metrics,
    .profile-metrics {
        border: 1px solid #ddd;
        background: #f9f9f9 !important;
    }

    .metric-value,
    .metric-number {
        color: #333 !important;
    }

    /* Timeline for print */
    .timeline::before {
        background: #ccc !important;
    }

    .timeline-marker {
        background: white !important;
        border-color: #666 !important;
    }

    .timeline-item.highlight .timeline-marker {
        background: #666 !important;
    }

    .timeline-content {
        border: 1px solid #ddd;
        box-shadow: none !important;
    }

    .timeline-note {
        background: #f5f5f5 !important;
        border-left-color: #666 !important;
    }

    /* Project cards for print */
    .project-card {
        border: 1px solid #ddd;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    /* Testimonials for print */
    .testimonial-featured {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .testimonial-featured .testimonial-quote strong {
        color: #333 !important;
    }

    .testimonial-featured .testimonial-label {
        background: rgba(0, 0, 0, 0.1) !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
    }

    .testimonial-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    /* Links for print */
    a {
        color: black !important;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    /* Grid adjustments for print */
    .projects-grid,
    .testimonials-grid,
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

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

    /* Page breaks */
    .section-title {
        page-break-after: avoid;
    }

    .projects-subtitle {
        page-break-after: avoid;
        margin-top: 20px;
    }

    /* Footer for print */
    .footer {
        border-top: 1px solid #ddd;
        padding: 15px 0;
    }
}

/* =============================================
   Cover Letter Section
   ============================================= */

.cover-letter-section {
    background: var(--bg-secondary);
    padding: 80px 20px;
}

.cover-letter-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cover-letter-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 400;
}

/* Template Selector */
.cover-letter-selector {
    max-width: 600px;
    margin: 0 auto 40px;
}

.cover-letter-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.template-dropdown {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-dropdown:hover {
    border-color: var(--primary-color);
}

.template-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Cover Letter Content */
.cover-letter-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.0625rem;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.letter-greeting {
    margin-bottom: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.letter-opening {
    margin-bottom: 28px;
    text-align: justify;
}

.letter-body {
    margin: 28px 0;
}

.key-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points li {
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
    text-align: justify;
}

.key-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
    line-height: 1.8rem;
}

.key-points li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.letter-closing {
    margin-top: 32px;
    margin-bottom: 36px;
    text-align: justify;
}

.letter-signature {
    font-weight: 600;
    color: var(--text-primary);
}

/* Actions */
.cover-letter-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto 20px;
}

.cover-letter-note {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0 20px;
}

.cover-letter-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cover-letter-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.cover-letter-actions .btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cover-letter-actions .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cover-letter-actions .btn-secondary:hover:not(:disabled) {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.cover-letter-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cover-letter-actions button svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cover-letter-section {
        padding: 60px 20px;
    }

    .cover-letter-content {
        padding: 32px 24px;
        font-size: 1rem;
    }

    .cover-letter-actions {
        flex-direction: column;
    }

    .cover-letter-actions button {
        width: 100%;
        justify-content: center;
    }

    .key-points li {
        padding-left: 24px;
    }
}

@media (max-width: 480px) {
    .cover-letter-content {
        padding: 24px 20px;
    }

    .letter-greeting,
    .letter-opening,
    .letter-closing {
        text-align: left;
    }

    .key-points li {
        text-align: left;
    }
}

/* Print styles for cover letter */
@media print {
    .cover-letter-section {
        background: white;
        padding: 0;
    }

    .cover-letter-selector,
    .cover-letter-actions {
        display: none;
    }

    .cover-letter-content {
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
}
