:root {
    --bg:#0b1020;
    --sidebar:#111827;
    --card:#171f33;
    --card-hover:#1e2944;
    --border:#2b3654;
    --accent:#5dd4ff;
    --accent2:#8b5cf6;
    --text:#ffffff;
    --text-secondary:#d5dcee;
    --text-muted:#93a0bd;
}

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    background:
        radial-gradient(
            circle at top,
            #111827,
            #0b1020
        );
    color:var(--text-secondary);
    font-family:"Segoe UI", sans-serif;
}

.layout {
    display:flex;
    min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width:260px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background:#202a3d;
    border-right:1px solid #34425e;
    padding:30px 20px;
    overflow-y:auto;
}

.sidebar-logo {
    margin-bottom:40px;
}

.logo-title {
    font-size:26px;
    font-weight:bold;
    color:var(--accent);
    text-shadow:0 0 10px rgba(93,212,255,.25);
}

.logo-subtitle {
    color:#b8c7e6;
    margin-top:5px;
    font-size:13px;
}

.sidebar-nav {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sidebar-nav a {
    color:white;
    text-decoration:none;
    padding:12px 15px;
    border-radius:8px;
    transition:.2s;
}

.sidebar-nav a:hover {
    background:#2b3650;
}

.nav-category {
    margin-top:20px;
}

.category-title {
    color:#7dd3fc;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:8px;
    padding-left:15px;
}

.nav-group {
    display:flex;
    flex-direction:column;
}

.nav-parent {
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:none;
    border:none;
    color:white;
    padding:12px 15px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
}

.nav-parent:hover {
    background:#2b3650;
}

.nav-child {
    display:none;
    flex-direction:column;
    margin-left:20px;
}

.nav-child a {
    color:#9cb0d4;
    text-decoration:none;
    padding:10px 15px;
    font-size:14px;
    border-radius:8px;
}

.nav-child a:hover {
    background:#20293b;
    color:white;
}

.nav-child.open {
    display:flex;
}

a.active {
    background:#f5a623;
    color:#101010;
    font-weight:bold;
    pointer-events:none;
}

.mobile-menu-toggle {
    display:none;
}

/* =========================
   CONTENT
========================= */

.content {
    flex:1;
    margin-left:260px;
    padding:35px;
}

/* =========================
   PAGE HEADER
========================= */

.page-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:
        linear-gradient(
            135deg,
            rgba(93,212,255,.08),
            rgba(139,92,246,.08)
        );
    border:1px solid var(--border);
    border-radius:16px;
    padding:30px;
}

.page-header h1 {
    color:white;
    font-size:42px;
    margin-bottom:6px;
}

.page-subtitle {
    color:var(--accent);
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.creator {
    color:var(--text-muted);
    font-size:14px;
}

/* =========================
   SECTIONS
========================= */

.section {
    margin-top:40px;
}

.section h2 {
    color:white;
    font-size:18px;
    margin-bottom:15px;
    padding-left:12px;
    border-left:4px solid var(--accent);
}

.section h3 {
    color:white;
    margin-bottom:10px;
}

.section p {
    color:var(--text-secondary);
    line-height:1.8;
}

.description p {
    font-size:18px;
    line-height:1.8;
    max-width:900px;
}

/* =========================
   SOCIAL LINKS
========================= */

.social-links {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.social-links a {
    background:var(--card);
    border:1px solid var(--border);
    border-radius:8px;
    padding:10px 18px;
    color:white;
    text-decoration:none;
    transition:.2s;
}

.social-links a:hover {
    background:var(--card-hover);
    border-color:var(--accent);
    color:white;
    transform:translateY(-2px);
}

/* =========================
   GENERIC CARDS / PANELS
========================= */

.card {
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    transition:.25s;
}

.card:hover {
    background:var(--card-hover);
    border-color:var(--accent);
}

/* =========================
   BUTTONS
========================= */

button {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent2)
        );
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:.25s;
}

button:hover {
    transform:translateY(-2px);
    box-shadow:
        0 0 20px
        rgba(93,212,255,.25);
}

/* Keep sidebar parent buttons visually neutral */
.nav-parent,
.mobile-menu-toggle {
    background:none;
}

.nav-parent:hover {
    transform:none;
    box-shadow:none;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width:10px;
}

::-webkit-scrollbar-track {
    background:#0b1020;
}

::-webkit-scrollbar-thumb {
    background:#334155;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover {
    background:#475569;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px) {

    .sidebar {
        width:100%;
        height:auto;
        position:fixed;
        top:0;
        left:0;
        z-index:1000;
        padding:15px 20px;
        border-right:none;
        border-bottom:1px solid #34425e;
    }

    .sidebar-nav {
        display:none;
    }

    .sidebar-nav.mobile-open {
        display:flex;
        margin-top:25px;
    }

    .sidebar-logo {
        margin-bottom:0;
    }

    .content {
        margin-left:0;
        padding-top:100px;
    }

    .mobile-menu-toggle {
        display:flex;
        align-items:center;
        justify-content:center;
        position:absolute;
        top:15px;
        right:20px;
        width:42px;
        height:42px;
        padding:0;
        border:1px solid var(--accent);
        border-radius:8px;
        background:#263653;
        color:var(--accent);
        font-size:22px;
        line-height:1;
        cursor:pointer;
    }

    .page-header {
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

@media (max-width:600px) {

    html,
    body {
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .layout {
        width:100%;
        max-width:100%;
    }

    .content {
        width:100%;
        max-width:100%;
        margin-left:0;
        padding:110px 15px 20px;
        overflow-x:hidden;
    }

    .page-header {
        width:100%;
        padding:22px;
    }

    .page-header h1 {
        font-size:30px;
        line-height:1.2;
    }

    .page-subtitle {
        font-size:12px;
        letter-spacing:1.5px;
    }

    .creator {
        font-size:13px;
    }

    .section {
        width:100%;
        margin-top:30px;
    }

    .section h2 {
        font-size:18px;
    }

    .social-links {
        gap:8px;
    }

    .social-links a {
        padding:9px 12px;
        font-size:13px;
    }
}