﻿:root {
    --bg: #0d1117;
    --panel: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --success: #3fb950;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        color: var(--accent-hover);
    }

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

header {
    border-bottom: 1px solid var(--border);
    background: rgba(13, 17, 23, 0.50);
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 100px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.3px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    color: white;
}

    .brand-name span {
        color: var(--accent);
    }

.nav-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin-left: auto;
}

    .nav-links a {
        color: var(--muted);
        font-size: 0.93rem;
    }

        .nav-links a:hover {
            color: var(--text);
        }

footer {
    padding: 30px 0 50px;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

    footer .container {
        display: flex;
        justify-content: flex-end;
    }


.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    list-style: none;
    min-width: 180px;
    padding: 8px 0;
    z-index: 20;
}

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        display: block;
        padding: 10px 14px;
        color: var(--muted);
        white-space: nowrap;
    }

        .dropdown-menu a:hover {
            background: rgba(88, 166, 255, 0.08);
            color: var(--text);
        }

.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dropdown-trigger .nav-link {
        display: inline-block;
    }

.submenu-toggle {
    display: none;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    line-height: 1;
}

    .submenu-toggle:hover {
        color: var(--text);
    }

@media (max-width: 1100px) {
    .nav {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 12px;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            width: 100%;
            padding: 8px 0;
        }

    .dropdown {
        position: relative; /* NEW */
    }

    .dropdown-menu {
        display: block; /* CHANGED */
        position: static; /* CHANGED */
        background: transparent; /* CHANGED */
        border: none; /* CHANGED */
        border-radius: 0; /* NEW */
        min-width: 0; /* NEW */
        padding: 6px 0 0 16px; /* CHANGED */
        z-index: auto; /* NEW */
    }

    .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .submenu-toggle {
        display: inline; /* NEW */
    }
        
}

@media (max-width: 600px) {
    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand {
        font-size: 1rem;
    }
}
