/* themes/bootswatch_vapor/css/style.css — neon synthwave / cyberpunk polish.
   The Bootswatch "Vapor" skin (Bootstrap 5.3.7, dark) supplies the base palette,
   fonts and components via --bs-* vars. Here we lean HARD into the neon vibe:
   glowing title, animated gradient background, grid + scanline overlays and
   neon-bordered buttons. All motion respects prefers-reduced-motion. */

/* ── Neon tokens (derived from Bootstrap vars, with magenta accent) ───────── */
:root {
    --bsw-cyan: var(--bs-primary, #6f42c1);
    --bsw-cyan-rgb: var(--bs-primary-rgb, 111, 66, 193);
    --bsw-magenta: #ff2d95;
    --bsw-magenta-rgb: 255, 45, 149;
}

/* ═══════════════════════════ HERO — SYNTHWAVE SCENE ═══════════════════════════
   Full-bleed 80s synthwave cover: retro "sun" with horizontal cut lines, a neon
   perspective grid "floor" receding to a glowing horizon, scanlines + drifting
   orbs, and a chrome/neon title floating above the horizon. */
.bsw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Extra bottom padding leaves room for the grid floor below the title. */
    padding: clamp(5rem, 14vw, 9rem) 0 clamp(9rem, 22vw, 15rem);
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(var(--bsw-magenta-rgb), 0.18), transparent 60%),
        linear-gradient(180deg,
            #07040f 0%,
            #1a0b33 28%,
            #2a0f45 50%,
            #160c40 62%,
            #0d1b3e 100%);
}

/* ── Scene container (everything behind the text) ─────────────────────────── */
.bsw-hero__scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* The glowing retro sun, centered on the horizon, behind the title. */
.bsw-hero__sun {
    position: absolute;
    left: 50%;
    bottom: 42%;
    width: clamp(16rem, 42vw, 30rem);
    aspect-ratio: 1;
    transform: translate(-50%, 50%);
    border-radius: 50%;
    background:
        linear-gradient(180deg,
            #fff7ad 0%,
            var(--bsw-cyan) 14%,
            #ff8adf 48%,
            var(--bsw-magenta) 78%,
            #b3137a 100%);
    box-shadow:
        0 0 70px rgba(var(--bsw-magenta-rgb), 0.7),
        0 0 140px rgba(var(--bsw-magenta-rgb), 0.45),
        0 0 90px rgba(var(--bsw-cyan-rgb), 0.35);
    /* Horizontal "cut" lines that widen toward the bottom (classic synthwave). */
    -webkit-mask-image: repeating-linear-gradient(
        to bottom,
        #000 0,
        #000 4px,
        transparent 4px,
        transparent 5px),
        linear-gradient(to bottom, transparent 0, transparent 50%, #000 50%);
    -webkit-mask-composite: source-in;
    mask-image: repeating-linear-gradient(
        to bottom,
        #000 0,
        #000 4px,
        transparent 4px,
        transparent 5px),
        linear-gradient(to bottom, transparent 0, transparent 50%, #000 50%);
    mask-composite: intersect;
}
/* Solid upper half of the sun (the cut lines only bite the lower half). */
.bsw-hero__sun::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 50%);
    mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 50%);
}

/* Bright neon horizon line where the floor meets the sky. */
.bsw-hero__horizon {
    position: absolute;
    left: 0; right: 0;
    bottom: 42%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--bsw-cyan-rgb), 0.9) 20%,
        #fff 50%,
        rgba(var(--bsw-magenta-rgb), 0.9) 80%,
        transparent);
    box-shadow:
        0 0 14px rgba(var(--bsw-cyan-rgb), 0.8),
        0 0 30px rgba(var(--bsw-magenta-rgb), 0.6);
}

/* Perspective floor: a 3D-tilted plane holding the scrolling grid. */
.bsw-hero__floor {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 300%;
    height: 42%;
    transform: translateX(-50%);
    perspective: 320px;
    perspective-origin: 50% 0%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.bsw-hero__grid {
    position: absolute;
    inset: -50% 0 0;
    transform-origin: 50% 0%;
    transform: rotateX(78deg);
    background-image:
        linear-gradient(rgba(var(--bsw-cyan-rgb), 0.55) 2px, transparent 2px),
        linear-gradient(90deg, rgba(var(--bsw-magenta-rgb), 0.45) 2px, transparent 2px);
    background-size: 64px 64px;
    background-position: 0 0;
    animation: bsw-grid-scroll 4s linear infinite;
}
@keyframes bsw-grid-scroll {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 64px, 0 64px; }
}

