/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure containers don't exceed viewport */
.container,
main,
footer,
section {
    max-width: 100%;
    box-sizing: border-box;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--link);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--link-hover);
    outline-offset: 2px;
}

/* Enhanced Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Keyboard Navigation Improvements */
.nav-menu a:focus,
.btn:focus,
.filter-btn:focus {
    outline: 3px solid var(--link);
    outline-offset: 3px;
    background-color: rgba(0, 102, 204, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================ */

/* Home Hero Section */
.home-hero {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.home-hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.home-hero-image {
    flex-shrink: 0;
}

.home-profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.home-profile-photo:hover {
    transform: scale(1.05);
}

.home-hero-text {
    flex: 1;
}

.home-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-hero-credentials {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.home-hero-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 1.5rem 0 1rem 0;
    max-width: 75ch;
}

.home-hero-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--button);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    border: 2px solid var(--button);
}

.btn-primary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

/* Quick Stats Bar */
.home-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.home-stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border-radius: 12px;
}

.home-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}

.home-stat-item.highlight-stat {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 82, 163, 0.05));
    border-radius: 12px;
    border: 2px solid var(--link);
}

.home-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--link);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.home-stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.home-stat-detail {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
}

.home-stat-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.home-stat-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Home Publications Section */
.home-publications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.home-publication-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.home-publication-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.home-publication-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--link) 0%, var(--link-hover) 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-publication-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1.3;
}

.home-publication-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.home-publication-card p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.home-publication-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-publication-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.home-publication-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.home-publication-link:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Home Research Section */
.home-research-section {
    margin: 3rem 0;
}

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

.home-research-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-research-card.featured {
    border-left: 4px solid #ffa500;
    background: linear-gradient(to right, rgba(255, 165, 0, 0.05), var(--bg-card));
}

.home-research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.home-research-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.home-research-badge.ongoing {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
}

.home-research-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 1.375rem;
    line-height: 1.3;
}

.home-research-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.home-research-image {
    margin: 1rem 0;
    text-align: center;
}

