:root {
    /* Dark Theme with Visible Background */
    --bg-color: #121212; /* Very dark background */
    --text-color: #e0e0e0; /* Light gray text for comfort */
    --accent-color: #bb86fc; /* Soft purple/blue accent */
    --secondary-color: #03dac6; /* Teal secondary */
    --container-bg: rgba(18, 18, 18, 0.75); /* Dark semi-transparent background */
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-color: #ffffff;
    --nav-bg: rgba(18, 18, 18, 0.9);
    --modal-bg: rgba(18, 18, 18, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Changed to column for Header/Main/Footer layout */
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Image with Blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('ellen.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px); /* Blur effect */
    transform: scale(1.05); /* Prevent blurred edges */
    z-index: -1;
}

/* Navbar Styling */
.navbar {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--nav-bg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    justify-self: start;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.container {
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    max-width: 600px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    margin-top: 100px; /* Space for fixed navbar */
    margin-bottom: 3rem; /* Space for footer */
    
    /* Animation */
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.2);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

.about {
    margin-bottom: 2rem;
}

.links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(244, 196, 48, 0.4);
}

/* Site Footer */
.site-footer {
    width: 100%;
    background: var(--nav-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.discord-username {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: monospace;
    font-size: 1.2rem;
    border: 1px dashed var(--border-color);
    user-select: all; /* Makes it easy to copy */
}

/* Project Page Styles */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.project-image-container {
    width: 100%;
    height: auto;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: block;
    border: 1px solid var(--border-color);
}

.project-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-placeholder-image {
    font-size: 4rem;
    color: var(--secondary-color);
}

.project-card h2 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(187, 134, 252, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(187, 134, 252, 0.3);
}