/* CRT scanlines over the whole scene. */
.bsw-hero__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0) 4px
    );
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* Drifting neon orbs in the sky corners. */
.bsw-hero__glow {
    position: absolute;
    width: clamp(16rem, 36vw, 30rem);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
}
.bsw-hero__glow--a {
    top: -8rem; left: -6rem;
    background: radial-gradient(circle, rgba(var(--bsw-magenta-rgb), 0.9), transparent 70%);
    animation: bsw-float-a 14s ease-in-out infinite alternate;
}
.bsw-hero__glow--b {
    top: -6rem; right: -7rem;
    background: radial-gradient(circle, rgba(var(--bsw-cyan-rgb), 0.9), transparent 70%);
    animation: bsw-float-b 18s ease-in-out infinite alternate;
}
@keyframes bsw-float-a { to { transform: translate(3rem, 2rem) scale(1.12); } }
@keyframes bsw-float-b { to { transform: translate(-3rem, 2rem) scale(1.15); } }

/* Keep the text content above the horizon/sun. */
.bsw-hero__inner { z-index: 1; }

/* Eyebrow tag */
.bsw-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bsw-cyan);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.5);
    border-radius: 2rem;
    background: rgba(var(--bsw-cyan-rgb), 0.08);
    box-shadow: 0 0 18px rgba(var(--bsw-cyan-rgb), 0.25), inset 0 0 12px rgba(var(--bsw-cyan-rgb), 0.12);
}

/* Chrome/neon title floating above the horizon — cyan core with magenta halo. */
.bsw-hero__title {
    position: relative;
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* Chrome-style vertical gradient fill on the glyphs. */
    background: linear-gradient(180deg,
        #ffffff 0%,
        #d8f6ff 38%,
        var(--bsw-cyan) 52%,
        #ffd3f1 64%,
        var(--bsw-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter:
        drop-shadow(0 0 10px rgba(var(--bsw-cyan-rgb), 0.8))
        drop-shadow(0 0 26px rgba(var(--bsw-magenta-rgb), 0.55));
    animation: bsw-title-flicker 7s infinite;
}

@keyframes bsw-title-flicker {
    0%, 100%, 92% { opacity: 1; }
    93%, 95%      { opacity: 0.82; }
    94%           { opacity: 1; }
}

.bsw-hero__lead {
    max-width: 46ch;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    color: rgba(233, 236, 255, 0.85);
    text-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.25);
}

/* ═══════════════════════════ NEON BUTTONS ═══════════════════════════ */
.bsw-btn-neon {
    position: relative;
    border-width: 2px;
    border-radius: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 0 14px rgba(var(--bsw-cyan-rgb), 0.5),
        inset 0 0 10px rgba(var(--bsw-cyan-rgb), 0.2);
    transition: box-shadow 0.25s ease, transform 0.2s ease, background-color 0.25s ease;
}
.bsw-btn-neon:hover,
.bsw-btn-neon:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 0 22px rgba(var(--bsw-cyan-rgb), 0.85),
        0 0 44px rgba(var(--bsw-magenta-rgb), 0.45),
        inset 0 0 16px rgba(var(--bsw-cyan-rgb), 0.35);
}
.bsw-btn-neon--ghost {
    background: rgba(var(--bsw-cyan-rgb), 0.04);
    box-shadow:
        0 0 12px rgba(var(--bsw-magenta-rgb), 0.4),
        inset 0 0 8px rgba(var(--bsw-magenta-rgb), 0.18);
}
.bsw-btn-neon--ghost:hover,
.bsw-btn-neon--ghost:focus-visible {
    box-shadow:
        0 0 22px rgba(var(--bsw-magenta-rgb), 0.8),
        0 0 40px rgba(var(--bsw-cyan-rgb), 0.4),
        inset 0 0 14px rgba(var(--bsw-magenta-rgb), 0.3);
}

/* ═══════════════════════════ SECTION RHYTHM ═══════════════════════════ */
.bsw-section,
main > section {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    scroll-margin-top: 5rem;
}

