/* ===== DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --green: #39ff14;
    --green-dim: rgba(57, 255, 20, 0.12);
    --amber: #f59e0b;
    --red: #ef4444;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --sidebar-width: 270px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-green: 0 0 20px rgba(57, 255, 20, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green);
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0d1321 0%, #0a0e1a 100%);
    border-right: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.sidebar-brand-text.hidden-on-hero {
    opacity: 1;
}

.sidebar-nav {
    padding: 16px 0;
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav a:hover {
    color: var(--cyan);
    background: var(--cyan-dim);
    border-left-color: var(--cyan);
}

.sidebar-nav a.active {
    color: var(--cyan);
    background: var(--cyan-dim);
    border-left-color: var(--cyan);
    font-weight: 600;
}

.sidebar-nav a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--cyan);
    border-radius: 3px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--cyan);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

/* Main content offset */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ===== ATOM ANIMATION (Sidebar) ===== */
#atom-sidebar {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

#atom-sidebar #nucleus-sidebar,
#atom-sidebar .orbit-sidebar,
#atom-sidebar .electron-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: auto;
}

#atom-sidebar #nucleus-sidebar {
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan), 0 0 40px rgba(0, 212, 255, 0.3);
    animation: nucleusPulse 2.5s infinite ease-in-out;
}

@keyframes nucleusPulse {

    0%,
    100% {
        box-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(0, 212, 255, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 24px var(--cyan), 0 0 50px rgba(0, 212, 255, 0.4);
        transform: scale(1.15);
    }
}

#atom-sidebar .orbit-sidebar {
    width: 42px;
    height: 42px;
    border: 0;
    transform-style: preserve-3d;
    animation: orbitAnim 1.5s infinite linear;
}

#atom-sidebar .orbit-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0.5px solid rgba(0, 212, 255, 0.25);
    border-radius: 50%;
    z-index: -1;
}

@keyframes orbitAnim {
    0% {
        border: 0;
        border-top: 1px solid rgba(0, 212, 255, 0.4);
    }

    35% {
        border: 0;
        border-right: 1px solid rgba(0, 212, 255, 0.4);
    }

    70% {
        border: 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.4);
    }

    100% {
        border: 0;
        border-left: 1px solid rgba(0, 212, 255, 0.4);
    }
}

#atom-sidebar .orbit-sidebar .electron-sidebar {
    position: relative;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    border-radius: 50%;
    transform: translateX(21px);
    animation: electronMove 1.5s infinite linear;
}

@keyframes electronMove {
    0% {
        transform: rotateZ(0deg) translateX(21px) rotateZ(0deg) rotateY(-65deg);
    }

    100% {
        transform: rotateZ(360deg) translateX(21px) rotateZ(-360deg) rotateY(-65deg);
    }
}

#atom-sidebar .orbit-sidebar:nth-child(3) {
    transform: rotateY(65deg) rotateX(-54deg);
    animation-delay: -1s;
    animation-duration: 1s;
}

#atom-sidebar .orbit-sidebar:nth-child(3) .electron-sidebar {
    animation-duration: 1s;
}

#atom-sidebar .orbit-sidebar:nth-child(4) {
    transform: rotateY(65deg) rotateX(54deg);
}

#atom-sidebar .orbit-sidebar:nth-child(5) {
    transform: rotateY(65deg) rotateX(5deg);
    animation-delay: -1s;
}

#atom-sidebar .orbit-sidebar:nth-child(5) .electron-sidebar {
    animation-delay: -1s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.88) 0%, rgba(0, 20, 40, 0.75) 50%, rgba(10, 14, 26, 0.88) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .mission {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1.5);
    }
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
    border-color: var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    color: var(--bg-primary);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.cta-button.secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-3px);
}

