/* Canvas Background Styling */
#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Behind all content */
    width: 100%;
    height: 100%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1; /* Above canvas */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
}
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-right: 2px solid #ff00ff;
}
.site-title {
    font-family: 'Press Start 2P', cursive;
    color: #ff00ff;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff00ff;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin: 15px 0;
}
.sidebar ul li a {
    color: #ff00ff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}
.sidebar ul li a:hover {
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
}
main {
    flex-grow: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent */
}
header {
    text-align: center;
    margin-bottom: 20px;
}
.avatar {
    width: 150px;
    border: 3px solid #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ffcc;
}
h2 {
    font-family: 'Press Start 2P', cursive;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}
marquee {
    color: #00ffcc;
    font-size: 1.2em;
    margin: 10px 0;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border: 2px solid #00ffcc;
    border-radius: 10px;
    transition: transform 0.3s;
}
.card:hover {
    transform: scale(1.05);
}
.card h3 {
    font-family: 'Press Start 2P', cursive;
    color: #ff00ff;
}
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid #ff00ff;
}
footer a {
    color: #00ffcc;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-shadow: 0 0 5px #00ffcc;
}
input, button {
    font-family: 'Montserrat', sans-serif;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #00ffcc;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}
button {
    cursor: pointer;
    background: #ff00ff;
}
button:hover {
    background: #00ffcc;
}

/* Glitch Animation for Sidebar Links */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ff00ff;
    }
    .site-title {
        font-size: 1.2em;
    }
}