/* Thin neon divider between stacked sections */
main > section + section::before,
main > .bsw-section::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(680px, 80%);
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--bsw-cyan-rgb), 0.6),
        rgba(var(--bsw-magenta-rgb), 0.6),
        transparent);
    box-shadow: 0 0 10px rgba(var(--bsw-cyan-rgb), 0.5);
}

/* Glowing section headings */
main > section h2,
.bsw-section h2 {
    color: #fff;
    text-shadow:
        0 0 10px rgba(var(--bsw-cyan-rgb), 0.6),
        0 0 26px rgba(var(--bsw-magenta-rgb), 0.4);
}

.section-title p { color: rgba(233, 236, 255, 0.7); }

/* Cards: neon-edged glass that lights up on hover */
.card {
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bsw-magenta-rgb), 0.55);
    box-shadow: 0 0 24px rgba(var(--bsw-cyan-rgb), 0.3), 0 0 8px rgba(var(--bsw-magenta-rgb), 0.4);
}
.card .text-primary { color: var(--bsw-cyan) !important; }

/* ── Services override (sections/services_preview.html) ───────────────────── */
.bsw-service-card .card-title a { color: #fff; }
.bsw-service-card:hover .card-title a { color: var(--bsw-magenta); }
.bsw-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.5rem;
    color: var(--bsw-cyan);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.4);
    border-radius: 0.75rem;
    background: rgba(var(--bsw-cyan-rgb), 0.08);
    box-shadow: 0 0 16px rgba(var(--bsw-cyan-rgb), 0.3);
    transition: color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bsw-service-card:hover .bsw-service-icon {
    color: var(--bsw-magenta);
    border-color: rgba(var(--bsw-magenta-rgb), 0.5);
    box-shadow: 0 0 22px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-service-more {
    color: var(--bsw-cyan);
    letter-spacing: 0.03em;
}
.bsw-service-card:hover .bsw-service-more { color: var(--bsw-magenta); }

/* ── Projects override (sections/projects_preview.html) ───────────────────── */
.bsw-project-card { overflow: hidden; }
.bsw-project-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
}
.bsw-project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(var(--bsw-magenta-rgb), 0.18) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bsw-project-card:hover .bsw-project-media::after { opacity: 1; }
.bsw-project-card .bsw-project-media img { transition: transform 0.35s ease; }
.bsw-project-card:hover .bsw-project-media img { transform: scale(1.05); }
.bsw-project-card .card-title { color: #fff; }
.bsw-project-card:hover .card-title { color: var(--bsw-magenta); }
.bsw-project-cat { color: var(--bsw-cyan); }
.bsw-project-badge {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.18);
    border: 1px solid rgba(var(--bsw-magenta-rgb), 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.35);
}

/* ── Team override (sections/team_preview.html) ───────────────────────────── */
.bsw-team-card { overflow: hidden; }
.bsw-team-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
}
.bsw-team-media img { transition: transform 0.35s ease; }
.bsw-team-card:hover .bsw-team-media img { transform: scale(1.05); }
.bsw-team-media--empty {
    color: var(--bsw-cyan);
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--bsw-cyan-rgb), 0.18), transparent 70%),
        rgba(var(--bsw-cyan-rgb), 0.05);
}
.bsw-team-card .card-title { color: #fff; }
.bsw-team-card:hover .card-title { color: var(--bsw-magenta); }
.bsw-team-role { color: var(--bsw-cyan); }
.bsw-team-social a {
    color: rgba(233, 236, 255, 0.6);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.bsw-team-social a:hover,
.bsw-team-social a:focus-visible {
    color: var(--bsw-magenta);
    text-shadow: 0 0 10px rgba(var(--bsw-magenta-rgb), 0.6);
}

/* ── Testimonials override (sections/testimonials_preview.html) ───────────── */
.bsw-testimonial-card { overflow: hidden; }
.bsw-testimonial-quote {
    color: var(--bsw-magenta);
    text-shadow: 0 0 18px rgba(var(--bsw-magenta-rgb), 0.5);
}
.bsw-testimonial-card blockquote p { color: rgba(233, 236, 255, 0.88); }
.bsw-testimonial-name { color: #fff; }
.bsw-testimonial-avatar {
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.5);
    box-shadow: 0 0 14px rgba(var(--bsw-cyan-rgb), 0.35);
}

/* ── FAQ override (sections/faq_preview.html) ─────────────────────────────── */
.bsw-faq-item {
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bsw-faq-item:hover,
.bsw-faq-item:focus-within {
    border-color: rgba(var(--bsw-magenta-rgb), 0.5);
    box-shadow: 0 0 20px rgba(var(--bsw-cyan-rgb), 0.25), 0 0 8px rgba(var(--bsw-magenta-rgb), 0.35);
}
.bsw-faq-button {
    background: transparent;
    color: #fff;
    font-weight: 600;
}
.bsw-faq-button:not(.collapsed) {
    color: var(--bsw-cyan);
    background: rgba(var(--bsw-cyan-rgb), 0.08);
    box-shadow: inset 0 -1px 0 rgba(var(--bsw-cyan-rgb), 0.4);
}
.bsw-faq-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bsw-magenta-rgb), 0.35);
}
/* Recolor the chevron to neon cyan via filter (default is dark on dark) */
.bsw-faq-button::after {
    filter: invert(64%) sepia(98%) saturate(2000%) hue-rotate(155deg) brightness(1.1);
}