.home-research-image img {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.home-research-image > div {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-research-placeholder {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    width: 100%;
    max-height: 200px;
    box-shadow: var(--shadow);
}

.home-research-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.home-research-placeholder-text {
    font-size: 0.9rem;
}

/* Section CTA (Call to Action) */
.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.home-research-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

.home-research-card p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.home-research-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.home-research-actions {
    margin-top: 0.75rem;
}

.home-research-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.home-research-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.home-research-link:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Home Teaching Section */
.home-teaching-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.home-teaching-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-teaching-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.home-teaching-highlight {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
}

.home-teaching-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.home-teaching-highlight strong {
    color: var(--text);
    font-weight: 600;
}

/* Teaching Metrics Boxes - Pop Effect */
.home-teaching-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.home-teaching-metrics > div {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
}

.home-teaching-metrics > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.home-teaching-metrics .metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.home-teaching-metrics .metric-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Home Collaboration Section */
.home-collaboration-section {
    margin: 4rem 0;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.home-collaboration-section p {
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-collaboration-section p:last-of-type {
    margin-bottom: 1.5rem;
}

.home-collaboration-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-collaboration-section p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-collaboration-actions {
    margin-top: 2.5rem;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .home-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .home-hero-image {
        margin: 0 auto;
    }
    
    .home-profile-photo {
        width: 160px;
        height: 160px;
    }
    
    .home-hero-title {
        font-size: 2rem;
    }
    
    .home-hero-tagline {
        font-size: 1.25rem;
    }
    
    .home-hero-intro {
        font-size: 1rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    
    .home-hero-bio {
        font-size: 0.9rem;
    }
    
    .home-hero-actions {
        justify-content: center;
    }
    
    .home-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
    
    .home-stat-number {
        font-size: 2rem;
    }
    
    .home-publications {
        grid-template-columns: 1fr;
    }
    
    .home-research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-research-card {
        padding: 1.5rem;
    }
    
    .home-research-card h3 {
        font-size: 1.25rem;
    }
    
    .home-teaching-highlights {
        grid-template-columns: 1fr;
    }
    
    .home-collaboration-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 640px) {
    .home-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .home-stat-number {
        font-size: 1.75rem;
    }
    
    .home-hero-title {
        font-size: 1.75rem;
    }
    
    .home-hero-tagline {
        font-size: 1.125rem;
    }
}

:root {
    /* Simple, clean color scheme matching nnekaokereke.github.io */
    --text: #333333;              /* Dark gray text */
    --text-light: #666666;        /* Medium gray for secondary text */
    --text-muted: #999999;        /* Light gray for muted text */
    --bg: #ffffff;                /* White background */
    --bg-alt: #f5f5f5;            /* Light gray for backgrounds */
    --bg-card: #ffffff;           /* White card background */
    --border: #e0e0e0;            /* Light gray borders */
    --link: #0066cc;              /* Blue links */
    --link-hover: #0052a3;        /* Darker blue on hover */
    --button: #0066cc;            /* Blue buttons */
    --button-hover: #0052a3;      /* Darker blue on hover */
    --primary: #333333;           /* Dark gray for headings */
    --secondary: #0066cc;        /* Blue for accents */
    
    /* Shadows */
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: 0.2s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #808080;
    --bg: #1a1a1a;
    --bg-alt: #2a2a2a;
    --bg-card: #2a2a2a;
    --border: #404040;
    --link: #66b3ff;
    --link-hover: #99ccff;
    --button: #66b3ff;
    --button-hover: #99ccff;
    --primary: #e0e0e0;
    --secondary: #66b3ff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Enhanced Navigation */
.navbar {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-theme="dark"] .navbar {
    background-color: #1a1a1a;
}

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

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.nav-brand a:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hamburger Menu (Mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all var(--transition);
}

/* Main Content */
main {
    padding: 3rem 0 0 0;
    min-height: auto;
}

/* Enhanced Typography */
h1 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    max-width: 75ch;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--link-hover);
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

/* Enhanced Hero Section */
.hero-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

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

.hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 0.5rem;
}

.hero-text .lead {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Enhanced Research Cards */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.research-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.research-card h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.research-card p {
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

.research-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.social-links-inline {
    margin-top: 1.5rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.social-links-inline .social-placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text);
}

.social-links {
    list-style: none;
    margin-left: 0;
}

.social-links li {
    margin-bottom: 0.75rem;
}

.social-links a {
    color: var(--text-light);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: var(--link);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Enhanced Publications */
.publication {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.publication:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.publication h3 {
    margin-top: 0;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.publication-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.publication-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Publication Badges */
.publication-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    background: var(--link);
    color: white;
}

/* Badge colors will be set via inline style or data attribute if needed */

/* Featured Publication */
.featured-publication {
    border: 2px solid var(--link);
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-alt));
}

.featured-publication .publication-badge {
    background: var(--link);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Publication Video */
.publication-video {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.publication-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: var(--bg-alt);
}

.publication-video .video-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Publication Summary */
.publication-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 1rem 0;
}

/* Publication Details (Expandable) */
.publication-details {
    margin-top: 1rem;
}

.publication-details summary {
    cursor: pointer;
    color: var(--link);
    font-weight: 500;
    padding: 0.75rem 0;
    user-select: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.publication-details summary:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.publication-details summary:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

.publication-details[open] summary {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.publication-details h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.1rem;
}

.publication-details h5 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1rem;
}

.publication-details p,
.publication-details ul {
    margin: 0.75rem 0;
    padding-left: 1rem;
}

.publication-details ul {
    padding-left: 2rem;
}

/* Teaching */
.module {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.module {
    border: 1px solid var(--border);
}

.module:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.module h3 {
    margin-top: 0;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--button);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    background-color: var(--button-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--button);
    color: var(--button);
}

.btn-secondary:hover {
    background-color: var(--button);
    color: white;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(15deg);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--button);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 999;
    font-size: 1.25rem;
}

.back-to-top:hover {
    background-color: var(--button-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* Code blocks */
pre {
    background-color: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

code {
    background-color: var(--bg-alt);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.875rem 1rem;
        border-radius: 6px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        margin: 0 auto;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .hero-section {
        margin-bottom: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-links {
        flex-direction: column;
    }
    
    .research-links .btn {
        width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .about-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-photo {
        width: 150px;
        height: 150px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .research-icon {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Smooth scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .research-card,
    .publication,
    .module {
        animation: fadeInUp 0.6s ease-out both;
    }
}

/* Publication Filters */
.publication-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--button);
    color: white;
    border-color: var(--button);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Search Box */
.publication-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.publication-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.publication-search input:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    animation: fadeInUp 0.6s ease-out both;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--link);
    border: 3px solid var(--bg);
    box-shadow: var(--shadow);
}

.timeline-year {
    font-weight: 700;
    color: var(--link);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

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

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Research Icons */
.research-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.research-content {
    flex: 1;
}

.research-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.research-link {
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.research-link:hover {
    color: var(--link-hover);
    transform: translateX(4px);
}

/* Insights Preview */
.insights-preview {
    margin-top: 2rem;
}

.insight-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
}

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

.insight-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.insight-badge {
    display: inline-block;
    background: var(--button);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.insight-content h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.insight-content ul {
    text-align: left;
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* About Page Styles */
.about-hero-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--border);
}

.about-hero-section .about-image {
    flex-shrink: 0;
}

.about-hero-section .about-content {
    flex: 1;
}

.about-hero-section .about-content h2 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 2rem;
}

.about-hero-section .about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem 0;
}

.approach-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.approach-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.25rem;
}

.approach-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem 0;
}

.education-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all var(--transition);
}

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

.education-card-phd {
    border: 2px solid var(--link);
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-alt));
}

.education-card-phd .education-icon {
    font-size: 2rem;
    background: var(--link);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.education-content p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.experience-timeline {
    margin: 3rem 0 4rem 0;
    position: relative;
    padding-left: 2rem;
}

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

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

.experience-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--link);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--link);
}

