/* ==========================================================================
   Rodolfo Batista Negri - Personal Website Stylesheet
   Brand Visual Identity: Deep Space Navy (#002a62) & Amber Gold (#df8600)
   ========================================================================== */

:root {
    /* Primary Brand Palette */
    --brand-navy: #002a62;
    --brand-navy-dark: #001838;
    --brand-navy-light: #003e8f;
    --brand-navy-subtle: #081e3d;
    --brand-gold: #c47712;
    --brand-gold-hover: #d89432;
    --brand-gold-glow: rgba(196, 119, 18, 0.22);
    --brand-gold-muted: rgba(196, 119, 18, 0.12);

    /* Dark Theme (Default) */
    --bg-base: #050608;
    --bg-surface: #090b0e;
    --bg-surface-elevated: #101318;
    --bg-sidebar: #07090c;
    --bg-card: rgba(12, 15, 19, 0.88);
    --bg-card-hover: rgba(18, 22, 28, 0.96);
    --bg-input: #080a0d;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(148, 163, 184, 0.16);
    --border-focus: #c47712;

    --badge-bg: rgba(0, 42, 98, 0.85);
    --badge-text: #e2e8f0;
    --badge-border: rgba(0, 62, 143, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 25px rgba(223, 134, 0, 0.25);

    /* Layout & Geometry */
    --sidebar-width: 320px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --bg-input: #f1f5f9;

    --text-primary: #002a62;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;

    --border-subtle: rgba(0, 42, 98, 0.1);
    --border-card: rgba(0, 42, 98, 0.15);
    --border-focus: #c47712;

    --badge-bg: rgba(0, 42, 98, 0.07);
    --badge-text: #002a62;
    --badge-border: rgba(0, 42, 98, 0.18);

    --shadow-sm: 0 2px 6px rgba(0, 42, 98, 0.06);
    --shadow-md: 0 8px 20px rgba(0, 42, 98, 0.08);
    --shadow-lg: 0 16px 36px rgba(0, 42, 98, 0.12);
    --shadow-accent: 0 0 20px rgba(223, 134, 0, 0.2);
}

/* ==========================================================================
   CSS Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

a {
    color: var(--brand-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--brand-gold-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Starfield / Orbital Animation Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

[data-theme="light"] #space-canvas {
    opacity: 0.2;
}

/* ==========================================================================
   Layout Hierarchy
   ========================================================================== */
.layout-container {
    display: flex;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Mobile Toggle Header */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 1.25rem;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-brand .name {
    font-size: 1.05rem;
    font-weight: 700;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 500;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-navy-light) transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    backdrop-filter: blur(16px);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--brand-navy-light);
    border-radius: 4px;
}

/* Profile Card in Sidebar */
.profile-card {
    padding: 2.25rem 1.75rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.profile-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.25rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 20px var(--brand-gold-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--brand-navy);
}

.profile-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 28px var(--brand-gold-hover);
}

.status-orbit-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--brand-navy);
    border: 2px solid var(--brand-gold);
    color: var(--brand-gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-tagline {
    font-size: 0.88rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.profile-institution {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Nav Links */
.nav-menu {
    list-style: none;
    padding: 1.25rem 0.85rem;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: 0.93rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 42, 98, 0.4);
    border-color: rgba(223, 134, 0, 0.2);
}

.nav-link:hover i {
    color: var(--brand-gold);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    border-color: var(--brand-gold);
    box-shadow: 0 4px 14px rgba(0, 42, 98, 0.4);
}

.nav-link.active i {
    color: var(--brand-gold);
}

/* Sidebar Social Grid */
.sidebar-social {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.social-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.social-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    color: #ffffff;
    background: var(--brand-navy);
    border-color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Theme Toggle & Bottom Actions */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.cv-mini-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cv-mini-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 3.5rem 5% 5rem 6%;
    position: relative;
    max-width: 1400px;
    min-height: 100vh;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Section Header */
.section-header {
    margin-bottom: 2.75rem;
    position: relative;
}

.section-pretitle {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-accent-line {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, transparent 100%);
    border-radius: 2px;
}

/* ==========================================================================
   Hero & Home Section
   ========================================================================== */
.hero-wrapper {
    max-width: 980px;
    padding-top: 1.5rem;
}

.identity-strip {
    max-width: 980px;
    margin: 2rem 0 2.75rem;
    padding: 1.15rem 1.35rem;
    background: rgba(0, 42, 98, 0.22);
    border: 1px solid rgba(223, 134, 0, 0.3);
    border-left: 3px solid var(--brand-gold);
}

.identity-strip-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--brand-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-mark {
    width: 7px;
    height: 7px;
    background: var(--brand-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-gold-glow);
}

.identity-strip p {
    margin: 0.4rem 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.identity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.identity-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.identity-links a:hover {
    color: var(--brand-gold);
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--brand-gold-muted);
    border: 1px solid rgba(223, 134, 0, 0.4);
    color: var(--brand-gold);
    padding: 0.45rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-greeting {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-greeting .gold-gradient-text {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #e0a052 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.28rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-lead strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-subtext {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Hero Action Buttons */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #a8610f 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: 0 4px 18px var(--brand-gold-glow);
    transition: var(--transition-smooth);
}

.btn-primary-gold:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(223, 134, 0, 0.45);
    background: linear-gradient(135deg, #d28a2a 0%, var(--brand-gold) 100%);
}

.btn-secondary-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-card);
    transition: var(--transition-smooth);
}

.btn-secondary-navy:hover {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
    background: rgba(0, 42, 98, 0.4);
    transform: translateY(-2px);
}

/* Quick Stats Bar */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 1.5rem 1.25rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    border-left: 3px solid var(--brand-gold);
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   Fleet / Satellite Mission Highlight Box
   ========================================================================== */
.fleet-card {
    background: linear-gradient(135deg, rgba(0, 42, 98, 0.6) 0%, rgba(6, 22, 45, 0.8) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.fleet-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--brand-gold-muted) 0%, transparent 70%);
    pointer-events: none;
}

.fleet-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-gold);
}