/* ── About override (sections/about_preview.html) ─────────────────────────── */
.bsw-about-media {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.4);
    box-shadow: 0 0 28px rgba(var(--bsw-cyan-rgb), 0.3), 0 0 10px rgba(var(--bsw-magenta-rgb), 0.25);
}
.bsw-about-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(155deg, rgba(var(--bsw-cyan-rgb), 0.12), transparent 45%, rgba(var(--bsw-magenta-rgb), 0.18));
    mix-blend-mode: screen;
}
.bsw-about-media img { display: block; width: 100%; }
.bsw-about-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(var(--bsw-cyan-rgb), 0.5), 0 0 22px rgba(var(--bsw-magenta-rgb), 0.3);
}
.bsw-about-lead { color: rgba(233, 236, 255, 0.85); }
.bsw-about-facts li { color: rgba(233, 236, 255, 0.8); }
.bsw-about-facts strong { color: #fff; }
.bsw-about-facts i { color: var(--bsw-cyan); }
.bsw-about-facts a {
    color: var(--bsw-magenta);
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}
.bsw-about-facts a:hover,
.bsw-about-facts a:focus-visible { text-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.6); }

/* ── Skills override (sections/skills_preview.html) ───────────────────────── */
.bsw-skill .card-body { padding: 1.1rem 1.25rem; }
.bsw-skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
    color: var(--bsw-cyan);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.4);
    border-radius: 0.65rem;
    background: rgba(var(--bsw-cyan-rgb), 0.08);
    box-shadow: 0 0 14px rgba(var(--bsw-cyan-rgb), 0.3);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bsw-skill:hover .bsw-skill-icon {
    color: var(--bsw-magenta);
    border-color: rgba(var(--bsw-magenta-rgb), 0.5);
    box-shadow: 0 0 20px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-skill-name { color: #fff; }
.bsw-skill-pct {
    color: var(--bsw-cyan);
    font-family: var(--bs-font-monospace, monospace);
    letter-spacing: 0.05em;
}
.bsw-skill-progress {
    background: rgba(var(--bsw-cyan-rgb), 0.12);
    border-radius: 2rem;
    overflow: hidden;
}
.bsw-skill-bar {
    background: linear-gradient(90deg, var(--bsw-cyan), var(--bsw-magenta));
    box-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.6);
}

/* ── Stats override (sections/stats_preview.html) ─────────────────────────── */
.bsw-stats {
    background:
        radial-gradient(ellipse 80% 120% at 50% 50%, rgba(var(--bsw-magenta-rgb), 0.08), transparent 70%),
        rgba(var(--bsw-cyan-rgb), 0.04);
}
.bsw-stat {
    padding: 1.25rem 0.75rem;
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.22);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.bsw-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bsw-magenta-rgb), 0.5);
    box-shadow: 0 0 22px rgba(var(--bsw-cyan-rgb), 0.3), 0 0 8px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-stat-icon {
    color: var(--bsw-cyan);
    text-shadow: 0 0 16px rgba(var(--bsw-cyan-rgb), 0.5);
}
.bsw-stat-value {
    color: #fff;
    text-shadow:
        0 0 10px rgba(var(--bsw-cyan-rgb), 0.7),
        0 0 26px rgba(var(--bsw-magenta-rgb), 0.45);
}
.bsw-stat-value span { color: var(--bsw-magenta); }
.bsw-stat-label {
    color: rgba(233, 236, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

/* ── Resume override (sections/resume_preview.html) ───────────────────────── */
.bsw-resume-heading {
    color: #fff;
    text-shadow: 0 0 10px rgba(var(--bsw-cyan-rgb), 0.5);
}
.bsw-resume-heading i { color: var(--bsw-cyan); }
.bsw-timeline {
    position: relative;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, var(--bsw-cyan), var(--bsw-magenta)) 1;
}
.bsw-timeline-item { position: relative; }
.bsw-timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 5px);
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bsw-cyan);
    box-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.8), 0 0 4px rgba(var(--bsw-magenta-rgb), 0.6);
}
.bsw-timeline-title { color: #fff; }
.bsw-timeline-meta { color: var(--bsw-cyan); }
.bsw-timeline-desc { color: rgba(233, 236, 255, 0.7); }

/* ── Publications override (sections/publications_preview.html) ───────────── */
.bsw-pub-list { position: relative; }
.bsw-pub-item {
    position: relative;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.18);
    transition: background-color 0.25s ease;
}
.bsw-pub-item:hover { background: rgba(var(--bsw-cyan-rgb), 0.04); }
.bsw-pub-title a { color: #fff; transition: color 0.2s ease, text-shadow 0.2s ease; }
.bsw-pub-item:hover .bsw-pub-title a {
    color: var(--bsw-magenta);
    text-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.5);
}
.bsw-pub-meta { color: rgba(233, 236, 255, 0.65); }
.bsw-pub-meta strong { color: rgba(233, 236, 255, 0.92); }
.bsw-pub-cat { color: var(--bsw-cyan); }
.bsw-pub-abstract { color: rgba(233, 236, 255, 0.55); }
.bsw-pub-badge {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.18);
    border: 1px solid rgba(var(--bsw-magenta-rgb), 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(var(--bsw-magenta-rgb), 0.35);
}

