/* Base Styles */
body {
    font-family: "Helvetica Neue", sans-serif;
    background-color: #121212;
    color: #eaeaea;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #1e1e1e;
    position: relative;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.author-name {
    font-size: 1.1em;
    font-weight: 600;
}

.navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex: 1;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navigation a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

.navigation a:hover {
    color: #fff;
}

.contacts {
    display: flex;
    gap: 15px;
}

.icon {
    width: 30px;
    height: 30px;
    filter: brightness(80%);
    transition: filter 0.2s ease;
}

.icon:hover {
    filter: brightness(120%);
}

/* Main Container */
.container {
    max-width: 70%;
    margin: 40px auto;
    padding: 0 20px;
}

/* Blog Post Cards */
.post {
    background-color: #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.post:hover {
    transform: translateY(-4px);
}

.post h3 {
    margin-top: 0;
    color: #ffffff;
}

.post p {
    margin: 10px 0 15px;
    color: #d0d0d0;
}

.post a {
    color: #4ea8ff;
    text-decoration: none;
    font-weight: bold;
}

.post a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.4);
    /* semi-transparent white */
    margin-bottom: 6px;
}

.post-title {
    font-size: 1.2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.post-excerpt {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 1em;
}

/* Project entries */
.intro {
    margin-bottom: 40px;
    background-color: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.project {
    background-color: #2a2a2a;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.project h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.25em;
}

.project p {
    margin: 0 0 12px;
    color: #c9c9c9;
    line-height: 1.5;
}

.project a {
    color: #4ea8ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
}

.project a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9em;
    margin-top: 60px;
}

.footer-text {
    border-top: 1px solid gray;
    margin: auto;
    max-width: 70%;
}

/* Post styling */

.content {
    max-width: 70%;
    margin: 40px auto;
    padding: 0 20px;
}

.post-body h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.post-body h2 {
    margin-top: 30px;
    color: #ccc;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    overflow-x: auto;
    border-radius: 8px;
    margin-top: 20px;
}

code {
    font-family: monospace;
}
