html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: black;
    font-family: monospace;
    scroll-behavior: smooth;
}

article img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

h1, h2 {
    text-shadow: 0 0 8px #33ff66;
}

p {
    line-height: 1.7;
    margin-bottom: 3rem;
}


ul.skills, ul.experience, ul.cloud {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 2rem 0;
}

ul.skills li, ul.experience li, ul.cloud li {
    margin: 0.4rem 0;
}

a {
    color: #33ff66;
    text-decoration: underline;
}

.container {

    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    color: #dde5df;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    background: rgba(0, 0, 0, 0.8);
    color: #dde5df;
    padding: 2rem 1rem;
    z-index: 2; /* above canvas */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px #33ff66;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.8rem;
}

.sidebar a {
    color: #33ff66;
    text-decoration: none;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* removes gray tap highlight */
}

.sidebar a:hover {
    color: #88ff99;
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #33ff66;
    border: none;
    padding: 0.5rem 0.8rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 4;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    ul.skills li, ul.experience li, ul.cloud li {
        margin-bottom: 0.5rem;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        width: 70%; /* easier to tap links */
        padding: 2rem 1.5rem;
        transform: translateX(-100%); /* hidden by default */
    }

    .sidebar.open {
        transform: translateX(0); /* visible when .open is added */
    }

    .sidebar ul li a {
        font-size: 1.2rem; /* bigger touch area */
    }

    /* Show hamburger button */
    .menu-toggle {
        display: block;
    }
}


@media (max-width: 768px) {
    .sidebar {
        width: 70%; /* easier to tap links */
        padding: 2rem 1.5rem;
    }

    .sidebar ul li a {
        font-size: 1.2rem; /* bigger touch area */
    }
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    /*max-width: 900px;*/
    width: 100%;
    height: 100%;
    opacity: 0.5; /* makes it subtle */
    z-index: 1; /* behind everything */
}