.satellite-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sat-badge {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sat-badge i {
    color: var(--brand-gold);
}

/* ==========================================================================
   About Section & Experience Timelines
   ========================================================================== */
.about-bio-text {
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 950px;
}

.section-subtitle {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-subtitle i {
    color: var(--brand-gold);
}

/* Timeline Layout */
.timeline {
    position: relative;
    border-left: 2px solid var(--brand-navy-light);
    margin-left: 1.25rem;
    padding-left: 2.25rem;
    max-width: 980px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.75rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2.85rem;
    top: 0.2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gold);
    border: 4px solid var(--bg-base);
    box-shadow: 0 0 10px var(--brand-gold-glow);
}

.timeline-date-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-org {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.timeline-desc ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.timeline-desc li {
    margin-bottom: 0.35rem;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 980px;
}

.award-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    position: relative;
    transition: var(--transition-smooth);
    border-top: 3px solid var(--brand-gold);
}

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

.award-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-gold-muted);
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.award-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
}

.award-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
}

.award-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Research Interests & Space Mission Cards
   ========================================================================== */
.research-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.research-card-icon {
    font-size: 2.4rem;
    color: var(--brand-gold);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.research-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* ==========================================================================
   Featured Focus Spotlight (Sociedade Interplanetária Brasileira)
   ========================================================================== */
.featured-paper-box {
    background: linear-gradient(135deg, rgba(0, 42, 98, 0.75) 0%, rgba(2, 11, 24, 0.9) 100%);
    border: 2px solid var(--brand-gold);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(223, 134, 0, 0.2);
    position: relative;
    max-width: 1050px;
}

.featured-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-gold);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 1.25rem;
}

.featured-paper-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.featured-paper-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.featured-paper-meta strong {
    color: var(--brand-gold);
}

.featured-paper-abstract {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--brand-gold);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Publications List & Interactive Filter Tabs
   ========================================================================== */
.pub-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.55rem 1.2rem;
    border-radius: var(--border-radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--brand-gold);
}

.filter-btn.active {
    background: var(--brand-gold);
    color: #ffffff;
    border-color: var(--brand-gold);
    box-shadow: 0 2px 10px var(--brand-gold-glow);
}

.publications-wrapper {
    max-width: 1050px;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.pub-card:hover {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pub-year-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    background: var(--brand-gold-muted);
    height: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(223, 134, 0, 0.3);
    flex-shrink: 0;
}

.pub-details {
    flex-grow: 1;
}

.pub-title-link {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.pub-title-link:hover {
    color: var(--brand-gold);
}

.pub-authors {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

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

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

.pub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.pub-btn:hover {
    color: #ffffff;
    background: var(--brand-navy);
    border-color: var(--brand-gold);
}

.pub-btn.doi-btn {
    color: var(--brand-gold);
    border-color: rgba(223, 134, 0, 0.4);
}

.pub-btn.doi-btn:hover {
    background: var(--brand-gold);
    color: #ffffff;
}

.pub-btn.bibtex-btn {
    cursor: pointer;
}

/* BibTeX Drawer / Box */
.bibtex-box {
    display: none;
    margin-top: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.bibtex-box.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.bibtex-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.45;
}

.copy-bibtex-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--brand-navy);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.copy-bibtex-btn:hover {
    background: var(--brand-gold);
    color: #ffffff;
}

/* ==========================================================================
   Teaching & Mentoring Section
   ========================================================================== */
.teaching-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    max-width: 980px;
}

.teaching-card.current-highlight {
    border-left: 4px solid var(--brand-gold);
    background: linear-gradient(135deg, rgba(0, 42, 98, 0.5) 0%, var(--bg-card) 100%);
}

.teaching-status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 0.5rem;
}

.teaching-status-badge.upcoming {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.teaching-status-badge.past {
    background: var(--badge-bg);
    color: var(--text-secondary);
    border: 1px solid var(--badge-border);
}

.teaching-course-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.teaching-institution {
    font-size: 0.95rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.teaching-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Editorial & Reviewer Badges */
.journals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    max-width: 980px;
}

.journal-badge {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.journal-badge i {
    color: var(--brand-gold);
}

.journal-badge:hover {
    border-color: var(--brand-gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   Contact Section & Cards
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 980px;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--brand-gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.contact-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.contact-card p, .contact-card a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-card a:hover {
    color: var(--brand-gold-hover);
}

/* CV Download Callout in Contact / About */
.cv-action-card {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #031838 100%);
    border: 1px solid var(--brand-gold);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 980px;
    box-shadow: var(--shadow-md);
}

.cv-action-info h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.cv-action-info p {
    color: #cbd5e1;
    font-size: 0.92rem;
}

/* ==========================================================================
   Toast Notification / Clipboard Feedback
   ========================================================================== */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--brand-gold);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Adaptations (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-topbar {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 6rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-greeting {
        font-size: 2.75rem;
    }

    .cv-action-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-greeting {
        font-size: 2.2rem;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .pub-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pub-year-badge {
        align-self: flex-start;
    }

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