/* Dark theme — black/dark bg, white text, orange accent #ef3924 */
:root {
  --bg: #000000;
  --bg-soft: #1a1a1a;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --accent: #ef3924;
  --accent-glow: #f05a4a;
  --accent-pink: #ef3924;
  --border: rgba(239, 57, 36, 0.25);
  --card-bg: #1a1a1a;
  --image-frame: rgba(239, 57, 36, 0.1);
}

/* Blog page — dark cards */
body.page-blog {
  --bg-soft: #1a1a1a;
  --border: rgba(239, 57, 36, 0.25);
  --card-bg: #1a1a1a;
}

body.page-blog .site-header {
  background: rgba(0, 0, 0, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Subtle decorative accent line */
body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Name in top-left: white (nav links stay muted / accent on hover) */
.nav .nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.nav .nav-brand:hover {
  color: var(--text);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(239, 57, 36, 0.12);
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.hero-photo-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 280px;
  text-align: center;
}

.hero-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Quote */
.quote {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(239, 57, 36, 0.03) 50%, transparent 100%);
}

.quote-block {
  margin: 0;
}

.quote-text {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.quote-attribution {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Sections common */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--accent-pink);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0 0 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(239, 57, 36, 0.2);
  transform: translateY(-3px);
}

.project-image-wrap {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-tech {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-name {
  margin: 0 1rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.project-desc {
  margin: 0 1rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.planned {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.planned-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.planned-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.planned-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.planned-item {
  margin-bottom: 0.35rem;
}

.planned-item strong {
  color: var(--text);
}

/* Skills – 5 per row, reference style: light border, more black space between */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.25rem;
  width: 100%;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.skill-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(239, 57, 36, 0.25);
  transform: translateY(-3px);
}

/* Square icon area – keeps proportions (e.g. Python not squished), compact size */
.skill-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.skill-icon-wrap .skill-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.skill-icon-wrap .skill-icon {
  font-size: 1.5rem;
  color: var(--text);
}

.skill-name {
  font-size: 0.85rem;
  text-align: center;
  font-weight: normal;
  color: var(--text-muted);
  text-transform: lowercase;
  transition: color 0.2s ease;
}

.skill-item:hover .skill-name {
  color: var(--text);
}

/* About */
.about-p {
  margin: 0 0 1rem;
  max-width: 60ch;
  color: var(--text-muted);
}

.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.exp-company {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.exp-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-bullets {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exp-bullets li {
  margin-bottom: 0.25rem;
}

/* Certifications */
.certifications-summary {
  margin: 0 0 1.5rem;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cert-item {
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.cert-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(239, 57, 36, 0.25);
  transform: translateY(-3px);
}

.cert-name {
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cert-item:hover .cert-name {
  color: var(--accent);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.site-footer-columns .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .site-footer-columns .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer columns as distinct blocks (stronger on blog page) */
.footer-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

body.page-blog .footer-col {
  background: var(--card-bg);
  border-color: var(--border);
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
  flex-shrink: 0;
}

.footer-about-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-github {
  font-size: 0.9rem;
}

.footer-cat-list,
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cat-list li,
.footer-links-list li {
  margin-bottom: 0.35rem;
}

.footer-cat-list a,
.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-cat-list a:hover,
.footer-links-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Blog index — sidebar + content, blue blocks */
.blog-index {
  padding: 2rem 1.5rem 3rem;
  min-height: 60vh;
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-sidebar {
  position: sticky;
  top: 5rem;
}

.blog-sidebar-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.blog-sidebar-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
}

.blog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-sidebar-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-radius: 4px;
  padding-left: 0.5rem;
}

.blog-sidebar-link:hover,
.blog-sidebar-link.active {
  color: var(--accent);
  background: rgba(239, 57, 36, 0.12);
}

.blog-content {
  min-width: 0;
}

.blog-index-title {
  font-size: 1.5rem;
  color: var(--accent-pink);
  margin: 0 0 1.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  margin: 0;
}

.post-card-link {
  display: block;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.post-card-image-wrap {
  aspect-ratio: 16/9;
  background: var(--image-frame);
  padding: 0.5rem;
  margin: 0.5rem 0.5rem 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--bg-soft);
  border-radius: 4px;
}

.post-card-body {
  padding: 1.25rem;
}

.post-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--accent-pink);
}

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

.post-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.post-card-cta {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.post-card-link:hover .post-card-cta {
  border-color: var(--accent);
  color: var(--accent);
}

.post-empty {
  color: var(--text-muted);
}

/* Blog post */
/* Slightly wider for less narrow feel; still a readable line length */
.blog-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-article {
  padding-bottom: 2rem;
}

.blog-header {
  margin-bottom: 1.5rem;
}

.blog-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--accent-pink);
}

.blog-summary {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta-by a,
.blog-cat-tag {
  color: var(--accent);
}

.blog-cat-tag {
  text-decoration: underline;
}

.blog-hero-image-wrap {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background: var(--image-frame);
  border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.blog-body {
  color: var(--text-muted);
}

.blog-body strong {
  font-weight: 700;
  color: var(--text);
}

.blog-body h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
  font-weight: 700;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 4px solid var(--accent);
  background: rgba(239, 57, 36, 0.15);
}
.blog-body h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}
.blog-body h4 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.blog-body a { color: var(--accent); text-decoration: underline; }
.blog-body a:hover { color: var(--accent-glow); }
.blog-body blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text-muted); }

.blog-body .blog-keywords { color: var(--accent); font-weight: normal; }

.blog-body .client-testimonial blockquote,
.blog-body .client-testimonial blockquote p,
.blog-body .client-testimonial blockquote cite { color: var(--accent); font-weight: normal; text-decoration: none; }
.blog-body .client-testimonial blockquote strong { color: var(--accent); font-weight: normal; }
.blog-body .client-testimonial cite { font-style: normal; display: block; margin-top: 0.5rem; }

.blog-footer {
  margin-top: 2rem;
}

.blog-share {
  margin-bottom: 1.5rem;
}

.blog-share-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.blog-share-link {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.blog-comments-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.giscus-placeholder {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-about-author {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.blog-about-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
}

.blog-about-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.blog-about-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.blog-about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-about-text p {
  margin: 0 0 0.5rem;
}

.blog-about-text a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}