/* ── Events override (sections/events_preview.html) ───────────────────────── */
.bsw-event-card { overflow: hidden; }
.bsw-event-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
}
.bsw-event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(var(--bsw-magenta-rgb), 0.18) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bsw-event-card:hover .bsw-event-media::after { opacity: 1; }
.bsw-event-media img { transition: transform 0.35s ease; }
.bsw-event-card:hover .bsw-event-media img { transform: scale(1.05); }
.bsw-event-date {
    color: var(--bsw-cyan);
    text-shadow: 0 0 10px rgba(var(--bsw-cyan-rgb), 0.4);
}
.bsw-event-title { color: #fff; transition: color 0.2s ease; }
.bsw-event-card:hover .bsw-event-title { color: var(--bsw-magenta); }
.bsw-event-loc { color: rgba(233, 236, 255, 0.65); }
.bsw-event-loc i { color: var(--bsw-cyan); }
.bsw-event-desc { color: rgba(233, 236, 255, 0.6); }

/* ── Resources override (sections/resources_preview.html) ─────────────────── */
.bsw-resource-card { overflow: hidden; }
.bsw-resource-badge {
    color: var(--bsw-cyan);
    background: rgba(var(--bsw-cyan-rgb), 0.1);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.45);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.3);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bsw-resource-card:hover .bsw-resource-badge {
    color: var(--bsw-magenta);
    border-color: rgba(var(--bsw-magenta-rgb), 0.5);
    box-shadow: 0 0 16px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-resource-title { color: #fff; transition: color 0.2s ease; }
.bsw-resource-card:hover .bsw-resource-title { color: var(--bsw-magenta); }
.bsw-resource-desc { color: rgba(233, 236, 255, 0.6); }
.bsw-resource-size { color: rgba(233, 236, 255, 0.55); }
.bsw-resource-size i { color: var(--bsw-cyan); }

/* ── Blog override (sections/blog_preview.html) ───────────────────────────── */
.bsw-blog-card { overflow: hidden; }
.bsw-blog-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
}
.bsw-blog-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(var(--bsw-magenta-rgb), 0.18) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bsw-blog-card:hover .bsw-blog-media::after { opacity: 1; }
.bsw-blog-media img { transition: transform 0.35s ease; }
.bsw-blog-card:hover .bsw-blog-media img { transform: scale(1.05); }
.bsw-blog-badge {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.18);
    border: 1px solid rgba(var(--bsw-magenta-rgb), 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(var(--bsw-magenta-rgb), 0.35);
}
.bsw-blog-date { color: rgba(233, 236, 255, 0.5); }
.bsw-blog-title { color: #fff; transition: color 0.2s ease; }
.bsw-blog-card:hover .bsw-blog-title { color: var(--bsw-magenta); }
.bsw-blog-cat { color: var(--bsw-cyan); }
.bsw-blog-desc { color: rgba(233, 236, 255, 0.6); }

/* ═══════════════════════════ BESPOKE PAGES (blog / project list+detail) ═══════
   Per-theme overrides of _shared/pages/*. Dark neon treatment built on
   --bs-* and the --bsw-* tokens above. Reuses .bsw-blog-* / .bsw-project-*
   / .bsw-stat* classes already defined for the section previews. */

/* Filter / pagination buttons reuse .bsw-btn-neon; ensure active state pops */
.bsw-pagination .page-link {
    color: var(--bsw-cyan);
    background: rgba(var(--bsw-cyan-rgb), 0.04);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.3);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.bsw-pagination .page-link:hover,
.bsw-pagination .page-link:focus-visible {
    color: #fff;
    background: rgba(var(--bsw-cyan-rgb), 0.12);
    box-shadow: 0 0 14px rgba(var(--bsw-cyan-rgb), 0.4);
}
.bsw-pagination .page-item.active .page-link {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.22);
    border-color: rgba(var(--bsw-magenta-rgb), 0.6);
    box-shadow: 0 0 14px rgba(var(--bsw-magenta-rgb), 0.45);
}

/* Neon "empty state" alert (replaces alert-info / bg-light) */
.bsw-alert-neon {
    color: rgba(233, 236, 255, 0.85);
    background: rgba(var(--bsw-cyan-rgb), 0.06);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.4);
    border-radius: 0.5rem;
    box-shadow: inset 0 0 18px rgba(var(--bsw-cyan-rgb), 0.12);
}
.bsw-alert-neon i { color: var(--bsw-cyan); }