.experience-item.experience-current::before {
    background: var(--link);
    box-shadow: 0 0 0 2px var(--link), 0 0 0 4px rgba(0, 102, 204, 0.2);
    animation: pulse 2s infinite;
}

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

.experience-item.experience-current {
    border-left: 3px solid var(--link);
    padding-left: 1.5rem;
    margin-left: -2rem;
    background: linear-gradient(to right, rgba(0, 102, 204, 0.05), transparent);
    padding: 1.5rem;
    border-radius: 8px;
}

.experience-date {
    font-weight: 600;
    color: var(--link);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.5rem;
}

.experience-content p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.experience-achievements {
    margin-top: 1.5rem;
}

.experience-achievements h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.experience-achievements ul {
    list-style: none;
    padding-left: 0;
}

.experience-achievements li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: var(--text);
    line-height: 1.6;
}

.education-list {
    margin: 3rem 0;
}

.education-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.education-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.education-details p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tools-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.tools-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.25rem;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-tags span {
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    border: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.skills-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.skills-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.25rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-tags span {
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    border: 1px solid var(--border);
}

/* Expertise Grid (Consolidated) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.expertise-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.expertise-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.expertise-section h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.25rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.expertise-tag {
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.expertise-tag.expert {
    border-color: var(--link);
    background: rgba(0, 102, 204, 0.1);
    font-weight: 500;
}

.expertise-tag.advanced {
    border-color: var(--primary);
    background: rgba(0, 123, 255, 0.05);
}

.expertise-tag.intermediate {
    border-color: var(--border);
}

/* About Contact Section */
.about-contact-section {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.about-contact-section h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-contact-cta {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CV Page Styles */
.cv-download {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cv-download .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.cv-download .btn svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.competencies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.competencies-tags span {
    background: var(--bg-alt);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 500;
}

/* CV Publication Cards */
.publication-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.publication-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.publication-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.25rem;
}

.publication-card .publication-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.publication-card .publication-links .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* CV Contact Section */
.cv-contact-section {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.cv-contact-section p {
    margin: 0.75rem 0;
    color: var(--text);
}

.cv-contact-section a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

.cv-contact-section a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Insights Page Styles */
.insights-filters {
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.insights-filters p {
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 500;
}

.insight-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.insight-filter-btn:hover {
    border-color: var(--link);
    background: var(--bg-alt);
}

.insight-filter-btn.active {
    background: var(--button);
    color: white;
    border-color: var(--button);
}

.insights-content {
    text-align: center;
    margin: 3rem 0;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.insights-content .insight-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.insights-content h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.insights-content p {
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.insights-list {
    text-align: left;
    max-width: 700px;
    margin: 2rem auto;
    list-style: none;
    padding-left: 0;
}

.insights-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text);
    line-height: 1.6;
}

.stay-updated {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.stay-updated h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.stay-updated p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.email-subscribe {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

.email-input:focus {
    outline: none;
    border-color: var(--link);
}

.subscribe-btn {
    padding: 0.75rem 2rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .about-hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .about-photo {
        width: 150px;
        height: 150px;
    }
    
    .experience-item {
        flex-direction: column;
    }
    
    .experience-date {
        width: 100%;
    }
    
    .email-subscribe {
        flex-direction: column;
    }
    
    .email-input,
    .subscribe-btn {
        width: 100%;
    }
}

.about-image {
    flex-shrink: 0;
}

.about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-md);
}

.about-content {
    flex: 1;
}

.about-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.about-location {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Portfolio Page Styles - Case Study Format */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.portfolio-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portfolio-filter-btn:hover {
    border-color: var(--link);
    background: var(--bg-alt);
}

.portfolio-filter-btn.active {
    background: var(--button);
    color: white;
    border-color: var(--button);
}

.portfolio-filter-btn:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.project-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-status-badge.ongoing {
    background: #ffa500;
    color: white;
}

.project-status-badge.completed {
    background: #28a745;
    color: white;
}

/* Case Study Project Format */
.portfolio-case-study {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

/* Quick Facts Box */
.quick-facts-box {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--link);
    margin: 2rem 0;
}

.quick-facts-box h3 {
    margin-top: 0;
    color: var(--link);
    font-size: 1.25rem;
}

/* Project Stats */
.project-stats {
    background: var(--bg-alt);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.project-stats p {
    margin: 0.25rem 0;
}

/* Comparison Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

table th {
    background: var(--bg-alt);
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
    font-weight: 600;
}

table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

table tr:hover {
    background: var(--bg-alt);
}

table tbody tr:last-child {
    border-bottom: 2px solid var(--border);
}

/* Table Highlight Row */
table tr.highlight-row {
    background: rgba(40, 167, 69, 0.1);
    border-bottom: 2px solid #28a745;
}

table tr.highlight-row td {
    font-weight: bold;
    color: #28a745;
}

table th.text-left {
    text-align: left;
}

table th.text-center,
table td.text-center {
    text-align: center;
}

/* Table of Contents */
/* Table of Contents - Standardized */
.table-of-contents {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--link);
}

.table-of-contents h3 {
    margin-top: 0;
    color: var(--link);
    font-size: 1.25rem;
}

.table-of-contents ul {
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--link);
    text-decoration: underline;
}

/* Hero Section - Standardized for Project Pages */
.hero-section {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin: 2rem 0;
}

.hero-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-section-content h2 {
    margin-top: 0;
    color: var(--text);
    font-size: 2rem;
}

.hero-section-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-section-media {
    text-align: center;
}

.hero-section-media video,
.hero-section-media img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-section-media p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Quick Stats - Standardized */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.quick-stats-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.quick-stats-item-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-stats-item-value {
    font-weight: bold;
    color: var(--link);
}

.quick-stats-item-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Badge System - Standardized */
.contribution-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contribution-badge.created {
    background: #28a745;
    color: white;
}

.contribution-badge.team {
    background: #17a2b8;
    color: white;
}

.contribution-badge.publication {
    background: #6c757d;
    color: white;
}

.badge-spacing {
    margin-left: 0.5rem;
}

.project-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status-badge.completed {
    background: #28a745;
    color: white;
}

.project-status-badge.ongoing {
    background: #ffc107;
    color: #333;
}

/* Internal Link Styling */
.internal-link {
    color: var(--link);
    text-decoration: underline;
    transition: color var(--transition);
}

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

/* Info Box Component */
.info-box {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box h4 {
    margin-top: 0;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .table-of-contents ul {
        columns: 1;
    }
    
    .hero-section-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-section-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-section-content p {
        font-size: 1rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
}

/* Project Media Placeholders */
.project-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 2px dashed var(--border);
}

.project-image-placeholder,
.project-video-placeholder {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border);
    text-align: center;
}

.project-image-placeholder img,
.project-video-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.project-image-full-width {
    grid-column: 1 / -1;
    max-width: 100%;
}

.project-image-large {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Methods Grid Component */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}

.method-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.method-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.project-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.project-video-placeholder video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
}

/* Project Preview & Expandable Details */
.project-preview {
    margin: 1.5rem 0;
}

.project-details-collapsed {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.project-details-collapsed.expanded {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--link);
    border-radius: 6px;
    color: var(--link);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
}

.see-more-btn:hover {
    background: var(--link);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.see-more-btn:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.see-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.see-more-btn .btn-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.see-more-btn .btn-text {
    transition: all var(--transition);
}

/* Project Header Styles for Individual Project Pages */
.project-header {
    margin-bottom: 2rem;
}

.project-header .contribution-badge,
.project-header .project-status-badge {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Environments Carousel - Compact & Neat */
.environments-carousel-container {
    margin: 2rem 0;
}

.environments-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.environments-carousel {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.carousel-slide.active {
    display: block;
}

.carousel-card {
    background: var(--bg-card);
    border: 1px solid #e0f0ff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.card-header {
    margin-bottom: 1.25rem;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-header .project-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.card-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text .project-description {
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    font-size: 0.9375rem;
    flex-grow: 1;
}

.card-video {
    display: flex;
    flex-direction: column;
    max-width: 280px;
}

.carousel-video {
    width: 100%;
    height: auto;
    max-height: 160px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--bg-alt);
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.carousel-video:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.carousel-video:focus {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 160px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--bg-alt);
    object-fit: contain;
}

.image-placeholder {
    width: 100%;
    background: var(--bg-alt);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    height: 160px;
    background: var(--bg-alt);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-video .video-caption {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.5;
}

/* Badge styles consolidated - using standardized version above */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 2px solid var(--link);
    color: var(--link);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    min-width: 44px;
    min-height: 44px;
}

.carousel-nav:hover {
    background: var(--link);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--link);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot.active {
    background: var(--link);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--link);
    opacity: 0.7;
}

.carousel-dot:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    margin-top: auto;
    background: var(--bg-card);
    border: 2px solid var(--link);
    border-radius: 6px;
    color: var(--link);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    width: fit-content;
}

.see-more-btn:hover {
    background: var(--link);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.see-more-btn .btn-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Responsive Design for Carousel */
@media (max-width: 968px) {
    .environments-carousel-wrapper {
        padding: 0 3rem;
    }
    
    .card-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .card-video {
        max-width: 100%;
    }
    
    .carousel-video,
    .carousel-image {
        max-height: 200px;
    }
    
    .video-placeholder {
        height: 200px;
    }
    
    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .environments-carousel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .environments-carousel-wrapper {
        padding: 0 3rem;
    }
    
    .carousel-card {
        padding: 1.25rem;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .card-text .project-description {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .carousel-dot {
        min-width: 44px;
        min-height: 44px;
    }
}

.project-image-placeholder p,
.project-video-placeholder p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-image-placeholder p strong {
    color: var(--text);
    font-weight: 600;
}

.project-image-placeholder em,
.project-video-placeholder em {
    font-style: italic;
    color: var(--text-muted);
}

.project-image-placeholder a,
.project-video-placeholder a {
    color: var(--link);
    text-decoration: underline;
}

.project-image-placeholder a:hover,
.project-video-placeholder a:hover {
    color: var(--link-hover);
}

/* Current Research Section */
.current-research-section {
    margin: 3rem 0;
}

.research-card.featured {
    border-left: 4px solid #ffa500;
    background: linear-gradient(to right, rgba(255, 165, 0, 0.05), var(--bg-card));
}

.research-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.research-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.research-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.research-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Teaching Highlights */
.teaching-highlights {
    margin: 3rem 0;
}

.teaching-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.teaching-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.teaching-card h4 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 1rem;
}

.teaching-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.teaching-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Collaboration CTA */
.collaboration-cta {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 82, 163, 0.05));
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 2px solid var(--link);
    text-align: center;
}

.collaboration-content h2 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.collaboration-areas,
.collaboration-types {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
    max-width: 600px;
}

.collaboration-areas li,
.collaboration-types li {
    margin: 0.75rem 0;
    color: var(--text);
}

.collaboration-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Grid Enhancement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.stat-card.highlight-stat {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 82, 163, 0.05));
    border-color: var(--link);
    border-width: 2px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--link);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Publications Preview */
.publications-preview {
    margin: 3rem 0;
}

/* Collaboration Pages */
/* Collaboration Value Grid */
.collaboration-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.collaboration-value-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.collaboration-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.collaboration-value-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.collaboration-value-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

.collaboration-area-card,
.collaboration-type-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    transition: all var(--transition);
}

.collaboration-area-card:hover,
.collaboration-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.collaboration-area-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.collaboration-area-card h4:first-child {
    margin-top: 0;
}

.collaboration-form-section,
.collaboration-contact-section {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.collaboration-contact-section h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.5rem;
}

.collaboration-cta-buttons {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.form-instructions {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--link);
}

.email-form-placeholder {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 2px dashed var(--border);
    margin: 1.5rem 0;
    text-align: center;
}

.collaboration-status {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Publication Filters */
.publication-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--link);
    color: white;
    border-color: var(--link);
}

.publication.coming-soon {
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    padding: 2rem;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

/* Portfolio Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .portfolio-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

.portfolio-grid-single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Cards */
.portfolio-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.portfolio-card-large {
    max-width: 100%;
}

.portfolio-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.375rem;
    line-height: 1.3;
}

.portfolio-card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-card-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.portfolio-card-highlight {
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 1rem;
    border-left: 3px solid var(--link);
}

.portfolio-card-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    margin-top: auto;
    display: inline-block;
}

