/* 
   2025 DESIGN SYSTEM 

*/

:root {
    /* TYPOGRAPHY */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* PALETTE - LIGHT (Harmonized Blue/Cool) */
    --color-bg: #e3eaf2;

    --color-text-main: #2c3e50;

    --color-text-muted: #445D78;

    /* Color Wheel: WCAG AA accessible Blue */
    --color-primary: #1765a3;
    --color-secondary: #2e86c1;
    /* Lighter Tint */
    --color-accent: #124f80;
    /* Darker Shade */
    --color-meta: #1b4f72;

    /* GLASS - LIGHT */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: 0 8px 24px rgba(52, 152, 219, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
    --glass-blur: blur(16px);

    /* UI ELEMENTS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;

    --icon-invert: 0;
    --card-solid: #ffffff;
}

/* DARK MODE OVERRIDES */
[data-theme="dark"] {
    --color-bg: #1a252f;
    /* Dark Blue-Grey */
    --color-text-main: #ecf0f1;
    --color-text-muted: #d0d7de;

    --color-primary: #67b7eb;
    --color-secondary: #85c1e9;
    --color-accent: #3498db;
    --color-meta: #85C1E9;

    --glass-bg: rgba(44, 62, 80, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    --icon-invert: 1;
    --card-solid: #2c3e50;
}

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

html {
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

ul {
    list-style: none;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* BACKGROUND EFFECTS */
.background-glob {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, rgba(0, 206, 201, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -2;
    animation: drift 20s infinite alternate;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 3px);
    pointer-events: none;
    z-index: -1;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

/* LAYOUT CONSTANTS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h2.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 3rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

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

p.tagline {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.highlight-link {
    color: var(--color-primary);
    position: relative;
    font-weight: 600;
}

.highlight-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.highlight-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 110px;
    /* Offset for sticky header */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-frame {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    margin: 0 auto 1.5rem;
}

.portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-bg);
}

/* Desktop: portrait beside the text instead of stacked above it */
@media (min-width: 900px) {
    .hero-content {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 2.5rem;
        align-items: center;
        text-align: left;
    }

    .profile-frame {
        grid-row: 1 / span 4;
        width: 168px;
        height: 168px;
        margin: 0;
    }

    .hero-content .bio {
        margin-left: 0;
    }

    .hero-content .social-links {
        justify-content: flex-start;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #00b894;
    /* Online/Active green */
    border: 3px solid var(--color-bg);
    border-radius: 50%;
}

.bio {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    /* Add padding to prevent edge touching on very small screens */
}

@media (max-width: 580px) {
    .social-links {
        gap: 0.9rem;
        /* The five buttons fit on one line */
    }
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
    color: var(--color-text-main);
    position: relative;
    /* Anchor for the absolute tooltip */
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.social-btn:hover img {
    filter: invert(1) brightness(2);
    /* Make icon white on hover */
}

/* Helper for icon inversion (e.g. for light mode specific icons) */
.icon-invert {
    filter: invert(var(--icon-invert));
}

#copy-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text-main);
    color: var(--color-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

/* Email copied: the envelope turns into a check mark for a moment */
#email-btn svg {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#email-btn .check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
}

#email-btn.copied .mail-icon {
    opacity: 0;
    transform: scale(0.5);
}

#email-btn.copied .check-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* GLASS CARDS & SHELF */
/* GLASS CARDS & SHELF */
.grid-shelf {
    display: grid;
    /* Compact cards: 5 per row on a desktop screen, fewer as the window narrows */
    grid-template-columns: repeat(auto-fill, 212px);
    /* Row height set by card-renderer.js to the tallest card: every card the same size */
    justify-content: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

@media (max-width: 720px) {
    .grid-shelf {
        grid-template-columns: repeat(1, 100%);
        /* Same height through clamped title and text, an opened card grows alone */
        grid-auto-rows: auto !important;
        gap: 0.75rem;
        padding: 0 1rem;
        /* Ensure some side padding on mobile */
    }

    /* Horizontal Card Layout for non-small cards */
    .card:not(.small) {
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
        /* Ensure enough height for content */
    }

    .card:not(.small) .card-img-wrapper {
        width: 30%;
        /* Small logo column, the text gets the room */
        height: auto;
        min-height: auto;
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
        padding: 0.6rem;
    }

    .card:not(.small) .card-content {
        width: 70%;
        padding: 0.7rem 0.9rem;
        justify-content: center;
        /* Center text vertically */
    }

    .card:not(.small) h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card:not(.small) .card-desc {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 3em;
        /* Two lines (line-height 1.5): a one-line text keeps the card's height */
        margin-bottom: 0.4rem;
    }

    /* An opened card grows to show everything */
    .grid-shelf .card.expanded h3 {
        white-space: normal;
    }

    .grid-shelf .card.expanded .card-content {
        position: relative;
        inset: auto;
        overflow: visible;
    }

    /* Fix Overlap: Make arrow static or push meta */
    .card:not(.small) .card-content {
        position: relative;
        /* Context for absolute items */
    }

    /* Shorten text labels on mobile */
    /* Handled globally now */

    /* Ensure meta doesn't overlap arrow */
    .card:not(.small) .meta {
        max-width: 100%;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Arrow handled by card-footer now */
}

/* Space before the footer, the last section */
#hire {
    margin-bottom: 5rem;
}

.hire-intro {
    max-width: 680px;
    color: var(--color-text-muted);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.hire-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--glass-shadow);
}

.hire-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.hire-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.hire-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.hire-btn-primary,
.hire-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.hire-btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.hire-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-accent);
}

.hire-btn-secondary {
    background: var(--glass-bg);
    color: var(--color-text-main);
    border: 1px solid var(--glass-border);
}

.hire-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

/* Collapsible Grid Logic */
/* Collapsible Grid Logic */
.grid-shelf {
    /* Base styles for animation */
    transition: max-height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    /* Required for height animation */
    padding: 1rem;
    /* Prevent clipping of hover effects */
    margin: 0 -1rem;
    /* Compensate for padding to keep alignment */
    width: calc(100% + 2rem);
    /* Compensate width */
}

.grid-shelf.collapsed {
    position: relative;
    padding-bottom: 0;
    /* Use mask-image for a perfect transparent fade that respects background gradients */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
}



.section-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.5rem auto 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    position: relative;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.section-expand-btn[hidden] {
    display: none;
}

.section-expand-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--color-accent);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.section-expand-btn svg {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure fixed width doesn't break flex behavior */
    width: 100%;
}




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

.card-img-wrapper {
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
}

/* Dark Mode specific image adjustments */
/* Dark mode: logos keep their official colours on a light panel, like in light mode */
[data-theme="dark"] .card-img-wrapper {
    background: #eef2f6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Multiply only works on a light background */
[data-theme="dark"] .blend-multiply {
    mix-blend-mode: normal;
}

/* A picture filling the whole image area */
.card-img-wrapper.cover {
    padding: 0;
}

.card-img-wrapper.cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: var(--radius-sm);
}

.card:not(.no-hover):hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Arrow Styling */
/* Arrow Styling */
.card-arrow {
    color: var(--color-primary);
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    /* Push to right if purely flex */
}

.card-footer {
    margin-top: auto;
    /* Push to bottom of flex container */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.card:not(.is-external) .card-arrow::before {
    content: "Article";
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.card:not(.is-external) .card-arrow[data-label]::before {
    content: attr(data-label);
}

.card-title-link {
    color: inherit;
    text-decoration: none;
}

.card-title-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card:has(.card-title-link:focus-visible) {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.card:not(.no-hover):hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* No Hover State */
.card.no-hover {
    cursor: default;
    pointer-events: none;
}

.card.no-hover:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
}

/* Helper for blending white backgrounds */
.blend-multiply {
    mix-blend-mode: multiply;
}

.card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    flex: 1;
    /* Push meta to bottom */
    margin-bottom: 0.75rem;
}

.card .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
    margin-bottom: 0.25rem;
}

.card.expanded .card-desc {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    overflow: visible;
}

.card-more {
    position: relative;
    z-index: 3;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font: 600 0.78rem var(--font-body);
    cursor: pointer;
    pointer-events: auto;
}

.card-more:hover {
    text-decoration: underline;
}

.card-more[hidden] {
    display: none;
}

/* Desktop: an opened card shows its full text over the card, the grid keeps its size */
.card.expanded .card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow-y: auto;
    background: var(--card-solid);
}

.card .meta {
    font-size: 0.72rem;
    color: var(--color-meta);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    margin-top: auto;
}

/* CONTENT PAGE TYPOGRAPHY */
.article-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--glass-bg);
    /* Glass background for better visibility */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.section.self-section header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section.self-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-text-main), var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property for compatibility */
}

