/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
  list-style-position: inside;
  margin-left: 0;
  /* padding-left: 0; */
  padding-left: 30px;
}

a {
    color: #002147;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #666;
    font-weight: 500;
}

.nav-links a:hover {
    color: #002147;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Bio section */
.bio {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.placeholder-image {
    background-color: #e1e5e9;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
}

/* Featured section */
.featured {
    padding: 4rem 0;
}

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

.featured-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #002147;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #003366;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #002147;
}

/* Blog styles */
.blog-header, .projects-header, .background-header {
    background-color: #003366;
    color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.posts-grid, .projects-list, .background-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.post-preview, .project-card, .background-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-preview:hover, .project-card:hover, .background-card:hover {
    transform: translateY(-2px);
}

.post-meta, .project-meta, .background-meta {
    color: #d9d6d6;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.categories {
    margin-left: 1rem;
}

.categories a {
    background-color: #e1e5e9;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.read-more {
    color: #002147;
    font-weight: 500;
}

/* Project specific styles */
.tech-tag {
    background-color: #e1e5e9;
    color: #003366;              /* ← add this */
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.project-links {
    margin-top: 1rem;
}

/* Post/Project/Background detail pages */
.post, .project, .background-entry {
    padding: 2rem 0;
}

.post-header, .project-header, .background-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.post-content, .project-content, .background-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.site-footer a {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Interactive elements for projects */
.interactive-container {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.dashboard-container {
    width: 100%;
    min-height: 400px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
} 