:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #7c3aed;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --tag-bg: #e2e8f0;
    --storm-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --nav-bg: rgba(30, 41, 59, 0.95);
    --card-bg: #1e293b;
    --dark: #f8fafc;
    --light: #1e293b;
    --tag-bg: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--gray);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--storm-gradient);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--gray);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* ── Book Navigation Tabs ── */
.book-markers {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 99999;
}

.book-marker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 18px;
    border-radius: 12px 0 0 12px;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: padding 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: -4px 2px 16px rgba(0,0,0,0.4);
    border-left: 4px solid rgba(255,255,255,0.35);
}

.book-marker:nth-child(1) { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.book-marker:nth-child(2) { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.book-marker:nth-child(3) { background: linear-gradient(135deg, #065f46, #10b981); }
.book-marker:nth-child(4) { background: linear-gradient(135deg, #92400e, #f59e0b); }

.book-marker:hover {
    padding-left: 26px;
    filter: brightness(1.15);
    box-shadow: -6px 2px 24px rgba(0,0,0,0.5);
}

.book-marker.active {
    padding-left: 26px;
    filter: brightness(1.2);
    border-left-color: white;
    box-shadow: -6px 2px 28px rgba(255,255,255,0.2);
}

.book-marker i {
    font-size: 1rem;
    min-width: 16px;
    text-align: center;
}