* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 400; line-height: 1.6; color: #121212; background-color: #FAF8F1; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: #121212; letter-spacing: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; line-height: 1.7; }
a { color: #121212; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover { color: #666; text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
code, pre { font-family: 'Fira Code', Consolas, monospace; }
code { background-color: #efefef; padding: .16rem .35rem; border-radius: 4px; color: #9a3412; font-size: .92em; }
pre { background-color: #f8f8f8; border: 1px solid #e5e0d5; border-left: 3px solid #2C4A44; border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
pre code { background: transparent; color: inherit; padding: 0; }
blockquote { border-left: 4px solid #d8d0c0; padding-left: 1rem; margin: 1.5rem 0; color: #57534e; font-style: italic; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.navbar { background-color: rgba(250, 248, 241, .9); border-bottom: 1px solid #EAEAEA; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); transition: box-shadow .2s ease; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo { height: 40px; width: auto; object-fit: contain; }
.nav-initials { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid #121212; border-radius: 50%; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-link { color: #121212; font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; font-weight: 600; padding: .5rem 0; position: relative; }
.nav-link:hover, .nav-link.active { color: #666; text-decoration: none; }
.resume-btn { border: 2px solid #121212; padding: .5rem 1rem; border-radius: 4px; color: #2C4A44; font-weight: 700; }
.resume-btn:hover { background-color: #2C4A44; border-color: #2C4A44; color: white; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle .bar { width: 25px; height: 3px; background-color: #121212; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-content { min-height: 70vh; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.35rem; border: none; border-radius: 4px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background-color: #2C4A44; color: white; }
.btn-primary:hover { background-color: #1A3831; color: white; }
.btn-secondary, .btn-outline { background-color: transparent; color: #2C4A44; border: 2px solid #2C4A44; }
.btn-secondary:hover, .btn-outline:hover { background-color: #2C4A44; color: white; }
.btn-small { min-height: 38px; padding: .5rem 1rem; font-size: .9rem; }
.hero { min-height: calc(100vh - 70px); display: flex; align-items: center; padding: 4.5rem 0 3.5rem; border-bottom: 1px solid #e7e1d4; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .58fr); gap: 4rem; align-items: center; }
.hero-content { max-width: 760px; }
.hero-eyebrow { color: #2C4A44; font-size: .85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-size: 5rem; line-height: 1.04; margin-bottom: 1.25rem; max-width: 820px; }
.hero-subtitle { font-size: 1.28rem; color: #2f3f3b; margin-bottom: 1.5rem; font-weight: 700; line-height: 1.55; max-width: 660px; }
.hero-description { font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.4rem; color: #333; max-width: 680px; }
.hero-description p:last-child { margin-bottom: 0; }
.hero-actions, .about-actions, .cta-actions, .article-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-actions { justify-content: flex-start; }
.hero-panel { background: #fffdf8; border: 1px solid #e2dacd; border-radius: 8px; padding: 1.4rem; box-shadow: 0 18px 45px rgba(37, 31, 24, .08); }
.hero-profile { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid #e7e1d4; }
.hero-profile-image { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid #FAF8F1; box-shadow: 0 8px 20px rgba(37, 31, 24, .12); }
.hero-profile-label { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; font-weight: 700; line-height: 1.15; margin-bottom: .2rem; }
.hero-profile-role { color: #666; margin-bottom: 0; font-weight: 700; }
.hero-focus-list { display: grid; gap: 1rem; padding: 1.35rem 0; }
.hero-focus-item { display: grid; gap: .25rem; }
.hero-focus-item span { color: #6d665e; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.hero-focus-item strong { color: #121212; font-size: 1rem; line-height: 1.5; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; border-top: 1px solid #e7e1d4; padding-top: 1.25rem; }
.hero-metrics div { background: #2C4A44; color: #FAF8F1; border-radius: 6px; padding: 1rem; min-height: 104px; display: flex; flex-direction: column; justify-content: center; }
.hero-metrics strong { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1; margin-bottom: .45rem; }
.hero-metrics span { color: #f1eee5; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.page-header { padding: 3.5rem 0; text-align: center; border-bottom: 1px solid #EAEAEA; }
.page-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page-subtitle { font-size: 1.2rem; color: #666; font-weight: 400; }
.section { padding: 5rem 0; }
.featured-projects { padding: 5rem 0; }
.latest-blogs { padding: 5rem 0; background: #FAF8F1; border-top: 1px solid #e7e1d4; border-bottom: 1px solid #e7e1d4; }
.section-title { text-align: center; margin-bottom: 3.25rem; font-size: clamp(2rem, 4vw, 2.5rem); text-transform: uppercase; }
.section-footer { text-align: center; margin-top: 3rem; }
.projects-content, .blog-content, .contact-content, .about-content { padding: 3rem 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.project-card { background: #2C4A44; border-radius: 8px; overflow: hidden; border: 1px solid rgba(18, 18, 18, .08); transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(31, 54, 49, .2); }
.project-image { height: 210px; overflow: hidden; background: #203a35; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-content { padding: 1.5rem; }
.project-title { color: #F8F9FA; font-size: 1.25rem; margin-bottom: .65rem; }
.project-description { color: #F8F9FA; margin-bottom: 1rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.project-tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tech-tag { display: inline-flex; align-items: center; min-height: 24px; background-color: #F0F0F0; color: #333; padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.project-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.project-link { display: inline-flex; align-items: center; gap: .25rem; color: #edeef0; font-weight: 700; font-size: .875rem; }
.project-link:hover { color: white; }
.filter-section { margin: 2rem auto 0; text-align: center; max-width: 900px; }
.filter-label { font-weight: 700; margin-bottom: 1rem; color: #666; }
.filter-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-tag { padding: .5rem 1rem; border: 2px solid #dfd6c7; border-radius: 999px; color: #666; background: transparent; font-size: .875rem; font-weight: 700; cursor: pointer; }
.filter-tag:hover, .filter-tag.active { border-color: #2C4A44; color: #2C4A44; background-color: rgba(44, 74, 68, .08); }
.blog-list, .blog-articles { max-width: 840px; margin: 0 auto; }
.blog-item, .blog-article { padding: 2rem 0; border-bottom: 1px solid #EAEAEA; }
.blog-item:last-child, .blog-article:last-child { border-bottom: none; }
.blog-meta, .article-list-meta { margin-bottom: .5rem; color: #666; font-size: .9rem; font-weight: 700; }
.blog-title { margin-bottom: .75rem; }
.blog-title a, .article-list-title a { color: #121212; }
.blog-excerpt, .article-excerpt { color: #666; line-height: 1.7; margin-bottom: 1rem; }
.blog-link, .article-link { color: #121212; font-weight: 700; font-size: .9rem; }
.search-form { margin-top: 2rem; }
.search-container { position: relative; max-width: 430px; margin: 0 auto; }
.search-input { width: 100%; padding: .85rem 1rem; border: 2px solid #dfd6c7; border-radius: 999px; font-size: 1rem; background-color: #fffdf8; transition: border-color .2s ease; }
.search-input:focus { outline: none; border-color: #2C4A44; }
.blog-post, .project-detail-page { padding: 3rem 0; }
.article-header { max-width: 900px; margin: 0 auto 3rem; text-align: center; }
.article-breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: #666; }
.breadcrumb-separator { margin: 0 .5rem; }
.article-title { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: 1.5rem; }
.article-meta { padding: 1rem 0; border-top: 1px solid #EAEAEA; border-bottom: 1px solid #EAEAEA; color: #666; font-size: .9rem; }
.meta-separator { margin: 0 .5rem; }
.article-content { max-width: 980px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { margin-top: 2rem; margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.article-content li { margin: .35rem 0; }
.article-content img { max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: 8px; }
.article-content hr { border: 0; border-top: 1px solid #ded6ca; margin: 2rem 0; }
.article-footer { max-width: 980px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid #EAEAEA; }
.related-posts { padding: 4rem 0; background-color: #2C4A44; margin-top: 3rem; }
.related-title { text-align: center; color: #FAF8F1; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.related-item { background: #FAF8F1; padding: 1.5rem; border-radius: 8px; }
.related-meta { font-size: .875rem; color: #666; margin-bottom: .5rem; }
.related-excerpt { color: #666; font-size: .9rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 4rem; align-items: start; }
.bio-content { font-size: 1.125rem; line-height: 1.8; }
.profile-image { width: min(300px, 80vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto; box-shadow: 0 8px 30px rgba(0, 0, 0, .1); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.about-skills { padding: 4rem 0; background-color: #f5efe4; border-top: 1px solid #e7e1d4; border-bottom: 1px solid #e7e1d4; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.skill-category p { color: #666; }
.about-cta { padding: 4rem 0; text-align: center; }
.cta-content { max-width: 650px; margin: 0 auto; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 4rem; max-width: 1050px; margin: 0 auto; }
.contact-section { margin-bottom: 2rem; }
.contact-section h4 { font-family: Inter, sans-serif; font-size: 1rem; margin-bottom: .5rem; }
.contact-link { font-size: 1.125rem; color: #121212; font-weight: 700; }
.social-links-list { display: flex; flex-direction: column; gap: .75rem; }
.social-link { display: flex; align-items: center; gap: .75rem; color: #666; font-weight: 700; padding: .5rem 0; border-bottom: 1px solid #e7e1d4; text-decoration: none; }
.social-link:hover { color: #121212; text-decoration: none; }
.contact-form-container { background: #fffdf8; padding: 2rem; border: 1px solid #e7e1d4; border-radius: 8px; box-shadow: 0 10px 25px rgba(37, 31, 24, .08); }
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 700; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #ded6ca; border-radius: 4px; font-size: 1rem; background-color: white; transition: border-color .2s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #2C4A44; }
.form-group textarea { resize: vertical; min-height: 140px; }
.hidden-field { display: none; }
.form-success { display: none; margin-bottom: 1rem; padding: 1rem; border-radius: 4px; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-success.visible { display: block; }
.empty-state { text-align: center; padding: 4rem 2rem; color: #666; }
.footer { background-color: #121212; color: white; padding: 2rem 0; margin-top: 4rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-content p { margin: 0; color: #ccc; }
.social-links { display: flex; gap: 1rem; align-items: center; }
.social-links a { color: #ccc; display: inline-flex; transition: color .2s ease; }
.social-links a:hover { color: white; }
.copy-code-btn { position: absolute; top: 10px; right: 10px; background: #2C4A44; color: white; border: 0; padding: .35rem .6rem; border-radius: 4px; font-size: .75rem; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
pre:hover .copy-code-btn { opacity: 1; }
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 2.5rem; }
  .hero-title { font-size: 4.25rem; }
}
@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 70px); padding: 3rem 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: 760px; }
  .hero-title { font-size: 3.65rem; }
  .hero-panel { max-width: 620px; width: 100%; }
  .projects-grid, .related-grid, .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: #fffdf8; width: 100%; text-align: center; transition: left .25s ease; box-shadow: 0 10px 27px rgba(0, 0, 0, .08); padding: 2rem 1rem; gap: 1rem; }
  .nav-menu.active { left: 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 1.5rem 0; align-items: center; }
  .hero-layout { min-height: calc(100svh - 100px); gap: 1.2rem; justify-content: center; }
  .hero-title { font-size: clamp(2.15rem, 9.5vw, 2.75rem); line-height: 1.03; margin-bottom: .9rem; }
  .hero-subtitle { font-size: .98rem; line-height: 1.5; margin-bottom: 1.1rem; }
  .hero-description { font-size: .96rem; line-height: 1.62; margin-bottom: 1.4rem; }
  .hero-description p:nth-child(2) { display: none; }
  .hero-actions, .about-actions, .cta-actions, .article-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .featured-projects, .latest-blogs, .section { padding: 3.5rem 0; }
  .section-title { margin-bottom: 2rem; }
  .projects-grid, .related-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-image { height: 180px; }
  .blog-item, .blog-article { padding: 1.5rem 0; }
  .footer-content { flex-direction: column; text-align: center; }
  .article-content { font-size: 1rem; line-height: 1.7; }
  .article-content pre { font-size: .9rem; white-space: pre-wrap; word-break: break-word; overflow-x: hidden; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 1.25rem 0; }
  .hero-eyebrow { font-size: .72rem; margin-bottom: .65rem; }
  .hero-panel { padding: .9rem; border-radius: 6px; }
  .hero-profile { align-items: center; padding-bottom: .8rem; }
  .hero-profile-image { width: 48px; height: 48px; }
  .hero-profile-label { font-size: 1.12rem; }
  .hero-profile-role { font-size: .85rem; }
  .hero-focus-list { display: none; }
  .hero-metrics { gap: .65rem; }
  .hero-metrics div { min-height: 70px; padding: .75rem; }
  .hero-metrics strong { font-size: 1.55rem; }
  .hero-metrics span { font-size: .72rem; }
  .section-title { font-size: 1.8rem; }
  .project-card { margin: 0 -.25rem; }
  .project-content { padding: 1.2rem; }
  .contact-form-container { padding: 1.25rem; }
  .meta-separator { display: none; }
  .article-meta span, .article-meta time { display: block; margin: .25rem 0; }
}