.portfolio-card-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.portfolio-card-link:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Portfolio Card Media */
.portfolio-card-media {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-card-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}

.portfolio-card-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: contain;
}

.portfolio-card-pdf {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-alt);
    margin-bottom: 1rem;
}

.portfolio-card-pdf iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
    border-radius: 8px;
}

.portfolio-card-pdf-caption {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.portfolio-card-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-card-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: contain;
    background: var(--bg-alt);
}

/* Hide filtered items */
.portfolio-grid[data-filter] .portfolio-card:not([data-category*="all"]) {
    display: none;
}

/* Research Overview Stats */
.research-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--link);
    margin-bottom: 0.25rem;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Contribution Badges */
.contribution-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-right: 0.5rem;
}

.contribution-badge.created {
    background: #28a745;
    color: white;
}

.contribution-badge.team {
    background: #0066cc;
    color: white;
}

/* Environment Grid */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Section Headers Enhancement */
.portfolio-case-study h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-case-study .contribution-badge {
    margin-top: 0;
}

/* Research Area Sections */
.research-area-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.research-area-section:first-child {
    border-top: none;
    padding-top: 0;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .collaboration-cta {
        padding: 2rem 1rem;
    }
    
    .collaboration-actions {
        flex-direction: column;
    }
    
    .teaching-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collaboration-area-card,
    .collaboration-type-card {
        padding: 1.5rem;
    }
    
    .collaboration-value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .collaboration-value-card {
        padding: 1.5rem;
    }
    
    .collaboration-contact-section {
        padding: 1.5rem;
    }
    
    .collaboration-cta-buttons {
        flex-direction: column;
    }
    
    .collaboration-cta-buttons .btn {
        width: 100%;
    }
    
    .experience-timeline {
        padding-left: 1.5rem;
    }
    
    .experience-item {
        padding-left: 1.5rem;
    }
    
    .experience-item.experience-current {
        margin-left: -1.5rem;
        padding-left: 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .about-contact-cta {
        flex-direction: column;
    }
    
    .about-contact-cta .btn {
        width: 100%;
    }
    
    .cv-download {
        flex-direction: column;
    }
    
    .cv-download .btn {
        width: 100%;
        min-width: auto;
    }
    
    .publication-cards {
        grid-template-columns: 1fr;
    }
    
    .cv-contact-section {
        padding: 1.5rem;
    }
    
    .portfolio-card-media {
        margin: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .portfolio-card-video video {
        max-height: 200px;
    }
    
    .portfolio-card-pdf iframe {
        height: 300px;
    }
    
    .portfolio-card-pdf-caption {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .portfolio-card-image img {
        max-height: 150px;
    }
    
    .research-actions {
        flex-direction: column;
    }
    
    .environment-grid {
        grid-template-columns: 1fr;
    }
    
    .research-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-case-study:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.portfolio-case-study h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.75rem;
}

.portfolio-case-study .project-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.portfolio-case-study .project-section {
    margin-bottom: 2rem;
}

.portfolio-case-study .project-section h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.25rem;
}

.portfolio-case-study .project-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-case-study .project-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text);
}

