@import url('https://fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&display=swap');
@import url('https://fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:300,400,500,700&display=swap');

:root {
    --primary-color: #30406e;
    --primary-hover: #263358;
    --text-color: #212121;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-banner: #30406e;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 15px -3px rgba(48, 64, 110, 0.1), 0 4px 6px -2px rgba(48, 64, 110, 0.05);
    --font-sans: 'Lato', 'Google Sans', 'Roboto', sans-serif;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-family: 'Google Sans', var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Banner / Header Hero */
.hero-banner {
    background-color: var(--bg-banner);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle blended background pattern matching Sites header */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-bio {
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.more-projects-btn {
    display: inline-block;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(48, 64, 110, 0.15);
}

.more-projects-btn:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(48, 64, 110, 0.25);
}

/* Main Container */
.main-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-alt);
    color: var(--text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(48, 64, 110, 0.15);
}

.categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cat-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn:hover {
    background-color: rgba(48, 64, 110, 0.08);
}

.cat-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Project List Grid */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
}

/* Project Card */
.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-thumb {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background-color: #f8f9fc;
    border-bottom: 1px solid var(--border-light);
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.75rem; /* ~10px */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.year-section {
    margin-bottom: 3rem;
}

.year-header {
    font-size: 1.6rem;
    color: var(--primary-color);
    background-color: #f0f4f8; /* Soft blue-grey background */
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border-left: 5px solid var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
}

/* Post Detail Pages Layout */
.post-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.post-header-area {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.post-header-area h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
}

.post-back-container {
    margin-bottom: 2rem;
}

.post-back {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.post-back:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content h2, .post-content h3, .post-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-hover);
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-bio {
        font-size: 1rem;
    }
    .project-list {
        grid-template-columns: 1fr;
    }
}
