/* Optimized CSS for European GenAI Hub */
:root {
    --primary-color: #003399;
    --secondary-color: #FFCC00;
    --background-color: #FFFFFF;
    --text-color: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-color: #E74C3C;
    --neutral-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 0.75rem;
    --spacing: 1.5rem;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --gradient-primary: linear-gradient(135deg, #003399 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --skeleton-shimmer: #f0f0f0;
    --skeleton-highlight: #e0e0e0;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #5B9BD5;
    --secondary-color: #FFD700;
    --background-color: #0a0a0a;
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-color: #ff6b6b;
    --neutral-color: #1a1a1a;
    --border-color: #2d2d2d;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #5B9BD5 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #a78bfa 100%);
    --skeleton-shimmer: #2d2d2d;
    --skeleton-highlight: #3d3d3d;
}

/* Enhanced dark mode styles */
[data-theme="dark"] body {
    background-color: var(--background-color);
    color: var(--text-color);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #2d2d2d, #1a1a1a);
    background-size: 400% 400%;
}

[data-theme="dark"] .hero-title {
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
    opacity: 0.9;
}

[data-theme="dark"] .hero-badge {
    background: rgba(91, 155, 213, 0.15);
    border: 1px solid rgba(91, 155, 213, 0.3);
    color: var(--text-color);
}

[data-theme="dark"] .stats-section {
    background: var(--background-color);
}

[data-theme="dark"] .stats-title {
    color: var(--text-color);
}

[data-theme="dark"] .stats-subtitle {
    color: var(--text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .stat-label {
    color: var(--text-color);
    opacity: 0.9;
}

[data-theme="dark"] .stat-number {
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .featured-section {
    background: var(--neutral-color);
}

[data-theme="dark"] .featured-projects-section {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--neutral-color) 100%);
}

[data-theme="dark"] .content-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .featured-card {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .content-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .featured-card:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
    background: #1e1e1e;
}

/* Enhanced dark mode text styles */
[data-theme="dark"] .card-title,
[data-theme="dark"] .project-title,
[data-theme="dark"] .featured-card-title {
    color: var(--text-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-description,
[data-theme="dark"] .project-description,
[data-theme="dark"] .featured-card-description {
    color: var(--text-secondary);
    opacity: 0.95;
    line-height: 1.6;
}

[data-theme="dark"] .card-meta,
[data-theme="dark"] .project-meta {
    color: var(--text-muted);
    opacity: 0.8;
}

[data-theme="dark"] .project-tag,
[data-theme="dark"] .tag {
    background: rgba(91, 155, 213, 0.25);
    color: #e1f0ff;
    border: 1px solid rgba(91, 155, 213, 0.5);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .tag-primary {
    background: rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
    border: 1px solid rgba(6, 182, 212, 0.6);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-link,
[data-theme="dark"] .card-link {
    color: var(--primary-color);
    background: rgba(91, 155, 213, 0.1);
    border: 1px solid rgba(91, 155, 213, 0.3);
}

[data-theme="dark"] .project-card:hover .project-link,
[data-theme="dark"] .content-card:hover .card-link {
    color: var(--text-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .filter-wrapper {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select {
    background: var(--background-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .table-wrapper {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .table-row:hover {
    background: var(--background-color);
}

[data-theme="dark"] .table-cell-main {
    color: var(--text-color);
}

[data-theme="dark"] .table-cell-sub,
[data-theme="dark"] .table-cell-content {
    color: var(--text-secondary);
    opacity: 0.9;
}

[data-theme="dark"] .table-badge {
    background: rgba(91, 155, 213, 0.25);
    color: #e1f0ff;
    border: 1px solid rgba(91, 155, 213, 0.5);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Enhanced dark mode badge variants */
[data-theme="dark"] .card-badge-blue,
[data-theme="dark"] .table-badge-blue {
    background: rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.6);
}

[data-theme="dark"] .card-badge-green,
[data-theme="dark"] .table-badge-green {
    background: rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.6);
}

[data-theme="dark"] .card-badge-purple,
[data-theme="dark"] .table-badge-purple {
    background: rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.6);
}

[data-theme="dark"] .card-badge-orange,
[data-theme="dark"] .table-badge-orange {
    background: rgba(249, 115, 22, 0.3);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.6);
}

[data-theme="dark"] .card-badge-yellow,
[data-theme="dark"] .table-badge-yellow {
    background: rgba(245, 158, 11, 0.3);
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.6);
}

[data-theme="dark"] .card-badge-pink,
[data-theme="dark"] .table-badge-pink {
    background: rgba(236, 72, 153, 0.3);
    color: #fce7f3;
    border: 1px solid rgba(236, 72, 153, 0.6);
}

[data-theme="dark"] .card-badge-gray,
[data-theme="dark"] .table-badge-gray {
    background: rgba(107, 114, 128, 0.4);
    color: #f3f4f6;
    border: 1px solid rgba(107, 114, 128, 0.7);
}

/* All dark mode badges get enhanced styling */
[data-theme="dark"] .card-badge,
[data-theme="dark"] .table-badge {
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced visibility for small badges */
[data-theme="dark"] .table-tag {
    background: rgba(91, 155, 213, 0.3);
    color: #e1f0ff;
    border: 1px solid rgba(91, 155, 213, 0.5);
    font-weight: 600;
}

[data-theme="dark"] .table-link {
    background: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .table-link:hover {
    background: #4a90e2;
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.3);
}

[data-theme="dark"] .footer {
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-description,
[data-theme="dark"] .eu-description {
    color: var(--text-secondary);
    opacity: 0.9;
}

[data-theme="dark"] .footer-manager-text {
    color: var(--text-color);
}

[data-theme="dark"] .footer-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--text-color);
}

[data-theme="dark"] .footer-section-title {
    color: var(--secondary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .footer-copyright {
    color: var(--text-muted);
    opacity: 0.8;
}

[data-theme="dark"] .legal-link {
    color: var(--text-muted);
}

[data-theme="dark"] .legal-link:hover {
    color: var(--text-color);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 64px;
    gap: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
    flex-wrap: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-link-icon {
    width: 1rem;
    height: 1rem;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-icon {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 220px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 1001;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Create invisible bridge to prevent hover loss */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: transparent;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-dropdown-link:hover {
    background: var(--neutral-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(2px);
}

.nav-dropdown-link:active {
    transform: translateX(1px);
}

/* Dark mode dropdown styles */
[data-theme="dark"] .nav-dropdown-content {
    background: var(--neutral-color);
    border-color: var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-dropdown-link:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

/* Content Cards for detailed sections */
.content-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-heavy);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

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

.card-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-content {
    line-height: 1.6;
}

.card-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--neutral-color);
    border-radius: var(--border-radius);
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.achievement-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
}

.achievement-item:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.focus-areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.focus-area-tag {
    background: var(--neutral-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.channel-card {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.channel-subs {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.channel-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.channel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.courses-grid,
.papers-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.course-card,
.paper-card,
.tool-card {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.course-header,
.paper-header,
.tool-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.course-title,
.paper-title,
.tool-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.course-meta,
.paper-meta,
.tool-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.course-instructor,
.paper-description,
.tool-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Button variations */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--neutral-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark mode styles */
[data-theme="dark"] .content-card {
    background: var(--neutral-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-stats {
    background: var(--background-color);
}

[data-theme="dark"] .focus-area-tag {
    background: var(--background-color);
}

[data-theme="dark"] .channel-card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .paper-card,
[data-theme="dark"] .tool-card {
    background: var(--background-color);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--neutral-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .channels-grid,
    .courses-grid,
    .papers-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-left: auto;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.nav-toggle:hover {
    background: var(--neutral-color);
}

/* Cool Slider-Style Dark Mode Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 0.5rem;
}

.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 36px;
    cursor: pointer;
}

.theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #FFF 0%, #F0F0F0 100%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.theme-slider-icons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    height: 100%;
    pointer-events: none;
}

.theme-icon-sun,
.theme-icon-moon {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-icon-sun {
    color: #FFD700;
    opacity: 1;
    transform: scale(1);
}

.theme-icon-moon {
    color: #E6E6FA;
    opacity: 0.3;
    transform: scale(0.8);
}

/* Checked state - Dark mode */
.theme-checkbox:checked + .theme-slider {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-checkbox:checked + .theme-slider:before {
    transform: translateX(32px);
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
}

.theme-checkbox:checked + .theme-slider .theme-icon-sun {
    opacity: 0.3;
    transform: scale(0.8);
    color: #FFA500;
}

.theme-checkbox:checked + .theme-slider .theme-icon-moon {
    opacity: 1;
    transform: scale(1);
    color: #E6E6FA;
}

/* Hover effects */
.theme-toggle-switch:hover .theme-slider {
    transform: scale(1.05);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(76, 124, 224, 0.3);
}

.theme-toggle-switch:hover .theme-slider:before {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Focus styles for accessibility */
.theme-checkbox:focus + .theme-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Active state */
.theme-toggle-switch:active .theme-slider:before {
    transform: scale(0.95);
}

.theme-checkbox:checked.theme-toggle-switch:active .theme-slider:before {
    transform: translateX(32px) scale(0.95);
}

/* Ripple effect on click */
.theme-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.theme-toggle-switch:active .theme-slider::after {
    width: 60px;
    height: 60px;
}

/* Dark mode specific navigation styles */
[data-theme="dark"] .nav-container {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-menu {
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .featured-title {
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .section-description,
[data-theme="dark"] .featured-description {
    color: var(--text-secondary);
    opacity: 0.9;
}

[data-theme="dark"] .nav-title {
    color: var(--text-color);
}

[data-theme="dark"] .nav-subtitle {
    color: var(--text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--text-color);
}

[data-theme="dark"] .mobile-nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .mobile-nav-link:hover {
    color: var(--text-color);
    background: rgba(91, 155, 213, 0.1);
}

/* Dark mode theme toggle adjustments */
[data-theme="dark"] .theme-slider {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-slider:before {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
    transform: translateX(32px);
}

[data-theme="dark"] .theme-icon-sun {
    color: #FFA500;
    opacity: 0.3;
    transform: scale(0.8);
}

[data-theme="dark"] .theme-icon-moon {
    color: #E6E6FA;
    opacity: 1;
    transform: scale(1);
}

[data-theme="dark"] .theme-toggle-switch:hover .theme-slider {
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(76, 124, 224, 0.2);
}

/* Enhanced dark mode readability improvements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] p {
    color: var(--text-secondary);
    line-height: 1.6;
}

[data-theme="dark"] .empty-state-title {
    color: var(--text-color);
}

[data-theme="dark"] .empty-state-message {
    color: var(--text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .loading-state {
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select {
    color: var(--text-color);
    background: var(--background-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .filter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="dark"] .filter-input:focus,
[data-theme="dark"] .filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

/* Improved contrast for small text */
[data-theme="dark"] .card-meta,
[data-theme="dark"] .project-meta,
[data-theme="dark"] .table-cell-sub {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Better link visibility */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.footer-link):not(.project-link):not(.card-link) {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.footer-link):not(.project-link):not(.card-link):hover {
    color: #7bb3f0;
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--neutral-color);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.mobile-theme-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.mobile-theme-switch {
    width: 60px;
    height: 32px;
}

.mobile-theme-switch .theme-slider:before {
    height: 24px;
    width: 24px;
}

.mobile-theme-switch .theme-checkbox:checked + .theme-slider:before {
    transform: translateX(28px);
}

/* Main Content */
.main-content {
    margin-top: 4rem;
}

.section {
    display: none;
    min-height: calc(100vh - 4rem);
}

.section.active {
    display: block;
}

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

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

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(-45deg, #003399, #6366f1, #06b6d4, #ec4899);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
    overflow: hidden;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-background {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.hero-content {
    color: white;
    animation: fadeInUp 0.8s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--secondary-color), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1rem); }
}

.hero-image-container {
    position: relative;
    z-index: 10;
}

/* Earth symbol container */
.hero-earth-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-earth-symbol {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(145deg, #4A90E2, #2E5BBA);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: earthRotate 12s linear infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-earth-symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    animation: earthShine 3s ease-in-out infinite;
}

@keyframes earthShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.earth-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

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

/* Multiple flags container */
.hero-flags-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-flag {
    width: 100%;
    max-width: 15rem;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-slow);
    filter: brightness(1.05) saturate(1.1);
}

.hero-flag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Individual flag styling */
.hero-flag-eu {
    animation: flagFloat 3s ease-in-out infinite;
}

.hero-flag-uk {
    animation: flagFloat 3s ease-in-out infinite 1s;
}

.hero-flag-ch {
    animation: flagFloat 3s ease-in-out infinite 2s;
}

@keyframes flagFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Responsive adjustments for flags */
@media (max-width: 768px) {
    .hero-flags-container {
        gap: 1.5rem;
    }
    
    .hero-flag {
        max-width: 10rem;
    }
    
    .hero-earth-symbol {
        width: 4rem;
        height: 4rem;
    }
    
    .earth-icon {
        width: 2rem;
        height: 2rem;
    }
}

.floating-element {
    position: absolute;
    border-radius: 1rem;
    opacity: 0.8;
}

.element-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: var(--secondary-color);
    animation: pulse 3s ease-in-out infinite;
}

.element-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background: #06b6d4;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Background Decorations */
.bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-element-1 {
    top: 10%;
    left: 10%;
    width: 2rem;
    height: 2rem;
    background: var(--secondary-color);
}

.bg-element-2 {
    top: 40%;
    right: 20%;
    width: 3rem;
    height: 3rem;
    background: #ec4899;
    animation-delay: 2s;
}

.bg-element-3 {
    bottom: 20%;
    left: 25%;
    width: 1.5rem;
    height: 1.5rem;
    background: #06b6d4;
    animation: delay 3s;
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modern button variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4C7CE0 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 51, 153, 0.3);
    background: linear-gradient(135deg, #4C7CE0 0%, var(--primary-color) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.2);
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 51, 153, 0.3);
    background: var(--gradient-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 51, 153, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--neutral-color);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-width: 80px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 150px;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    min-width: 180px;
}

/* Button states */
.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

/* Dark mode button adjustments */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    box-shadow: 0 4px 15px rgba(76, 124, 224, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(76, 124, 224, 0.6);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(76, 124, 224, 0.1);
    border-color: rgba(76, 124, 224, 0.3);
    color: var(--text-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(76, 124, 224, 0.2);
    border-color: rgba(76, 124, 224, 0.5);
}

[data-theme="dark"] .btn-ghost {
    color: var(--text-color);
}

[data-theme="dark"] .btn-ghost:hover {
    background: var(--neutral-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

[data-theme="dark"] .btn-gradient {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(76, 124, 224, 0.3);
}

[data-theme="dark"] .btn-gradient:hover {
    box-shadow: 0 8px 25px rgba(76, 124, 224, 0.4);
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 5rem 0;
}

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

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stats-plus, .stats-number {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
}

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

.stat-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stat-card-1 { background: linear-gradient(135deg, #003399, #6366f1); color: white; }
.stat-card-2 { background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: white; }
.stat-card-3 { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: white; }
.stat-card-4 { background: linear-gradient(135deg, #f59e0b, #06b6d4); color: var(--text-color); }

.stat-bg-element {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-content {
    position: relative;
    z-index: 10;
}

.stat-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

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

.stats-cta {
    text-align: center;
}

/* Featured Section */
.featured-section {
    background: var(--neutral-color);
    padding: 5rem 0;
}

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

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.featured-description {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.featured-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.featured-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 0.75rem;
    color: white;
}

.featured-content {
    padding: 1.5rem;
}

.featured-card-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.featured-card-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.featured-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.featured-arrow {
    width: 1rem;
    height: 1rem;
    transition: var(--transition);
}

.featured-card:hover .featured-arrow {
    transform: translateX(0.25rem);
}

/* Filters */
.filter-wrapper {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-color);
    opacity: 0.5;
    pointer-events: none;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--neutral-color);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Content card styles */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Project link styles */
.card-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.project-link i {
    width: 1rem;
    height: 1rem;
}

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

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.card-badge-blue { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; }
.card-badge-green { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.card-badge-purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.card-badge-orange { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.card-badge-yellow { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.card-badge-pink { background: rgba(236, 72, 153, 0.1); color: #be185d; }
.card-badge-gray { background: rgba(107, 114, 128, 0.1); color: #374151; }

.card-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-section {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

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

.tag {
    padding: 0.25rem 0.5rem;
    background: var(--neutral-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-primary {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.card-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Table Styles */
.table-wrapper {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.models-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background: var(--gradient-primary);
    color: white;
}

.table-header th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.table-row:hover {
    background: var(--neutral-color);
}

.table-cell {
    padding: 1rem;
    vertical-align: top;
}

.table-cell-main {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.table-cell-sub {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
}

.table-cell-content {
    font-size: 0.875rem;
    color: var(--text-color);
}

.table-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-badge-blue { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; }
.table-badge-green { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.table-badge-purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.table-badge-orange { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.table-badge-yellow { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.table-badge-pink { background: rgba(236, 72, 153, 0.1); color: #be185d; }
.table-badge-gray { background: rgba(107, 114, 128, 0.1); color: #374151; }

.table-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.table-tag {
    padding: 0.125rem 0.5rem;
    background: var(--neutral-color);
    color: var(--text-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.table-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.table-link:hover {
    background: #002266;
}

.table-note {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
    background: var(--neutral-color);
}

/* Loading and Empty States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    color: var(--text-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-state-message {
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-toast {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -1rem);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

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

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.footer-section-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

.footer-link-icon {
    width: 0.875rem;
    height: 0.875rem;
    transition: var(--transition);
}

.footer-link:hover .footer-link-icon {
    transform: translateX(0.125rem);
}

.eu-flag-img {
    width: 4rem;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.eu-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.legal-link:hover {
    color: white;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .nav-wrapper {
        max-width: 1400px;
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        margin-right: 2rem;
    }
    
    .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle-container {
        margin-left: auto;
        padding-left: 1rem;
    }
}

/* Large screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-wrapper {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
        margin-right: 1.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
    }
    
    .theme-toggle-container {
        margin-left: auto;
        padding-left: 1rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .nav-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
        margin-right: 1rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .theme-toggle-container {
        margin-left: auto;
        padding-left: 0.75rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
}

/* Small to medium screens (481px to 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .nav-wrapper {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }
    
    .theme-toggle-container {
        margin-left: auto;
        padding-left: 0.5rem;
        order: 1;
    }
    
    .nav-brand {
        flex: 1;
        order: 0;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

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

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

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

    .map-filters {
        flex-direction: column;
    }

    .map-display {
        height: 400px;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* Mobile screens (up to 480px) */
@media (max-width: 480px) {
    .nav-wrapper {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        min-height: 56px;
    }
    
    .nav-brand {
        flex: 1;
        min-width: 0;
        order: 0;
    }
    
    .nav-title {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    .nav-subtitle {
        font-size: 0.625rem;
        line-height: 1.1;
    }
    
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: 0.25rem;
        order: 2;
        width: 36px;
        height: 36px;
        padding: 0.25rem;
    }
    
    .theme-toggle-container {
        margin-left: auto;
        padding-left: 0.25rem;
        order: 1;
    }
    
    .theme-toggle-switch {
        width: 55px;
        height: 30px;
    }
    
    .theme-slider:before {
        height: 22px;
        width: 22px;
    }
    
    .theme-checkbox:checked + .theme-slider:before {
        transform: translateX(25px);
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    :root {
        --spacing: 1rem;
    }

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

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

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

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

    .stats-plus, .stats-number {
        font-size: 2.5rem;
    }
    
    .section-container {
        padding: 1rem 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-menu-content {
        padding: 0.5rem;
    }
    
    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .mobile-theme-toggle {
        padding: 0.75rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo,
    .theme-slider {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape phone orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .nav-wrapper {
        padding: 0.5rem 0.75rem;
        min-height: 48px;
        gap: 0.25rem;
    }
    
    .nav-title {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    .nav-subtitle {
        font-size: 0.625rem;
        line-height: 1.1;
    }
    
    .nav-toggle {
        width: 32px;
        height: 32px;
        padding: 0.25rem;
    }
    
    .theme-toggle-switch {
        width: 50px;
        height: 28px;
    }
    
    .theme-slider:before {
        height: 20px;
        width: 20px;
    }
    
    .theme-checkbox:checked + .theme-slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .filter-wrapper,
    .map-wrapper,
    .footer {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    .section {
        display: block !important;
        page-break-after: always;
    }

    .content-card {
        break-inside: avoid;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
}

.scroll-reveal-up {
    transform: translateY(30px);
}

.scroll-reveal-up.revealed {
    transform: translateY(0);
}

.scroll-reveal-left {
    transform: translateX(-30px);
}

.scroll-reveal-left.revealed {
    transform: translateX(0);
}

.scroll-reveal-right {
    transform: translateX(30px);
}

.scroll-reveal-right.revealed {
    transform: translateX(0);
}

.scroll-reveal-scale {
    transform: scale(0.8);
}

.scroll-reveal-scale.revealed {
    transform: scale(1);
}

/* Parallax effect */
.parallax-bg {
    position: relative;
    overflow: hidden;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: inherit;
    transform: translateZ(-1px) scale(1.5);
    z-index: -1;
}

/* Morphing blob animations */
@keyframes blob1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    33% { 
        transform: translate(30px, -50px) scale(1.1) rotate(120deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg);
        border-radius: 70% 30% 40% 60% / 40% 70% 60% 30%;
    }
}

@keyframes blob2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 70% 30% 50% 60%;
    }
    33% { 
        transform: translate(-30px, 50px) scale(1.2) rotate(-120deg);
        border-radius: 60% 40% 30% 70% / 30% 60% 70% 40%;
    }
    66% { 
        transform: translate(20px, -20px) scale(0.8) rotate(-240deg);
        border-radius: 30% 70% 50% 50% / 60% 40% 40% 70%;
    }
}

.animated-blob {
    position: absolute;
    opacity: 0.1;
    filter: blur(2px);
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #003399, #6366f1);
    animation: blob1 20s ease-in-out infinite;
}

.blob-2 {
    top: 60%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    animation: blob2 25s ease-in-out infinite;
    animation-delay: -5s;
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neumorphism elements */
.neomorphic {
    background: #f0f0f3;
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.command-palette.hidden {
    display: none;
}

.command-palette-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.command-palette-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: commandPaletteIn 0.15s ease-out;
}

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

.command-search {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 0.75rem;
}

.command-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    flex-shrink: 0;
}

.command-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #1f2937;
    placeholder-color: #9ca3af;
}

.command-shortcut {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.command-list {
    max-height: 300px;
    overflow-y: auto;
}

.command-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.command-item:hover,
.command-item.selected {
    background: #f3f4f6;
}

.command-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    flex-shrink: 0;
}

.command-name {
    font-size: 0.875rem;
    color: #1f2937;
}

.command-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #f9fafb;
}

.command-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.command-hint kbd {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.25rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1;
}

.neomorphic-inset {
    background: #f0f0f3;
    border-radius: 20px;
    box-shadow: 
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
}

/* Enhanced micro-interactions */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #003399, #6366f1, #ec4899, #8b5cf6);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.hover-glow:hover::before {
    opacity: 0.7;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.4);
}

.fab-menu {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.fab-item {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.fab-menu.active .fab-item {
    opacity: 1;
    transform: scale(1);
}

.fab-menu.active .fab-item:nth-child(1) { transition-delay: 0.1s; }
.fab-menu.active .fab-item:nth-child(2) { transition-delay: 0.2s; }
.fab-menu.active .fab-item:nth-child(3) { transition-delay: 0.3s; }

/* Command palette */
.command-palette {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-palette.active {
    opacity: 1;
    visibility: visible;
}

.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.command-input {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    font-family: inherit;
    outline: none;
    border-bottom: 1px solid var(--border-color);
}

.command-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.command-item:hover,
.command-item.selected {
    background: var(--neutral-color);
}

.command-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.command-text {
    flex: 1;
}

.command-shortcut {
    font-size: 0.75rem;
    background: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Leaflet Map Customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
}

.leaflet-popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.custom-marker {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-medium);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 0 0 1px rgba(0, 0, 0, 0.5);
        --shadow-medium: 0 0 0 2px rgba(0, 0, 0, 0.5);
        --shadow-heavy: 0 0 0 3px rgba(0, 0, 0, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer Manager and Social Link Styles */
.footer-manager {
    margin: 1rem 0;
}

.footer-manager-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Featured cards cursor and hover effects */
.project-card[data-research-area] {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card[data-research-area]:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-card[data-research-area]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-color);
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.empty-state p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* Featured Projects Section */
.featured-projects-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin: 2rem 0;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.project-icon i {
    color: white;
    width: 24px;
    height: 24px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.project-link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-link i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1.25rem;
    }
}

.social-link-primary {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: auto;
    height: auto;
}

.social-link-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link-primary span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Hint Styles */
.hero-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-hint-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: center;
}

.hero-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Modern Notification Styles */
.modern-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modern-notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.modern-notification kbd {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 0.25rem;
}

/* Enhanced body class styles */
.modern-enhanced .hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-enhanced .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-enhanced .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-enhanced .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-enhanced .btn:hover::before {
    left: 100%;
}

.modern-enhanced .animate-in {
    animation: fadeInUp 0.6s ease-out;
}

.modern-enhanced .nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.modern-enhanced .nav-scrolled .nav-logo {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Command Palette Enhanced */
.modern-enhanced .command-palette-open {
    overflow: hidden;
}

/* Modern Skeleton Loading Styles */
.skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.skeleton-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.skeleton-header,
.skeleton-title,
.skeleton-text,
.skeleton-footer {
    background: linear-gradient(90deg, var(--skeleton-shimmer) 0%, var(--skeleton-highlight) 50%, var(--skeleton-shimmer) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.skeleton-header {
    height: 2rem;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-footer {
    height: 1rem;
    width: 40%;
    margin-bottom: 0;
}

.skeleton-table-row {
    background: white;
}

.skeleton-table-row td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

/* Modern Animation Styles */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Command Palette Styles */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.command-palette.hidden {
    display: none;
}

.command-palette-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.command-palette-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.command-palette-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
}

.command-palette-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-color);
    opacity: 0.5;
}

.command-palette-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
}

.command-palette-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.command-palette-shortcut {
    background: var(--neutral-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.5;
}

.command-palette-results {
    max-height: 400px;
    overflow-y: auto;
}

.command-palette-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.command-palette-item:hover {
    background: var(--neutral-color);
}

.command-palette-item-icon {
    width: 1rem;
    height: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.command-palette-item-content {
    flex: 1;
}

.command-palette-item-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.command-palette-item-description {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
}

.command-palette-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.5;
}

/* Update Notification Styles */
.update-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-content .btn {
    margin: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-icon-loading {
    animation: spin 1s linear infinite;
}

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

/* Floating Action Button with Dark Mode */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.3);
    transition: var(--transition-bounce);
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.4);
}

[data-theme="dark"] .fab {
    background: var(--gradient-primary);
    box-shadow: 0 8px 24px rgba(76, 124, 224, 0.3);
}

[data-theme="dark"] .fab:hover {
    box-shadow: 0 12px 32px rgba(76, 124, 224, 0.4);
}

/* Enhanced Navigation */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav-scrolled .nav-logo {
    transform: scale(0.9);
}

/* Modern Focus Styles */
.focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .command-palette-content {
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .skeleton-container {
        grid-template-columns: 1fr;
    }
    
    .update-notification {
        right: 1rem;
        left: 1rem;
        top: auto;
        bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .command-palette,
    .update-notification {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section {
        display: block !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-color: #000;
        --shadow-light: 0 0 0 1px #000;
        --shadow-medium: 0 0 0 2px #000;
        --shadow-heavy: 0 0 0 3px #000;
    }
}

/* Featured Sections Styles */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

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

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-card-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-color);
    border-radius: var(--border-radius);
}

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.featured-card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Research Areas Styles */
.research-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-area-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.research-area-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.research-area-header {
    margin-bottom: 1.5rem;
}

.research-area-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.research-area-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.research-area-overview {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.research-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.content-section h4 i {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

.channel-list,
.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.channel-item,
.course-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--neutral-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.channel-item strong,
.course-item strong {
    color: var(--text-color);
}

.channel-item span,
.course-item span {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.research-area-actions {
    display: flex;
    justify-content: flex-end;
}

/* Dark mode styles for featured sections */
[data-theme="dark"] .featured-card,
[data-theme="dark"] .research-area-card {
    background: var(--neutral-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .featured-card-stats {
    background: var(--background-color);
}

[data-theme="dark"] .channel-item,
[data-theme="dark"] .course-item {
    background: var(--background-color);
}

/* Responsive design for featured sections */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .research-areas-grid {
        grid-template-columns: 1fr;
    }
    
    .research-area-content {
        grid-template-columns: 1fr;
    }
    
    .featured-card-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .skeleton-header,
    .skeleton-title,
    .skeleton-text,
    .skeleton-footer {
        animation: none;
        background: var(--skeleton-shimmer);
    }
}
}