
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f8f8f8;
            --text-primary: #1a1a1a;
            --text-secondary: #555;
            --text-meta: #666;
            --border-color: #222222;
            --border-light: #393838;
            --accent-color: #0f1317;
            --hover-bg: #f0f0f0;
            --shadow: rgba(0, 0, 0, 0.1);
        }

        body.dark-mode {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --text-meta: #999;
            --border-color: #e0e0e0;
            --border-light: #555;
            --accent-color: #75797d;
            --hover-bg: #333;
            --shadow: rgba(255, 255, 255, 0.1);
        }

        body {
            font-family: 'Georgia', 'Times New Roman', serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: var(--bg-primary);
            transition: background 0.3s ease, color 0.3s ease;
        }

        header {
            background: var(--bg-secondary);
            border-bottom: 2px solid var(--border-color);
            padding: 1.5rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px var(--shadow);
            transition: all 0.3s ease;
        }

        .header-content {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .header-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .search-container {
            position: relative;
        }

        #searchInput {
            padding: 0.5rem 2.5rem 0.5rem 1rem;
            border: 1px solid var(--border-light);
            border-radius: 20px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 0.9rem;
            width: 250px;
            transition: all 0.3s ease;
        }

        #searchInput:focus {
            outline: none;
            border-color: var(--accent-color);
            width: 300px;
        }

        .search-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-meta);
            pointer-events: none;
        }

        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .theme-toggle:hover {
            background: var(--hover-bg);
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
        }

        nav a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 1rem;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
            padding: 0.3rem 0;
        }

        nav a:hover {
            border-bottom: 2px solid var(--accent-color);
            color: var(--accent-color);
        }

        nav a.active {
            border-bottom: 2px solid var(--border-color);
            font-weight: bold;
        }

        main {
            max-width: 900px;
            margin: 0 auto;
            padding: 3rem 2rem;
            min-height: calc(100vh - 200px);
        }

        .section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .section.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: normal;
            color: var(--text-primary);
        }

        h2 {
            font-size: 1.8rem;
            margin: 2rem 0 1rem 0;
            font-weight: normal;
            border-bottom: 1px solid var(--border-light);
            padding-bottom: 0.5rem;
            color: var(--text-primary);
        }

        h3 {
            font-size: 1.3rem;
            margin: 1.5rem 0 0.5rem 0;
            font-weight: normal;
            color: var(--text-primary);
        }

        p {
            margin-bottom: 1rem;
            text-align: justify;
        }

        .subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .filter-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 1.2rem;
            border: 1px solid var(--border-light);
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            font-size: 0.9rem;
        }

        .filter-btn:hover {
            background: var(--hover-bg);
            border-color: var(--accent-color);
        }

        .filter-btn.active {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        .project-item,
        .publication-item {
            margin-bottom: 2.5rem;
            border-left: 3px solid var(--accent-color);
            padding-left: 1.5rem;
            transition: all 0.3s ease;
            opacity: 1;
        }

        .project-item:hover,
        .publication-item:hover {
            transform: translateX(5px);
            border-left-width: 5px;
        }

        .project-item.hidden,
        .publication-item.hidden {
            display: none;
        }

        .project-title,
        .publication-title {
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
            color: var(--text-primary);
        }

        .meta {
            color: var(--text-meta);
            font-size: 0.95rem;
            font-style: italic;
            margin-bottom: 0.5rem;
        }

        .tech-stack {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }

        .tech-tag {
            display: inline-block;
            background: var(--bg-secondary);
            padding: 0.2rem 0.6rem;
            border-radius: 12px;
            margin-right: 0.5rem;
            margin-top: 0.3rem;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .tech-tag:hover {
            background: var(--accent-color);
            color: white;
        }

        .contact-info {
            line-height: 1.8;
        }

        .contact-info a {
            color: var(--accent-color);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .contact-info a:hover {
            text-decoration: underline;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .stat-card {
            background: var(--bg-secondary);
            padding: 1.5rem;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px var(--shadow);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border-light);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2.5rem;
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent-color);
            border: 2px solid var(--bg-primary);
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin: 1.5rem 0;
        }

        .skill-badge {
            background: var(--bg-secondary);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            border: 1px solid var(--border-light);
            transition: all 0.3s ease;
        }

        .skill-badge:hover {
            background: var(--accent-color);
            color: white;
            transform: scale(1.05);
        }

        .no-results {
            text-align: center;
            padding: 3rem;
            color: var(--text-meta);
            display: none;
        }

        .no-results.show {
            display: block;
        }

        footer {
            background: var(--bg-secondary);
            border-top: 2px solid var(--border-color);
            padding: 1.5rem 0;
            text-align: center;
            color: var(--text-meta);
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--accent-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 1.5rem;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px var(--shadow);
            transition: all 0.3s ease;
            z-index: 99;
        }

        .back-to-top.show {
            display: flex;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px var(--shadow);
        }

        mark {
            background: var(--accent-color);
            color: white;
            padding: 0.1rem 0.3rem;
            border-radius: 3px;
        }

        @media (max-width: 768px) {
            .header-top {
                flex-direction: column;
                gap: 1rem;
            }

            #searchInput {
                width: 100%;
            }

            #searchInput:focus {
                width: 100%;
            }

            nav ul {
                gap: 1rem;
                justify-content: center;
            }

            h1 {
                font-size: 2rem;
            }

            main {
                padding: 2rem 1.5rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .filter-buttons {
                justify-content: center;
            }
        }

        @media print {
            header, footer, .back-to-top, .theme-toggle, .search-container, .filter-buttons {
                display: none;
            }
            
            .section {
                display: block !important;
                page-break-after: always;
            }
        }

        /* Capsule glow style */
.capsule-glow {
    position: relative;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    animation: capsulePulse 4s ease-in-out infinite;
}

/* Outer glow aura */
.capsule-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: var(--accent-color);
    filter: blur(10px);
    opacity: 0.35;
    z-index: -1;
    animation: capsuleAura 4s ease-in-out infinite;
}

/* Soft breathing glow */
@keyframes capsulePulse {
    0%, 100% {
        box-shadow:
            0 0 0 rgba(0,0,0,0),
            0 0 6px var(--accent-color);
    }
    50% {
        box-shadow:
            0 0 10px var(--accent-color),
            0 0 20px rgba(0,0,0,0);
    }
}

/* Aura intensity */
@keyframes capsuleAura {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.45; }
}


/* Social Links Cards */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    justify-content: center;
}

.social-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-color, #333333);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color, #0066cc);
    background: var(--card-hover-bg, #f8f9fa);
}

.social-card svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-card:hover svg {
    opacity: 1;
}

/* Dark mode styles for social cards */
.dark-mode .social-card {
    background: var(--card-bg-dark, #2a2a2a);
    border-color: var(--border-color-dark, #404040);
    color: var(--text-color-dark, #e0e0e0);
}

.dark-mode .social-card:hover {
    background: var(--card-hover-bg-dark, #333333);
    border-color: var(--accent-color, #4da6ff);
}

/* Responsive design */
@media (max-width: 768px) {
    .social-links {
        gap: 0.5rem;
    }
    
    .social-card {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
    
    .social-card svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .social-links {
        justify-content: flex-start;
    }
    
    .social-card {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}