.cta-button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== SECTION STYLES ===== */
.section-dark {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.section-darker {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ===== STATS COUNTER ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-family: 'Space Grotesk';
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ===== CARDS (Books, Blog, etc.) ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.book-cover {
    aspect-ratio: 5/7;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.book-card:hover .book-thumbnail {
    border-color: rgba(0, 212, 255, 0.6);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(8px);
}

.book-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.year {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.download-btn,
.read-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.download-btn {
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
}

.read-btn {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.download-btn:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.read-btn:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
}

.blog-category {
    background: var(--cyan-dim);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.blog-date {
    color: var(--text-muted);
}

.blog-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text-primary);
}

.blog-card h3 a:hover {
    color: var(--cyan);
}

.blog-author {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.85rem;
}

.read-time {
    color: var(--text-muted);
}

.read-more-btn {
    color: var(--cyan);
    font-weight: 600;
}

.read-more-btn:hover {
    color: var(--green);
}

/* Full blog post */
.blog-post-full {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.back-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.back-btn:hover {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan);
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.blog-post-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 1rem 0;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.tag {
    background: var(--bg-glass);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-glass);
}

.blog-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

/* ===== PAGE HEADER (Enhanced Hero-Style) ===== */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.88) 0%, rgba(0, 20, 60, 0.75) 50%, rgba(10, 14, 26, 0.88) 100%);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, var(--white), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headerFadeIn 1s ease-out;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: headerFadeIn 1.2s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-bar button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Search results */
.search-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-results-container h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-results-container h4 {
    color: var(--cyan);
    margin-bottom: 1rem;
}

.search-result-item {
    background: var(--bg-glass);
    border-left: 3px solid var(--cyan);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.search-result-item:hover {
    border-left-color: var(--green);
    transform: translateX(4px);
}

.search-result-content h5 {
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.search-result-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

#clearSearchBtn {
    padding: 10px 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#clearSearchBtn:hover {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ===== FILTER BUTTONS ===== */
.filter-section {
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
}

.filter-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h3 i {
    color: var(--cyan);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.82rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.filter-btn span,
.filter-btn {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
    border-color: var(--cyan);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.3);
}

/* ===== SCIENTISTS ===== */
.scientists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.scientist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.scientist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.scientist-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.scientist-photo {
    width: 100%;
    height: 260px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.scientist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scientist-card:hover .scientist-photo img {
    transform: scale(1.05);
}

.scientist-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.scientist-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-family: 'Space Grotesk';
}

.scientist-country {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.scientist-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-style: italic;
}

.scientist-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.scientist-achievements {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scientist-achievements h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.scientist-achievements ul {
    margin-left: 1rem;
    list-style: none;
}

.scientist-achievements li {
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.scientist-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* Country-themed: subtle flag badge on photo overlay */
.country-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-badge .flag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scientist-card[data-country="pakistan"] .country-badge {
    background: rgba(1, 65, 28, 0.7);
    color: #a0f0b0;
}

.scientist-card[data-country="pakistan"] .country-badge .flag-dot {
    background: #01411C;
}

.scientist-card[data-country="pakistan"] .scientist-country {
    color: #2ecc71;
}

.scientist-card[data-country="usa"] .country-badge {
    background: rgba(60, 59, 110, 0.7);
    color: #b0c0f0;
}

.scientist-card[data-country="usa"] .country-badge .flag-dot {
    background: #B22234;
}

.scientist-card[data-country="usa"] .scientist-country {
    color: #6ea8fe;
}

.scientist-card[data-country="russia"] .country-badge {
    background: rgba(204, 0, 0, 0.5);
    color: #f0c0b0;
}

.scientist-card[data-country="russia"] .country-badge .flag-dot {
    background: #CC0000;
}

.scientist-card[data-country="russia"] .scientist-country {
    color: #e74c3c;
}

.scientist-card[data-country="uk"] .country-badge {
    background: rgba(1, 33, 105, 0.7);
    color: #b0c8f0;
}

.scientist-card[data-country="uk"] .country-badge .flag-dot {
    background: #C8102E;
}

.scientist-card[data-country="uk"] .scientist-country {
    color: #6ea8fe;
}

.scientist-card[data-country="france"] .country-badge {
    background: rgba(0, 35, 149, 0.7);
    color: #b0c0f0;
}

.scientist-card[data-country="france"] .country-badge .flag-dot {
    background: #ED2939;
}

.scientist-card[data-country="france"] .scientist-country {
    color: #6ea8fe;
}

.scientist-card[data-country="china"] .country-badge {
    background: rgba(222, 41, 16, 0.5);
    color: #f0d0b0;
}

.scientist-card[data-country="china"] .country-badge .flag-dot {
    background: #FFDE00;
}

.scientist-card[data-country="china"] .scientist-country {
    color: #e74c3c;
}

.scientist-card[data-country="india"] .country-badge {
    background: rgba(255, 153, 51, 0.4);
    color: #f0e0c0;
}

.scientist-card[data-country="india"] .country-badge .flag-dot {
    background: #FF9933;
}

.scientist-card[data-country="india"] .scientist-country {
    color: #f39c12;
}

.scientist-card[data-country="israel"] .country-badge {
    background: rgba(0, 56, 184, 0.6);
    color: #b0c8f0;
}

.scientist-card[data-country="israel"] .country-badge .flag-dot {
    background: #0038B8;
}

.scientist-card[data-country="israel"] .scientist-country {
    color: #6ea8fe;
}

.scientist-card[data-country="germany"] .country-badge {
    background: rgba(50, 50, 50, 0.7);
    color: #f0e0a0;
}

.scientist-card[data-country="germany"] .country-badge .flag-dot {
    background: #FFCC00;
}

.scientist-card[data-country="germany"] .scientist-country {
    color: #f1c40f;
}

.scientist-card[data-country="italy-usa"] .country-badge {
    background: rgba(0, 140, 69, 0.5);
    color: #b0f0c0;
}

.scientist-card[data-country="italy-usa"] .country-badge .flag-dot {
    background: #008C45;
}

.scientist-card[data-country="italy-usa"] .scientist-country {
    color: #2ecc71;
}

/* ===== CASE STUDIES ===== */
.case-study-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.case-study-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.case-study-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.case-study-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.case-study-toggle {
    color: var(--cyan);
    transition: transform 0.3s ease;
}

.case-study-details {
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.case-study-card.expanded .case-study-header {
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 212, 255, 0.03);
}

.case-study-card.expanded .case-study-toggle {
    transform: rotate(180deg);
}

.case-study-card.expanded .case-study-details {
    padding: 1.5rem;
    max-height: 2000px;
    opacity: 1;
}

.case-study-details h5 {
    color: var(--cyan);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.case-study-details h5:first-child {
    margin-top: 0;
}

.case-study-details p,
.case-study-details ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-study-details ul {
    padding-left: 1.5rem;
}

.case-study-details li {
    margin-bottom: 0.5rem;
}

/* ===== GLOSSARY ===== */
.glossary-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.glossary-content {
    max-width: 1100px;
    margin: 0 auto;
}

.glossary-content>h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.glossary-content>p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

/* Glossary search */
.glossary-search-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    padding: 1rem 0 1.5rem;
    margin-bottom: 1rem;
}

.glossary-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.glossary-search-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.glossary-search-input::placeholder {
    color: var(--text-muted);
}

.glossary-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Alphabet navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 2rem;
}

.alphabet-nav a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan);
}

.glossary-terms {
    display: grid;
    gap: 1rem;
}

.glossary-letter {
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.glossary-letter h4 {
    color: var(--cyan);
    font-size: 1.6rem;
    font-family: 'Space Grotesk';
    letter-spacing: 1px;
}

.glossary-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 3px solid var(--cyan);
    transition: var(--transition);
}

.glossary-item:hover {
    border-left-color: var(--green);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.glossary-item .term {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk';
}

.glossary-item .definition {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== ABOUT / CONTENT SECTIONS ===== */
.about-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
}

.about-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    border-radius: 2px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.about-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.about-content li {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.about-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

/* ===== CONTACT / CONTRIBUTE FORMS ===== */
.contact-section,
.contribute-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.contact-wrapper,
.contribute-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info,
.contribute-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--cyan);
    transition: var(--transition);
}

.contact-info:hover,
.contribute-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-info h3,
.contribute-info h3,
.contact-form-wrapper h3,
.contribute-form-wrapper h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.contact-info h3::after,
.contribute-info h3::after,
.contact-form-wrapper h3::after,
.contribute-form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-glass);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.info-item ul {
    margin-left: 1.2rem;
    margin-top: 0.6rem;
    list-style: none;
}

.info-item li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.info-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

.contact-form,
.contribute-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(0, 212, 255, 0.03);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: var(--cyan);
}

