/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5e35b1; /* Deep purple for a personal, creative vibe */
    padding: 15px 30px;
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: url('blog-bg.jpg') no-repeat center center/cover; /* Replace with personal blog-themed image */
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: #5e35b1; /* Fallback color */
}

.hero-content {
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f06292; /* Pink for a friendly tone */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #d81b60;
}

/* Sections */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #5e35b1;
}

/* Blog Section */
.blog-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-card {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #5e35b1;
}

.blog-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: #f06292;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Form */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form label {
    font-weight: 600;
    text-align: left;
    color: #5e35b1;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form button {
    padding: 12px;
    background-color: #5e35b1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

#contact-form button:hover {
    background-color: #4527a0;
}

#form-message {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #f06292;
}

/* Blog Post Page Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content {
    text-align: left;
    margin: 20px 0;
}

.blog-post-content p {
    margin-bottom: 15px;
}

.blog-post-content .post-meta {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #5e35b1;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .blog-card {
        width: 100%;
    }

    .blog-post {
        padding: 0 15px;
    }
}