:root {
    --primary-color: #6469E3;
    --primary-light: #8589ea;
    --primary-dark: #5055c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    color: #e0e0e0;
    background-color: #1a1a1a;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.navbar-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 4px 6px 4px 5px;
    min-width: 460px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: all;
}

body.dark-mode .navbar-pill {
    background: rgba(30, 30, 30, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.navbar--project {
    justify-content: flex-end;
    padding-right: 24px;
}


.navbar-home-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar-home-btn:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.navbar-home-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: color 0.3s;
}

body.dark-mode .navbar-home-btn {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .navbar-home-btn:hover {
    background: #333;
    border-color: #444;
}

body.dark-mode .navbar-home-btn svg {
    color: var(--primary-light);
}

.navbar-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nav-link {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: color 0.3s;
    white-space: nowrap;
}

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

body.dark-mode .nav-link {
    color: #ccc;
}

body.dark-mode .nav-link:hover {
    color: #e0e0e0;
}

.nav-link--disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.nav-contact-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    height: 46px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s, border-color 0.3s;
    margin-left: 0;
    white-space: nowrap;
}

.nav-contact-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

body.dark-mode .nav-contact-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 600px) {
    .navbar {
        top: 12px;
        padding: 0 12px;
    }

    .navbar-pill {
        min-width: 0;
        max-width: 100%;
        gap: 0;
        padding: 4px 5px 4px 4px;
    }

    .navbar-home-btn {
        width: 38px;
        height: 38px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .nav-contact-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 0.85rem;
        margin-left: 1px;
    }

    .navbar--project {
        justify-content: center;
        padding-right: 0;
    }
}

body.dark-mode .nav-contact-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


body.dark-mode .theme-toggle {
    background: #2a2a2a;
    border-color: #444;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: #333;
    transition: color 0.3s, transform 0.3s;
}

body.dark-mode .theme-toggle svg {
    color: #e0e0e0;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

.theme-toggle .sun-icon {
    display: block;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: none;
    fill: white;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.9rem;
}

.back-button:hover {
    background-color: var(--primary-light);
    transform: translateX(-4px);
}

body.dark-mode .back-button {
    background: var(--primary-color);
}

body.dark-mode .back-button:hover {
    background: var(--primary-light);
}

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

.scroll-animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 100px;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 60px;
}

.avatar-flip-container {
    width: 150px;
    height: 150px;
    perspective: 700px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.avatar-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 50%;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.15),
        0 20px 40px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.avatar-flip-container.flipped .avatar-flip-inner {
    transform: rotateY(180deg);
}