.portfolio-case-study .project-section strong {
    color: var(--text);
    font-weight: 600;
}

.portfolio-case-study .tech-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portfolio-case-study .tech-tools span {
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    border: 1px solid var(--border);
}

.portfolio-case-study .project-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Portfolio Grid (for card-based layout) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.portfolio-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.portfolio-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.portfolio-content {
    flex: 1;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.5rem;
}

.portfolio-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.portfolio-content p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: var(--text);
}

.portfolio-tech {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio-tech strong {
    color: var(--text);
    margin-right: 0.5rem;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.portfolio-links .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    .portfolio-filters {
        flex-direction: column;
    }
    
    .portfolio-filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-case-study {
        padding: 1.5rem;
    }
    
    .portfolio-case-study h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-case-study .project-links {
        flex-direction: column;
    }
    
    .portfolio-case-study .project-links .btn {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-card {
        padding: 2rem;
    }
    
    .portfolio-icon {
        font-size: 3rem;
    }
    
    .portfolio-links {
        flex-direction: column;
    }
    
    .portfolio-links .btn {
        width: 100%;
    }
}

/* Coming Soon Card */
.coming-soon-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 3rem 0;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.coming-soon-content {
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-content ul {
    text-align: left;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-content ul li {
    margin-bottom: 1rem;
}

/* Teaching Page Styles */
.teaching-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.position-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.position-card h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.position-card p {
    margin: 0.5rem 0;
}

/* Teaching Filters */
.teaching-filters {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
    align-items: center;
}

/* Module Badges */
.module-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    align-items: center;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-foundation {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.badge-undergraduate {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.badge-postgraduate {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.badge-secondary {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-hybrid {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f48fb1;
}

.badge-online {
    background: #e0f2f1;
    color: #00695c;
    border: 1px solid #80cbc4;
}

.badge-dates {
    background: var(--bg-alt);
    color: var(--text-light);
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

/* Enhanced Module Cards */
.module {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
    border-left: 4px solid var(--link);
}

.module:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.module h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.module p {
    margin: 0.75rem 0;
    line-height: 1.7;
}

.module-details {
    margin-top: 1rem;
}

.module-details summary {
    cursor: pointer;
    color: var(--link);
    font-weight: 500;
    padding: 0.5rem 0;
    user-select: none;
    transition: color var(--transition);
}

.module-details summary:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.module-details summary:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 2px;
}

.module-details[open] summary {
    margin-bottom: 0.75rem;
}

.module-details p {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.module strong {
    color: var(--primary);
    font-weight: 600;
}

/* Previous Roles */
.previous-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.role-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.role-card h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.role-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.role-card li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
}

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

.contact-card h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card p {
    margin: 0.5rem 0;
}

.contact-card a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Featured Modules */
.featured-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-module-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--link);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    position: relative;
}

.featured-module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--link-hover);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--link);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.featured-module-card h3 {
    margin-top: 0.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.featured-module-card p {
    margin: 0.75rem 0;
    line-height: 1.7;
}

.featured-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.featured-stats span {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-alt);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

/* Metrics Dashboard */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metric-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
}

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

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--link);
    margin: 0.5rem 0;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.metric-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.metric-breakdown span {
    padding: 0.25rem 0;
}

/* Teaching Timeline */
.teaching-timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.teaching-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--link), var(--link-hover));
    border-radius: 2px;
}

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

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--link);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--link);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--link);
}

