/* MONKEYTYPE FULL RESPONSIVE THEME */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #323437;
    --main: #e2b714; 
    --text: #d1d0c5;
    --card: #2c2e31;
    --border: #3d3f41;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: block !important;
}

/* --- TOP NAVIGATION BAR --- */
.top-nav {
    width: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--main) !important;
}

.nav-item.active {
    border-bottom: 2px solid var(--main);
}

/* --- DROPDOWN (Laptop Only) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card);
    min-width: 220px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    border: 1px solid var(--border);
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
}

/* Invisible Bridge for Hover Stability */
.dropdown-content::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.dropdown-content a {
    color: #94a3b8;
    padding: 12px 20px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--main);
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

/* --- MOBILE RESPONSIVENESS (max-width: 768px) --- */
#hamburger {
    display: none !important;
}

@media (max-width: 768px) {
    #hamburger {
        display: block !important;
        background: none;
        border: none;
        color: var(--main);
        cursor: pointer;
        padding: 5px;
        z-index: 3000;
    }

    /* Side Drawer for Mobile */
    .nav-links {
        position: fixed !important;
        top: 0;
        left: -100%; 
        width: 280px !important;
        height: 100vh !important;
        background-color: var(--card) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 80px 20px !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 2500 !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        gap: 10px !important;
    }

    .nav-links.active {
        left: 0 !important;
    }

    .nav-item {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Mobile Dropdown Fix (Click based instead of hover) */
    .dropdown-content {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        display: none; /* JS will toggle this */
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .nav-item span {
        display: inline !important; /* Show text in mobile drawer */
    }

    .page-wrapper {
        padding: 15px !important;
    }
}

/* PAGE WRAPPER */
.page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar { display: none !important; }