/* ============================================
   EVOLUTION OF PROGRAMMING LANGUAGES
   Premium Dark Theme — Technology Museum
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    --bg-primary: #06060f;
    --bg-secondary: #0c0c1d;
    --bg-card: rgba(15, 15, 35, 0.85);
    --bg-glass: rgba(15, 15, 40, 0.6);
    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --accent-blue: #00d4ff;
    --accent-blue-dim: rgba(0, 212, 255, 0.15);
    --accent-orange: #ff6b35;
    --accent-orange-dim: rgba(255, 107, 53, 0.15);
    --accent-purple: #a855f7;
    --border-color: rgba(255, 255, 255, 0.06);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 70px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--accent-orange);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- PARTICLES BACKGROUND ---------- */
#particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(6, 6, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}
.navbar.hidden {
    transform: translateY(-100%);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-icon {
    color: var(--accent-blue);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}
.nav-link {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s, background 0.3s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--accent-blue-dim);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- SECTION COMMON ---------- */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}
.section-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 1;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0;
}
.hero-title {
    margin-bottom: 28px;
}
.title-line {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    opacity: 0;
}
.title-accent {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #0099cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-dim);
    color: var(--text-primary);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}
.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}
.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 3px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ---------- TIMELINE SECTION ---------- */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 0;
}
.timeline-header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 20px;
    position: relative;
}
.year-display {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    color: rgba(0, 212, 255, 0.06);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    z-index: -1;
    transition: color 0.3s;
}
.timeline-canvas-wrapper {
    position: sticky;
    top: var(--nav-height);
    width: 100%;
    height: 280px;
    z-index: 5;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(6,6,15,0.95) 80%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.timeline-svg {
    width: 100%;
    height: 100%;
    max-width: var(--max-width);
}

/* Era sections */
.era-sections {
    position: relative;
    z-index: 2;
}
.era-block {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 24px;
}
.era-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
.era-label {
    margin-bottom: 20px;
}
.era-range {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    margin-bottom: 12px;
}
.era-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.era-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 40px;
}
.era-languages {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Language mini-cards inside era */
.lang-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.lang-chip:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}
.lang-chip-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.lang-chip-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.lang-chip-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- EXPLORER SECTION ---------- */
.explorer-section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
}
.explorer-header {
    text-align: center;
    margin-bottom: 48px;
}
.explorer-controls {
    max-width: var(--max-width);
    margin: 0 auto 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-dim);
}
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}
.filter-btn.active {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Language grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.language-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.language-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 30% 20%, var(--card-glow, rgba(0,212,255,0.06)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.language-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}
.language-card:hover::before {
    opacity: 1;
}
.language-card.hidden {
    display: none !important;
}
.card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.card-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 15px currentColor;
    position: relative;
}
.card-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: nodePulse 3s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.1; }
}
.card-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.card-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---------- FUTURE SECTION ---------- */
.future-section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
    text-align: center;
}
.future-content {
    max-width: var(--max-width);
    margin: 0 auto;
}
.future-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}
.future-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.trend-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.trend-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--glow-blue);
}
.trend-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.trend-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.trend-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
    text-align: center;
}
.about-content {
    max-width: 700px;
    margin: 0 auto;
}
.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 20px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 60px 24px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto 40px;
}
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-col ul a:hover {
    color: var(--accent-blue);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.modal-node {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 20px currentColor;
}
.modal-lang-name {
    font-size: 1.5rem;
    font-weight: 800;
}
.modal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.modal-section {
    margin-bottom: 20px;
}
.modal-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 600;
}
.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.modal-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 212, 255, 0.15);
}
.modal-code {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--accent-blue);
}

/* ---------- SVG TIMELINE ELEMENTS ---------- */
.timeline-track {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 2;
}
.timeline-node {
    cursor: pointer;
    transition: filter 0.3s;
}
.timeline-node:hover {
    filter: brightness(1.3);
}
.timeline-node-circle {
    transition: r 0.3s, stroke-width 0.3s;
}
.timeline-node:hover .timeline-node-circle {
    stroke-width: 3;
}
.timeline-node-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    fill: var(--text-secondary);
    font-size: 11px;
    transition: fill 0.3s;
}
.timeline-node:hover .timeline-node-label {
    fill: var(--text-primary);
}
.timeline-node-year {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    fill: var(--text-muted);
    font-size: 9px;
}
.influence-line {
    stroke-width: 1.5;
    fill: none;
    opacity: 0;
}
.era-marker {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.node-glow {
    opacity: 0.4;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

/* ---------- BLOG PAGE STYLES (shared) ---------- */
.blog-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
}
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.blog-hero {
    text-align: center;
    margin-bottom: 60px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.blog-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.blog-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--glow-blue);
}
.blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    margin-bottom: 14px;
}
.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.blog-card-meta {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article page */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: color 0.3s;
}
.article-back:hover {
    color: var(--accent-blue);
}
.article-header {
    margin-bottom: 40px;
}
.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}
.article-header .article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}
.article-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}
.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
}
.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.article-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--accent-blue);
    margin-bottom: 24px;
}
.article-body blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-blue-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 6, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .nav-toggle {
        display: flex;
    }
    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .timeline-canvas-wrapper {
        height: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .language-grid {
        grid-template-columns: 1fr;
    }
    .explorer-controls {
        flex-direction: column;
    }
    .year-display {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 16px 60px;
    }
    .era-block {
        padding: 60px 16px;
    }
    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .filter-btn {
        flex-shrink: 0;
    }
}