.form-group.checkbox label {
    display: inline;
    margin: 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form button,
.contribute-form button {
    width: 100%;
    padding: 12px;
    margin-top: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover,
.contribute-form button:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

#formMessage {
    margin-top: 1rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* ===== CASE STUDIES ===== */
.case-studies-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.case-studies-content {
    max-width: 1000px;
    margin: 0 auto;
}

.case-studies-content>h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.case-studies-content>p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--cyan);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 1rem;
}

.case-study-header:hover {
    background: rgba(0, 212, 255, 0.04);
}

.case-study-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.case-study-header-left i {
    color: var(--cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-dim);
    border-radius: var(--radius-sm);
}

.case-study-header h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.case-study-header .case-study-meta {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.case-study-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
    white-space: nowrap;
}

.case-study-toggle {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.case-study-card.expanded .case-study-toggle {
    transform: rotate(180deg);
}

.case-study-details {
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s;
    padding: 0 1.5rem;
}

.case-study-card.expanded .case-study-details {
    max-height: 5000px;
    padding: 0 1.5rem 1.5rem;
}

.case-study-details h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.case-study-details h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--cyan);
    border-radius: 2px;
}

.case-study-details p {
    margin-bottom: 1rem;
}

.case-study-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
    list-style: none;
}

.case-study-details li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.case-study-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
}

