/* Minimalistic & Clean Style */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #fafafa; /* Subtle off-white */
    color: #1a1a1a; /* Deep black for better readability */
    letter-spacing: 0.3px;
}

header {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

header h1 {
    margin: 0 0 15px 0;
    font-size: 2.8em;
    letter-spacing: -0.5px;
    font-weight: 600;
    line-height: 1.2;
}

header p {
    font-size: 1.1em;
    opacity: 0.65;
    margin: 0;
    font-weight: 300;
}

main {
    padding: 60px 20px;
    max-width: 820px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

section:first-of-type {
    padding-top: 0;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.3px;
}

section#about {
    margin-bottom: 40px;
}

section#about p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 600px;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    margin-bottom: 45px;
    border: 1px solid #e8e8e8;
    font-size: 0.95em;
    font-family: inherit;
    color: #1a1a1a;
    background-color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.search-bar:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.05);
}

.search-bar::placeholder {
    color: #a8a8a8;
}

.project-card {
    background: #ffffff;
    padding: 40px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.4em;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

.project-card p {
    color: #4a4a4a;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.project-link:hover {
    color: #666666;
    border-bottom-color: #666666;
    transform: translateX(3px);
}

footer {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    color: #4a4a4a;
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
    line-height: 1.6;
}

footer a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px dotted #1a1a1a;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #666666;
    border-bottom-color: #666666;
}

/* Blog Entry Images */
.project-images {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.project-image-thumb {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-image-thumb:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

/* Project Meta (Date) */
.project-meta {
    font-size: 0.85em;
    color: #8a8a8a;
    margin-top: 20px;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

/* No Entries & Error States */
.no-entries,
.error {
    text-align: center;
    padding: 60px 20px;
    color: #a8a8a8;
    font-style: italic;
    font-size: 1em;
}

.error {
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 50px 20px;
    }

    header h1 {
        font-size: 2.2em;
    }

    header p {
        font-size: 1em;
    }

    main {
        padding: 40px 15px;
        max-width: 100%;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .project-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .project-card h3 {
        font-size: 1.2em;
    }

    .project-images {
        gap: 8px;
    }

    .project-image-thumb {
        max-width: 100px;
        max-height: 100px;
    }
}