.video-full-width {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Inline Icon helper */
.icon-inline {
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-2px);
}

/* Content Page Spacing Fix */
#part-content {
    padding-top: 100px;
    /* Space for fixed navbar */
    min-height: 80vh;
}

/* WebMCP AI Agent Feedback Styles */
form:tool-form-active {
  outline: var(--color-primary) dashed 2px;
  outline-offset: -2px;
  transition: outline var(--transition-fast);
}

button:tool-submit-active, input:tool-submit-active {
  outline: #e74c3c dashed 2px;
  outline-offset: -2px;
  transform: scale(1.05);
}

/* Enhanced Agent Visuals - Clean & Integrated */
#webmcp-contact-form {
  display: none; /* Completely hidden normally */
}

#webmcp-contact-form:tool-form-active,
#webmcp-contact-form.agent-active {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 400px; /* Increased width */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 99999;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#webmcp-contact-form input {
  font-weight: 700;
  padding: 12px;
}

#webmcp-contact-form textarea {
  min-height: 180px; /* Much taller message area */
  resize: vertical;
  line-height: 1.5;
  padding: 12px;
}

[data-theme="dark"] #webmcp-contact-form input,
[data-theme="dark"] #webmcp-contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
}

#webmcp-contact-form button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}

#webmcp-contact-form button:hover {
  filter: brightness(1.1);
}

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

.webmcp-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.webmcp-form-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

#close-agent-form {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
  line-height: 1;
}

/* A card picture with its own dark version (imageDark in data/portfolio.js). */
.card-img-wrapper .img-dark { display: none; }
[data-theme="dark"] .card-img-wrapper .img-dark { display: block; }
[data-theme="dark"] .card-img-wrapper .img-light { display: none; }
[data-theme="dark"] .card-img-wrapper:has(.img-dark) { background: #1f242b; }

@media (prefers-reduced-motion: reduce) {
  .background-glob,
  .hero-content {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
