/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-900: #171717;
}

/* Theme Variables */
[data-theme="default"] {
    --bg-primary: #000000;
    --bg-secondary: #171717;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
}

[data-theme="high-contrast"] {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #ffffff;
    --border-color: rgba(255, 255, 255, 0.5);
    --border-color-hover: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 17px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--text-primary);
    z-index: 2000;
    transition: width 0.1s ease;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: scale(1.05);
}

.search-toggle.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.search-dropdown {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 90vw);
    max-height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 1100;
}

.search-dropdown.active {
    display: flex;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.search-overlay.active {
    display: block;
}

.search-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 2px solid transparent;
}

.search-result-item:hover {
    background: var(--bg-card);
    border-left-color: var(--text-primary);
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.search-result-section {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.control-btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.translate-widget {
    display: flex;
    align-items: center;
}

/* Google Translate Widget Styling */
.goog-te-combo {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    padding: 0.25rem !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.goog-te-combo:hover {
    border-color: var(--border-color-hover) !important;
}

.goog-te-combo option {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Hide Google Translate branding */
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    flex: 0 0 auto;
}

.nav-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.logo-image {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 5rem 2rem 2rem;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    color: var(--white);
    transition: opacity 0.2s ease;
}

.mobile-nav-list a:hover {
    opacity: 0.7;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: fixed;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    width: 240px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toc-sidebar.visible {
    opacity: 1;
    visibility: visible;
}

.toc-content {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem 0;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.toc-link:hover {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.toc-link.active {
    color: var(--white);
    border-left-color: var(--white);
}

.toc-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    min-width: 1.5rem;
}

.toc-link.active .toc-number {
    color: var(--white);
}

.toc-text {
    flex: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: var(--white);
    color: var(--black);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.cta-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-alt {
    background: var(--bg-secondary);
}

/* Mission Section */
.mission-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    position: relative;
}

.mission-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.mission-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    animation: logoFloat 6s ease-in-out infinite, logoPulse 3s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1));
    }
}

.mission-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.mission-content {
    margin-bottom: 3rem;
}

.mission-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.mission-text:nth-child(2) {
    animation-delay: 0.8s;
}

.mission-text:nth-child(3) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.mission-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: 0;
}

.nav-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    opacity: 1;
}

.nav-button-prev {
    margin-right: auto;
}

.nav-button-next {
    margin-left: auto;
}

.nav-arrow {
    font-size: 1.25rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-button-prev,
    .nav-button-next {
        margin: 0;
    }
    
    .footer-nav {
        gap: 1rem;
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: -0.03em;
}

.content-block {
    margin-bottom: 5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block ul,
.content-block ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.content-block li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Key Insight */
.key-insight {
    padding: 2rem;
    background: var(--bg-card);
    border-left: 2px solid var(--text-primary);
    margin: 2.5rem 0;
    font-size: 1.125rem;
}

/* Insight Box */
.insight-box {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 2.5rem 0;
}

.insight-box h4 {
    margin-top: 0;
}

.insight-box ul,
.insight-box ol {
    margin: 1rem 0 1rem 1.5rem;
}

.formula {
    text-align: center;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 1.125rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Cards */
.card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.card h4 {
    margin-top: 0;
}

.card-meta {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.grid-item {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.grid-item h4 {
    margin-top: 0;
}

.grid-item p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Quiz Styles */
.quiz-container {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.quiz-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.quiz-subtitle {
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    font-size: 0.9375rem;
}

.quiz-questions {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.quiz-question {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-question:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.question-text {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quiz-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.quiz-option input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--text-primary);
}

.quiz-option span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.5);
}

.quiz-option.incorrect {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.5);
}

.quiz-option.correct::after {
    content: '✓';
    position: absolute;
    right: 1.25rem;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.25rem;
}

.quiz-option.incorrect::after {
    content: '✗';
    position: absolute;
    right: 1.25rem;
    color: #F44336;
    font-weight: bold;
    font-size: 1.25rem;
}

.quiz-submit {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.quiz-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quiz-results {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.quiz-results h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.quiz-results p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.quiz-score {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.feedback-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.feedback-modal.active {
    display: flex;
}

.feedback-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.feedback-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-close:hover {
    background: var(--bg-card);
    border-color: var(--border-color-hover);
}

.feedback-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feedback-subtitle {
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-color-hover);
    background: var(--bg-card);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rating-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.rating-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-option:hover {
    background: var(--bg-card);
    border-color: var(--border-color-hover);
}

.rating-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--text-primary);
}

.rating-option span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.feedback-submit {
    padding: 0.875rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.feedback-success {
    text-align: center;
    padding: 2rem 0;
}

.feedback-success svg {
    margin: 0 auto 1.5rem;
    color: #4CAF50;
}

.feedback-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feedback-success p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Glossary Styles */
.glossary-intro {
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.glossary-item {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.glossary-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.glossary-term {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.glossary-definition {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tooltip Styles */
.tooltip-term {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--text-tertiary);
    text-decoration: none;
}

.tooltip-term::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 250px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-term:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Arrow for tooltip */
.tooltip-term::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    border: 6px solid transparent;
    border-top-color: var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.tooltip-term:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Mobile TOC Button */
.mobile-toc-button {
    display: none;
    position: fixed;
    top: 80px;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
}

.mobile-toc-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mobile-toc-button svg {
    width: 24px;
    height: 24px;
}

/* Mobile TOC Modal */
.mobile-toc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mobile-toc-modal.active {
    display: flex;
}

.mobile-toc-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.mobile-toc-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toc-close:hover {
    background: var(--bg-card);
    border-color: var(--border-color-hover);
}

.mobile-toc-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mobile-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-toc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-toc-item:hover {
    background: var(--bg-card);
    border-left-color: var(--text-primary);
}

.mobile-toc-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 2rem;
}

.mobile-toc-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }
    
    .mobile-toc-button {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .nav-controls-wrapper {
        gap: 1rem;
    }
    
    .nav-content .accessibility-controls {
        display: none;
    }
    
    .accessibility-controls {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1100;
        background: rgba(0, 0, 0, 0.95);
        padding: 0.75rem 1rem;
        border-radius: 50px;
        border: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        flex-direction: row;
        gap: 0.75rem;
        margin-right: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        display: flex;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .translate-widget {
        display: flex;
        align-items: center;
    }
    
    .goog-te-combo {
        width: auto !important;
        min-width: 100px;
        font-size: 0.8125rem !important;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-logo {
        width: 80px;
    }
    
    .section {
        padding: 5rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .content-block {
        margin-bottom: 3rem;
    }
    
    .key-insight,
    .insight-box,
    .card,
    .grid-item {
        padding: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quiz-container {
        padding: 2rem 1.5rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .quiz-option {
        padding: 0.875rem 1rem;
    }
    
    .feedback-button {
        bottom: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
    }
    
    .mobile-toc-button {
        right: 1rem;
        top: auto;
        bottom: 5rem;
    }
    
    .feedback-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .feedback-title {
        font-size: 1.5rem;
    }
    
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mission-section {
        padding: 5rem 1.5rem;
    }
    
    .mission-logo {
        width: 100px;
    }
    
    .mission-title {
        margin-bottom: 2rem;
    }
    
    .mission-text {
        font-size: 1rem;
        text-align: justify;
    }
    
    .mission-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .nav-content {
        padding: 1rem 1.5rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .mobile-menu {
        width: 250px;
    }
}