.timeline-year {
    display: inline-block;
    background: var(--link);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.timeline-modules {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.timeline-badge {
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Responsive Design for Teaching Page */
@media (max-width: 768px) {
    .teaching-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .module-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .teaching-positions,
    .previous-roles,
    .contact-section,
    .featured-modules,
    .metrics-dashboard {
        grid-template-columns: 1fr;
    }
    
    .teaching-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: 8px;
        width: 14px;
        height: 14px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
}

/* ============================================
   SIMPLIFIED HOVER EFFECTS - PERFORMANCE OPTIMIZED
   ============================================ */

/* Simple hover effects - removed 3D transforms for better performance */
.home-publication-card:hover,
.home-stat-item:hover,
.carousel-card:hover,
.publication:hover,
.module:hover,
.position-card:hover,
.role-card:hover,
.approach-card:hover,
.education-card:hover,
.experience-item:hover,
.metric-card:hover,
.stat-card:hover,
.timeline-item:hover,
.featured-module-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Fade-in on Scroll - Simple and performant */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero,
.home-quick-stats,
.home-publications,
.home-teaching-section,
.home-collaboration-section,
.publication,
.module,
.carousel-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb li {
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   5D HOLOGRAM EFFECTS - REMOVED
   All holographic/5D effects have been removed
   ============================================ */

/* ============================================
   SEARCH FUNCTIONALITY STYLES
   ============================================ */

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: opacity 0.2s ease;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.search-toggle:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background: var(--bg);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: 0.75rem;
    background: transparent;
    color: var(--text);
}

.search-input::placeholder {
    color: var(--text-light);
}

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

.search-close:hover {
    color: var(--text);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
    margin-bottom: 0.5rem;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--link);
}

.search-result-title mark {
    background: rgba(0, 102, 204, 0.2);
    color: var(--link);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-url {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.search-result-snippet {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.search-result-snippet mark {
    background: rgba(0, 102, 204, 0.2);
    color: var(--text);
    padding: 0 2px;
    border-radius: 2px;
}

.search-hint,
.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.search-suggestions {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ============================================
   SOCIAL SHARING STYLES
   ============================================ */

.social-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-alt);
    border-color: var(--link);
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn.email:hover {
    background: var(--link);
    color: white;
    border-color: var(--link);
}

/* ============================================
   CITATION TOOLS STYLES
   ============================================ */

.citation-tools {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.citation-format-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.citation-format-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.citation-format-btn:hover,
.citation-format-btn.active {
    background: var(--link);
    color: white;
    border-color: var(--link);
}

.citation-text {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-citation-btn {
    padding: 0.5rem 1rem;
    background: var(--link);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.copy-citation-btn:hover {
    background: var(--link-hover);
}

.copy-citation-btn.copied {
    background: #28a745;
    color: white;
}

/* ============================================
   READING TIME STYLES
   ============================================ */

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.reading-time-icon {
    font-size: 1rem;
}

/* ============================================
   LOADING STATES & SKELETON SCREENS
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-alt) 0%,
        var(--bg-card) 50%,
        var(--bg-alt) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

.skeleton-text {
    height: 1em;
    margin: 0.5rem 0;
}

.skeleton-title {
    height: 2em;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--link);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--link);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   COPY CODE BUTTON STYLES
   ============================================ */

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

pre:hover .copy-code-btn,
code:hover + .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: var(--link);
    color: white;
    border-color: var(--link);
}

.copy-code-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

pre {
    position: relative;
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .theme-toggle,
    .publication-filters,
    .publication-search,
    .teaching-filters,
    footer {
        display: none;
    }
    
    /* Disable 3D and holographic effects for printing */
    body {
        perspective: none;
    }
    
    .home-publication-card,
    .carousel-card {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .home-hero-title,
    h1 {
        animation: none;
        background: #000;
        -webkit-text-fill-color: #000;
        filter: none;
    }
    
    .home-publication-card::after,
    .carousel-card::after {
        display: none;
    }
}
