:root {
    --primary-color: #0050ef; /* Cobalt default */
    --primary-hover: #002ac9;
    --secondary-color: #107c41; /* Microsoft Fluent Green */
    --google-blue: #0067b8;
    --google-red: #e81123; /* Windows Close Red */
    --google-yellow: #ffb900; /* Windows Accent Yellow */
    --google-green: #107c41;
    
    --bg-color: #f3f2f1;
    --surface-color: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --border-color: #e8edf5;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.65);
    
    /* Deep, layered elevation shadows for premium perceived depth */
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:    0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 48px rgba(0,0,0,0.13), 0 8px 20px rgba(0,0,0,0.08);
    --shadow-card:  0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --shadow-glow:  0 0 0 3px rgba(var(--primary-rgb, 0, 80, 239), 0.14);
    
    /* Fluid spring transition curves */
    --transition:         all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast:    all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring:  all 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth:  all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Refined border radius system */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;
    
    /* Premium typography stack */
    --font-main:    'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Letter-spacing scale */
    --tracking-tight:  -0.025em;
    --tracking-normal:  0em;
    --tracking-wide:    0.02em;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable font optical sizing and smooth sub-pixel rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: var(--tracking-normal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(var(--primary-rgb, 0, 80, 239), 0.03);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb, 0, 80, 239), 0.04) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(var(--primary-rgb, 0, 80, 239), 0.03) 0%, transparent 60%),
        radial-gradient(rgba(var(--primary-rgb, 0, 80, 239), 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Premium Glassmorphic Card Base */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer top edge */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.8) 70%, transparent);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--primary-rgb, 0, 80, 239), 0.10);
    border-color: rgba(var(--primary-rgb, 0, 80, 239), 0.20);
    transform: translateY(-3px);
}

.mt-2 {
    margin-top: 2rem;
}

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.slide-up {
    animation: slideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Navbar (Microsoft clean header style) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    border-bottom: none;
    z-index: 1000;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: var(--tracking-tight);
    transition: var(--transition-fast);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1; /* Occupy full available header space */
    padding: 0 2rem; /* Give space for absolute positioned naked chevron buttons */
    overflow: hidden;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    width: 100%;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45); /* outline of shape */
    width: 28px;
    height: 28px;
    border-radius: 50%; /* circular outline button */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.nav-scroll-btn.scroll-left {
    left: 4px;
}

.nav-scroll-btn.scroll-right {
    right: 4px;
}

.nav-scroll-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15); /* light fill on hover */
    border-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-main);
    font-weight: 600 !important;
    font-size: 0.84rem;
    letter-spacing: var(--tracking-wide);
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
    display: inline-block;
    flex-shrink: 0 !important;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-full);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700 !important;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: #ffffff;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 95%;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 80px auto 2rem;
    padding: 0 2rem;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
        filter: blur(3px);
    }
    60% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.page-section {
    display: none;
    opacity: 0;
    will-change: transform, opacity, filter;
}

.page-section.active-section {
    display: block;
    animation: sectionSlideIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Section Headers — Display typography with crisp weight */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--primary-color);
    display: inline-block;
    line-height: 1.1;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.85rem auto 0;
    border-radius: var(--radius-full);
    opacity: 0.85;
    position: relative;
}

.section-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    opacity: 0.18;
}

/* Hero Section / Home Tab Fluid Layout */
.hero-container {
    display: grid;
    grid-template-columns: minmax(320px, 360px) 1fr;
    gap: 2.25rem;
    margin-top: 1.5rem;
    align-items: start;
}

.hero-profile {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-wrapper {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow:
        var(--shadow-md),
        0 0 0 6px rgba(var(--primary-rgb, 0, 80, 239), 0.10),
        0 0 0 10px rgba(var(--primary-rgb, 0, 80, 239), 0.04);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.hero-image-wrapper:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 0 6px rgba(var(--primary-rgb, 0, 80, 239), 0.18),
        0 0 0 12px rgba(var(--primary-rgb, 0, 80, 239), 0.07);
    transform: scale(1.02);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .profile-img {
    transform: scale(1.04);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.hero-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-institution {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.hero-contact a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-color);
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.hero-contact a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.08);
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    padding: 2rem;
}

.detail-card p {
    text-align: justify;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.interest-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.interest-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.interest-list i {
    color: var(--primary-color);
}

/* Tabs UI */
.content-card {
    padding: 2rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: none;
    margin-bottom: 1.8rem;
    width: 100%;
}

.tab-btn {
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.04) !important;
    border: 1.5px solid rgba(var(--primary-rgb, 0, 80, 239), 0.12) !important;
    border-radius: var(--radius-full) !important;
    padding: 0.5rem 1.2rem !important;
    font-family: var(--font-main) !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    letter-spacing: var(--tracking-wide) !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap;
    transform: none !important;
    outline: none !important;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--primary-color) !important;
    border-color: rgba(var(--primary-rgb, 0, 80, 239), 0.35) !important;
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.08) !important;
    transform: translateY(-1px) !important;
}

.tab-btn.active,
.tab-btn.active:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: none !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 0, 80, 239), 0.30), 0 1px 3px rgba(0,0,0,0.1) !important;
    font-weight: 700 !important;
}

.tab-content {
    display: none;
    animation: slideUp 0.45s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.tab-content.active {
    display: block;
}

.publication-list {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for list */
.publication-list::-webkit-scrollbar {
    width: 6px;
}
.publication-list::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.publication-list::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
.publication-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Publication Items */
.publication-item {
    padding: 1.25rem 1.35rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(255,255,255,0.85);
    margin-bottom: 0.85rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.publication-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 0 0 0;
    transition: width 0.25s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    background: #fff;
}

.publication-item:hover::before {
    width: 4px;
}

.pub-apa {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.pub-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pub-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.pub-metrics {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e8f4fd;
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 500;
}

.page-btn:hover {
    background: #e8f4fd;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

/* Data Table (Teaching) */
.teaching-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.02);
    font-size: 0.9rem;
}

.data-table tr:hover {
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.02);
}

.data-table td {
    font-size: 0.95rem;
}

.score-badge {
    color: #137333;
    font-weight: 700;
    font-size: 1rem;
}

/* Material List */
.material-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.material-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.material-icon {
    width: 48px;
    height: 48px;
    background: #e8f4fd;
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.material-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.material-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), rgba(var(--primary-rgb, 0,80,239), 0.15));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.25rem;
    padding-left: 0.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.28rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--surface-color);
    box-shadow:
        0 0 0 2px rgba(var(--primary-rgb, 26, 115, 232), 0.25),
        0 0 0 4px rgba(var(--primary-rgb, 26, 115, 232), 0.08);
    transition: var(--transition-spring);
    z-index: 1;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow:
        0 0 0 3px rgba(var(--primary-rgb, 26, 115, 232), 0.35),
        0 0 0 7px rgba(var(--primary-rgb, 26, 115, 232), 0.10);
}

.timeline-date {
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    opacity: 0.85;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-subtitle {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Edu & Cert Grid */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.certification-list {
    list-style: none;
    margin-top: 1.5rem;
}

.certification-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.certification-list li:last-child {
    border-bottom: none;
}

.cert-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.role-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.role-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Gallery Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Course Overview */
.course-topics-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

.course-topic-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.course-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.course-topic-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.course-topic-program {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 2px 8px;
    background: #e6f4ea;
    border-radius: 4px;
}

.course-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-topics-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-color);
}

.course-topics-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* Tooltip for Word Cloud */
.word-tag {
    position: relative;
}

.word-tag .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 100;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.word-tag .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.word-tag:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Word Cloud */
.word-cloud-card {
    grid-column: 1 / -1;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: 180px;
}

.word-tag {
    font-weight: 700;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    cursor: default;
    transition: all 0.3s ease;
    display: inline-block;
}

.word-tag:hover {
    transform: scale(1.1) !important;
    color: var(--primary-color) !important;
    text-shadow: 0 4px 12px rgba(var(--primary-rgb, 26, 115, 232), 0.2);
    z-index: 10;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 124, 58, 237), 0.92), rgba(var(--primary-hover-rgb, 109, 40, 217), 0.96)), url('../assets/img/cover.jpg') no-repeat center center;
    background-size: cover;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    .nav-scroll-container {
        padding: 0 1.5rem;
    }
    .nav-scroll-btn {
        width: 22px;
        font-size: 0.7rem;
    }
}

/* Fluent Dropdown Link Styles */
.dropdown-link:hover {
    background: #f2f2f2;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
    text-decoration: none !important;
}

.dropdown-link.active {
    background: #f2f2f2;
    color: var(--text-primary) !important;
    border-left-color: var(--primary-color) !important;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-download-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 10px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: background-color 0.3s;
}

.lightbox-download-btn:hover {
    background-color: var(--primary-color-dark);
}

.gallery-item {
    cursor: pointer;
}



/* Horizontal Roadmap CSS */
.horizontal-roadmap-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    overflow-x: auto;
    padding: 1.5rem;
    gap: 2.5rem;
    scrollbar-width: thin;
}

.horizontal-roadmap-container::-webkit-scrollbar {
    height: 6px;
}
.horizontal-roadmap-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Connecting Line - removed to avoid partial scroll cut-off */

.roadmap-item {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.roadmap-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--surface-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 26, 115, 232), 0.25);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.roadmap-item:hover .roadmap-dot {
    transform: scale(1.2);
    background: var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(224, 86, 36, 0.3);
}

.roadmap-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #e8f4fd;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.roadmap-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.roadmap-item:hover .roadmap-card {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.roadmap-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.roadmap-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.roadmap-desc {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* GLIM Clicks toggle button hover */
#glim-toggle-btn:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 26, 115, 232), 0.12);
    background: var(--surface-color);
}

/* Hide preview strip on small screens */
@media (max-width: 600px) {
    .glim-preview-strip { display: none !important; }
}

/* Innovative Testimonials Hover Effect */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem 0.5rem;
    perspective: 1000px; /* 3D Perspective! */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: 140px;
    box-shadow: var(--shadow-sm);
    
    /* Shrink & push back by default to optimize space */
    transform: scale(0.95) translateZ(-10px);
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    z-index: 1;
}

/* Hover active state: pop to front, expand, scale up, glow */
.testimonial-card:hover {
    transform: scale(1.06) translateY(-8px) translateZ(15px);
    opacity: 1;
    box-shadow: var(--shadow-lg), 0 12px 30px rgba(var(--primary-rgb, 26, 115, 232), 0.2);
    border-left-color: var(--secondary-color);
    background: var(--surface-color);
    z-index: 10;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line; /* Essential to render \n correctly! */
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    align-self: flex-end;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Collaborators and Institutions tab styles */
.collab-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.collab-tab-btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    border: none !important;
    padding: 0.6rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 700 !important; /* Bold for prominence */
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    outline: none !important;
}

.collab-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    background: var(--primary-color);
    transition: opacity 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.collab-tab-btn:hover {
    color: var(--primary-color);
}

.collab-tab-btn:hover::before {
    opacity: 0.08;
}

.collab-tab-btn.active {
    color: var(--surface-color) !important;
    border: none !important;
    outline: none !important;
}

.collab-tab-btn.active::before {
    opacity: 1;
}

.collab-tab-content {
    display: none;
    animation: slideUp 0.45s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.collab-tab-content.active {
    display: block;
}

.collab-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Custom Scrollbar for collab-grid */
.collab-grid::-webkit-scrollbar {
    width: 6px;
}
.collab-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}
.collab-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.2);
    border-radius: 4px;
}
.collab-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.4);
}

.collab-chip {
    position: relative;
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.06);
    color: var(--primary-color);
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb, 26, 115, 232), 0.12);
    cursor: pointer;
}

.collab-chip:hover {
    background: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 26, 115, 232), 0.2);
}

/* Tooltip design - hidden for absolute rendering to prevent overflow clipping */
.collab-chip .collab-tooltip {
    display: none;
}

/* Premium Floating Body Tooltip */
#collab-floating-tooltip {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--primary-rgb, 26, 115, 232), 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 270px;
    font-family: var(--font-main);
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    line-height: 1.4;
    font-size: 0.8rem;
}

#collab-floating-tooltip strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
}

#collab-floating-tooltip p {
    margin: 0;
    color: var(--text-secondary);
}

#collab-floating-tooltip .tooltip-badge {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.15rem 0.4rem;
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.08);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.collab-tooltip strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.collab-tooltip p {
    margin: 0;
    color: var(--text-secondary);
}

