/* 
  Theme: Minimalist Blog & Portfolio
  Style: Clean, Professional, Light
*/

:root {
    --bg-color: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-color: #0066cc;
    /* Conservative Blue */
    --border-color: #eeeeee;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Lora', serif;
    /* For blog headings or body text if preferred */

    --container-width: 800px;
    /* Narrower for reading */
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Navbar */
header {
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* Hero */
.hero {
    margin-bottom: 5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .flex-col-reverse {
        flex-direction: column-reverse;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

/* Lists (Projects / Articles) */
.list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover .item-title {
    color: var(--accent-color);
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.item-title {
    font-size: 1.25rem;
    background: 0 0;
    margin: 0;
    transition: color 0.2s;
}

.item-desc {
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Blog Post Page */
.post-header {
    margin-bottom: 3rem;
}

.post-content {
    font-family: var(--font-serif);
    /* Serif for long-form reading */
    font-size: 1.1rem;
}

.post-content code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: monospace;
}

.post-content pre {
    background: #f4f4f4;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Buttons */
.btn-small {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    color: var(--accent-color);
}

.btn-small:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.event-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.event-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}