.avatar-flip-front,
.avatar-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-flip-back {
    background: var(--primary-color);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-signature {
    width: 55%;
    height: 55%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.profile h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
}

body.dark-mode .profile h1 {
    color: #e0e0e0;
}

.bio {
    font-size: 0.95rem;
    color: #888;
    max-width: 100%;
    line-height: 1.7;
    text-align: left;
}

body.dark-mode .bio {
    color: #b0b0b0;
}

/* Projects Section */
.projects {
    margin-bottom: 60px;
}

.projects h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #222;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

body.dark-mode .projects h2 {
    color: #e0e0e0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-card--static {
    cursor: default;
}

body.dark-mode .project-card {
    background: #2a2a2a;
}


.project-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.project-card-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    height: 52px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

a.project-card-link:hover .project-image {
    transform: scale(1.05);
}

.project-image--placeholder {
    background: #f0f0f0;
}

body.dark-mode .project-image--placeholder {
    background: #2a2a2a;
}

.project-image-wrapper--themison {
    background: #0a0a0d;
}

.project-image--contain {
    object-fit: contain;
    padding: 24px;
    box-sizing: border-box;
}

.project-card-logo--themison {
    height: 18px;
    top: 16px;
    left: 16px;
}

.project-card-logo-group {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card-logo-group .project-card-logo {
    position: static;
    top: auto;
    left: auto;
}

.project-content {
    padding: 24px;
    background: white;
    border-radius: 0 0 12px 12px;
}

body.dark-mode .project-content {
    background: #2a2a2a;
}

.project-date {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

body.dark-mode .project-date {
    color: #888;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

body.dark-mode .project-card h3 {
    color: #e0e0e0;
}

.project-description {
    color: #888;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark-mode .project-description {
    color: #b0b0b0;
}

.project-explore {
    display: inline-block;
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
}

body.dark-mode .project-explore {
    color: #e0e0e0;
}

.explore-arrow {
    display: inline-block;
}

.project-explore:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    margin-bottom: 80px;
}

.contact-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-heading {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    margin: 0 0 20px;
}

body.dark-mode .contact-heading {
    color: #f0f0f0;
}

.contact-subtext {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 0 36px;
}

body.dark-mode .contact-subtext {
    color: #999;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.contact-link svg {
    flex-shrink: 0;
    color: #222;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link:hover svg {
    color: var(--primary-color);
}

body.dark-mode .contact-link {
    color: #e0e0e0;
}

body.dark-mode .contact-link svg {
    color: #e0e0e0;
}

body.dark-mode .contact-link:hover,
body.dark-mode .contact-link:hover svg {
    color: var(--primary-light);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.9rem;
}

.case-study-container + .footer {
    padding-bottom: 40px;
}

body.dark-mode .footer {
    border-top-color: #333;
    color: #777;
}

/* Case Study Styles */
.case-study-hero {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1));
}

.case-study-hero--themison {
    height: auto;
    min-height: 400px;
    background: #0a0a0d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px 40px;
}

.hero-brand-logo {
    position: absolute;
    top: 32px;
    left: 40px;
    height: 20px;
    width: auto;
}

.hero-brand-image {
    max-width: 960px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
    .hero-brand-logo {
        top: 20px;
        left: 20px;
        height: 16px;
    }

    .case-study-hero--themison {
        padding: 48px 16px 32px;
    }
}

.case-study-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-study-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.case-study-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
}

body.dark-mode .case-study-card {
    background: #2a2a2a;
}

.case-study-card h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #222;
    font-weight: 600;
}

body.dark-mode .case-study-card h1 {
    color: #e0e0e0;
}

.case-study-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

body.dark-mode .case-study-subtitle {
    color: #b0b0b0;
}

.case-study-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
}

.case-study-subtitle a:hover {
    text-decoration: underline;
}

.case-study-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #222;
    font-weight: 600;
}

body.dark-mode .case-study-card h2 {
    color: #e0e0e0;
}

.case-study-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 20px;
    color: #222;
    font-weight: 600;
}

body.dark-mode .case-study-card h3 {
    color: #e0e0e0;
}

.case-study-card h4 {
    font-size: 0.95rem;
    color: #222;
    font-weight: 600;
    margin-bottom: 6px;
}

body.dark-mode .case-study-card h4 {
    color: #e0e0e0;
}

.case-study-card p {
    margin-bottom: 16px;
    color: #666;
    line-height: 1.8;
}

body.dark-mode .case-study-card p {
    color: #b0b0b0;
}

.case-study-list {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.case-study-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: #666;
}

body.dark-mode .case-study-list li {
    color: #b0b0b0;
}

.case-study-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #333;
}

body.dark-mode .case-study-list li:before {
    color: #e0e0e0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.overview-item {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
}

body.dark-mode .overview-item {
    background: #333;
}

.overview-item h4 {
    margin-bottom: 8px;
}

.overview-item p {
    font-size: 0.95rem;
    margin: 0;
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0;
}

.responsibility-card {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #333;
}

body.dark-mode .responsibility-card {
    background: #333;
    border-left-color: #e0e0e0;
}

.responsibility-card h3 {
    margin-top: 0;
}

.responsibility-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.responsibility-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

body.dark-mode .responsibility-card li {
    color: #b0b0b0;
}

.responsibility-card li:before {
    content: "•";
    position: absolute;
    left: 8px;
}