.collab-tooltip .tooltip-badge {
    display: block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(var(--primary-rgb, 26, 115, 232), 0.08);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Color Palette Picker */
.color-picker-container {
    transition: var(--transition);
}
.color-dot {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}
.color-dot:hover {
    transform: scale(1.3);
}
.color-dot.active {
    transform: scale(1.15);
}

/* Material Ink Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.25);
    pointer-events: none;
}
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Publication Timeline HTML Bars */
.timeline-bar {
    cursor: pointer;
    transition: var(--transition);
}
.timeline-bar:hover {
    filter: brightness(0.85);
    transform: translateY(-2px);
}
.timeline-bar.active-bar {
    background: var(--secondary-color) !important;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 26, 115, 232), 0.3);
}

/* CV View and Print Buttons Hover Styling */

#print-cv-btn:hover {
    background: var(--primary-hover) !important;
    opacity: 0.95;
}

/* Dynamic CV Modal Print Styles */
@page {
    margin: 15mm !important;
}

@media print {
    /* Hide everything on the body except the CV builder modal */
    body > *:not(#cv-viewer-modal), footer, .footer, .academic-bg-decorations {
        display: none !important;
    }
    /* Make sure the modal behaves as a standard visible document block and takes full A4 page width */
    #cv-viewer-modal {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }
    #cv-viewer-modal > div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }
    #cv-viewer-modal > div > div:first-child {
        display: none !important; /* Hide close bar */
    }
    #cv-customize-panel {
        display: none !important; /* Hide customization options sidebar */
    }
    #cv-preview-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    #cv-content-body {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: white !important;
        color: #000000 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    /* Simple page breaks */
    .cv-section {
        page-break-inside: auto !important;
    }
    .cv-section li {
        page-break-inside: avoid !important;
    }
}


/* Photography Grid Hover Effects */
.gallery-item-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item-card:hover img {
    transform: scale(1.08);
}
.gallery-item-card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-4px);
    border-color: var(--primary-color) !important;
}

/* Photography Masonry Layout Sizes */
.grid-span-1-1 {
    grid-column: span 1;
    grid-row: span 1;
}
.grid-span-2-2 {
    grid-column: span 2;
    grid-row: span 2;
}
.grid-span-2-1 {
    grid-column: span 2;
    grid-row: span 1;
}
.grid-span-1-2 {
    grid-column: span 1;
    grid-row: span 2;
}
.instagram-overlay-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
    transition: var(--transition);
}
.gallery-item-card:hover .instagram-overlay-icon {
    background: #e1306c;
    transform: scale(1.1);
}

/* Custom Color Picker Input Swatch Styles */
#theme-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}
#theme-color-input::-webkit-color-swatch {
    border: 1.5px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Ensure consistent icon margins across all tiles, tabs, headers, chips, and items */
.card-header i,
.collab-tab-btn i,
.collab-chip i,
.role-card i,
.role-list-card i,
.timeline-item i,
.certification-list li i,
.contact-item i,
.nav-link i,
.dropdown-link i,
.theme-picker-toggle i,
.btn-text i,
.theme-palette-dropdown i,
#theme-picker-toggle i,
#tabs-dropdown-toggle i {
    margin-right: 0.5rem !important;
}

/* Margin on the top and left for Review & Editorial Boards and Academic Contributions */
.role-list-card {
    margin-top: 1rem !important;
    margin-left: 0.5rem !important;
}

.contribution-item-card {
    margin-top: 1rem !important;
    margin-left: 0.5rem !important;
}

/* Header picker white-text overrides for dark background */
#theme-picker-toggle, 
#tabs-dropdown-toggle {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

#theme-picker-toggle i, 
#tabs-dropdown-toggle i {
    color: #ffffff !important;
}

.color-picker-wrapper {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Academic/Operations background decorations */
.academic-bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.decor-item {
    position: absolute;
    transition: all 0.5s ease;
    pointer-events: auto; /* Allow hover effects */
}

.icon-decor {
    color: #0050ef; /* Fixed cobalt blue — consistent, monochromatic */
    opacity: 0.07; /* Subtle whisper — visible but non-intrusive */
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.icon-decor:hover {
    opacity: 0.22;
    transform: scale(1.18) !important;
}

/* Responsive constraints for decor items */
@media (max-width: 1400px) {
    .academic-bg-decorations {
        opacity: 0.35;
    }
}
@media (max-width: 1100px) {
    .academic-bg-decorations {
        opacity: 0.2;
    }
    .icon-decor {
        font-size: 1.8rem !important;
    }
}
@media (max-width: 768px) {
    .academic-bg-decorations {
        display: none; /* Hide on mobile for performance and clean UI */
    }
}

/* Custom Color Picker Input Swatch Styles */
#theme-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}
#theme-color-input::-webkit-color-swatch {
    border: 1.5px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Ensure consistent icon margins across all tiles, tabs, headers, chips, and items */
.card-header i,
.collab-tab-btn i,
.collab-chip i,
.role-card i,
.role-list-card i,
.timeline-item i,
.certification-list li i,
.contact-item i,
.nav-link i,
.dropdown-link i,
.theme-picker-toggle i,
.btn-text i,
.theme-palette-dropdown i,
#theme-picker-toggle i,
#tabs-dropdown-toggle i {
    margin-right: 0.5rem !important;
}

/* Margin on the top and left for Review & Editorial Boards and Academic Contributions */
.role-list-card {
    margin-top: 1rem !important;
    margin-left: 0.5rem !important;
}

.contribution-item-card {
    margin-top: 1rem !important;
    margin-left: 0.5rem !important;
}

/* Header picker white-text overrides for dark background */
#theme-picker-toggle, 
#tabs-dropdown-toggle {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

#theme-picker-toggle i, 
#tabs-dropdown-toggle i {
    color: #ffffff !important;
}

