* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* === DARK THEME === */
body.dark-theme {
    color: #e2e8f0;
    background: #0f172a;
}

body.dark-theme .header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-theme .sidebar {
    background: #1e293b;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .content {
    background: #1e293b;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .nav-links a,
body.dark-theme .nav-links button {
    color: #cbd5e1;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links button:hover {
    background: #334155;
    color: #667eea;
}

body.dark-theme .companies-grid {
    background: #334155;
}

body.dark-theme .company-logo {
    background: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .company-logo:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .content h1,
body.dark-theme .content h2,
body.dark-theme .content h3 {
    color: #f1f5f9;
}

body.dark-theme .content p,
body.dark-theme .content li {
    color: #cbd5e1;
}

body.dark-theme .nav-section h3 {
    color: #94a3b8;
}

body.dark-theme .search-container {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .search-input {
    background: #334155;
    color: #e2e8f0;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .search-results {
    background: #1e293b;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .search-result-item:hover {
    background: #334155;
}

body.dark-theme .breadcrumb {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-theme .toc-container {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .back-to-top {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .mobile-menu-overlay {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-theme .logo-placeholder {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .mobile-menu {
    background: #1e293b;
    border-color: rgba(102, 126, 234, 0.3);
}

/* === PROGRESS BAR === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.2rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px) scale(1.02);
}

.logo-icon {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === SEARCH === */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.08);
}

.search-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 3rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    border-radius: 25px;
    outline: none;
    color: #334155;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
}

.search-result-content {
    font-size: 0.85rem;
    color: #64748b;
}

.search-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 500;
}

/* === BREADCRUMB === */
.breadcrumb {
    position: fixed;
    top: 90px;
    left: 2rem;
    right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.breadcrumb.show {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #94a3b8;
}

/* === HEADER CONTROLS === */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* === MOBILE MENU === */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #334155;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1.5px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
    margin-bottom: -1.5px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    border-left: 1px solid rgba(102, 126, 234, 0.2);
    z-index: 1011;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem;
    box-shadow: -4px 0 15px rgba(102, 126, 234, 0.1);
}

.mobile-menu.show {
    transform: translateX(0);
}

/* === THEME TOGGLE === */
.theme-toggle {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

body.dark-theme .theme-toggle {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
    color: #f1f5f9;
}

body.dark-theme .theme-toggle:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* === TRADUTOR === */
.translator {
    position: relative;
}

.translator-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.translator-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.translator-toggle:hover::before {
    left: 100%;
}

.translator-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.translator-toggle:active {
    transform: translateY(-1px) scale(0.98);
}

.translator-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    padding: 0.8rem;
    min-width: 220px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.translator-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

body.dark-theme .translator-dropdown {
    background: rgba(51, 65, 85, 0.95);
    border-color: #475569;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(3px);
}

.language-option:hover::before {
    opacity: 1;
}

.language-option.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(0);
}

.language-option.active::before {
    opacity: 0;
}

body.dark-theme .language-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.fi {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
}

.fi-br {
    background: linear-gradient(to bottom, #009739 33%, #fedd00 33% 66%, #002776 66%);
}

.fi-pt {
    background: linear-gradient(to right, #046A38 50%, #DA020E 50%);
}

.fi-us {
    background: linear-gradient(to bottom, #B22234 7.69%, white 7.69% 15.38%, #B22234 15.38% 23.08%, white 23.08% 30.77%, #B22234 30.77% 38.46%, white 38.46% 46.15%, #B22234 46.15% 53.85%, white 53.85% 61.54%, #B22234 61.54% 69.23%, white 69.23% 76.92%, #B22234 76.92% 84.62%, white 84.62% 92.31%, #B22234 92.31%);
    position: relative;
}

.fi-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.85%;
    background: #3C3B6E;
}

/* === HERO === */
.hero {
    margin-top: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* === MAIN CONTENT === */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
}

/* === TABLE OF CONTENTS === */
.toc-container {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.toc-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.toc-item {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    transition: all 0.2s ease;
}

.toc-item:hover {
    color: #667eea;
    border-left-color: #667eea;
}

.toc-item.active {
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.18);
    transform: translateY(-1px);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1px;
}

.sidebar-logo .logo-placeholder {
    width: 50px;
    height: 50px;
    font-size: 0.55rem;
    margin: 0 auto;
}

.nav-section {
    margin-bottom: 2.5rem;
    position: relative;
}

.nav-section::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.nav-section:hover::before {
    opacity: 0.3;
}

.nav-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 10px;
}

.nav-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.3rem;
}

.nav-links a,
.nav-links button {
    color: #475569;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: 1px solid transparent;
    text-align: left;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-links a::before,
.nav-links button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.nav-links a:hover,
.nav-links button:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.nav-links a:hover::before,
.nav-links button:hover::before {
    width: 4px;
}

.nav-links a.active,
.nav-links button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(0);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-links a.active::before,
.nav-links button.active::before {
    width: 0;
}

/* === CONTENT === */
.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    margin-bottom: 3rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.content:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

.content-section {
    margin-bottom: 4rem;
    display: none;
    animation: fadeIn 0.6s ease-out;
}

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

.content-section.active {
    display: block;
}

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

.content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #334155;
    margin: 3rem 0 2rem 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    padding-bottom: 0.8rem;
    position: relative;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #475569;
    margin: 2.5rem 0 1.2rem 0;
    position: relative;
    padding-left: 20px;
}

.content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.content p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    color: #64748b;
    font-size: 1.05rem;
}

.content ul {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.8rem;
    color: #64748b;
    font-size: 1.05rem;
    position: relative;
}

.content li::marker {
    color: #667eea;
}

.content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.content a:hover::after {
    width: 100%;
}

.content strong {
    color: #334155;
    font-weight: 600;
}

/* === COMPANIES GRID === */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
}

.companies-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 90px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

.company-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.company-logo:hover::before {
    left: 100%;
}

.company-logo:hover {
    transform: translateY(-8px) scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.company-logo img {
    max-width: 90px;
    max-height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
}

.company-logo:hover img {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.1);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === SCREENSHOTS === */
.screenshot {
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.screenshot img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.2);
}

/* === LOADING === */
.translation-loading {
    position: fixed;
    top: 140px;
    right: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.translation-loading.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === SELECTION === */
::selection {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #1e293b;
}

/* === ENHANCED ANIMATIONS === */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.sidebar {
    animation: slideInFromLeft 0.6s ease-out;
}

.content {
    animation: slideInFromRight 0.6s ease-out 0.1s both;
}

/* === FOCUS STATES === */
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .toc-container {
        display: none;
    }
}

@media (max-width: 968px) {
    .mobile-menu-button {
        display: block;
    }

    .search-container {
        max-width: 300px;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        order: 2;
        animation: slideInFromRight 0.6s ease-out;
        top: auto;
    }

    .content {
        animation: slideInFromLeft 0.6s ease-out;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .translator-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .breadcrumb {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 1rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content {
        padding: 2.5rem;
        border-radius: 16px;
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }

    .company-logo {
        height: 70px;
        padding: 1rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .translator-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .translation-loading {
        right: 15px;
        top: 110px;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .search-container {
        max-width: 200px;
    }

    .breadcrumb {
        display: none;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .logo-icon,
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .content {
        padding: 2rem;
    }

    .content h1 {
        font-size: 1.8rem;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content {
        gap: 1rem;
    }

    .search-container {
        display: none;
    }
}

/* === HOVER IMPROVEMENTS === */
@media (hover: hover) {
    .logo:hover {
        transform: translateY(-3px) scale(1.02);
    }

    .nav-section:hover h3 {
        color: #667eea;
    }

    .content:hover::before {
        animation-duration: 2s;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .sidebar,
    .content {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}