/* Global Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Background image (cyberpunk low-fi). Falls back to a dark gradient if image is missing. */
body {
    /* dark cyberpunk gradient fallback */
    background-color: #0b0b0f;
    /* lighter overlay so the image is more visible */
    background-image: linear-gradient(180deg, rgba(7,5,12,0.5), rgba(20,10,30,0.5)), url('assets/low-fi-cyberpunk-bg.png');
    /* 
    #background-image: linear-gradient(180deg, rgba(7,5,12,0.95), rgba(20,10,30,0.95)), url('assets/low-fi-cyberpunk-bg.png'); */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* keep background fixed while scrolling */
    color: #e9eef6; /* lighter page text for contrast */
    -webkit-font-smoothing: antialiased;
    /* page layout: use column flex so footer can stick to bottom when content is short */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* header/footer use IDs on the element */
#header {
    background-color: rgba(17,17,20,0.85);
    color: #fff;
    padding: 1em;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55); /* subtle shadow to separate from background */
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.navbar li {
    margin-right: 20px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
}

.navbar a:hover {
    color: #ccc;
}

#footer {
    background-color: rgba(12,12,14,0.85);
    color: #fff;
    padding: 1em;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.55); /* subtle top shadow */
}

/* Ensure main content grows to fill available space so footer sits at the bottom */
#main {
    flex: 1 0 auto;
}

/* Page layout helpers */
.hero-section {
    padding: 2rem 1rem;
    text-align: center;
    color: #f5f7fb;
    background: transparent; /* let the global background show through */
}

.page-content {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    background: transparent; /* remove panel background so content sits directly on the site background */
    color: #eef2fb;
}

/* Active nav link */
.navbar a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Lighter nav links for contrast */
.navbar a {
    color: #e9eef6;
}
.navbar a:hover {
    color: #ffffff;
}

/* Slightly better navbar spacing */
.navbar ul { gap: 1rem; }