:root {
    --bg-dark: #0f141a;
    --bg-card: #1a2028;
    --bg-header: #0a0e14;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-red: #8e1a1a;
    --accent-red-bright: #b71c1c;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    background-color: var(--bg-header);
    border-bottom: 1px solid #222;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: var(--text-white);
}

.search-icon {
    margin-left: 1rem;
    cursor: pointer;
    color: var(--text-gray);
}

/* Hero */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid Icons */
.grid-sections {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto 6rem;
    padding: 0 2rem;
}

.grid-item {
    background: var(--bg-card);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.grid-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent-red);
}

.grid-item span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent-red);
    padding-left: 1rem;
}

/* Witness Card / Profile */
.witness-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid #333;
    overflow: hidden;
}

.witness-image {
    width: 100%;
    height: 450px;
    background-color: #222;
    background-size: cover;
    background-position: center;
}

.witness-info {
    padding: 2rem;
}

.witness-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.witness-name h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.witness-role {
    color: var(--accent-red);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.witness-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.stat-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-item value {
    font-size: 1.1rem;
    font-weight: 600;
}

.witness-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 1.5rem;
}

.tab {
    padding-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--text-white);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}

.tab-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.transcript-pane {
    height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.map-pane {
    height: 400px;
    background: #111;
    border: 1px solid #333;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    background: #222;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-weight: 600;
    font-size: 0.9rem;
}

/* Timeline */
.timeline-container {
    padding: 2rem 0;
    overflow-x: auto;
}

.timeline-track {
    display: flex;
    min-width: 1200px;
    border-bottom: 2px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-node {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-node::after {
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-node.active::after {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.node-frame {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.node-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Footer */
footer {
    background: var(--bg-header);
    border-top: 1px solid #222;
    padding: 4rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-quote {
    grid-column: span 4;
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #222;
}

.footer-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .witness-profile {
        grid-template-columns: 1fr;
    }
    .grid-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .grid-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-white);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-header);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #222;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #1a1a1a;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .search-icon {
        display: none;
    }
}
