/* ============================================
   Joel Martinsson - Academic Website
   Clean, Elegant Design
   ============================================ */

/* CSS Variables */
:root {
    --color-bg: #fafaf9;
    --color-bg-alt: #f5f5f4;
    --color-text: #1c1917;
    --color-text-muted: #57534e;
    --color-text-light: #78716c;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    --color-border: #e7e5e4;
    --color-border-dark: #d6d3d1;
    --color-white: #ffffff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    --max-width: 1100px;
    --radius: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: var(--space-md);
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: var(--space-xs) 0;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-text);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: calc(64px + var(--space-2xl)) 0 var(--space-2xl);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

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

.hero-sub {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.hero-sub a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.hero-sub a:hover {
    text-decoration: underline;
}

/* Hero Buttons */
.hero-links {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #292524;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border-dark);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
}

/* Hero Social Links */
.hero-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.badge-icon {
    font-size: 1rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--space-2xl) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-featured {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: var(--color-white);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-featured .section-label {
    color: #60a5fa;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ============================================
   Featured Project (Saving of Swedovia)
   ============================================ */
.featured-project {
    max-width: 900px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: var(--space-md);
}

.featured-project h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.project-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-xl);
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.project-description p {
    margin-bottom: var(--space-md);
}

.project-description h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.project-description ul {
    list-style: none;
    padding: 0;
}

.project-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.project-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
}

.project-note {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #60a5fa;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
}

/* Project Meta Cards */
.project-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-xl);
    align-items: start;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: sticky;
    top: var(--space-lg);
}

.meta-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: left;
}

.meta-card a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.meta-card a:hover {
    color: white;
    text-decoration: underline;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* ============================================
   Previous Work Section
   ============================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.work-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

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

.work-card-featured {
    grid-column: span 1;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fcd34d;
}

.work-card-featured:hover {
    border-color: #f59e0b;
}

.work-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.work-card-featured .work-type {
    color: #b45309;
}

.work-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.work-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.work-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.work-card blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-accent);
    margin: var(--space-md) 0;
}

/* Work Stats */
.work-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-md) 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.work-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: auto;
}

.work-link:hover {
    text-decoration: underline;
}

/* Work Themes */
.work-themes {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.work-themes li {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-alt);
    border-radius: 50px;
    color: var(--color-text-muted);
}

/* ============================================
   Publications Section
   ============================================ */
.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.pub-item:first-child {
    padding-top: 0;
}

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

.pub-featured {
    background: var(--color-white);
    margin: var(--space-md) calc(-1 * var(--space-md));
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
}

.pub-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.pub-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.pub-content h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.pub-content h3 a:hover {
    color: var(--color-accent);
}

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

.pub-coauthor {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.pub-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.pub-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.pub-links a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.publications-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.contact-item:hover {
    border-color: var(--color-border-dark);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Social Cards */
.contact-social h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.social-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}

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

.social-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    color: white;
    flex-shrink: 0;
}

.social-card-icon.bluesky {
    background: #0085ff;
}

.social-card-icon.linkedin {
    background: #0077b5;
}

.social-card-icon.scholar {
    background: #4285f4;
}

.social-card-icon.university {
    background: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.social-card-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
}

.social-card-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-name {
    font-weight: 500;
}

.footer-divider {
    color: var(--color-border-dark);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .image-frame {
        max-width: 280px;
    }

    .hero-links,
    .hero-social {
        justify-content: center;
    }

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

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

    .project-meta {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }

    .meta-card {
        flex: 1;
        min-width: 200px;
    }

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

    .work-card-featured {
        grid-column: span 1;
    }

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

    .social-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(64px + var(--space-xl));
    }

    .pub-item {
        grid-template-columns: 1fr;
    }

    .pub-year {
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeIn 0.6s ease-out forwards;
}

.hero-image {
    animation-delay: 0.15s;
}

/* Subtle hover states */
.work-card,
.social-card,
.contact-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 18px;
    right: var(--space-lg);
    z-index: 101;
    display: flex;
    gap: 4px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--color-text);
}

.lang-btn.active {
    background: var(--color-text);
    color: var(--color-white);
}

/* ============================================
   Swedovia Image
   ============================================ */
.swedovia-image-container {
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.swedovia-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.swedovia-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.swedovia-placeholder span {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
}

.swedovia-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xs);
}

.swedovia-placeholder small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Swedovia Contact Form
   ============================================ */
.swedovia-contact {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
}

.swedovia-contact h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.swedovia-contact > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-form {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-form:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
}

.form-success span {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: var(--space-sm);
}

.form-success p {
    font-size: 1.1rem;
    color: var(--color-white);
    margin: 0;
}

/* ============================================
   Book Announcement
   ============================================ */
.book-announcement {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
}

.book-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.book-announcement strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.book-announcement span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.book-announcement em {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text);
    font-style: italic;
}

/* Featured work card adjustments for book */
.work-card-featured .book-announcement {
    background: rgba(180, 83, 9, 0.1);
    border-color: #b45309;
}

.work-card-featured .book-announcement strong {
    color: #b45309;
}

/* ============================================
   Responsive adjustments for new elements
   ============================================ */
