/* Basic Reset and General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #333;
    color: white;
    padding: 1em 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px 0;
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2em;
    color: #555;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

.featured-projects, .portfolio-page, .contact-page, .blog-index, .blog-post {
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card, .project-card-detailed {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-card h3, .project-card-detailed h3 {
    margin-top: 0;
}

.project-links a {
    margin-right: 10px;
    text-decoration: none;
    color: #007bff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Styles */
.blog-post-list {
    margin-top: 20px;
}

.blog-post-preview {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.blog-post-preview h2 a {
    text-decoration: none;
    color: #333;
}

.blog-post-preview .post-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
}

.blog-post h1 {
    margin-bottom: 10px;
}

.blog-post .post-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.social-links-contact {
    margin-top: 20px;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-links-contact a:hover {
    background-color: #f0f0f0;
}

.social-links-contact img {
    margin-right: 10px;
}