/* Shared styles for work (case study) detail pages */

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

:root {
    --bg-dark: #0a0a0a;
    --timeline-line-color: #787878;
    --timeline-accent: #e0e0e0;
    --item-spacing: 2rem;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 1rem; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; }

.mix-difference { mix-blend-mode: difference; }
html { scroll-behavior: smooth; }

/* Typography scale specifically for reading ease on detail pages */
.text-reading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.timeline-widget {
    max-width: 600px;
    margin: 0 auto;
    counter-reset: timeline-counter;
}

/* The Central Line */
.timeline-widget::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--timeline-line-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--item-spacing);
    padding-left: 30px;
    counter-increment: timeline-counter;
    transition: transform 0.3s ease;
}

/* The Dot (Visual Marker) */
.timeline-item::before {
    content: counter(timeline-counter);
    position: absolute;
    left: -14px;
    top: 0;
    width: 28px;
    height: 28px;
    background: #000000;
    border: 2px solid var(--timeline-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--timeline-accent);
    z-index: 1;
    filter: hue-rotate(calc(var(--timeline-counter) * 15deg));
}

.timeline-content {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border-width: 4px;
    border-style: solid;
    border-color: #b9b9b9;
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #111827;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.5;
}

/* Site header: static blur, animate only background-color alpha via class
   toggle. Animating backdrop-filter blur radius (as Framer Motion did via
   useTransform) forces a per-frame blur recompute. Keeping blur constant and
   only fading the tint alpha is dramatically cheaper. */
.site-header {
    background-color: rgba(10, 10, 10, 0);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 300ms ease;
    will-change: background-color;
}
.site-header.is-scrolled {
    background-color: rgba(10, 10, 10, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}
