:root {
    --primary: #ec4899;
    /* Pink */
    --secondary: #6366f1;
    /* Indigo */
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
}

.glow-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.chapter-nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

.chapter-nav::-webkit-scrollbar {
    display: none;
}

.nav-chip {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.nav-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid var(--primary);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.badge.secondary {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hacks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.hack-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--text-muted);
}

.hack-item.highlight {
    border-left-color: var(--primary);
    background: rgba(236, 72, 153, 0.05);
}

.hack-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.q-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.q-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.q-label {
    font-weight: 800;
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ans-trigger {
    margin-top: 1rem;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.ans-hidden {
    display: none;
    margin-top: 1rem;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    line-height: 1.6;
}

.ans-hidden.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    margin-top: 4rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--text-muted);
}