.color-picker-wrapper {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Academic/Operations background decorations */
.academic-bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.decor-item {
    position: absolute;
    transition: all 0.5s ease;
    pointer-events: auto; /* Allow hover effects */
}

.icon-decor {
    color: var(--primary-color);
    opacity: 0.08; /* Keep it subtle and non-intrusive */
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.icon-decor:hover {
    opacity: 0.25;
    transform: scale(1.15) !important;
}

/* Responsive constraints for decor items */
@media (max-width: 1400px) {
    .academic-bg-decorations {
        opacity: 0.35;
    }
}
@media (max-width: 1100px) {
    .academic-bg-decorations {
        opacity: 0.2;
    }
    .icon-decor {
        font-size: 1.8rem !important;
    }
}
@media (max-width: 768px) {
    .academic-bg-decorations {
        display: none; /* Hide on mobile for performance and clean UI */
    }
}

/* ── Bob Marley / Rasta Theme styles ──────────────────────── */
.theme-rasta .navbar {
    background: linear-gradient(-45deg, #e51400 0%, #ffb900 50%, #008a00 100%) !important;
}

.theme-rasta .navbar .nav-logo,
.theme-rasta .navbar .navbar-brand,
.theme-rasta .navbar .nav-link,
.theme-rasta #theme-picker-toggle,
.theme-rasta #tabs-dropdown-toggle,
.theme-rasta .mobile-menu-btn {
    color: #000000 !important;
}

.theme-rasta .navbar .nav-logo i,
.theme-rasta .navbar .navbar-brand i,
.theme-rasta .navbar .nav-link i,
.theme-rasta #theme-picker-toggle i,
.theme-rasta #tabs-dropdown-toggle i,
.theme-rasta .mobile-menu-btn i {
    color: #000000 !important;
}

.theme-rasta .navbar .nav-link:hover {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.08) !important;
}

.theme-rasta .navbar .nav-link::after {
    background-color: #000000 !important;
}

.theme-rasta .navbar .nav-link.active::after {
    background-color: #000000 !important;
}

.theme-rasta .section-header h2,
.theme-rasta .hero-name {
    color: #000000 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    display: inline-block;
}

.theme-rasta .timeline-title,
.theme-rasta .roadmap-title,
.theme-rasta .card-header h3,
.theme-rasta .contribution-item-card strong {
    color: #008a00 !important; /* Green primary highlight */
}

.theme-rasta .timeline-item::before {
    border-left-color: #ffb900 !important; /* Yellow vertical line */
}

.theme-rasta .roadmap-dot {
    background: #ffb900 !important; /* Yellow dot */
    border-color: #e51400 !important; /* Red border */
}

.theme-rasta .roadmap-item::before {
    background: #008a00 !important; /* Green roadmap line */
}

.theme-rasta .tab-btn.active,
.theme-rasta .tab-btn.active:hover {
    color: #ffffff !important;
    background: #008a00 !important;
    border-color: #008a00 !important;
}

.theme-rasta .collab-tab-btn::before {
    background: linear-gradient(-45deg, #e51400 0%, #ffb900 50%, #008a00 100%) !important;
}

.theme-rasta .collab-tab-btn.active {
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    outline: none !important;
}

.theme-rasta .dropdown-link.active {
    background: linear-gradient(-45deg, #e51400 0%, #ffb900 50%, #008a00 100%) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border-left: 3px solid #ffffff !important;
}


.theme-rasta #print-cv-btn {
    background: linear-gradient(-45deg, #e51400, #ffb900, #008a00) !important;
    color: #ffffff !important;
    border: none !important;
    text-shadow: none !important;
}
.theme-rasta #print-cv-btn:hover {
    filter: brightness(0.9);
}

.theme-rasta .score-badge {
    color: #008a00 !important;
}

.theme-rasta .hero-title {
    color: #e51400 !important; /* Red subtitle */
}

/* Alternating Rasta colors for tiles/cards on hover */
.theme-rasta .glass-card:nth-of-type(3n+1):hover,
.theme-rasta #simulations-grid a:nth-of-type(3n+1):hover,
.theme-rasta #projects-container .glass-card:nth-of-type(3n+1):hover,
.theme-rasta .role-list-card:nth-of-type(3n+1):hover,
.theme-rasta .contribution-item-card:nth-of-type(3n+1):hover {
    border-color: #e51400 !important;
}

.theme-rasta .glass-card:nth-of-type(3n+2):hover,
.theme-rasta #simulations-grid a:nth-of-type(3n+2):hover,
.theme-rasta #projects-container .glass-card:nth-of-type(3n+2):hover,
.theme-rasta .role-list-card:nth-of-type(3n+2):hover,
.theme-rasta .contribution-item-card:nth-of-type(3n+2):hover {
    border-color: #ffb900 !important;
}

.theme-rasta .glass-card:nth-of-type(3n+3):hover,
.theme-rasta #simulations-grid a:nth-of-type(3n+3):hover,
.theme-rasta #projects-container .glass-card:nth-of-type(3n+3):hover,
.theme-rasta .role-list-card:nth-of-type(3n+3):hover,
.theme-rasta .contribution-item-card:nth-of-type(3n+3):hover {
    border-color: #008a00 !important;
}

/* General collaborator chip hovers under Rasta theme */
.theme-rasta .collab-chip:hover {
    background: linear-gradient(-45deg, #e51400 0%, #ffb900 50%, #008a00 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    text-shadow: none !important;
    box-shadow: var(--shadow-md) !important;
}
.theme-rasta .collab-chip:hover i {
    color: #ffffff !important;
}

/* Page footer styling under Rasta theme */
.theme-rasta .footer {
    background: linear-gradient(-45deg, #e51400 0%, #ffb900 50%, #008a00 100%) !important;
    border-top: none !important;
}
.theme-rasta .footer p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

/* ── Indian Flag / Tricolour Theme styles ──────────────────────── */
.theme-tricolour .navbar {
    background: linear-gradient(135deg, #FF671F 0%, #ffffff 50%, #046A38 100%) !important;
    border-bottom: none !important;
}

.theme-tricolour .navbar .nav-logo,
.theme-tricolour .navbar .navbar-brand,
.theme-tricolour .navbar .nav-link,
.theme-tricolour #theme-picker-toggle,
.theme-tricolour #tabs-dropdown-toggle,
.theme-tricolour .mobile-menu-btn {
    color: #000080 !important;
}

.theme-tricolour .navbar .nav-logo i,
.theme-tricolour .navbar .navbar-brand i,
.theme-tricolour .navbar .nav-link i,
.theme-tricolour #theme-picker-toggle i,
.theme-tricolour #tabs-dropdown-toggle i,
.theme-tricolour .mobile-menu-btn i {
    color: #000080 !important;
}

.theme-tricolour .navbar .nav-link:hover {
    color: #000055 !important;
    background: rgba(0, 0, 128, 0.05) !important;
}

.theme-tricolour .navbar .nav-link::after {
    background-color: #000080 !important;
}

.theme-tricolour .navbar .nav-link.active::after {
    background-color: #000080 !important;
}

.theme-tricolour .section-header h2,
.theme-tricolour .hero-name {
    color: #000080 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    display: inline-block;
    text-shadow: none !important;
}

.theme-tricolour .timeline-title,
.theme-tricolour .roadmap-title,
.theme-tricolour .card-header h3,
.theme-tricolour .contribution-item-card strong {
    color: #000080 !important; /* Navy Blue highlight resembling Ashoka Chakra */
}

.theme-tricolour .timeline-item::before {
    border-left-color: #FF671F !important; /* Saffron timeline line */
}

.theme-tricolour .roadmap-dot {
    background: #ffffff !important; /* White dot */
    border-color: #000080 !important; /* Navy border */
}

.theme-tricolour .roadmap-item::before {
    background: #046A38 !important; /* Green roadmap line */
}

.theme-tricolour .tab-btn.active,
.theme-tricolour .tab-btn.active:hover {
    color: #ffffff !important;
    background: #000080 !important;
    border-color: #000080 !important;
}

.theme-tricolour .collab-tab-btn::before {
    background: linear-gradient(135deg, #FF671F 0%, #ffffff 50%, #046A38 100%) !important;
    border: none !important;
}

.theme-tricolour .collab-tab-btn.active {
    color: #000080 !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    outline: none !important;
}

.theme-tricolour .dropdown-link.active {
    background: linear-gradient(135deg, #FF671F 0%, #ffffff 50%, #046A38 100%) !important;
    color: #000080 !important;
    text-shadow: none !important;
    border-left: none !important;
}


.theme-tricolour #print-cv-btn {
    background: linear-gradient(135deg, #FF671F, #ffffff, #046A38) !important;
    color: #000080 !important;
    border: none !important;
    text-shadow: none !important;
}
.theme-tricolour #print-cv-btn:hover {
    filter: brightness(0.95);
}

.theme-tricolour .score-badge {
    color: #046A38 !important;
}

.theme-tricolour .hero-title {
    color: #FF671F !important; /* Saffron subtitle */
}

/* Alternating Tricolour colors for tiles/cards on hover */
.theme-tricolour .glass-card:nth-of-type(3n+1):hover,
.theme-tricolour #simulations-grid a:nth-of-type(3n+1):hover,
.theme-tricolour #projects-container .glass-card:nth-of-type(3n+1):hover,
.theme-tricolour .role-list-card:nth-of-type(3n+1):hover,
.theme-tricolour .contribution-item-card:nth-of-type(3n+1):hover {
    border-color: #FF671F !important; /* Saffron */
}

.theme-tricolour .glass-card:nth-of-type(3n+2):hover,
.theme-tricolour #simulations-grid a:nth-of-type(3n+2):hover,
.theme-tricolour #projects-container .glass-card:nth-of-type(3n+2):hover,
.theme-tricolour .role-list-card:nth-of-type(3n+2):hover,
.theme-tricolour .contribution-item-card:nth-of-type(3n+2):hover {
    border-color: #000080 !important; /* Navy Blue */
}

.theme-tricolour .glass-card:nth-of-type(3n+3):hover,
.theme-tricolour #simulations-grid a:nth-of-type(3n+3):hover,
.theme-tricolour #projects-container .glass-card:nth-of-type(3n+3):hover,
.theme-tricolour .role-list-card:nth-of-type(3n+3):hover,
.theme-tricolour .contribution-item-card:nth-of-type(3n+3):hover {
    border-color: #046A38 !important; /* Green */
}

/* General collaborator chip hovers under Tricolour theme */
.theme-tricolour .collab-chip:hover {
    background: linear-gradient(135deg, #FF671F 0%, #ffffff 50%, #046A38 100%) !important;
    color: #000080 !important;
    border-color: transparent !important;
    text-shadow: none !important;
    box-shadow: var(--shadow-md) !important;
}

.theme-tricolour .collab-chip:hover i {
    color: #000080 !important;
}

/* Page footer styling under Tricolour theme */
.theme-tricolour .footer {
    background: linear-gradient(135deg, #FF671F 0%, #ffffff 50%, #046A38 100%) !important;
    border-top: none !important;
}

.theme-tricolour .footer p {
    color: #000080 !important;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* ── Tech Corporate / Metallic Theme styles (Google, Meta, MS inspired) ─ */
.theme-metallic body {
    background-color: #f8fafc !important; /* Premium light slate off-white for crisp readability */
    background-image: none !important; /* Clear out busy gradients for professional content focusing */
    color: #0f172a !important; /* Deep charcoal slate for maximum readable contrast */
}

.theme-metallic .navbar {
    background: #2563EB !important; /* Vibrant modern blue — matches the CV button reference */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.28), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.theme-metallic .navbar .nav-logo,
.theme-metallic .navbar .nav-link,
.theme-metallic #tabs-dropdown-toggle,
.theme-metallic .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

.theme-metallic .navbar .nav-logo i,
.theme-metallic .navbar .nav-link i,
.theme-metallic #tabs-dropdown-toggle i,
.theme-metallic #nav-scroll-left i,
.theme-metallic #nav-scroll-right i,
.theme-metallic .mobile-menu-btn i {
    color: rgba(255, 255, 255, 0.75) !important;
}

.theme-metallic .navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.theme-metallic .navbar .nav-link::after {
    background-color: #ffffff !important;
}

.theme-metallic .navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.theme-metallic .navbar .nav-link.active::after {
    background-color: #ffffff !important;
}

.theme-metallic .section-header h2 {
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    display: inline-block;
}

.theme-metallic .section-underline {
    background: var(--primary-color) !important;
    box-shadow: none !important;
}

.theme-metallic .hero-name {
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.theme-metallic .glass-card {
    background: #ffffff !important; /* Solid high-contrast white card body */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important; /* Thin clean border */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important; /* High-quality soft shadows */
}

.theme-metallic .glass-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

.theme-metallic .hero-image-wrapper {
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.theme-metallic .timeline-title,
.theme-metallic .roadmap-title,
.theme-metallic .card-header h3,
.theme-metallic .contribution-item-card strong {
    color: #0f172a !important;
}

.theme-metallic .timeline-date,
.theme-metallic .timeline-desc,
.theme-metallic .timeline-subtitle {
    color: #475569 !important;
}

.theme-metallic .timeline-item::before {
    border-left-color: #e2e8f0 !important;
}

.theme-metallic .roadmap-dot {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.theme-metallic .roadmap-item::before {
    background: #e2e8f0 !important;
}

.theme-metallic .tab-btn.active,
.theme-metallic .tab-btn.active:hover {
    color: #ffffff !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.theme-metallic .collab-tab-btn::before {
    background: var(--primary-color) !important;
}

.theme-metallic .collab-tab-btn.active {
    color: #ffffff !important;
    background: var(--primary-color) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    text-shadow: none !important;
}

.theme-metallic .dropdown-link.active {
    background: rgba(0, 100, 224, 0.05) !important;
    color: var(--primary-color) !important;
    border-left: 3px solid var(--primary-color) !important;
}

.theme-metallic #print-cv-btn {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.theme-metallic #print-cv-btn:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.theme-metallic .score-badge {
    color: var(--primary-color) !important;
}

.theme-metallic .hero-title {
    color: #475569 !important;
}

.theme-metallic .collab-chip:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.theme-metallic .footer {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.theme-metallic .footer p {
    color: #475569 !important;
    text-shadow: none !important;
    font-weight: 500;
}

/* ── Universal Profile Modern Component & Card Design System (Theme-Adaptive) ── */

/* 1. Global Card Base Styling across all tabs */
.glass-card,
.hero-profile,
.detail-card,
.stat-card,
.content-card,
.pub-card,
.publication-item,
.course-topic-card,
.mentorship-card,
.project-card,
.timeline-card,
.contribution-item-card,
.role-card,
.material-card,
#simulations-grid .glass-card {
    border-radius: 16px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--surface-color) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    position: relative;
    overflow: hidden;
    transform: none !important;
    outline: none !important;
}

/* 2. Clean Uniform Card Hover (NO scaling, NO outlines, NO overlaps) */
.glass-card:hover,
.hero-profile:hover,
.detail-card:hover,
.stat-card:hover,
.pub-card:hover,
.publication-item:hover,
.course-topic-card:hover,
.mentorship-card:hover,
.project-card:hover,
.timeline-card:hover,
.contribution-item-card:hover,
.role-card:hover,
.material-card:hover,
#simulations-grid .glass-card:hover {
    transform: none !important;
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07) !important;
}

/* 3. Career Roadmap Timeline Items (Clean & Uniform) */
.mini-timeline-item {
    transition: background 0.25s ease, border-color 0.25s ease !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.6rem !important;
    transform: none !important;
}

.mini-timeline-item:hover {
    transform: none !important;
    outline: none !important;
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.05) !important;
}

/* Stat Card Specific Alignment Fix */
.stat-card {
    padding: 0.85rem 1.1rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-height: 76px !important;
    box-sizing: border-box !important;
}

.stat-card .stat-icon-badge {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-card > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

/* 3. Floating Squircle Icon Badges */
.sim-icon-badge,
.card-icon-badge,
.pub-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.glass-card:hover .sim-icon-badge,
.stat-card:hover .stat-icon-badge,
.glass-card:hover .card-icon-badge,
.pub-card:hover .pub-icon-badge,
.detail-card:hover .card-icon-badge {
    transform: scale(1.12) rotate(-3deg);
}

/* 4. Action Pill Buttons */
.sim-action-btn,
.card-action-btn,
.pub-link-btn {
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.06) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(var(--primary-rgb, 0, 80, 239), 0.2) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
}

.sim-action-btn i,
.card-action-btn i,
.pub-link-btn i {
    transition: transform 0.3s ease;
}

.glass-card:hover .sim-action-btn,
.glass-card:hover .card-action-btn,
.pub-card:hover .pub-link-btn,
.sim-action-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.glass-card:hover .sim-action-btn i,
.glass-card:hover .card-action-btn i,
.pub-card:hover .pub-link-btn i {
    transform: translateX(4px);
}

/* Metallic Theme Overrides for squircle badges and pill buttons */
.theme-metallic .sim-icon-badge,
.theme-metallic .card-icon-badge {
    background: rgba(0, 80, 239, 0.08) !important;
    color: var(--primary-color) !important;
}

.theme-metallic .glass-card:hover .sim-icon-badge,
.theme-metallic .glass-card:hover .card-icon-badge {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* ── Universal Clean & Uniform Hover System for Interactive Elements (NO Overlaps) ── */

/* B. All Interactive Action Buttons, Links & Contact Pills across all tabs */
.sim-action-btn,
.card-action-btn,
.pub-link-btn,
.pub-link,
.contact-item,
.hero-contact a,
.profile-ids-grid a,
.page-btn,
.btn-pill,
.reset-btn,
#reset-timeline-filter {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
    position: relative;
    transform: none !important;
    outline: none !important;
}

.sim-action-btn:hover,
.card-action-btn:hover,
.pub-link-btn:hover,
.contact-item:hover,
.hero-contact a:hover,
.profile-ids-grid a:hover,
.page-btn:hover,
#reset-timeline-filter:hover {
    transform: none !important;
    outline: none !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Dedicated View & Print CV Primary Action Button Styling */
.btn-primary-cv,
#view-cv-btn {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.65rem 1rem !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
    margin-top: 0.5rem !important;
}

.btn-primary-cv:hover,
#view-cv-btn:hover {
    background: var(--primary-hover, #003db3) !important;
    color: #ffffff !important;
    border-color: var(--primary-hover, #003db3) !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 0, 80, 239), 0.3) !important;
}

.btn-primary-cv i,
#view-cv-btn i {
    color: #ffffff !important;
}


/* C. Color Tiles in Theme Dropdown */
.color-tile {
    transition: border-color 0.2s ease, transform 0.2s ease !important;
    border-radius: 4px !important;
}

.color-tile:hover {
    transform: scale(1.1) !important;
    outline: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   ✦ UI VIBRANCY ENHANCEMENT SYSTEM — v2.4.0
   Premium appearance: depth, typography, motion, polish
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Typography Refinements ────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-feature-settings: 'kern' 1, 'liga' 1;
}

p, li, span, td, th {
    font-family: var(--font-main);
}

/* Card headers with display font */
.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Card icons bounce on hover */
.card-header i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.glass-card:hover .card-header i,
.detail-card:hover .card-header i {
    transform: scale(1.2) rotate(-5deg);
}

/* ── 2. Premium Scrollbar System ─────────────────────────── */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.18);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.35);
    background-clip: content-box;
}

/* ── 3. Gallery Hover Overlay ────────────────────────────── */
.gallery-item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.28) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
    pointer-events: none;
}

.gallery-item-card:hover::after {
    opacity: 1;
}

/* ── 4. Enhanced Footer ──────────────────────────────────── */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: footerPulse 8s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.1); opacity: 0.8; }
}

