/* Color Palette & Typography */
:root {
    --primary-color: #4A90E2; /* A lighter, more muted blue */
    --secondary-color: #f8f9fa;
    --text-color: #343a40;
    --heading-color: #212529;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
}

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

.section {
    padding: 60px 0;
}

.section.bg-light {
    background-color: var(--secondary-color);
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* Header Section */
header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
    border-bottom: 4px solid #3876B4;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Navigation Bar */
nav {
    background-color: var(--heading-color);
    padding: 15px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3876B4;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-picture-container {
    flex-shrink: 0;
    width: 250px;
}

.profile-picture {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.about-text {
    flex-grow: 1;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 25px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag i {
    color: #fff;
}

/* Work and Education Sections */
.work-item, .education-item {
    background-color: #fff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.work-info, .education-info {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
    color: #3876B4;
}

.contact-note {
    font-style: italic;
    color: #6c757d;
}

/* Footer */
footer {
    background-color: var(--heading-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture-container {
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Blog Specific Styles --- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 25px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.blog-post-card .post-date {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: -10px;
    display: block;
}

/* Single Post Page Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.post-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.post-meta {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.blog-post-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.back-link {
    margin-top: 40px;
    text-align: center;
}