@media (max-width: 900px) {
    .lang-switcher {
        top: 12px;
        right: var(--space-sm);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .swedovia-contact {
        padding: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .lang-switcher {
        position: static;
        margin: 0 auto var(--space-sm);
        justify-content: center;
    }

    .site-header {
        padding-top: 50px;
    }

    .btn-form {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Linnaeus University Branding (Contact Section)
   ============================================ */
.section-lnu {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
    position: relative;
}

.section-lnu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ca8a04, #eab308, #ca8a04);
}

.section-lnu .section-label {
    color: #a16207;
}

.section-lnu h2 {
    color: #78350f;
}

.section-lnu p {
    color: #92400e;
}

.section-lnu .contact-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.section-lnu .contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(202, 138, 4, 0.4);
}

.section-lnu .contact-item strong {
    color: #78350f;
}

.section-lnu .contact-item span {
    color: #92400e;
}

.section-lnu .social-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.section-lnu .social-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(202, 138, 4, 0.4);
}

.section-lnu .social-card-info strong {
    color: #78350f;
}

.section-lnu .social-card-info span {
    color: #92400e;
}

.section-lnu h3 {
    color: #78350f;
}

.social-card-lnu {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(202, 138, 4, 0.2)) !important;
    border-color: rgba(202, 138, 4, 0.3) !important;
}

.social-card-lnu:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(202, 138, 4, 0.3)) !important;
}

.lnu-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #ca8a04, #eab308);
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
}

.lnu-logo {
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ============================================
   Project Team & Funding Styles
   ============================================ */
.project-funding {
    margin: var(--space-xl) 0 var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-left: 4px solid rgba(234, 179, 8, 0.8);
    border-radius: var(--radius);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.project-team {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.project-team h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.project-team p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.project-team a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.project-team a:hover {
    color: white;
}

/* ============================================
   Project Banner (Top Right Corner)
   ============================================ */
.project-banner {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
    color: white;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    border-bottom-right-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.project-banner-right {
    left: auto;
    right: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: var(--radius);
    padding: 0.5rem 0.75rem 0.5rem 1rem;
}

.project-banner:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--color-accent) 100%);
}

.project-banner span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-banner-right span::before {
    content: '←';
    font-size: 0.85rem;
}

/* ============================================
   Hero Additional Styles
   ============================================ */
.highlight {
    color: var(--color-accent);
    font-weight: 600;
}

.hero-project {
    font-size: 1rem;
    color: var(--color-muted);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-project a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.hero-project a:hover {
    text-decoration: underline;
}

.hero-teaching {
    margin-top: var(--space-md);
    font-size: 0.95rem;
    color: var(--color-muted);
}

.hero-teaching a {
    color: var(--color-accent);
    text-decoration: none;
}

.hero-teaching a:hover {
    text-decoration: underline;
}

.hero-find-me {
    margin-top: var(--space-lg);
    text-align: left;
}

.hero-find-me > span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

.hero-social-centered {
    display: flex;
    gap: var(--space-md);
}

.hero-social-centered .social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: all 0.2s;
}

.hero-social-centered .social-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.lnu-flow {
    font-family: serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ca8a04;
}

.hero-badge {
    text-decoration: none;
    color: var(--color-text);
}

.hero-badge:hover {
    color: var(--color-accent);
}

.footer-link {
    color: var(--color-muted);
    text-decoration: none;
}

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

/* Current Status Note */
.current-status {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
}

/* ============================================
   Redesigned Contact Section
   ============================================ */
.section-contact {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
}

/* Blue Contact Section */
.section-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: var(--color-white);
}

.section-blue .section-label {
    color: #60a5fa;
}

.section-blue h2 {
    color: var(--color-white);
}

.section-blue .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.section-blue .contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.section-blue .contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.section-blue .contact-card strong {
    color: var(--color-white);
}

.section-blue .contact-card span {
    color: rgba(255, 255, 255, 0.7);
}

.section-blue .contact-card-label {
    color: rgba(255, 255, 255, 0.6);
}

.section-blue .contact-card-lnu {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.3));
    border-color: rgba(234, 179, 8, 0.4);
}

.section-blue .contact-card-lnu:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(202, 138, 4, 0.4));
    border-color: rgba(234, 179, 8, 0.5);
}

.section-blue .contact-card-lnu strong {
    color: #fef08a;
}

.section-blue .contact-card-lnu span {
    color: rgba(254, 240, 138, 0.8);
}

.section-blue .location-cities {
    color: #fcd34d !important;
}

.section-blue .social-links-section h3 {
    color: rgba(255, 255, 255, 0.6);
}

.section-blue .social-link-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.section-blue .social-link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.contact-header .section-description {
    max-width: 600px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-cards-four {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.contact-card-small {
    padding: var(--space-lg);
}

.contact-card-small .contact-card-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.contact-card-small .contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-small strong {
    font-size: 0.95rem;
}

.contact-card-small .contact-card-label {
    font-size: 0.8rem;
}

@media (max-width: 1000px) {
    .contact-cards-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-cards-four {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s;
}

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

.contact-card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.contact-card strong {
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: var(--space-xs);
}

.contact-card span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.contact-card-email:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
}

.contact-card-lnu {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-color: #ca8a04;
}

.contact-card-lnu:hover {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-color: #a16207;
}

.contact-card-lnu strong {
    color: #78350f;
}

.contact-card-lnu span {
    color: #92400e;
}

.location-cities {
    font-weight: 600;
    color: #a16207 !important;
    margin-top: var(--space-xs);
}

.social-links-section {
    text-align: center;
}

.social-links-section h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.social-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link-item:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(37, 99, 235, 0.05);
}

.social-link-item svg {
    flex-shrink: 0;
}

.social-link-lnu {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-color: #ca8a04;
}

.social-link-lnu:hover {
    background: linear-gradient(135deg, #fef08a, #fde047);
    border-color: #a16207;
    color: #78350f;
}

.lnu-icon {
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    background: rgba(202, 138, 4, 0.2);
    border-radius: 3px;
    color: #78350f;
}

@media (max-width: 600px) {
    .project-banner {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    }

    .social-links-row {
        flex-direction: column;
        align-items: center;
    }

    .social-link-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