/* ── 5. Collab Chip Refinements ──────────────────────────── */
.collab-chip {
    border-radius: var(--radius-full) !important;
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── 6. Roadmap Card Depth ───────────────────────────────── */
.roadmap-card {
    border-radius: var(--radius-md) !important;
    transition: var(--transition) !important;
}

.roadmap-item:hover .roadmap-card {
    border-color: rgba(var(--primary-rgb, 0, 80, 239), 0.25) !important;
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-md) !important;
}

.roadmap-dot {
    transition: var(--transition-spring) !important;
}

/* ── 7. Interest List Icons ──────────────────────────────── */
.interest-list i {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interest-list li:hover i {
    transform: scale(1.25) rotate(-8deg);
}

/* ── 8. Data Table Refinements ───────────────────────────── */
.data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
}

.data-table thead tr {
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.04);
}

.data-table th {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.data-table tr {
    transition: background 0.2s ease;
}

.data-table tr:hover td {
    background: rgba(var(--primary-rgb, 0, 80, 239), 0.025);
}

/* ── 9. Contact Item & Social Link Pill Polish ───────────── */
.contact-item {
    border-radius: var(--radius-md) !important;
    transition: var(--transition-fast) !important;
    padding: 0.45rem 0.75rem !important;
}

.profile-ids-grid a {
    border-radius: var(--radius-sm) !important;
    padding: 0.4rem 0.65rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
}

.profile-ids-grid a:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--primary-color) !important;
}

/* ── 10. Button Glow on Hover ────────────────────────────── */
.btn-primary-cv:hover,
#view-cv-btn:hover {
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 0, 80, 239), 0.35), 0 2px 6px rgba(0,0,0,0.1) !important;
}

/* ── 11. Section Entry Animation with Stagger ────────────── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card,
.detail-card,
.publication-item,
.course-topic-card {
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── 12. Metallic Theme Enhanced Glassmorphism ───────────── */
.theme-metallic .glass-card {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04) !important;
    border-radius: var(--radius-lg) !important;
}

.theme-metallic .glass-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05) !important;
    border-color: rgba(var(--primary-rgb, 0, 80, 239), 0.20) !important;
    transform: translateY(-3px) !important;
}

.theme-metallic body {
    background-image:
        radial-gradient(circle at 15% 15%, rgba(0, 80, 239, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(0, 80, 239, 0.025) 0%, transparent 50%) !important;
}

.theme-metallic .navbar {
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.30), 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}

/* Metallic section header refinement */
.theme-metallic .section-header h2 {
    font-family: var(--font-display) !important;
    letter-spacing: -0.03em !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.theme-metallic .section-underline {
    border-radius: var(--radius-full) !important;
    height: 3px !important;
    width: 50px !important;
    opacity: 1 !important;
}

/* Metallic tab btn override */
.theme-metallic .tab-btn {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #475569 !important;
}

.theme-metallic .tab-btn:hover {
    background: rgba(15, 23, 42, 0.07) !important;
    color: var(--primary-color) !important;
    border-color: rgba(var(--primary-rgb, 0, 80, 239), 0.25) !important;
}

.theme-metallic .hero-image-wrapper {
    border-color: #fff !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.08),
        0 0 0 5px rgba(0, 80, 239, 0.08),
        0 0 0 9px rgba(0, 80, 239, 0.03) !important;
}

/* ── 13. Keyboard focus ring (accessibility + polish) ──────── */
:focus-visible {
    outline: 2.5px solid rgba(var(--primary-rgb, 0, 80, 239), 0.65);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── 14. Testimonial Card Refinement ─────────────────────── */
.testimonial-card {
    border-radius: var(--radius-md) !important;
    backdrop-filter: blur(10px) !important;
}

/* ── 15. Role Cards Polish ───────────────────────────────── */
.role-card {
    border-radius: var(--radius-md) !important;
    transition: var(--transition) !important;
}

.role-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ── 16. Word Cloud Tag Enhancement ──────────────────────── */
.word-tag {
    font-family: var(--font-display);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease !important;
}

.word-tag:hover {
    transform: scale(1.12) rotate(-2deg) !important;
}

/* ── 17. Page Button Refinement ──────────────────────────── */
.page-btn {
    border-radius: var(--radius-full) !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    transition: var(--transition-fast) !important;
}

/* ── 18. Collab Tab Buttons ──────────────────────────────── */
.collab-tab-btn {
    font-family: var(--font-main) !important;
    letter-spacing: 0.01em !important;
    border-radius: var(--radius-md) !important;
}

/* ── 19. Timeline ::before line gradient ─────────────────── */
.timeline::before {
    border-radius: var(--radius-full) !important;
}

/* ── 20. Pub metrics badge refinement ────────────────────── */
.pub-metrics {
    border-radius: var(--radius-full) !important;
    font-family: var(--font-main) !important;
    letter-spacing: 0.03em !important;
    font-size: 0.72rem !important;
    padding: 0.2rem 0.65rem !important;
}


/* ═══════════════════════════════════════════════════════════════════
   ✦ BATMAN DARK THEME  — Dark mode · Gold accent · Premium drama
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens override ─────────────────────────────────────── */
.theme-batman {
    --primary-color:  #FFD700;   /* Iconic Batman gold */
    --primary-hover:  #FFC200;   /* Slightly deeper gold on hover */
    --primary-rgb:    255, 215, 0;
    --bg-color:       #0E0E10;   /* Near-black background */
    --surface-color:  #1A1A1D;   /* Dark charcoal card surface */
    --text-primary:   #F0F0F0;   /* Off-white primary text */
    --text-secondary: #9CA3AF;   /* Muted grey secondary text */
    --border-color:   rgba(255, 215, 0, 0.10); /* Subtle gold border */
    --glass-bg:       rgba(26, 26, 29, 0.92);
    --glass-border:   rgba(255, 215, 0, 0.12);
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.5),  0 1px 2px rgba(0,0,0,0.4);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.4);
    --shadow-lg:      0 12px 40px rgba(0,0,0,0.65), 0 4px 16px rgba(0,0,0,0.5);
    --shadow-hover:   0 20px 50px rgba(0,0,0,0.7), 0 8px 24px rgba(0,0,0,0.5);
    --shadow-card:    0 2px 10px rgba(0,0,0,0.5),  0 0 0 1px rgba(255,215,0,0.06);
}

/* ── Body & page background ─────────────────────────────────────── */
.theme-batman body {
    background-color: #0E0E10 !important;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(255, 215, 0, 0.03) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(255, 215, 0, 0.025) 0%, transparent 55%),
        radial-gradient(rgba(255, 215, 0, 0.025) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 30px 30px !important;
    color: #F0F0F0 !important;
}

/* ── Background decoration icons → gold ─────────────────────────── */
.theme-batman .icon-decor {
    color: #FFD700 !important;
    opacity: 0.06 !important;
}
.theme-batman .icon-decor:hover {
    opacity: 0.18 !important;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.theme-batman .navbar {
    background: rgba(8, 8, 10, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.04) !important;
}

.theme-batman .navbar .nav-logo {
    color: #FFD700 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
    font-weight: 800 !important;
}

.theme-batman .navbar .nav-link {
    color: rgba(240, 240, 240, 0.75) !important;
    font-weight: 600 !important;
}
.theme-batman .navbar .nav-link:hover {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.08) !important;
}
.theme-batman .navbar .nav-link::after {
    background: #FFD700 !important;
}
.theme-batman .navbar .nav-link.active {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.10) !important;
    font-weight: 700 !important;
}
.theme-batman .navbar .nav-link.active::after {
    background: #FFD700 !important;
}

.theme-batman #tabs-dropdown-toggle,
.theme-batman .mobile-menu-btn {
    color: rgba(240, 240, 240, 0.8) !important;
    border-color: rgba(255, 215, 0, 0.2) !important;
}
.theme-batman #tabs-dropdown-toggle i,
.theme-batman #nav-scroll-left i,
.theme-batman #nav-scroll-right i,
.theme-batman .mobile-menu-btn i {
    color: rgba(255, 215, 0, 0.7) !important;
}

/* ── Tabs dropdown menu ─────────────────────────────────────────── */
.theme-batman .nav-dropdown-menu {
    background: #111113 !important;
    border-color: rgba(255, 215, 0, 0.18) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7) !important;
}
.theme-batman .dropdown-link {
    color: #D1D5DB !important;
    border-left-color: transparent !important;
}
.theme-batman .dropdown-link:hover {
    background: rgba(255, 215, 0, 0.08) !important;
    color: #FFD700 !important;
}
.theme-batman .dropdown-link.active {
    background: rgba(255, 215, 0, 0.10) !important;
    color: #FFD700 !important;
    border-left-color: #FFD700 !important;
}

/* ── Glass cards ─────────────────────────────────────────────────── */
.theme-batman .glass-card,
.theme-batman .detail-card,
.theme-batman .stat-card,
.theme-batman .pub-card,
.theme-batman .publication-item,
.theme-batman .course-topic-card,
.theme-batman .mentorship-card,
.theme-batman .project-card,
.theme-batman .timeline-card,
.theme-batman .contribution-item-card,
.theme-batman .role-card,
.theme-batman .material-card,
.theme-batman #simulations-grid .glass-card {
    background: rgba(26, 26, 29, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.10) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.04) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
.theme-batman .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.06) 30%, rgba(255,215,0,0.09) 50%, rgba(255,215,0,0.06) 70%, transparent) !important;
}
.theme-batman .glass-card:hover,
.theme-batman .detail-card:hover,
.theme-batman .stat-card:hover,
.theme-batman .pub-card:hover,
.theme-batman .publication-item:hover,
.theme-batman .course-topic-card:hover,
.theme-batman .role-card:hover {
    border-color: rgba(255, 215, 0, 0.28) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 16px rgba(255,215,0,0.06) !important;
    transform: translateY(-3px) !important;
}

