:root {
    --primary: #202020;
    --primary-light: #FFFFFF;
    --accent: #A3A3A3;
    --bg: #202020;
    --bg-alt: #1A1A1A;
    --text: #FFFFFF;
    --text-muted: #8E8E93;
    --border: rgba(255, 255, 255, 0.05);
    --card: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    line-height: 1.6;
    overflow-x: hidden;
}

/* cybernetic grid background texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Sidebar (Monochrome Premium) */
.sidebar {
    width: 280px;
    background-color: var(--bg-alt);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo img {
    height: 32px;
    width: auto;
    filter: invert(1) brightness(0) !important;
}

.sidebar-menu {
    padding: 24px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 20px 0 8px 8px;
    text-transform: uppercase;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item i {
    width: 16px;
    text-align: center;
}

.menu-item:hover,
.menu-item.active {
    background: var(--card);
    color: var(--text);
}

.menu-item.active {
    border-left: 3px solid var(--primary-light);
}

.menu-item.active i {
    color: var(--primary-light);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(32, 32, 32, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: auto;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: var(--card);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    width: 100%;
}

.doc-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.doc-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Typography */
.hero-card {
    background: var(--card);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    font-family: 'Amarante', serif;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 95;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* Tablet */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
    }

    .topbar {
        padding: 16px 24px;
        justify-content: space-between;
    }

    .content-wrapper {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* Mobile Phone */
@media (max-width: 480px) {
    .sidebar {
        width: 260px;
    }

    .hero-card {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .content-wrapper {
        padding: 30px 16px;
    }
}