.insights-box {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

body.dark-mode .insights-box {
    background: #333;
}

.workflow-section {
    margin: 24px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

body.dark-mode .workflow-section {
    background: #333;
}

.workflow-section h3 {
    margin-top: 0;
}

.testing-results {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

body.dark-mode .testing-results {
    background: #333;
}

.case-study-image {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
    padding: 0 20px;
}

body.dark-mode .image-caption {
    color: #b0b0b0;
}

.zoomable-img {
    cursor: zoom-in;
}

.zoomable-wrap {
    position: relative;
    display: block;
}

.zoomable-icon {
    display: none;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.zoomable-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

@media (max-width: 600px) {
    .zoomable-icon {
        display: flex;
    }
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.case-study-section--wide {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 20px;
}

.placeholder-box {
    background: #e8e8e8;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 24px 0;
    color: #999;
}

body.dark-mode .placeholder-box {
    background: #333;
    color: #888;
}

.back-button-section {
    text-align: center;
}

.back-to-projects-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

body.dark-mode .back-to-projects-btn {
    background: var(--primary-color);
}

.back-to-projects-btn:hover {
    background: var(--primary-light);
}

body.dark-mode .back-to-projects-btn:hover {
    background: var(--primary-light);
}

/* Case Study: Meta strip */
.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

body.dark-mode .meta-strip {
    border-top-color: #444;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    font-weight: 600;
}

body.dark-mode .meta-label {
    color: #777;
}

.meta-value {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
}

body.dark-mode .meta-value {
    color: #e0e0e0;
}

/* Case Study: Callout / pull quote */
.callout {
    border-left: 3px solid var(--primary-color);
    padding: 16px 20px;
    margin: 24px 0;
    background: #f5f5f5;
    border-radius: 0 8px 8px 0;
}

body.dark-mode .callout {
    background: #333;
}

.callout p {
    margin: 0;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
    font-style: italic;
}

body.dark-mode .callout p {
    color: #c0c0c0;
}

/* Case Study: Field findings */
.findings-list {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.finding-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

body.dark-mode .finding-item {
    background: #333;
}

.finding-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 32px;
    line-height: 1;
    padding-top: 3px;
}

.finding-body h4 {
    margin: 0 0 6px 0;
}

.finding-body p {
    margin: 0;
    font-size: 0.95rem;
}

/* Case Study: Side-by-side image pair */
.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.image-pair img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 600px) {
    .image-pair {
        grid-template-columns: 1fr;
    }

    .image-pair img {
        height: 220px;
    }
}

/* Case Study: Visual slot (image placeholder) */
.visual-slot {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #bbb;
    font-size: 0.88rem;
    margin-top: 24px;
    border: 2px dashed #e0e0e0;
}

body.dark-mode .visual-slot {
    background: #222;
    border-color: #444;
    color: #555;
}

/* Work page */
.work-roles {
    display: flex;
    flex-direction: column;
}

.work-role {
    padding: 28px 0;
    border-bottom: 1px solid #e8e8e8;
}

.work-role:first-child {
    padding-top: 0;
}

.work-role:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.dark-mode .work-role {
    border-bottom-color: #444;
}

.work-role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.work-role-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    line-height: 1.4;
}

body.dark-mode .work-role-title {
    color: #e0e0e0;
}

.work-role-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.work-role-title a:hover {
    text-decoration: underline;
}

.work-role-meta {
    font-size: 0.83rem;
    color: #999;
}

body.dark-mode .work-role-meta {
    color: #888;
}

.work-role-specialisation {
    font-size: 0.83rem;
    color: #777;
    margin-top: 2px;
    font-style: italic;
}

body.dark-mode .work-role-specialisation {
    color: #aaa;
}

.work-role-date {
    font-size: 0.83rem;
    color: #bbb;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

body.dark-mode .work-role-date {
    color: #666;
}

.work-role-bullets {
    margin: 10px 0 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.work-role-bullets li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
}

body.dark-mode .work-role-bullets li {
    color: #b8b8b8;
}

@media (max-width: 600px) {
    .work-role-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
        padding-top: 90px;
    }

    .profile h1 {
        font-size: 2rem;
    }

    .avatar-flip-container {
        width: 120px;
        height: 120px;
    }

    .projects h2 {
        font-size: 1.5rem;
    }

    .contact-heading {
        font-size: 1.8rem;
    }

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