/* ── Hero profile card ───────────────────────────────────────────── */
.theme-batman .hero-profile {
    background: rgba(20, 20, 22, 0.97) !important;
    border: 1px solid rgba(255, 215, 0, 0.14) !important;
}
.theme-batman .hero-image-wrapper {
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.6),
        0 0 0 5px rgba(255, 215, 0, 0.10),
        0 0 0 10px rgba(255, 215, 0, 0.04) !important;
}
.theme-batman .hero-image-wrapper:hover {
    box-shadow:
        0 8px 30px rgba(0,0,0,0.7),
        0 0 0 6px rgba(255, 215, 0, 0.20),
        0 0 0 12px rgba(255, 215, 0, 0.07) !important;
}
.theme-batman .hero-name {
    color: #FFD700 !important;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.25) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}
.theme-batman .hero-title {
    color: #9CA3AF !important;
    letter-spacing: 0.08em !important;
}
.theme-batman .hero-institution {
    color: #FFD700 !important;
    opacity: 0.9;
}

/* ── Section headers ─────────────────────────────────────────────── */
.theme-batman .section-header h2 {
    color: #FFD700 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.20) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}
.theme-batman .section-underline {
    background: #FFD700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}
.theme-batman .section-underline::after {
    background: #FFD700 !important;
    opacity: 0.15 !important;
}

/* ── Typography ─────────────────────────────────────────────────── */
.theme-batman .card-header h3,
.theme-batman .timeline-title,
.theme-batman .roadmap-title {
    color: #F0F0F0 !important;
}
.theme-batman .card-header i {
    color: #FFD700 !important;
}
.theme-batman .timeline-date {
    color: #FFD700 !important;
    opacity: 0.85 !important;
}
.theme-batman .timeline-subtitle,
.theme-batman .timeline-desc {
    color: #9CA3AF !important;
}

/* ── Timeline line & dots ───────────────────────────────────────── */
.theme-batman .timeline::before {
    background: linear-gradient(to bottom, #FFD700, rgba(255, 215, 0, 0.08)) !important;
}
.theme-batman .timeline-item::before {
    background: #FFD700 !important;
    border-color: #0E0E10 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), 0 0 12px rgba(255, 215, 0, 0.15) !important;
}
.theme-batman .timeline-item:hover::before {
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.35), 0 0 20px rgba(255, 215, 0, 0.25) !important;
}

/* ── Tab buttons ─────────────────────────────────────────────────── */
.theme-batman .tab-btn {
    background: rgba(255, 215, 0, 0.05) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.14) !important;
    color: #9CA3AF !important;
}
.theme-batman .tab-btn:hover {
    background: rgba(255, 215, 0, 0.10) !important;
    border-color: rgba(255, 215, 0, 0.35) !important;
    color: #FFD700 !important;
}
.theme-batman .tab-btn.active,
.theme-batman .tab-btn.active:hover {
    background: #FFD700 !important;
    border-color: #FFD700 !important;
    color: #0E0E10 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35) !important;
}

/* ── Collab tab buttons ─────────────────────────────────────────── */
.theme-batman .collab-tab-btn {
    color: #9CA3AF !important;
    border-color: rgba(255, 215, 0, 0.14) !important;
    background: rgba(255, 215, 0, 0.04) !important;
}
.theme-batman .collab-tab-btn.active {
    background: #FFD700 !important;
    color: #0E0E10 !important;
    border-color: #FFD700 !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3) !important;
    text-shadow: none !important;
}
.theme-batman .collab-tab-btn::before {
    background: #FFD700 !important;
}

/* ── Publication items ───────────────────────────────────────────── */
.theme-batman .publication-item {
    background: rgba(26, 26, 29, 0.95) !important;
    border-left-color: #FFD700 !important;
}
.theme-batman .publication-item::before {
    background: #FFD700 !important;
}
.theme-batman .publication-item:hover {
    background: rgba(30, 30, 33, 0.98) !important;
}

/* ── Action pill buttons ─────────────────────────────────────────── */
.theme-batman .sim-action-btn,
.theme-batman .card-action-btn,
.theme-batman .pub-link-btn {
    background: rgba(255, 215, 0, 0.07) !important;
    color: #FFD700 !important;
    border-color: rgba(255, 215, 0, 0.22) !important;
}
.theme-batman .glass-card:hover .sim-action-btn,
.theme-batman .glass-card:hover .card-action-btn,
.theme-batman .pub-card:hover .pub-link-btn,
.theme-batman .sim-action-btn:hover {
    background: #FFD700 !important;
    color: #0E0E10 !important;
    border-color: #FFD700 !important;
}

/* ── Icon badges ─────────────────────────────────────────────────── */
.theme-batman .sim-icon-badge,
.theme-batman .card-icon-badge,
.theme-batman .pub-icon-badge,
.theme-batman .stat-card .stat-icon-badge {
    background: rgba(255, 215, 0, 0.10) !important;
    color: #FFD700 !important;
}
.theme-batman .glass-card:hover .sim-icon-badge,
.theme-batman .glass-card:hover .card-icon-badge,
.theme-batman .stat-card:hover .stat-icon-badge {
    background: #FFD700 !important;
    color: #0E0E10 !important;
}

/* ── Primary CV button ───────────────────────────────────────────── */
.theme-batman .btn-primary-cv,
.theme-batman #view-cv-btn,
.theme-batman #print-cv-btn {
    background: #FFD700 !important;
    color: #0E0E10 !important;
    border-color: #FFD700 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}
.theme-batman .btn-primary-cv:hover,
.theme-batman #view-cv-btn:hover,
.theme-batman #print-cv-btn:hover {
    background: #FFC200 !important;
    border-color: #FFC200 !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.40) !important;
}
.theme-batman .btn-primary-cv i,
.theme-batman #view-cv-btn i {
    color: #0E0E10 !important;
}

/* ── Page buttons & pagination ───────────────────────────────────── */
.theme-batman .page-btn {
    background: rgba(255, 215, 0, 0.06) !important;
    border-color: rgba(255, 215, 0, 0.18) !important;
    color: #9CA3AF !important;
}
.theme-batman .page-btn:hover,
.theme-batman .page-btn.active {
    background: #FFD700 !important;
    color: #0E0E10 !important;
    border-color: #FFD700 !important;
}

/* ── Contact items ───────────────────────────────────────────────── */
.theme-batman .contact-item {
    color: #D1D5DB !important;
}
.theme-batman .contact-item:hover {
    background: rgba(255, 215, 0, 0.08) !important;
    color: #FFD700 !important;
}
.theme-batman .profile-ids-grid a {
    color: #D1D5DB !important;
    border-color: rgba(255, 215, 0, 0.12) !important;
    background: rgba(255, 215, 0, 0.04) !important;
}
.theme-batman .profile-ids-grid a:hover {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.10) !important;
}

/* ── Score badge & chips ─────────────────────────────────────────── */
.theme-batman .score-badge {
    color: #FFD700 !important;
}
.theme-batman .collab-chip {
    border-color: rgba(255, 215, 0, 0.18) !important;
    color: #D1D5DB !important;
    background: rgba(255, 215, 0, 0.04) !important;
}
.theme-batman .collab-chip:hover {
    background: #FFD700 !important;
    color: #0E0E10 !important;
    border-color: #FFD700 !important;
}

/* ── Roadmap ─────────────────────────────────────────────────────── */
.theme-batman .roadmap-dot {
    background: #0E0E10 !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
}
.theme-batman .roadmap-item::before {
    background: rgba(255, 215, 0, 0.15) !important;
}
.theme-batman .roadmap-title {
    color: #F0F0F0 !important;
}

/* ── Word cloud tags ─────────────────────────────────────────────── */
.theme-batman .word-tag {
    color: rgba(255, 215, 0, var(--word-opacity, 0.7)) !important;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.theme-batman .footer {
    background: rgba(6, 6, 8, 0.98) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.12) !important;
}
.theme-batman .footer p {
    color: #6B7280 !important;
    text-shadow: none !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
.theme-batman ::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.20) !important;
}
.theme-batman ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.40) !important;
}

/* ── Focus ring ──────────────────────────────────────────────────── */
.theme-batman :focus-visible {
    outline-color: rgba(255, 215, 0, 0.65) !important;
}

/* ── Data tables ─────────────────────────────────────────────────── */
.theme-batman .data-table {
    border-color: rgba(255, 215, 0, 0.12) !important;
}
.theme-batman .data-table thead tr {
    background: rgba(255, 215, 0, 0.06) !important;
}
.theme-batman .data-table th {
    color: #FFD700 !important;
}
.theme-batman .data-table tr:hover td {
    background: rgba(255, 215, 0, 0.03) !important;
}

/* ── Mini timeline items ─────────────────────────────────────────── */
.theme-batman .mini-timeline-item:hover {
    background: rgba(255, 215, 0, 0.06) !important;
}

/* ── Pub metrics ─────────────────────────────────────────────────── */
.theme-batman .pub-metrics {
    background: rgba(255, 215, 0, 0.08) !important;
    color: #FFD700 !important;
    border-color: rgba(255, 215, 0, 0.18) !important;
}


/* -------------------------------------------------------------------
   ? VIVID INDIGO THEME  �  Vibrant � Readable � High-Contrast
   All text: dark (#0F172A) on light surfaces � WCAG AAA throughout
   ------------------------------------------------------------------- */

/* -- Design tokens ------------------------------------------------ */
.theme-vivid {
    --primary-color:  #6366F1;
    --primary-hover:  #4F46E5;
    --primary-rgb:    99, 102, 241;
    --bg-color:       #F0F4FF;
    --surface-color:  #FFFFFF;
    --text-primary:   #0F172A;
    --text-secondary: #374151;
    --border-color:   #DDE3F5;
    --glass-bg:       rgba(255,255,255,0.92);
    --glass-border:   rgba(99,102,241,0.15);
    --shadow-sm:      0 1px 3px rgba(99,102,241,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:      0 4px 16px rgba(99,102,241,0.10), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:      0 12px 36px rgba(99,102,241,0.13), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover:   0 20px 48px rgba(99,102,241,0.16), 0 8px 20px rgba(0,0,0,0.07);
    --shadow-card:    0 2px 8px rgba(99,102,241,0.08), 0 0 0 1px rgba(99,102,241,0.06);
}

/* -- Page body ---------------------------------------------------- */
.theme-vivid body {
    background-color: #F0F4FF !important;
    background-image:
        radial-gradient(ellipse at 10% 0%,   rgba(99,102,241,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(168,85,247,0.06) 0%, transparent 50%),
        radial-gradient(rgba(99,102,241,0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 28px 28px !important;
    color: #0F172A !important;
}

/* -- Background icons --------------------------------------------- */
.theme-vivid .icon-decor {
    color: #6366F1 !important;
    opacity: 0.06 !important;
}
.theme-vivid .icon-decor:hover { opacity: 0.18 !important; }

/* -- Navbar ------------------------------------------------------- */
.theme-vivid .navbar {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%) !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: 0 4px 24px rgba(30,27,75,0.35), 0 1px 4px rgba(0,0,0,0.15) !important;
}
.theme-vivid .navbar .nav-logo {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    letter-spacing: -0.02em !important;
}
.theme-vivid .navbar .nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-weight: 600 !important;
}
.theme-vivid .navbar .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.12) !important;
}
.theme-vivid .navbar .nav-link::after { background: #A5B4FC !important; }
.theme-vivid .navbar .nav-link.active {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.15) !important;
    font-weight: 700 !important;
}
.theme-vivid .navbar .nav-link.active::after { background: #FFFFFF !important; }

.theme-vivid #tabs-dropdown-toggle,
.theme-vivid .mobile-menu-btn {
    color: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.theme-vivid #tabs-dropdown-toggle i,
.theme-vivid #nav-scroll-left i,
.theme-vivid #nav-scroll-right i,
.theme-vivid .mobile-menu-btn i {
    color: rgba(255,255,255,0.7) !important;
}

/* -- Tabs dropdown ------------------------------------------------ */
.theme-vivid .nav-dropdown-menu {
    background: #FFFFFF !important;
    border: 1.5px solid #DDE3F5 !important;
    box-shadow: 0 8px 32px rgba(99,102,241,0.15) !important;
}
.theme-vivid .dropdown-link {
    color: #374151 !important;
    border-left-color: transparent !important;
}
.theme-vivid .dropdown-link:hover {
    background: #EEF2FF !important;
    color: #4F46E5 !important;
}
.theme-vivid .dropdown-link.active {
    background: #EEF2FF !important;
    color: #4F46E5 !important;
    border-left-color: #6366F1 !important;
}

/* -- Section headers ----------------------------------------------- */
.theme-vivid .section-header h2 {
    color: #1E1B4B !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
}
.theme-vivid .section-underline {
    background: linear-gradient(90deg, #6366F1, #A78BFA) !important;
    box-shadow: none !important;
    height: 3px !important;
    width: 55px !important;
    border-radius: 9999px !important;
}
.theme-vivid .section-underline::after {
    background: linear-gradient(90deg, #6366F1, #A78BFA) !important;
    opacity: 0.18 !important;
}

/* -- Glass cards � white, deep shadow, vibrant accent border ------- */
.theme-vivid .glass-card,
.theme-vivid .detail-card,
.theme-vivid .stat-card,
.theme-vivid .pub-card,
.theme-vivid .publication-item,
.theme-vivid .course-topic-card,
.theme-vivid .mentorship-card,
.theme-vivid .project-card,
.theme-vivid .timeline-card,
.theme-vivid .contribution-item-card,
.theme-vivid .role-card,
.theme-vivid .material-card,
.theme-vivid #simulations-grid .glass-card {
    background: #FFFFFF !important;
    border: 1px solid #DDE3F5 !important;
    box-shadow: 0 2px 10px rgba(99,102,241,0.07), 0 1px 3px rgba(0,0,0,0.04) !important;
    backdrop-filter: none !important;
}
.theme-vivid .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.06) 30%, rgba(99,102,241,0.09) 50%, rgba(99,102,241,0.06) 70%, transparent) !important;
}
.theme-vivid .glass-card:hover,
.theme-vivid .detail-card:hover,
.theme-vivid .stat-card:hover,
.theme-vivid .pub-card:hover,
.theme-vivid .publication-item:hover,
.theme-vivid .course-topic-card:hover,
.theme-vivid .role-card:hover {
    border-color: #A5B4FC !important;
    box-shadow: 0 8px 28px rgba(99,102,241,0.13), 0 2px 8px rgba(0,0,0,0.05) !important;
    transform: translateY(-3px) !important;
}