.case-study-details li strong {
    color: var(--text-primary);
}

.case-studies-content>div {
    background: var(--bg-card);
    border: 1px solid var(--cyan);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.case-studies-content>div h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.case-studies-content>div p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== CONTRIBUTION SECTION (homepage) ===== */
.contribution-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(57, 255, 20, 0.03));
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.contribution-content {
    max-width: 600px;
    margin: 0 auto;
}

.contribution-section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.contribution-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.cta-section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 212, 255, 0.08));
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.newsletter-section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 1.5rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--cyan), #0098b3);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    box-shadow: var(--glow-cyan);
}

#newsletterMessage {
    margin-top: 1rem;
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--green), var(--cyan));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: var(--cyan);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--cyan);
    z-index: 2;
}

.timeline-year {
    font-family: 'Space Grotesk';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ===== NUCLEAR FACTS ===== */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fact-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.fact-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.fact-card .fact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.fact-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.fact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== QUOTE ===== */
.quote-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
}

.quote-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.quote-block::before {
    content: '"';
    font-family: 'Space Grotesk';
    font-size: 6rem;
    color: rgba(0, 212, 255, 0.15);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    line-height: 1;
}

.quote-block blockquote {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quote-block cite {
    color: var(--cyan);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-glass);
}

.footer p {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Library/Blog sections */
.library-section {
    padding: 3rem 0;
}

.blog-section {
    padding: 3rem 0;
    min-height: 80vh;
}

.blog-filter {
    margin-bottom: 2rem;
}

.blog-filter h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.blog-search {
    margin-bottom: 2rem;
}

.library-search {
    justify-content: center;
    margin-bottom: 2rem;
}

.featured-section {
    padding: 5rem 0;
}

.featured-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .fact-card {
        padding: 1.5rem;
    }

    .fact-card .fact-icon {
        font-size: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .book-thumbnail {
        border: 2px solid rgba(0, 212, 255, 0.3);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-year {
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .quote-block {
        padding: 1.5rem;
    }

    .quote-block::before {
        font-size: 4rem;
    }

    .quote-block blockquote {
        font-size: 1.1rem;
    }

    .quote-block cite {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .book-thumbnail {
        border: 2px solid rgba(0, 212, 255, 0.25);
    }

    .scientists-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper,
    .contribute-wrapper {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fact-card {
        padding: 1.25rem;
    }

    .fact-card .fact-icon {
        font-size: 1.3rem;
    }

    .fact-card h4 {
        font-size: 0.95rem;
    }

    .fact-card p {
        font-size: 0.8rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-bar input {
        width: 100%;
    }

    .search-bar button {
        width: 100%;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .quote-section {
        padding: 2.5rem 0;
    }

    .quote-block {
        padding: 1.25rem;
        max-width: 100%;
    }

    .quote-block::before {
        font-size: 3rem;
        top: -0.5rem;
        left: -0.25rem;
    }

    .quote-block blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }

    .quote-block cite {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .book-thumbnail {
        border: 1.5px solid rgba(0, 212, 255, 0.2);
    }

    .book-cover {
        aspect-ratio: 5/7;
    }

    .book-info {
        padding: 0.75rem;
    }

    .book-info h3 {
        font-size: 0.85rem;
    }

    .author,
    .year {
        font-size: 0.75rem;
    }

    .description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .button-group {
        flex-direction: column;
        gap: 6px;
    }

    .download-btn,
    .read-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .cta-button-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fact-card {
        padding: 1rem;
    }

    .fact-card .fact-icon {
        font-size: 1.2rem;
    }

    .fact-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .fact-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 15px;
        width: 20px;
        height: 20px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-year {
        font-size: 0.8rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .timeline-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .quote-section {
        padding: 1.5rem 0;
    }

    .quote-block {
        padding: 1rem;
        max-width: 100%;
    }

    .quote-block::before {
        font-size: 2rem;
        top: -0.5rem;
        left: 0;
    }

    .quote-block blockquote {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .quote-block cite {
        font-size: 0.75rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}