/* Breadcrumb */
.bsw-breadcrumb a {
    color: var(--bsw-cyan);
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}
.bsw-breadcrumb a:hover,
.bsw-breadcrumb a:focus-visible { text-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.6); }
.bsw-breadcrumb .breadcrumb-item.active { color: rgba(233, 236, 255, 0.7); }
.bsw-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(var(--bsw-magenta-rgb), 0.6); }

/* Blog detail: headline, meta, lead, hero image, prose */
.bsw-blog-headline {
    color: #fff;
    text-shadow:
        0 0 12px rgba(var(--bsw-cyan-rgb), 0.6),
        0 0 28px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-blog-meta { color: rgba(233, 236, 255, 0.65); }
.bsw-blog-meta i { color: var(--bsw-cyan); }
.bsw-blog-lead { color: rgba(233, 236, 255, 0.9); }
.bsw-blog-hero-img {
    width: 100%;
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.4);
    box-shadow: 0 0 28px rgba(var(--bsw-cyan-rgb), 0.3), 0 0 10px rgba(var(--bsw-magenta-rgb), 0.25);
}
.bsw-post-content { color: rgba(233, 236, 255, 0.82); }
.bsw-post-content a {
    color: var(--bsw-magenta);
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}
.bsw-post-content a:hover,
.bsw-post-content a:focus-visible { text-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.6); }
.bsw-post-content h1, .bsw-post-content h2, .bsw-post-content h3,
.bsw-post-content h4, .bsw-post-content h5, .bsw-post-content h6 { color: #fff; }
.bsw-post-content blockquote {
    border-left: 3px solid var(--bsw-cyan);
    padding-left: 1rem;
    color: rgba(233, 236, 255, 0.75);
}

/* Chips (tags / technologies) — replace bg-light / bg-*-subtle */
.bsw-tag-chip {
    color: var(--bsw-cyan);
    background: rgba(var(--bsw-cyan-rgb), 0.1);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.45);
    letter-spacing: 0.03em;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bsw-tag-chip:hover,
.bsw-tag-chip:focus-visible {
    color: var(--bsw-magenta);
    border-color: rgba(var(--bsw-magenta-rgb), 0.55);
    box-shadow: 0 0 14px rgba(var(--bsw-magenta-rgb), 0.4);
}
.bsw-tech-chip {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.14);
    border: 1px solid rgba(var(--bsw-magenta-rgb), 0.5);
    letter-spacing: 0.03em;
}

