@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design System --- */
:root {
    --bg-main: #080b11;
    --bg-card: rgba(15, 22, 36, 0.7);
    --bg-nav: rgba(8, 11, 17, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.3);
    
    --color-text-main: #f0f4f8;
    --color-text-muted: #8a99ad;
    
    /* Glowing Gradients */
    --accent-teal: #00f2fe;
    --accent-indigo: #4facfe;
    --accent-emerald: #05ffc7;
    --accent-purple: #a18cd1;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-indigo) 100%);
    --gradient-emerald: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-indigo) 100%);
    --gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%);
    --gradient-dark: linear-gradient(180deg, #0f1624 0%, #080b11 100%);
    
    /* Schymanski Scale Colors */
    --schymanski-l1: #05ffc7;
    --schymanski-l2: #00f2fe;
    --schymanski-l3: #4facfe;
    --schymanski-l4: #ffb142;
    --schymanski-l5: #ff5252;
    
    /* Shadows & Glows */
    --shadow-glow-teal: 0 0 20px rgba(0, 242, 254, 0.25);
    --shadow-glow-emerald: 0 0 20px rgba(5, 255, 199, 0.25);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset Rules --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Abstract Background Glows */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-indigo);
}

ul {
    list-style: none;
}

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .section {
        padding: 4rem 0;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--bg-main);
    box-shadow: var(--shadow-glow-teal);
}

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

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-teal);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: var(--gradient-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        left: 0;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 30%, #a2b4cd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-muted);
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg-wrapper {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.15));
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* --- Premium Buttons --- */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000000;
    box-shadow: var(--shadow-glow-teal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    color: #000000;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

/* --- Glass Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-teal);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-teal);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* --- Interactive Timeline Component --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--border-color);
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.timeline-item.active .timeline-badge {
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    color: #000000;
    box-shadow: var(--shadow-glow-teal);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.timeline-content:hover,
.timeline-item.active .timeline-content {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-glow-teal);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-badge {
        left: 20px;
        margin-left: -20px;
    }
}

/* --- Schymanski Scale Component --- */
.scale-container {
    margin-top: 4rem;
}

.scale-flex {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scale-node {
    flex: 1;
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scale-node.node-l1 { --node-color: var(--schymanski-l1); }
.scale-node.node-l2 { --node-color: var(--schymanski-l2); }
.scale-node.node-l3 { --node-color: var(--schymanski-l3); }
.scale-node.node-l4 { --node-color: var(--schymanski-l4); }
.scale-node.node-l5 { --node-color: var(--schymanski-l5); }

.scale-node:hover, .scale-node.active {
    border-color: var(--node-color);
    box-shadow: 0 0 15px var(--node-color);
    transform: translateY(-3px);
}

.scale-node .level-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--node-color);
    margin-bottom: 0.25rem;
}

.scale-node .level-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.scale-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 150px;
    position: relative;
    border-left: 5px solid var(--accent-teal);
    transition: var(--transition-smooth);
}

.scale-info-box h3 {
    margin-bottom: 0.75rem;
}

.scale-info-box .confidence-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .scale-flex {
        flex-direction: column;
    }
    .scale-node {
        padding: 1rem;
    }
}

/* --- Technology Tabs --- */
.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    color: #ffffff;
    border-color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

/* --- Team Grid & Cards --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-teal);
    transform: translateY(-4px);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2d47 0%, #0a0e14 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.team-info h3 {
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.team-quote {
    font-style: italic;
    color: var(--color-text-main);
    border-left: 2px solid var(--accent-teal);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-links {
    display: flex;
    gap: 1rem;
}

.team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.team-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Specific hover colors for team links */
#link-scholar-nikoline:hover,
#link-scholar-selina:hover,
#link-scholar-giorgio:hover {
    color: #4285F4; /* Google Scholar Blue */
    transform: translateY(-2px);
}

#link-orcid-jan:hover,
#link-orcid-nikoline:hover,
#link-orcid-selina:hover,
#link-orcid-majbrit:hover,
#link-orcid-giorgio:hover {
    color: #A6CE39; /* ORCID Green */
    transform: translateY(-2px);
}

#link-linkedin-jan:hover,
#link-linkedin-nikoline:hover,
#link-linkedin-selina:hover,
#link-linkedin-majbrit:hover,
#link-linkedin-giorgio:hover {
    color: #0A66C2; /* LinkedIn Blue */
    transform: translateY(-2px);
}

/* --- Forms & Contact Page --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3.5rem;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
}

.form-control {
    width: 100%;
    background: rgba(8, 11, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a99ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-text p, .info-text a {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.map-placeholder {
    height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    background-image: radial-gradient(#00f2fe 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-marker {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-teal);
}

.map-marker-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: var(--bg-main);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.alert-success {
    display: none;
    background: rgba(5, 255, 199, 0.1);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    display: none;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff5252;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

/* --- Footer --- */
.footer {
    background-color: #05070a;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-about p {
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: #ffffff;
    border-color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.05);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* --- Publications Page Styles --- */
.filter-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-row:first-child {
    padding-top: 0;
}

.filter-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    width: 120px;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    color: #ffffff;
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-fast);
}

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

.pub-card:hover::before {
    opacity: 1;
}

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

.pub-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid var(--border-color);
}

.pub-badge.topic-lipidic {
    border-color: rgba(5, 255, 199, 0.3);
    background: rgba(5, 255, 199, 0.05);
    color: var(--accent-emerald);
}

.pub-badge.topic-polar {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    color: var(--accent-teal);
}

.pub-badge.topic-profiling {
    border-color: rgba(161, 140, 209, 0.3);
    background: rgba(161, 140, 209, 0.05);
    color: var(--accent-purple);
}

.pub-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.doi-hyperlink {
    color: var(--accent-teal);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.doi-hyperlink:hover {
    color: var(--accent-indigo);
    border-bottom-color: var(--accent-indigo);
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .filter-label {
        width: auto;
    }
}

/* --- Water Quality Topic Badge --- */
.pub-badge.topic-water {
    border-color: rgba(79, 172, 254, 0.3);
    background: rgba(79, 172, 254, 0.05);
    color: var(--accent-indigo);
}

/* --- Zoomable Figures --- */
.zoomable-fig {
    cursor: zoom-in;
    transition: var(--transition-smooth);
}

.zoomable-fig:hover {
    transform: scale(1.03);
    border-color: var(--accent-indigo) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 14, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-text-muted);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ffffff;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-main);
    font-size: 0.95rem;
    text-align: center;
    background: rgba(8, 11, 17, 0.85);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    max-width: 80%;
    line-height: 1.4;
}

/* --- Hierarchical Tab Components --- */
.main-pane, .sub-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.main-pane.active, .sub-pane.active {
    display: block;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sub-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1.35rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: center;
    border-radius: 2px;
}

.sub-tab-btn:hover {
    color: #ffffff;
}

.sub-tab-btn.active {
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.sub-tab-btn.active::after {
    transform: scaleX(1);
}

.tech-tabs .tab-btn.disabled:hover {
    border-color: var(--border-color) !important;
    color: var(--color-text-muted) !important;
    background: var(--bg-card) !important;
}

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


