        :root {
            /* Light theme - 60-30-10 rule applied */
            --bg-primary: #faf8f3;          /* 60% - Dominant background */
            --bg-secondary: #f5f1e8;        /* Supporting background */
            --bg-card: #ffffff;
            --text-primary: #1a1d2e;        /* 30% - Navy text */
            --text-secondary: #4a4d5e;
            --text-muted: #7a7d8e;
            --accent-primary: #D4735E;      /* 10% - Terracotta accent */
            --accent-secondary: #E8714E;    /* Brighter terracotta */
            --accent-brass: #d4a574;        /* Brass/gold accent */
            --accent-light: rgba(212, 115, 94, 0.1);
            --border: rgba(26, 29, 46, 0.08);
            --shadow: rgba(26, 29, 46, 0.04);
        }

        [data-theme="dark"] {
            /* Dark theme - 60-30-10 rule applied */
            --bg-primary: #0a0e27;          /* 60% - Dominant dark navy */
            --bg-secondary: #1a1d2e;        /* Supporting background */
            --bg-card: #252838;
            --text-primary: #faf8f3;        /* 30% - Light text */
            --text-secondary: #b8b5aa;
            --text-muted: #888579;
            --accent-primary: #E89580;      /* 10% - Lighter terracotta for dark mode */
            --accent-secondary: #F5A78A;    /* Even lighter for hover */
            --accent-brass: #e8b86d;        /* Brass/gold accent */
            --accent-light: rgba(232, 149, 128, 0.15);
            --border: rgba(250, 248, 243, 0.08);
            --shadow: rgba(0, 0, 0, 0.3);
        }

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

        :focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        body {
            font-family: 'JetBrains Mono', monospace;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.7;
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }

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

        /* Header */
        header {
            padding: 2rem 0;
            position: sticky;
            top: 0;
            background: var(--bg-primary);
            backdrop-filter: blur(10px);
            z-index: 100;
            border-bottom: 1px solid var(--border);
            transition: background 0.3s ease;
        }

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

        .logo {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .logo::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--accent-primary);
            border-radius: 50%;
            margin-right: 0.5rem;
            animation: pulse 2s ease-in-out infinite;
        }

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

        nav {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }

        nav a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 400;
            transition: color 0.2s ease;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent-primary);
            transition: width 0.3s ease;
        }

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

        nav a:hover::after {
            width: 100%;
        }

        /* Mobile menu toggle (hidden by default) */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
        }

        .mobile-menu-toggle span {
            width: 24px;
            height: 2px;
            background: var(--text-primary);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(7px, 7px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Theme toggle - modern switch */
        .theme-toggle {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 50px;
            padding: 0.4rem;
            cursor: pointer;
            display: flex;
            gap: 0.3rem;
            font: inherit;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            border-color: var(--accent-primary);
        }

        .theme-option {
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 500;
            transition: all 0.3s ease;
            color: var(--text-muted);
        }

        .theme-option.active {
            background: var(--accent-primary);
            color: #ffffff;
        }

        /* Hero Section */
        .hero {
            padding: 8rem 0 6rem;
            position: relative;
        }

        .hero-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--accent-primary);
            font-weight: 500;
            margin-bottom: 1.5rem;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 0.2s forwards;
        }

        .hero-title {
            font-family: 'Syne', sans-serif;
            font-size: clamp(2.5rem, 8vw, 5.5rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -2px;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 0.4s forwards;
        }

        .hero-title .gradient-text {
            background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 1.125rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin-bottom: 3rem;
            font-weight: 300;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 0.6s forwards;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 0.8s forwards;
            position: relative;
            z-index: 10;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            padding: 1rem 2rem;
            background: var(--accent-primary);
            color: #ffffff;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            font-family: 'JetBrains Mono', monospace;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--shadow);
            background: var(--accent-secondary);
        }

        .hero-cta.secondary {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        .hero-cta.secondary:hover {
            background: var(--accent-primary);
            color: #ffffff;
            border-color: var(--accent-primary);
        }

        .hero-stats {
            display: flex;
            gap: 4rem;
            margin-top: 5rem;
            opacity: 0;
            animation: fadeInUp 0.8s ease-out 1s forwards;
        }

        .stat {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .stat-number {
            font-family: 'Syne', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent-brass);
            line-height: 1;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Projects Section */
        .section {
            padding: 6rem 0;
        }

        .section-header {
            margin-bottom: 4rem;
        }

        .section-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--accent-primary);
            font-weight: 500;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .section-title {
            font-family: 'Syne', sans-serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            letter-spacing: -1px;
        }

        /* Timeline/Experience Section */
        .timeline {
            position: relative;
            padding-left: 2rem;
        }

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

        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            padding-left: 2rem;
        }

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

        .timeline-marker {
            position: absolute;
            left: calc(-2rem - 5px);
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent-primary);
            border: 3px solid var(--bg-primary);
            box-shadow: 0 0 0 2px var(--accent-primary);
        }

        .timeline-content {
            --collapsible-bg: var(--bg-card);
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateX(8px);
            box-shadow: 0 10px 40px var(--shadow);
            border-color: var(--accent-primary);
        }

        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
            gap: 2rem;
        }

        .timeline-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }

        .timeline-company {
            color: var(--text-secondary);
            font-size: 0.9375rem;
            margin-bottom: 0.5rem;
        }

        .org-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .org-link:hover {
            color: var(--accent-primary);
            border-bottom-color: var(--accent-primary);
        }

        .timeline-date {
            font-size: 0.875rem;
            color: var(--accent-brass);
            font-weight: 500;
            white-space: nowrap;
        }

        .timeline-item .description-collapsible {
            margin-bottom: 1.5rem;
        }

        .timeline-description {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 0;
        }

        .timeline-highlights {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .highlight-tag {
            font-size: 0.75rem;
            padding: 0.4rem 1rem;
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            border-radius: 50px;
            color: var(--accent-primary);
            font-weight: 500;
        }

        .timeline-related,
        .education-related,
        .project-related,
        .publication-related {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            text-align: left;
        }

        .related-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .related-items {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .related-link {
            font-size: 0.875rem;
            color: var(--accent-primary);
            text-decoration: none;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .related-link::before {
            content: '→';
            font-size: 1rem;
            transition: transform 0.2s ease;
        }

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

        .related-link:hover::before {
            transform: translateX(4px);
        }

        /* Projects Section */

        .projects-grid {
            display: grid;
            gap: 2rem;
        }

        .project-card {
            --collapsible-bg: var(--bg-card);
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--accent-light);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px var(--shadow);
            border-color: var(--accent-primary);
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .project-number {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--accent-brass);
        }

        .project-meta {
            display: flex;
            gap: 1.5rem;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .project-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
            letter-spacing: -0.5px;
            position: relative;
            z-index: 1;
        }

        .description-collapsible {
            position: relative;
            margin-bottom: 2rem;
            z-index: 1;
        }

        .project-description.collapsed,
        .publication-abstract.collapsed,
        .timeline-description.collapsed {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .description-toggle {
            background: none;
            border: none;
            color: var(--accent-primary);
            font-size: 0.8125rem;
            font-family: inherit;
            cursor: pointer;
            padding: 0.25rem 0;
            margin-top: 0.25rem;
            transition: color 0.2s ease;
        }

        .description-toggle.inline {
            margin-top: 0;
            padding: 0;
        }

        .tags-collapsible {
            position: relative;
            z-index: 1;
        }

        .tags-collapsible .description-toggle.inline {
            position: absolute;
            bottom: 0;
            right: 0;
            padding: 0.4rem 0 0.4rem 2rem;
            margin-top: 0;
            font-size: 0.75rem;
            white-space: nowrap;
            background: linear-gradient(to right, transparent, var(--collapsible-bg, var(--bg-primary)) 30%);
        }

        .description-collapsible .description-toggle.inline {
            position: absolute;
            bottom: 0;
            right: 0;
            padding: 0 0 0 2rem;
            margin-top: 0;
            line-height: 1.8;
            background: linear-gradient(to right, transparent, var(--collapsible-bg, var(--bg-primary)) 30%);
        }

        .description-toggle:hover {
            color: var(--accent-secondary);
        }

        .description-toggle.hidden {
            display: none;
        }

        .project-description {
            color: var(--text-secondary);
            margin-bottom: 0;
            font-size: 0.9375rem;
            line-height: 1.8;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .project-tags.collapsed {
            max-height: 2.2rem;
            overflow: hidden;
        }

        .tag {
            font-size: 0.75rem;
            padding: 0.4rem 1rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 50px;
            color: var(--text-secondary);
            font-weight: 400;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .tag-icon {
            display: inline-flex;
            align-items: center;
            opacity: 0.7;
        }

        .tag:hover .tag-icon {
            opacity: 1;
        }

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

        .project-links {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: #ffffff;
            transform: translateY(-2px);
        }

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

        /* About Section */
        .about {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6rem;
            align-items: center;
        }

        .about-content h2 {
            font-family: 'Syne', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            letter-spacing: -1px;
        }

        .about-content p {
            font-size: 1rem;
            line-height: 1.9;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .about-content p:last-of-type {
            margin-bottom: 2.5rem;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .skill-item {
            padding: 0.6rem 1.2rem;
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            border-radius: 50px;
            font-size: 0.8125rem;
            color: var(--accent-primary);
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .skill-item:hover {
            background: var(--accent-primary);
            color: #ffffff;
            transform: translateY(-2px);
        }

        .about-image {
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
            border-radius: 24px;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .about-image::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        .placeholder-text {
            font-family: 'Syne', sans-serif;
            font-size: 6rem;
            font-weight: 800;
            color: var(--accent-brass);
            opacity: 0.3;
            position: relative;
            z-index: 1;
        }

        /* Languages Section */
        .languages-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .language-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            padding: 1rem 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            min-width: 160px;
        }

        .language-name {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

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

        /* Tag Groups (Technical Expertise) */
        .tag-group-header {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .tag-group-icon {
            color: var(--accent-brass);
            display: inline-flex;
        }

        .tag-group-label {
            font-family: 'Syne', sans-serif;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--accent-brass);
            font-weight: 600;
        }

        .tag-group-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
            margin-bottom: 1.5rem;
        }

        /* Education Section */
        .education-stats {
            display: flex;
            gap: 3rem;
            justify-content: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
        }

        .education-stat {
            text-align: center;
        }

        .content-tabs {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 3rem;
            border-bottom: 2px solid var(--border);
        }

        .content-tab {
            padding: 1rem 2rem;
            background: none;
            border: none;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9375rem;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }

        .content-tab::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent-primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .content-tab:hover {
            color: var(--text-primary);
        }

        .content-tab.active {
            color: var(--accent-primary);
        }

        .content-tab.active::after {
            transform: scaleX(1);
        }

        .education-content-wrapper {
            position: relative;
        }

        .content-tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

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

        .education-grid {
            display: grid;
            gap: 2rem;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

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

        .course-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px var(--shadow);
            border-color: var(--accent-primary);
        }

        .course-provider {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent-brass);
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .course-title-link {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s ease;
        }

        .course-title-link:hover {
            color: var(--accent-primary);
            text-decoration: underline;
        }

        .course-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .course-instructor {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

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

        .certifications-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .certification-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .certification-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px var(--shadow);
            border-color: var(--accent-primary);
        }

        .certification-badge {
            width: 80px;
            height: 80px;
            background: var(--accent-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            color: var(--accent-primary);
        }

        .certification-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .certification-issuer {
            font-size: 0.9375rem;
            color: var(--accent-brass);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

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

        .education-card {
            display: flex;
            gap: 2rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .education-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px var(--shadow);
            border-color: var(--accent-primary);
        }

        .education-icon {
            width: 64px;
            height: 64px;
            background: var(--accent-light);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--accent-primary);
        }

        .education-content {
            flex: 1;
        }

        .education-degree {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }

        .education-school {
            font-size: 1.125rem;
            color: var(--accent-brass);
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .education-details {
            display: flex;
            gap: 2rem;
            margin-bottom: 1rem;
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        .education-description {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* Publications Section */
        .publications-list {
            display: grid;
            gap: 2rem;
        }

        .publication-card {
            --collapsible-bg: var(--bg-card);
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .publication-card:hover {
            transform: translateX(8px);
            box-shadow: 0 12px 40px var(--shadow);
            border-color: var(--accent-primary);
        }

        .publication-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .publication-type {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent-primary);
            font-weight: 600;
            padding: 0.4rem 1rem;
            background: var(--accent-light);
            border-radius: 50px;
        }

        .publication-year {
            font-size: 0.875rem;
            color: var(--accent-brass);
            font-weight: 600;
        }

        .publication-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            letter-spacing: -0.5px;
            line-height: 1.3;
        }

        .publication-authors {
            font-size: 0.9375rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }

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

        .publication-venue {
            font-size: 0.875rem;
            color: var(--text-muted);
            font-style: italic;
            margin-bottom: 1rem;
        }

        .publication-card .description-collapsible {
            margin-bottom: 1.5rem;
        }

        .publication-abstract {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 0;
        }

        .publication-links {
            display: flex;
            gap: 1rem;
        }

        .publication-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .publication-link:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: #ffffff;
            transform: translateY(-2px);
        }

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

        /* Footer */
        footer {
            padding: 4rem 0;
            border-top: 1px solid var(--border);
            margin-top: 6rem;
        }

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

        .footer-links {
            display: flex;
            gap: 2rem;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.2s ease;
        }

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

        .footer-resume-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.875rem;
            cursor: pointer;
            transition: color 0.2s ease;
            text-decoration: underline;
            text-underline-offset: 2px;
            padding: 0;
        }

        .footer-resume-btn:hover {
            color: var(--accent-primary);
        }

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

        /* Contact Section */
        .contact-section {
            background: var(--bg-secondary);
            padding: 6rem 0;
            margin-top: 4rem;
        }

        .contact-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .contact-header .section-title {
            margin-bottom: 1rem;
        }

        .contact-subtitle {
            font-size: 1.125rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 4rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        .contact-info {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
        }

        .contact-info h3 {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
        }

        .contact-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            align-items: flex-start;
        }

        .contact-icon {
            width: 48px;
            height: 48px;
            background: var(--accent-primary);
            color: #ffffff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .contact-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            margin-bottom: 0.3rem;
        }

        .contact-value {
            font-size: 0.9375rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .social-links {
            margin-top: 2.5rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            width: 44px;
            height: 44px;
            border: 1px solid var(--accent-primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-primary);
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-icon:hover {
            background: var(--accent-primary);
            color: #ffffff;
            transform: translateY(-3px);
        }

        /* Contact Form */
        .contact-form {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.875rem 1.25rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9375rem;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            background: var(--bg-primary);
            box-shadow: 0 0 0 3px var(--accent-light);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .submit-btn {
            width: 100%;
            padding: 1rem 2rem;
            background: var(--accent-primary);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9375rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: var(--accent-secondary);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(212, 115, 94, 0.3);
        }

        .submit-btn svg {
            transition: transform 0.3s ease;
        }

        .submit-btn:hover svg {
            transform: translateX(3px);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        /* Responsive */
        
        /* Large tablets and small desktops (1024px and below) */
        @media (max-width: 1024px) {
            .container {
                padding: 0 1.5rem;
            }

            .hero {
                padding: 6rem 0 4rem;
            }

            .hero-title {
                font-size: clamp(2rem, 7vw, 4rem);
            }

            .section-title {
                font-size: clamp(1.75rem, 4.5vw, 3rem);
            }

            .about {
                gap: 4rem;
            }

            .projects-grid,
            .publications-list {
                gap: 1.5rem;
            }

            .project-card,
            .publication-card {
                padding: 2rem;
            }
        }

        /* Tablets (768px and below) */
        @media (max-width: 768px) {
            .container {
                padding: 0 1.5rem;
            }

            /* Header */
            header {
                padding: 1.5rem 0;
            }

            .header-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            /* Show hamburger menu */
            .mobile-menu-toggle {
                display: flex;
            }

            /* Hide navigation by default, show as dropdown when active */
            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                background: var(--bg-card);
                border-left: 1px solid var(--border);
                padding: 5rem 2rem 2rem;
                flex-direction: column;
                gap: 0;
                align-items: flex-start;
                transition: right 0.3s ease;
                box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
                z-index: 1000;
                overflow-y: auto;
            }

            nav.active {
                right: 0;
            }

            nav a {
                width: 100%;
                padding: 1rem 0;
                font-size: 1rem;
                border-bottom: 1px solid var(--border);
            }

            nav a::after {
                display: none;
            }

            .theme-toggle {
                margin-top: 2rem;
                width: 100%;
            }

            /* Overlay when menu is open */
            body.menu-open::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 999;
            }

            /* Hero */
            .hero {
                padding: 4rem 0 3rem;
            }

            .hero-title {
                font-size: clamp(1.75rem, 6vw, 2.75rem);
                margin-bottom: 1rem;
            }

            .hero-description {
                font-size: 1rem;
                margin-bottom: 2rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 2rem;
                margin-top: 3rem;
            }

            .stat {
                width: 100%;
                text-align: left;
            }

            .hero-cta {
                width: 100%;
                justify-content: center;
            }

            .hero-actions {
                width: 100%;
            }

            /* About */
            .about {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .about-image {
                order: -1;
                aspect-ratio: 16/9;
            }

            .about-content h2 {
                font-size: 2rem;
            }

            .skills-list {
                gap: 0.6rem;
            }

            .skill-item {
                font-size: 0.75rem;
                padding: 0.5rem 1rem;
            }

            /* Experience Timeline */
            .timeline {
                padding-left: 1.5rem;
            }

            .timeline-item {
                padding-left: 1.5rem;
                margin-bottom: 2rem;
            }

            .timeline-marker {
                left: calc(-1.5rem - 4px);
                width: 10px;
                height: 10px;
            }

            .timeline-content {
                padding: 1.5rem;
            }

            .timeline-header {
                flex-direction: column;
                gap: 0.5rem;
            }

            .timeline-title {
                font-size: 1.25rem;
            }

            .timeline-company {
                font-size: 0.875rem;
            }

            .timeline-date {
                white-space: normal;
                font-size: 0.8125rem;
            }

            .timeline-description {
                font-size: 0.9375rem;
            }

            .timeline-highlights {
                gap: 0.5rem;
            }

            .highlight-tag {
                font-size: 0.6875rem;
                padding: 0.35rem 0.85rem;
            }

            /* Projects */
            .section {
                padding: 4rem 0;
            }

            .section-header {
                margin-bottom: 3rem;
            }

            .projects-grid {
                gap: 1.5rem;
            }

            .project-card {
                padding: 2rem;
            }

            .project-header {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .project-meta {
                flex-direction: column;
                gap: 0.5rem;
                align-items: flex-start;
            }

            .project-title {
                font-size: 1.5rem;
            }

            .project-description {
                font-size: 0.9375rem;
            }

            .project-tags {
                gap: 0.5rem;
            }

            .tag {
                font-size: 0.6875rem;
                padding: 0.35rem 0.85rem;
            }

            .project-links {
                flex-wrap: wrap;
                gap: 0.75rem;
            }

            .project-link {
                font-size: 0.8125rem;
            }

            /* Education */
            .education-stats {
                flex-direction: column;
                gap: 1.5rem;
                padding: 1.5rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .content-tabs {
                flex-wrap: wrap;
                gap: 0.5rem;
                overflow-x: auto;
            }

            .content-tab {
                padding: 0.75rem 1.5rem;
                font-size: 0.875rem;
                white-space: nowrap;
            }

            .education-card {
                flex-direction: column;
                gap: 1.5rem;
                padding: 1.5rem;
            }

            .education-icon {
                width: 56px;
                height: 56px;
            }

            .education-degree {
                font-size: 1.25rem;
            }

            .education-school {
                font-size: 1rem;
            }

            .education-details {
                flex-direction: column;
                gap: 0.5rem;
                font-size: 0.8125rem;
            }

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

            .course-card {
                padding: 1.25rem;
            }

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

            .certification-card {
                padding: 1.5rem;
            }

            .certification-badge {
                width: 64px;
                height: 64px;
            }

            /* Publications */
            .publication-card {
                padding: 1.5rem;
            }

            .publication-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .publication-title {
                font-size: 1.25rem;
            }

            .publication-authors,
            .publication-venue,
            .publication-abstract {
                font-size: 0.875rem;
            }

            .publication-links {
                flex-wrap: wrap;
                gap: 0.75rem;
            }

            /* Contact */
            .contact-section {
                padding: 4rem 0;
            }

            .contact-wrapper {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .contact-info {
                padding: 2rem;
            }

            .contact-form {
                padding: 2rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .contact-item {
                margin-bottom: 1.5rem;
            }

            .contact-icon {
                width: 40px;
                height: 40px;
            }

            .social-icons {
                gap: 0.75rem;
            }

            /* Footer */
            footer {
                padding: 3rem 0;
            }

            .footer-content {
                flex-direction: column;
                gap: 2rem;
                align-items: flex-start;
            }

            .footer-links {
                flex-direction: column;
                gap: 1rem;
                width: 100%;
            }

            /* Resume Modal */
            .resume-modal-content {
                padding: 2rem;
                width: 95%;
            }

            .resume-modal-header h3 {
                font-size: 1.5rem;
            }

            .resume-templates {
                gap: 1rem;
            }

            .template-option {
                padding: 1.5rem;
            }

            .template-icon {
                width: 56px;
                height: 56px;
            }

            .template-option h4 {
                font-size: 1.125rem;
            }

            .template-option p {
                font-size: 0.8125rem;
            }
        }

        /* Mobile phones (480px and below) */
        @media (max-width: 480px) {
            .container {
                padding: 0 1rem;
            }

            /* Header */
            header {
                padding: 1rem 0;
            }

            .logo {
                font-size: 0.875rem;
            }

            .logo::before {
                width: 6px;
                height: 6px;
                margin-right: 0.4rem;
            }

            /* Mobile menu adjustment */
            .mobile-menu-toggle {
                padding: 0.25rem;
            }

            .mobile-menu-toggle span {
                width: 20px;
                height: 2px;
            }

            nav {
                width: 260px;
                padding: 4rem 1.5rem 2rem;
            }

            nav a {
                font-size: 0.9375rem;
                padding: 0.875rem 0;
            }

            .theme-toggle {
                padding: 0.3rem;
            }

            .theme-option {
                padding: 0.3rem 0.75rem;
                font-size: 0.6875rem;
            }

            /* Hero */
            .hero {
                padding: 3rem 0 2rem;
            }

            .hero-label {
                font-size: 0.6875rem;
                margin-bottom: 1rem;
            }

            .hero-title {
                font-size: clamp(1.5rem, 5vw, 2rem);
                letter-spacing: -1px;
                margin-bottom: 1rem;
            }

            .hero-description {
                font-size: 0.9375rem;
                margin-bottom: 1.5rem;
            }

            .hero-stats {
                margin-top: 2rem;
                gap: 1.5rem;
            }

            .stat-number {
                font-size: 1.75rem;
            }

            .stat-label {
                font-size: 0.6875rem;
            }

            .hero-cta {
                padding: 0.875rem 1.5rem;
                font-size: 0.8125rem;
            }

            /* Section spacing */
            .section {
                padding: 3rem 0;
            }

            .section-header {
                margin-bottom: 2rem;
            }

            .section-label {
                font-size: 0.6875rem;
            }

            .section-title {
                font-size: clamp(1.5rem, 4vw, 2rem);
            }

            /* About */
            .about {
                gap: 2rem;
            }

            .about-content h2 {
                font-size: 1.75rem;
                margin-bottom: 1.5rem;
            }

            .about-content p {
                font-size: 0.9375rem;
                margin-bottom: 1.25rem;
            }

            .about-image {
                aspect-ratio: 1;
            }

            .placeholder-text {
                font-size: 4rem;
            }

            /* Timeline */
            .timeline {
                padding-left: 1rem;
            }

            .timeline::before {
                width: 1px;
            }

            .timeline-item {
                padding-left: 1rem;
                margin-bottom: 1.5rem;
            }

            .timeline-marker {
                left: calc(-1rem - 3.5px);
                width: 8px;
                height: 8px;
                border-width: 2px;
            }

            .timeline-content {
                padding: 1.25rem;
                border-radius: 12px;
            }

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

            .timeline-company {
                font-size: 0.8125rem;
            }

            .timeline-date {
                font-size: 0.75rem;
            }

            .timeline-description {
                font-size: 0.875rem;
                line-height: 1.6;
            }

            .related-label {
                font-size: 0.6875rem;
            }

            .related-link {
                font-size: 0.8125rem;
            }

            /* Projects */
            .projects-grid {
                gap: 1.25rem;
            }

            .project-card {
                padding: 1.5rem;
                border-radius: 16px;
            }

            .project-number {
                font-size: 0.875rem;
            }

            .project-title {
                font-size: 1.25rem;
            }

            .project-description {
                font-size: 0.875rem;
                line-height: 1.6;
            }

            .project-link {
                font-size: 0.75rem;
                padding: 0.5rem 0.875rem;
            }

            /* Education */
            .education-stats {
                padding: 1.25rem;
                gap: 1.25rem;
            }

            .content-tabs {
                margin-bottom: 2rem;
            }

            .content-tab {
                padding: 0.625rem 1.25rem;
                font-size: 0.8125rem;
            }

            .education-card {
                padding: 1.25rem;
                border-radius: 12px;
            }

            .education-degree {
                font-size: 1.125rem;
            }

            .course-card,
            .certification-card {
                padding: 1.25rem;
            }

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

            /* Publications */
            .publication-card {
                padding: 1.25rem;
                border-radius: 12px;
            }

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

            .publication-abstract {
                font-size: 0.8125rem;
            }

            /* Contact */
            .contact-header .section-title {
                font-size: 1.75rem;
            }

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

            .contact-info,
            .contact-form {
                padding: 1.5rem;
                border-radius: 16px;
            }

            .contact-info h3 {
                font-size: 1.25rem;
            }

            .contact-icon {
                width: 36px;
                height: 36px;
            }

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

            .form-group input,
            .form-group textarea {
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
            }

            .submit-btn {
                padding: 0.875rem 1.5rem;
                font-size: 0.875rem;
            }

            /* Footer */
            footer {
                padding: 2rem 0;
            }

            .footer-links a,
            .footer-resume-btn,
            .copyright {
                font-size: 0.8125rem;
            }

            /* Resume Modal */
            .resume-modal-content {
                padding: 1.5rem;
            }

            .resume-modal-header {
                margin-bottom: 1.5rem;
                padding-bottom: 1rem;
            }

            .resume-modal-header h3 {
                font-size: 1.25rem;
            }

            .close-modal {
                font-size: 1.75rem;
            }

            .resume-templates {
                grid-template-columns: 1fr;
                gap: 1rem;
                margin-bottom: 0;
            }

            .template-option {
                padding: 1.25rem;
            }

            .template-icon {
                width: 48px;
                height: 48px;
            }

            .template-option h4 {
                font-size: 1rem;
            }

            .template-option p {
                font-size: 0.75rem;
            }

            .resume-success h4 {
                font-size: 1.25rem;
            }

            .resume-success p {
                font-size: 0.875rem;
            }

            .close-success-btn {
                padding: 0.875rem 1.5rem;
                font-size: 0.8125rem;
            }

            .spinner {
                width: 32px;
                height: 32px;
            }
        }

        /* Very small phones (360px and below) */
        @media (max-width: 360px) {
            .container {
                padding: 0 0.75rem;
            }

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

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

            .hero-cta {
                padding: 0.75rem 1.25rem;
                font-size: 0.75rem;
            }

            /* Mobile menu for very small screens */
            nav {
                width: 240px;
                padding: 3.5rem 1.25rem 1.5rem;
            }

            nav a {
                font-size: 0.875rem;
            }

            .theme-option {
                padding: 0.25rem 0.625rem;
                font-size: 0.625rem;
            }
        }

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

        /* Resume Modal */
        .resume-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .resume-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .resume-modal-content {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 2.5rem;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .resume-modal.active .resume-modal-content {
            transform: scale(1);
        }

        .resume-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .resume-modal-header h3 {
            font-family: 'Syne', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--text-secondary);
            cursor: pointer;
            line-height: 1;
            transition: color 0.2s ease;
        }

        .close-modal:hover {
            color: var(--accent-primary);
        }

        .resume-templates {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .template-option {
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .template-option:hover {
            border-color: var(--accent-primary);
            background: var(--accent-light);
            transform: translateY(-4px);
        }

        .template-icon {
            width: 64px;
            height: 64px;
            background: var(--accent-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: var(--accent-primary);
        }

        .template-option h4 {
            font-family: 'Syne', sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .template-option p {
            font-size: 0.875rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .resume-loading {
            text-align: center;
            padding: 2rem 0;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--bg-secondary);
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            margin: 0 auto 1rem;
            animation: spin 1s linear infinite;
        }

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

        .resume-success {
            text-align: center;
            padding: 2rem 0;
        }

        .success-icon {
            width: 64px;
            height: 64px;
            background: var(--accent-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            color: var(--accent-primary);
        }

        .resume-success h4 {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
        }

        .resume-success p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .close-success-btn {
            padding: 1rem 2rem;
            background: var(--accent-primary);
            color: #ffffff;
            border: none;
            border-radius: 50px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-success-btn:hover {
            background: var(--accent-secondary);
            transform: translateY(-2px);
        }

/* Article Content */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-body {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    font-family: 'Syne', sans-serif;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid var(--border);
}

.article-body pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.article-body pre code {
    background: none;
    padding: 0;
    border: none;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--accent-light);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
}

.article-body a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-body a:hover {
    border-bottom-color: var(--accent-primary);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-body th,
.article-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 1.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

/* Tags Page */
.tag-group {
    margin-bottom: 2rem;
}

.tag-group-header {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-brass);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.tag-chip-name {
    font-weight: 500;
}

.tag-chip-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    min-width: 1.2rem;
    text-align: center;
}

.tag-chip:hover .tag-chip-count {
    color: var(--accent-primary);
    background: var(--bg-card);
}

.tag-detail-content {
    position: relative;
}

/* Badge Cards */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent-primary);
}

.badge-card img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 1rem;
}

.badge-card .badge-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
}

.badge-card .badge-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Resume Modal */
.resume-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.resume-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.resume-modal-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.resume-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.resume-modal-close:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.resume-templates {
    display: grid;
    gap: 1.5rem;
}

.template-option {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.template-option:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.template-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.template-option h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.template-option p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Form Validation */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c;
}

.form-error {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 0.25rem;
}

.form-success {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.form-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.form-success p {
    color: var(--text-secondary);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

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

/* Active nav link */
nav a.active {
    color: var(--accent-primary);
}

nav a.active::after {
    width: 100%;
}
