/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color-depth: #0B2116;
    --bg-color-canvas: #123524;
    --text-color-primary: #E0E0E0;
    --text-color-secondary: #8A9A8E;
    --link-color: #A3C9A8;
    --nav-bg-color: #1B4332;
    --font-stack: 'Menlo', monospace;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color-depth);
    color: var(--text-color-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Image Handling */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('res/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Subtle texture */
    z-index: -1;
    pointer-events: none;
}

/* Layout Container */
main {
    flex: 1;
    width: 100%;
    max-width: 800px; /* Constrain width on larger screens */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: transparent; /* Let body/overlay show through */
}

/* Header & Nav */
header {
    background-color: var(--nav-bg-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--text-color-secondary);
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Invert/Filter if logo is black on transparent and needs to be light */
    /* Assuming logo_bk might be black, let's invert it to match dark theme if needed. 
       If it's already light, remove this filter. 
       Safe bet for 'bk' usually meaning black. */
    filter: invert(1) brightness(0.9); 
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--link-color);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background-color: rgba(18, 53, 36, 0.85); /* --bg-color-canvas with opacity */
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--text-color-secondary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Bio Text */
.bio-text {
    font-size: 1rem;
    color: var(--text-color-primary);
    text-align: justify;
}

/* Links Section */
.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.link-list li a {
    display: block;
    padding: 1rem;
    background-color: var(--bg-color-depth);
    color: var(--link-color);
    text-decoration: none;
    border: 1px solid var(--text-color-secondary);
    transition: all 0.3s ease;
}

.link-list li a:hover {
    background-color: var(--nav-bg-color);
    color: var(--text-color-primary);
    border-color: var(--link-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-color-secondary);
    font-size: 0.8rem;
    background-color: var(--bg-color-depth);
}

footer a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-color-primary);
    text-decoration: underline;
}

/* Media Queries for Desktop (Scaling Up) */
@media (min-width: 768px) {
    main {
        padding: 4rem 2rem;
    }

    .logo {
        max-width: 300px;
    }

    .bio-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}