/* -- Hero profile -------------------------------------------------- */
.theme-vivid .hero-profile {
    background: #FFFFFF !important;
    border: 1px solid #DDE3F5 !important;
}
.theme-vivid .hero-image-wrapper {
    border: 4px solid #6366F1 !important;
    box-shadow:
        0 4px 20px rgba(99,102,241,0.20),
        0 0 0 6px rgba(99,102,241,0.10),
        0 0 0 10px rgba(99,102,241,0.04) !important;
}
.theme-vivid .hero-image-wrapper:hover {
    box-shadow:
        0 8px 30px rgba(99,102,241,0.28),
        0 0 0 7px rgba(99,102,241,0.18),
        0 0 0 13px rgba(99,102,241,0.06) !important;
}
.theme-vivid .hero-name {
    color: #1E1B4B !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}
.theme-vivid .hero-title {
    color: #6B7280 !important;
    letter-spacing: 0.07em !important;
}
.theme-vivid .hero-institution {
    color: #4F46E5 !important;
    font-weight: 600 !important;
}

/* -- Typography throughout ----------------------------------------- */
.theme-vivid .card-header h3,
.theme-vivid .timeline-title,
.theme-vivid .roadmap-title {
    color: #1E1B4B !important;
}
.theme-vivid .card-header i { color: #6366F1 !important; }
.theme-vivid .timeline-date {
    color: #6366F1 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}
.theme-vivid .timeline-subtitle { color: #374151 !important; }
.theme-vivid .timeline-desc    { color: #4B5563 !important; }

/* -- Timeline ------------------------------------------------------ */
.theme-vivid .timeline::before {
    background: linear-gradient(to bottom, #6366F1, rgba(99,102,241,0.12)) !important;
}
.theme-vivid .timeline-item::before {
    background: #6366F1 !important;
    border-color: #F0F4FF !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18), 0 0 0 5px rgba(99,102,241,0.06) !important;
}
.theme-vivid .timeline-item:hover::before {
    box-shadow: 0 0 0 4px rgba(99,102,241,0.30), 0 0 0 8px rgba(99,102,241,0.09) !important;
}

/* -- Tab buttons --------------------------------------------------- */
.theme-vivid .tab-btn {
    background: rgba(99,102,241,0.05) !important;
    border: 1.5px solid rgba(99,102,241,0.15) !important;
    color: #374151 !important;
}
.theme-vivid .tab-btn:hover {
    background: rgba(99,102,241,0.09) !important;
    border-color: rgba(99,102,241,0.35) !important;
    color: #4F46E5 !important;
}
.theme-vivid .tab-btn.active,
.theme-vivid .tab-btn.active:hover {
    background: #6366F1 !important;
    border-color: #6366F1 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.32) !important;
}

/* -- Collab tabs --------------------------------------------------- */
.theme-vivid .collab-tab-btn {
    color: #374151 !important;
    border-color: rgba(99,102,241,0.15) !important;
    background: rgba(99,102,241,0.04) !important;
}
.theme-vivid .collab-tab-btn.active {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
    box-shadow: 0 3px 10px rgba(99,102,241,0.28) !important;
    text-shadow: none !important;
}
.theme-vivid .collab-tab-btn::before { background: #6366F1 !important; }

/* -- Publications -------------------------------------------------- */
.theme-vivid .publication-item {
    background: #FFFFFF !important;
    border-left-color: #6366F1 !important;
}
.theme-vivid .publication-item::before { background: #6366F1 !important; }
.theme-vivid .publication-item:hover { background: #FAFBFF !important; }

/* -- Action buttons ------------------------------------------------ */
.theme-vivid .sim-action-btn,
.theme-vivid .card-action-btn,
.theme-vivid .pub-link-btn {
    background: rgba(99,102,241,0.07) !important;
    color: #4F46E5 !important;
    border-color: rgba(99,102,241,0.22) !important;
}
.theme-vivid .glass-card:hover .sim-action-btn,
.theme-vivid .glass-card:hover .card-action-btn,
.theme-vivid .pub-card:hover .pub-link-btn,
.theme-vivid .sim-action-btn:hover {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
}

/* -- Icon badges --------------------------------------------------- */
.theme-vivid .sim-icon-badge,
.theme-vivid .card-icon-badge,
.theme-vivid .pub-icon-badge,
.theme-vivid .stat-card .stat-icon-badge {
    background: rgba(99,102,241,0.10) !important;
    color: #6366F1 !important;
}
.theme-vivid .glass-card:hover .sim-icon-badge,
.theme-vivid .glass-card:hover .card-icon-badge,
.theme-vivid .stat-card:hover .stat-icon-badge {
    background: #6366F1 !important;
    color: #FFFFFF !important;
}

/* -- Primary CV/Print button --------------------------------------- */
.theme-vivid .btn-primary-cv,
.theme-vivid #view-cv-btn,
.theme-vivid #print-cv-btn {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}
.theme-vivid .btn-primary-cv:hover,
.theme-vivid #view-cv-btn:hover,
.theme-vivid #print-cv-btn:hover {
    background: #4F46E5 !important;
    border-color: #4F46E5 !important;
    box-shadow: 0 6px 20px rgba(99,102,241,0.38) !important;
}
.theme-vivid .btn-primary-cv i,
.theme-vivid #view-cv-btn i { color: #FFFFFF !important; }

/* -- Page buttons -------------------------------------------------- */
.theme-vivid .page-btn {
    background: #FFFFFF !important;
    border-color: #DDE3F5 !important;
    color: #374151 !important;
}
.theme-vivid .page-btn:hover,
.theme-vivid .page-btn.active {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
}

/* -- Contact items ------------------------------------------------- */
.theme-vivid .contact-item { color: #374151 !important; }
.theme-vivid .contact-item:hover {
    background: #EEF2FF !important;
    color: #4F46E5 !important;
    border-color: #A5B4FC !important;
}
.theme-vivid .profile-ids-grid a {
    color: #374151 !important;
    border-color: #DDE3F5 !important;
    background: #FFFFFF !important;
}
.theme-vivid .profile-ids-grid a:hover {
    border-color: #6366F1 !important;
    color: #4F46E5 !important;
    background: #EEF2FF !important;
}

/* -- Chips & badges ------------------------------------------------ */
.theme-vivid .score-badge    { color: #6366F1 !important; }
.theme-vivid .collab-chip {
    border-color: rgba(99,102,241,0.18) !important;
    color: #374151 !important;
    background: #FFFFFF !important;
}
.theme-vivid .collab-chip:hover {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
}
.theme-vivid .pub-metrics {
    background: rgba(99,102,241,0.08) !important;
    color: #4F46E5 !important;
    border-color: rgba(99,102,241,0.20) !important;
}

/* -- Roadmap ------------------------------------------------------- */
.theme-vivid .roadmap-dot {
    background: #FFFFFF !important;
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}
.theme-vivid .roadmap-item::before { background: #DDE3F5 !important; }
.theme-vivid .roadmap-title        { color: #1E1B4B !important; }
.theme-vivid .roadmap-item:hover .roadmap-card {
    border-color: rgba(99,102,241,0.30) !important;
}

/* -- Data tables --------------------------------------------------- */
.theme-vivid .data-table          { border-color: #DDE3F5 !important; }
.theme-vivid .data-table thead tr { background: #EEF2FF !important; }
.theme-vivid .data-table th       { color: #4F46E5 !important; }
.theme-vivid .data-table tr:hover td {
    background: rgba(99,102,241,0.03) !important;
}

/* -- Word cloud ---------------------------------------------------- */
.theme-vivid .word-tag { color: #4F46E5 !important; }

/* -- Footer -------------------------------------------------------- */
.theme-vivid .footer {
    background: #1E1B4B !important;
    border-top: none !important;
}
.theme-vivid .footer p {
    color: rgba(255,255,255,0.6) !important;
    text-shadow: none !important;
}

/* -- Scrollbar ----------------------------------------------------- */
.theme-vivid ::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.22) !important;
}
.theme-vivid ::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.42) !important;
}

/* -- Mini timeline hover ------------------------------------------- */
.theme-vivid .mini-timeline-item:hover {
    background: rgba(99,102,241,0.05) !important;
}

/* -- Focus ring ---------------------------------------------------- */
.theme-vivid :focus-visible {
    outline-color: rgba(99,102,241,0.65) !important;
}


/* -------------------------------------------------------------------
   ? NATURE THEME  � Forest green � Sage white � Peaceful & vibrant
   All text: dark (#1A2E22) on light surfaces � WCAG AAA throughout
   ------------------------------------------------------------------- */

/* -- Design tokens ------------------------------------------------ */
.theme-nature {
    --primary-color:  #2D6A4F;
    --primary-hover:  #1B4332;
    --primary-rgb:    45, 106, 79;
    --bg-color:       #F0F7F4;
    --surface-color:  #FFFFFF;
    --text-primary:   #1A2E22;
    --text-secondary: #3D5A47;
    --border-color:   #C8DDD2;
    --glass-bg:       rgba(255,255,255,0.92);
    --glass-border:   rgba(45,106,79,0.14);
    --shadow-sm:      0 1px 3px rgba(45,106,79,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:      0 4px 16px rgba(45,106,79,0.10), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:      0 12px 36px rgba(45,106,79,0.13), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover:   0 20px 48px rgba(45,106,79,0.16), 0 8px 20px rgba(0,0,0,0.07);
    --shadow-card:    0 2px 8px rgba(45,106,79,0.08), 0 0 0 1px rgba(45,106,79,0.05);
}

/* -- Page body � organic sage background --------------------------- */
.theme-nature body {
    background-color: #F0F7F4 !important;
    background-image:
        radial-gradient(ellipse at 8%  5%,  rgba(45,106,79,0.07)  0%, transparent 45%),
        radial-gradient(ellipse at 92% 95%, rgba(52,134,60,0.05)  0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(45,106,79,0.02)  0%, transparent 70%),
        radial-gradient(rgba(45,106,79,0.035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px !important;
    color: #1A2E22 !important;
}

/* -- Organic leaf watermark decorations (CSS only) ----------------- */
.theme-nature .academic-bg-decorations::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -8%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(ellipse, rgba(45,106,79,0.06) 0%, transparent 65%);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    pointer-events: none;
    z-index: 0;
    animation: leafDrift 18s ease-in-out infinite alternate;
}
.theme-nature .academic-bg-decorations::after {
    content: '';
    position: fixed;
    bottom: -8%;
    right: -6%;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(ellipse, rgba(52,134,60,0.05) 0%, transparent 65%);
    border-radius: 40% 60% 30% 70% / 60% 40% 55% 45%;
    pointer-events: none;
    z-index: 0;
    animation: leafDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes leafDrift {
    0%   { transform: translate(0, 0)    rotate(0deg)   scale(1);    }
    50%  { transform: translate(2%, 2%)  rotate(5deg)   scale(1.04); }
    100% { transform: translate(-1%, 1%) rotate(-3deg)  scale(0.97); }
}

/* -- Background icon colour ? forest green ------------------------- */
.theme-nature .icon-decor {
    color: #2D6A4F !important;
    opacity: 0.07 !important;
}
.theme-nature .icon-decor:hover { opacity: 0.20 !important; }

/* -- Navbar � deep forest green ------------------------------------ */
.theme-nature .navbar {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%) !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: 0 4px 24px rgba(27,67,50,0.35), 0 1px 4px rgba(0,0,0,0.12) !important;
}
.theme-nature .navbar .nav-logo {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
.theme-nature .navbar .nav-link {
    color: rgba(255,255,255,0.80) !important;
    font-weight: 600 !important;
}
.theme-nature .navbar .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.12) !important;
}
.theme-nature .navbar .nav-link::after { background: #95D5B2 !important; }
.theme-nature .navbar .nav-link.active {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.15) !important;
    font-weight: 700 !important;
}
.theme-nature .navbar .nav-link.active::after { background: #FFFFFF !important; }

.theme-nature #tabs-dropdown-toggle,
.theme-nature .mobile-menu-btn {
    color: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.22) !important;
}
.theme-nature #tabs-dropdown-toggle i,
.theme-nature #nav-scroll-left i,
.theme-nature #nav-scroll-right i,
.theme-nature .mobile-menu-btn i {
    color: rgba(255,255,255,0.70) !important;
}

/* -- Tabs dropdown ------------------------------------------------ */
.theme-nature .nav-dropdown-menu {
    background: #FFFFFF !important;
    border: 1.5px solid #C8DDD2 !important;
    box-shadow: 0 8px 32px rgba(45,106,79,0.14) !important;
}
.theme-nature .dropdown-link { color: #3D5A47 !important; }
.theme-nature .dropdown-link:hover {
    background: #EDFAF3 !important;
    color: #1B4332 !important;
}
.theme-nature .dropdown-link.active {
    background: #D8F3E8 !important;
    color: #1B4332 !important;
    border-left-color: #2D6A4F !important;
}

/* -- Section headers ----------------------------------------------- */
.theme-nature .section-header h2 {
    color: #1B4332 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}
.theme-nature .section-underline {
    background: linear-gradient(90deg, #2D6A4F, #52B788) !important;
    box-shadow: 0 0 10px rgba(45,106,79,0.25) !important;
    height: 3px !important;
    width: 55px !important;
    border-radius: 9999px !important;
}
.theme-nature .section-underline::after {
    background: linear-gradient(90deg, #2D6A4F, #52B788) !important;
    opacity: 0.18 !important;
}

/* -- Glass cards --------------------------------------------------- */
.theme-nature .glass-card,
.theme-nature .detail-card,
.theme-nature .stat-card,
.theme-nature .pub-card,
.theme-nature .publication-item,
.theme-nature .course-topic-card,
.theme-nature .mentorship-card,
.theme-nature .project-card,
.theme-nature .timeline-card,
.theme-nature .contribution-item-card,
.theme-nature .role-card,
.theme-nature .material-card,
.theme-nature #simulations-grid .glass-card {
    background: #FFFFFF !important;
    border: 1px solid #C8DDD2 !important;
    box-shadow: 0 2px 10px rgba(45,106,79,0.07), 0 1px 3px rgba(0,0,0,0.04) !important;
    backdrop-filter: none !important;
}
/* Subtle sage shimmer top edge on cards */
.theme-nature .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(82,183,136,0.12) 30%, rgba(82,183,136,0.18) 50%, rgba(82,183,136,0.12) 70%, transparent) !important;
}
.theme-nature .glass-card:hover,
.theme-nature .detail-card:hover,
.theme-nature .stat-card:hover,
.theme-nature .pub-card:hover,
.theme-nature .publication-item:hover,
.theme-nature .course-topic-card:hover,
.theme-nature .role-card:hover {
    border-color: #74C69D !important;
    box-shadow: 0 8px 28px rgba(45,106,79,0.13), 0 2px 8px rgba(0,0,0,0.05) !important;
    transform: translateY(-3px) !important;
}

/* -- Hero card & profile image ------------------------------------- */
.theme-nature .hero-profile {
    background: #FFFFFF !important;
    border: 1px solid #C8DDD2 !important;
}
.theme-nature .hero-image-wrapper {
    border: 4px solid #52B788 !important;
    box-shadow:
        0 4px 20px rgba(45,106,79,0.18),
        0 0 0 6px rgba(82,183,136,0.12),
        0 0 0 10px rgba(45,106,79,0.04) !important;
}
.theme-nature .hero-image-wrapper:hover {
    box-shadow:
        0 8px 30px rgba(45,106,79,0.25),
        0 0 0 7px rgba(82,183,136,0.22),
        0 0 0 13px rgba(45,106,79,0.07) !important;
}
.theme-nature .hero-name {
    color: #1B4332 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}
.theme-nature .hero-title {
    color: #5A7A65 !important;
    letter-spacing: 0.07em !important;
}
.theme-nature .hero-institution {
    color: #2D6A4F !important;
    font-weight: 600 !important;
}

/* -- General typography -------------------------------------------- */
.theme-nature .card-header h3,
.theme-nature .timeline-title,
.theme-nature .roadmap-title { color: #1B4332 !important; }
.theme-nature .timeline-date {
    color: #2D6A4F !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
.theme-nature .timeline-subtitle { color: #3D5A47 !important; }
.theme-nature .timeline-desc     { color: #4B6B57 !important; }

/* -- Timeline � vine-like gradient line ---------------------------- */
.theme-nature .timeline::before {
    background: linear-gradient(to bottom, #2D6A4F, rgba(82,183,136,0.15)) !important;
}
.theme-nature .timeline-item::before {
    background: #52B788 !important;
    border-color: #F0F7F4 !important;
    box-shadow:
        0 0 0 3px rgba(82,183,136,0.20),
        0 0 0 5px rgba(45,106,79,0.06) !important;
}
.theme-nature .timeline-item:hover::before {
    background: #2D6A4F !important;
    transform: scale(1.35) !important;
    box-shadow:
        0 0 0 4px rgba(82,183,136,0.30),
        0 0 14px rgba(45,106,79,0.20) !important;
}

/* -- Tab buttons --------------------------------------------------- */
.theme-nature .tab-btn {
    background: rgba(45,106,79,0.05) !important;
    border: 1.5px solid rgba(45,106,79,0.15) !important;
    color: #3D5A47 !important;
}
.theme-nature .tab-btn:hover {
    background: rgba(45,106,79,0.09) !important;
    border-color: rgba(45,106,79,0.35) !important;
    color: #1B4332 !important;
}
.theme-nature .tab-btn.active,
.theme-nature .tab-btn.active:hover {
    background: #2D6A4F !important;
    border-color: #2D6A4F !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(45,106,79,0.32) !important;
}

/* -- Collab tabs --------------------------------------------------- */
.theme-nature .collab-tab-btn {
    color: #3D5A47 !important;
    border-color: rgba(45,106,79,0.15) !important;
    background: rgba(45,106,79,0.04) !important;
}
.theme-nature .collab-tab-btn.active {
    background: #2D6A4F !important;
    color: #FFFFFF !important;
    border-color: #2D6A4F !important;
    box-shadow: 0 3px 10px rgba(45,106,79,0.28) !important;
    text-shadow: none !important;
}
.theme-nature .collab-tab-btn::before { background: #2D6A4F !important; }

/* -- Publications -------------------------------------------------- */
.theme-nature .publication-item {
    background: #FFFFFF !important;
    border-left-color: #52B788 !important;
}
.theme-nature .publication-item::before { background: #52B788 !important; }
.theme-nature .publication-item:hover   { background: #FAFFFC !important; }

/* -- Action pill buttons ------------------------------------------- */
.theme-nature .sim-action-btn,
.theme-nature .card-action-btn,
.theme-nature .pub-link-btn {
    background: rgba(45,106,79,0.07) !important;
    color: #1B4332 !important;
    border-color: rgba(45,106,79,0.22) !important;
}
.theme-nature .glass-card:hover .sim-action-btn,
.theme-nature .glass-card:hover .card-action-btn,
.theme-nature .pub-card:hover .pub-link-btn,
.theme-nature .sim-action-btn:hover {
    background: #2D6A4F !important;
    color: #FFFFFF !important;
    border-color: #2D6A4F !important;
}

/* -- Icon squircle badges (Nature Theme fallback) ------------------ */
.theme-nature .sim-icon-badge,
.theme-nature .card-icon-badge,
.theme-nature .pub-icon-badge {
    background: rgba(45,106,79,0.08);
    color: #2D6A4F;
}

/* -- Primary CV button --------------------------------------------- */
.theme-nature .btn-primary-cv,
.theme-nature #view-cv-btn,
.theme-nature #print-cv-btn {
    background: #2D6A4F !important;
    color: #FFFFFF !important;
    border-color: #2D6A4F !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}
.theme-nature .btn-primary-cv:hover,
.theme-nature #view-cv-btn:hover,
.theme-nature #print-cv-btn:hover {
    background: #1B4332 !important;
    border-color: #1B4332 !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.36) !important;
}
.theme-nature .btn-primary-cv i,
.theme-nature #view-cv-btn i { color: #FFFFFF !important; }

/* -- Page buttons -------------------------------------------------- */
.theme-nature .page-btn {
    background: #FFFFFF !important;
    border-color: #C8DDD2 !important;
    color: #3D5A47 !important;
}
.theme-nature .page-btn:hover,
.theme-nature .page-btn.active {
    background: #2D6A4F !important;
    color: #FFFFFF !important;
    border-color: #2D6A4F !important;
}

/* -- Contact items ------------------------------------------------- */
.theme-nature .contact-item { color: #3D5A47 !important; }
.theme-nature .contact-item:hover {
    background: #EDFAF3 !important;
    color: #1B4332 !important;
    border-color: #74C69D !important;
}
.theme-nature .profile-ids-grid a {
    color: #3D5A47 !important;
    border-color: #C8DDD2 !important;
    background: #FFFFFF !important;
}
.theme-nature .profile-ids-grid a:hover {
    border-color: #2D6A4F !important;
    color: #1B4332 !important;
    background: #EDFAF3 !important;
}

/* -- Chips, badges, scores ----------------------------------------- */
.theme-nature .score-badge { color: #2D6A4F !important; }
.theme-nature .collab-chip {
    border-color: rgba(45,106,79,0.18) !important;
    color: #3D5A47 !important;
    background: #FFFFFF !important;
}
.theme-nature .collab-chip:hover {
    background: #2D6A4F !important;
    color: #FFFFFF !important;
    border-color: #2D6A4F !important;
}
.theme-nature .pub-metrics {
    background: rgba(45,106,79,0.08) !important;
    color: #1B4332 !important;
    border-color: rgba(45,106,79,0.20) !important;
}

/* -- Roadmap ------------------------------------------------------- */
.theme-nature .roadmap-dot {
    background: #FFFFFF !important;
    border-color: #52B788 !important;
    box-shadow: 0 0 0 3px rgba(82,183,136,0.18) !important;
}
.theme-nature .roadmap-item::before { background: #C8DDD2 !important; }
.theme-nature .roadmap-title        { color: #1B4332 !important; }

/* -- Word cloud ---------------------------------------------------- */
.theme-nature .word-tag { color: #2D6A4F !important; }

/* -- Data tables --------------------------------------------------- */
.theme-nature .data-table          { border-color: #C8DDD2 !important; }
.theme-nature .data-table thead tr { background: #EDFAF3 !important; }
.theme-nature .data-table th       { color: #1B4332 !important; }
.theme-nature .data-table tr:hover td {
    background: rgba(45,106,79,0.03) !important;
}

/* -- Footer � deep forest ------------------------------------------ */
.theme-nature .footer {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%) !important;
    border-top: none !important;
}
.theme-nature .footer p {
    color: rgba(255,255,255,0.65) !important;
    text-shadow: none !important;
}

/* -- Scrollbar ----------------------------------------------------- */
.theme-nature ::-webkit-scrollbar-thumb {
    background: rgba(45,106,79,0.22) !important;
}
.theme-nature ::-webkit-scrollbar-thumb:hover {
    background: rgba(45,106,79,0.42) !important;
}

/* -- Mini timeline hover ------------------------------------------- */
.theme-nature .mini-timeline-item:hover {
    background: rgba(45,106,79,0.05) !important;
}

/* -- Focus ring ---------------------------------------------------- */
.theme-nature :focus-visible {
    outline-color: rgba(45,106,79,0.60) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   ✦ VIBRANT COLORFUL ICON SYSTEM  —  Homepage, Publications & More
   Brings rich, distinct, expressive colors to all icons across themes
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Hero & Contact Icons ─────────────────────────────────────── */
.hero-institution i,
.contact-item i.fa-university { color: #1A73E8 !important; }
.contact-item i.fa-envelope   { color: #EA4335 !important; }
.contact-item i.fa-phone      { color: #25D366 !important; }
.contact-item i.fa-whatsapp   { color: #25D366 !important; }
.contact-item i.fa-map-marker-alt { color: #EA4335 !important; }

/* Profile ID Badges */
.profile-ids-grid a i.fa-graduation-cap { color: #4285F4 !important; } /* Google Scholar */
.profile-ids-grid a i.fa-book           { color: #FF6600 !important; } /* Scopus */
.profile-ids-grid a i.fa-id-badge       { color: #A6CE39 !important; } /* ORCID */
.profile-ids-grid a i.fa-linkedin       { color: #0A66C2 !important; } /* LinkedIn */
.profile-ids-grid a i.fa-researchgate   { color: #00CCBB !important; } /* ResearchGate */

/* ── 2. Stat Card Badges (Homepage, Publications, Mentorship) ────── */
.stat-card .stat-icon-badge {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
.stat-card:hover .stat-icon-badge {
    transform: scale(1.15) rotate(4deg) !important;
}

/* ── 3. Section & Card Header Icons Color Coding ─────────────────── */
.card-header i.fa-book,
.card-header i.fa-book-open,
.card-header i.fa-newspaper,
.card-header i.fa-quote-right,
.card-header i.fa-file-alt {
    color: #2563EB !important; /* Royal Blue for Publications & Papers */
}

.card-header i.fa-chalkboard-teacher,
.card-header i.fa-graduation-cap,
.card-header i.fa-university,
.card-header i.fa-certificate,
.card-header i.fa-award {
    color: #D97706 !important; /* Warm Gold/Amber for Teaching & Awards */
}

.card-header i.fa-user-friends,
.card-header i.fa-users,
.card-header i.fa-hands-helping,
.card-header i.fa-user-graduate,
.card-header i.fa-lightbulb {
    color: #059669 !important; /* Vibrant Emerald for Mentorship & Projects */
}

.card-header i.fa-laptop-code,
.card-header i.fa-cube,
.card-header i.fa-cogs,
.card-header i.fa-project-diagram,
.card-header i.fa-truck,
.card-header i.fa-boxes {
    color: #6366F1 !important; /* Vibrant Indigo for Simulations & Supply Chain */
}

.card-header i.fa-briefcase,
.card-header i.fa-history,
.card-header i.fa-medal,
.card-header i.fa-trophy,
.card-header i.fa-crown,
.card-header i.fa-building {
    color: #8B5CF6 !important; /* Vibrant Purple for Experience & Roles */
}

.card-header i.fa-pen-nib,
.card-header i.fa-check-double,
.card-header i.fa-tasks,
.card-header i.fa-journal-whills {
    color: #E11D48 !important; /* Crimson Red for Editorial & Peer Reviews */
}

.card-header i.fa-camera,
.card-header i.fa-images,
.card-header i.fa-map-marker-alt,
.card-header i.fa-palette {
    color: #EA580C !important; /* Vibrant Orange for Clicks & Gallery */
}

/* ── 4. Simulation & Project Card Badges Color Rotation ──────────── */
#simulations-grid .glass-card:nth-child(6n+1) .sim-icon-badge,
.project-card:nth-child(6n+1) .card-icon-badge {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563EB !important;
}
#simulations-grid .glass-card:nth-child(6n+2) .sim-icon-badge,
.project-card:nth-child(6n+2) .card-icon-badge {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #059669 !important;
}
#simulations-grid .glass-card:nth-child(6n+3) .sim-icon-badge,
.project-card:nth-child(6n+3) .card-icon-badge {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #D97706 !important;
}
#simulations-grid .glass-card:nth-child(6n+4) .sim-icon-badge,
.project-card:nth-child(6n+4) .card-icon-badge {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #8B5CF6 !important;
}
#simulations-grid .glass-card:nth-child(6n+5) .sim-icon-badge,
.project-card:nth-child(6n+5) .card-icon-badge {
    background: rgba(225, 29, 72, 0.12) !important;
    color: #E11D48 !important;
}
#simulations-grid .glass-card:nth-child(6n+6) .sim-icon-badge,
.project-card:nth-child(6n+6) .card-icon-badge {
    background: rgba(8, 145, 178, 0.12) !important;
    color: #0891B2 !important;
}

/* Hover state pop for simulation/project badges */
.glass-card:hover .sim-icon-badge,
.project-card:hover .card-icon-badge {
    transform: scale(1.12) rotate(4deg) !important;
}

/* ── 5. Publication & Role Badges ────────────────────────────────── */
.publication-item .pub-icon-badge {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563EB !important;
}
.role-card:nth-child(odd) .card-header i {
    color: #E11D48 !important;
}
.role-card:nth-child(even) .card-header i {
    color: #059669 !important;
}

/* ── 6. Timeline Milestone Icons ─────────────────────────────────── */
.timeline-item:nth-child(4n+1)::before { background: #2563EB !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important; }
.timeline-item:nth-child(4n+2)::before { background: #059669 !important; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25) !important; }
.timeline-item:nth-child(4n+3)::before { background: #D97706 !important; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25) !important; }
.timeline-item:nth-child(4n+4)::before { background: #8B5CF6 !important; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important; }


/* ═══════════════════════════════════════════════════════════════════
   ✦ SQUARESPACE EDITORIAL FELLOW THEME (.theme-editorial)
   Inspired by Squarespace 7.1 'Fellow' & 'Palmer' Academic Templates
   Ivy League Editorial Aesthetic · Serif Headings · Warm Linen Canvas
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ────────────────────────────────────────────── */
.theme-editorial {
    --primary-color:  #064E3B; /* Royal Forest Emerald */
    --primary-hover:  #022C22;
    --primary-rgb:    6, 78, 59;
    --bg-color:       #F9F8F6; /* Warm Linen */
    --surface-color:  #FFFFFF; /* Warm Ivory Card */
    --text-primary:   #1C1917; /* Deep Charcoal Stone */
    --text-secondary: #57534E; /* Warm Slate Charcoal */
    --border-color:   #E7E5E4; /* Warm Stone Divider */
    --glass-bg:       rgba(255, 255, 255, 0.94);
    --glass-border:   #E7E5E4;
    --shadow-sm:      0 1px 3px rgba(28, 25, 23, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md:      0 4px 16px rgba(28, 25, 23, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg:      0 12px 36px rgba(28, 25, 23, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover:   0 20px 48px rgba(28, 25, 23, 0.13), 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-card:    0 2px 8px rgba(28, 25, 23, 0.05), 0 0 0 1px #E7E5E4;
}

/* ── 2. Typography & Canvas (Linen & Organic Warmth) ─────────────── */
.theme-editorial body {
    background-color: #F9F8F6 !important;
    background-image:
        radial-gradient(ellipse at 12% 8%,   rgba(6, 78, 59, 0.045) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 92%, rgba(197, 168, 128, 0.065) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 45%, rgba(6, 78, 59, 0.02)  0%, transparent 70%),
        radial-gradient(rgba(28, 25, 23, 0.022) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px !important;
    color: #1C1917 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Serif Headings (Squarespace Editorial Signature) */
.theme-editorial h1,
.theme-editorial h2,
.theme-editorial h3,
.theme-editorial .hero-name,
.theme-editorial .section-header h2,
.theme-editorial .navbar .nav-logo,
.theme-editorial .card-header h3,
.theme-editorial .timeline-title,
.theme-editorial .roadmap-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.018em !important;
}

/* ── 3. Navbar (Floating Warm Ivory Glass & Gold Accent) ─────────── */
.theme-editorial .navbar {
    background: rgba(250, 249, 246, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid #E7E5E4 !important;
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.theme-editorial .navbar .nav-logo {
    color: #1C1917 !important;
    font-size: 1.42rem !important;
    font-weight: 700 !important;
    transition: var(--transition);
}
.theme-editorial .navbar .nav-logo:hover {
    color: #064E3B !important;
}

.theme-editorial .navbar .nav-link {
    color: #44403C !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    transition: var(--transition-fast) !important;
}
.theme-editorial .navbar .nav-link:hover {
    color: #064E3B !important;
    background: rgba(6, 78, 59, 0.06) !important;
}
.theme-editorial .navbar .nav-link::after {
    background: linear-gradient(90deg, #064E3B, #C5A880) !important;
    height: 2px !important;
}
.theme-editorial .navbar .nav-link.active {
    color: #064E3B !important;
    background: rgba(6, 78, 59, 0.09) !important;
    font-weight: 700 !important;
}
.theme-editorial .navbar .nav-link.active::after {
    background: linear-gradient(90deg, #064E3B, #C5A880) !important;
}

.theme-editorial #tabs-dropdown-toggle,
.theme-editorial .mobile-menu-btn {
    color: #1C1917 !important;
    border-color: #E7E5E4 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition-fast) !important;
}

/* ── 4. Section Headers & Elegant Underline Flourish ──────────────── */
.theme-editorial .section-header h2 {
    color: #1C1917 !important;
    font-size: 2.25rem !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.theme-editorial .section-underline {
    background: linear-gradient(90deg, #064E3B 0%, #C5A880 100%) !important;
    height: 3px !important;
    width: 65px !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 6px rgba(197, 168, 128, 0.25) !important;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease !important;
}
.theme-editorial .section-header:hover .section-underline {
    width: 90px !important;
}
.theme-editorial .section-underline::after {
    background: linear-gradient(90deg, #064E3B 0%, #C5A880 100%) !important;
    opacity: 0.20 !important;
}

/* ── 5. Cards & Glass Surfaces (Ivory with Soft Elevated Shadow) ─── */
.theme-editorial .glass-card,
.theme-editorial .detail-card,
.theme-editorial .stat-card,
.theme-editorial .pub-card,
.theme-editorial .publication-item,
.theme-editorial .course-topic-card,
.theme-editorial .mentorship-card,
.theme-editorial .project-card,
.theme-editorial .timeline-card,
.theme-editorial .contribution-item-card,
.theme-editorial .role-card,
.theme-editorial .material-card,
.theme-editorial #simulations-grid .glass-card {
    background: #FFFFFF !important;
    border: 1px solid #E7E5E4 !important;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border-radius: var(--radius-md) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
    backdrop-filter: none !important;
}

/* Subtle champagne top highlight shimmer on cards */
.theme-editorial .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.15) 30%, rgba(197, 168, 128, 0.22) 50%, rgba(197, 168, 128, 0.15) 70%, transparent) !important;
}

.theme-editorial .glass-card:hover,
.theme-editorial .detail-card:hover,
.theme-editorial .stat-card:hover,
.theme-editorial .pub-card:hover,
.theme-editorial .publication-item:hover,
.theme-editorial .course-topic-card:hover,
.theme-editorial .role-card:hover {
    border-color: #C5A880 !important;
    box-shadow: 0 10px 28px rgba(28, 25, 23, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-4px) !important;
}

/* ── 6. Hero Profile Card ────────────────────────────────────────── */
.theme-editorial .hero-profile {
    background: #FFFFFF !important;
    border: 1px solid #E7E5E4 !important;
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06) !important;
}

.theme-editorial .hero-image-wrapper {
    border: 4px solid #064E3B !important;
    box-shadow:
        0 4px 16px rgba(6, 78, 59, 0.15),
        0 0 0 5px rgba(197, 168, 128, 0.30),
        0 0 0 9px rgba(6, 78, 59, 0.05) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}
.theme-editorial .hero-image-wrapper:hover {
    transform: scale(1.03) !important;
    box-shadow:
        0 8px 24px rgba(6, 78, 59, 0.22),
        0 0 0 6px rgba(197, 168, 128, 0.45),
        0 0 0 11px rgba(6, 78, 59, 0.08) !important;
}

.theme-editorial .hero-name {
    color: #1C1917 !important;
    font-size: 2.15rem !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.theme-editorial .hero-title {
    color: #57534E !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: 0.06em !important;
    font-size: 0.92rem !important;
}

.theme-editorial .hero-institution {
    color: #064E3B !important;
    font-weight: 700 !important;
}

/* ── 7. Primary CV & Action Buttons ──────────────────────────────── */
.theme-editorial .btn-primary-cv,
.theme-editorial #view-cv-btn,
.theme-editorial #print-cv-btn {
    background: #064E3B !important;
    color: #FFFFFF !important;
    border-color: #064E3B !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    transition: var(--transition) !important;
}
.theme-editorial .btn-primary-cv:hover,
.theme-editorial #view-cv-btn:hover,
.theme-editorial #print-cv-btn:hover {
    background: #022C22 !important;
    border-color: #022C22 !important;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.32) !important;
    transform: translateY(-2px) !important;
}

.theme-editorial .tab-btn {
    background: rgba(6, 78, 59, 0.04) !important;
    border: 1.5px solid rgba(6, 78, 59, 0.14) !important;
    color: #57534E !important;
    transition: var(--transition-fast) !important;
}
.theme-editorial .tab-btn:hover {
    background: rgba(6, 78, 59, 0.08) !important;
    border-color: #C5A880 !important;
    color: #064E3B !important;
}
.theme-editorial .tab-btn.active,
.theme-editorial .tab-btn.active:hover {
    background: #064E3B !important;
    border-color: #064E3B !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.28) !important;
}

/* ── 8. Publications & Timeline ──────────────────────────────────── */
.theme-editorial .publication-item {
    background: #FFFFFF !important;
    border-left: 4px solid #064E3B !important;
}
.theme-editorial .publication-item::before { background: #C5A880 !important; }
.theme-editorial .publication-item:hover { background: #FAFAF8 !important; }

.theme-editorial .timeline::before {
    background: linear-gradient(to bottom, #064E3B, rgba(197, 168, 128, 0.25)) !important;
}
.theme-editorial .timeline-item::before {
    background: #064E3B !important;
    border-color: #F9F8F6 !important;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.30) !important;
}
.theme-editorial .timeline-date {
    color: #064E3B !important;
    font-weight: 700 !important;
}

/* ── 9. Footer (Deep Charcoal Stone) ─────────────────────────────── */
.theme-editorial .footer {
    background: #1C1917 !important;
    border-top: 2px solid #C5A880 !important;
}
.theme-editorial .footer p {
    color: #A8A29E !important;
}

/* ── 10. Background Icons ────────────────────────────────────────── */
.theme-editorial .icon-decor {
    color: #064E3B !important;
    opacity: 0.05 !important;
    transition: transform 0.4s ease, opacity 0.3s ease !important;
}
.theme-editorial .icon-decor:hover {
    opacity: 0.16 !important;
}