/* Sidebar cards reuse .card glass; titles/lists/icons go neon */
.bsw-side-card .card-body { position: relative; }
.bsw-side-title { color: #fff; }
.bsw-side-title i { color: var(--bsw-cyan); }
.bsw-side-list { color: rgba(233, 236, 255, 0.8); }
.bsw-side-list strong { color: #fff; }
.bsw-side-list i { color: var(--bsw-cyan); }

/* Project detail: section headings, descriptions, status badge */
.bsw-overview-heading { color: #fff; }
.bsw-overview-heading i { color: var(--bsw-cyan) !important; text-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.5); }
.bsw-project-desc { color: rgba(233, 236, 255, 0.6); }
.bsw-status-badge {
    color: var(--bsw-cyan);
    background: rgba(var(--bsw-cyan-rgb), 0.1);
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px rgba(var(--bsw-cyan-rgb), 0.3);
}

/* Timeline list (project overview) */
.bsw-timeline-list .bsw-timeline-row {
    background: transparent;
    border-color: rgba(var(--bsw-cyan-rgb), 0.18);
    color: rgba(233, 236, 255, 0.82);
}
.bsw-timeline-row strong { color: #fff; }

/* Gallery figures */
.bsw-gallery-figure { margin-bottom: 0; }
.bsw-gallery-figure .figure-img {
    width: 100%;
    border: 1px solid rgba(var(--bsw-cyan-rgb), 0.3);
    box-shadow: 0 0 18px rgba(var(--bsw-cyan-rgb), 0.2);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.bsw-gallery-figure:hover .figure-img {
    box-shadow: 0 0 26px rgba(var(--bsw-magenta-rgb), 0.4);
    transform: translateY(-3px);
}
.bsw-gallery-caption { color: rgba(233, 236, 255, 0.55); }

/* ===== Phase 7 — content pages =====
   Vapor overrides for the 12 _shared content pages (events/jobs/faq/
   publications/resources/services/team list+detail). Most surfaces reuse the
   neon classes already defined for the section previews and the bespoke
   blog/project pages (.bsw-event-*, .bsw-resource-*, .bsw-pub-*, .bsw-team-*,
   .bsw-service-icon, .bsw-side-*, .bsw-blog-headline, .bsw-post-content,
   .bsw-overview-heading, .bsw-alert-neon, .bsw-breadcrumb, .bsw-timeline-*).
   Only genuinely new classes are added below. Mobile-first. */

/* ── Jobs list + detail (no card hover img, so styled standalone) ─────────── */
.bsw-job-card .card-title,
.bsw-job-title { color: #fff; transition: color 0.2s ease; }
.bsw-job-card:hover .card-title,
.bsw-job-card:hover .bsw-job-title { color: var(--bsw-magenta); }
.bsw-job-cat { color: var(--bsw-cyan); }
.bsw-job-cat i { color: var(--bsw-cyan); }
.bsw-job-meta { color: rgba(233, 236, 255, 0.65); }
.bsw-job-meta i { color: var(--bsw-cyan); }
.bsw-job-desc { color: rgba(233, 236, 255, 0.6); }
.bsw-job-deadline { color: rgba(233, 236, 255, 0.55); }
.bsw-job-deadline i { color: var(--bsw-cyan); }
.bsw-job-badge {
    color: #fff;
    background: rgba(var(--bsw-magenta-rgb), 0.18);
    border: 1px solid rgba(var(--bsw-magenta-rgb), 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(var(--bsw-magenta-rgb), 0.35);
}
/* Urgent flag burns brighter (warm magenta-red glow) */
.bsw-job-badge--urgent {
    background: rgba(255, 70, 90, 0.2);
    border-color: rgba(255, 70, 90, 0.7);
    box-shadow: 0 0 14px rgba(255, 70, 90, 0.5);
}

/* ── FAQ list answer body (matches section preview tone) ─────────────────── */
.bsw-faq-answer { color: rgba(233, 236, 255, 0.72); }
.bsw-faq-answer a {
    color: var(--bsw-magenta);
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}
.bsw-faq-answer a:hover,
.bsw-faq-answer a:focus-visible { text-shadow: 0 0 12px rgba(var(--bsw-magenta-rgb), 0.6); }

/* ── Service list media (image-topped cards reuse project media treatment) ── */
.bsw-service-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--bsw-cyan-rgb), 0.25);
}
.bsw-service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(var(--bsw-magenta-rgb), 0.18) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bsw-service-card:hover .bsw-service-media::after { opacity: 1; }
.bsw-service-media img { transition: transform 0.35s ease; }
.bsw-service-card:hover .bsw-service-media img { transform: scale(1.05); }
.bsw-service-card .card-title { color: #fff; transition: color 0.2s ease; }
.bsw-service-card:hover .card-title { color: var(--bsw-magenta); }

/* ── Publication detail definition list (replaces text-muted dt) ─────────── */
.bsw-pub-dl dd { color: rgba(233, 236, 255, 0.85); }
.bsw-pub-dl dt { font-weight: 600; }

/* Honour motion preferences for the new media/title transitions */
@media (prefers-reduced-motion: reduce) {
    .bsw-job-card .card-title,
    .bsw-job-title,
    .bsw-service-card .card-title,
    .bsw-service-media img,
    .bsw-service-media::after,
    .bsw-faq-answer a { transition: none !important; }
    .bsw-service-card:hover .bsw-service-media img { transform: none !important; }
}

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.bsw-footer a { text-decoration: none; }
.bsw-footer a:hover { color: var(--bs-primary) !important; }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 575.98px) {
    .bsw-hero { padding-bottom: clamp(7rem, 30vw, 11rem); }
    .bsw-hero__sun { bottom: 40%; }
    .bsw-hero__horizon, .bsw-hero__floor { bottom: 40%; }
    .bsw-hero__floor { height: 40%; }
    .bsw-hero__grid { background-size: 44px 44px; }
    .bsw-hero__glow { filter: blur(50px); }
}

/* ═══════════════════════════ MOTION SAFETY ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .bsw-hero,
    .bsw-hero__grid,
    .bsw-hero__glow,
    .bsw-hero__glow--a,
    .bsw-hero__glow--b,
    .bsw-hero__title {
        animation: none !important;
    }
    .bsw-btn-neon,
    .card,
    .bsw-project-media img,
    .bsw-project-media::after,
    .bsw-team-media img,
    .bsw-team-social a,
    .bsw-faq-item,
    .bsw-skill-icon,
    .bsw-stat,
    .bsw-about-facts a,
    .bsw-pub-item,
    .bsw-pub-title a,
    .bsw-event-card,
    .bsw-event-media img,
    .bsw-event-media::after,
    .bsw-event-title,
    .bsw-resource-badge,
    .bsw-resource-title,
    .bsw-blog-media img,
    .bsw-blog-media::after,
    .bsw-blog-title,
    .bsw-pagination .page-link,
    .bsw-breadcrumb a,
    .bsw-post-content a,
    .bsw-tag-chip,
    .bsw-gallery-figure .figure-img { transition: none !important; }
    .bsw-project-card:hover .bsw-project-media img,
    .bsw-team-card:hover .bsw-team-media img,
    .bsw-event-card:hover .bsw-event-media img,
    .bsw-blog-card:hover .bsw-blog-media img,
    .bsw-gallery-figure:hover .figure-img { transform: none !important; }
}


/* ---- Mode nuit : texte muté lisible (audit contraste) ---- */
/* --bs-secondary-color n'est pas adapté au mode nuit -> texte muté sombre sur
   fond sombre. On le passe à un muté-clair lisible (~ratio 6). */
[data-bs-theme="dark"] {
    --bs-secondary-color: rgba(255, 255, 255, .55);
}


/* ---- Mode nuit : accent lisible (audit contraste) ------------------------- */
/* vapor (thème sombre mono-mode) : accent natif --bs-primary=#6f42c1 peu contrasté
   sur son fond sombre. On l'éclaircit en préservant la teinte + texte sombre
   sur les fonds .bg-primary. */
[data-bs-theme="dark"] {
    --bs-primary: #9878d3;
    --bs-primary-rgb: 151, 119, 210;
}
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .text-bg-primary {
    color: #111111;
}
