@font-face {
  font-family: "Hack";
  src: url("../fonts/hack/hack-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: optional;
}

@font-face {
  font-family: "Hack";
  src: url("../fonts/hack/hack-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: optional;
}

code,
pre,
kbd,
samp,
code[class*="language-"],
pre[class*="language-"] {
  font-family: "Hack", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-feature-settings: normal;
  font-variant-ligatures: none;
}

body {
  color: #babac2;
}
  
h1 {
    margin-bottom: 0;
}
main img.circle {
    margin-top: 15px;
}

/* Center hero images on showcase single pages */
.post-cover {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 2rem auto;
}

.post-cover picture,
.post-cover img {
    display: block;
}

.post-cover img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    height: 250px;
    object-fit: cover;
}
.subtitle {
    margin-top:0;
}

/* ===== CTA BUTTON ===== */

.cta-button {
  margin: 2rem 0;
}

.cta-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #232425;
  background: #2babff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(43, 171, 255, 0.3);
}

.cta-button a:hover {
  background: #199cf1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43, 171, 255, 0.45);
  text-decoration: none;
  color: #232425;
}

.cta-button a:hover .cta-arrow {
  transform: translateX(3px);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
/* Custom menu icon styling */
.menu-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  
  /* Default styling for SVG icons */
  filter: brightness(0) saturate(100%);
  transition: all 0.2s ease;
}

/* Theme-aware coloring */
[data-theme="dark"] .menu-icon {
  filter: brightness(0) saturate(100%) invert(1);
}

[data-theme="light"] .menu-icon {
  filter: brightness(0) saturate(100%);
}

/* System preference support */
@media (prefers-color-scheme: dark) {
  .menu-icon {
    filter: brightness(0) saturate(100%) invert(1);
  }
}

@media (prefers-color-scheme: light) {
  .menu-icon {
    filter: brightness(0) saturate(100%);
  }
}

/* Menu link styling to accommodate icons */
.menu a {
  display: flex;
  align-items: center;
}

/* Hover effects */
.menu a:hover .menu-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.menu a:hover {
    text-decoration: none;
    color: #ffffff;
}

/* Responsive adjustments */
@media screen and (max-width: 684px) {
  .menu-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.375rem;
  }
}

/* ===== SOCIAL ===== */

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-icons__link {
  display: inline-flex;
  align-items: center;
}

.social-icons__link svg {
  display: block;
}

.j98fjefj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-basis: 100%;
  white-space: nowrap;
}

.j98fjefj > span {
  display: none;
}

.contact-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.85rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(186, 186, 194, 0.14);
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.55;
  opacity: 0.72;
  color: #8f9499;
  background: rgba(35, 36, 37, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* .contact-meta::before { */
  /* content: "sec"; */
  /* display: inline-block; */
  /* padding-right: 0.2rem; */
  /* color: #6c7278; */
  /* font-size: 0.72rem; */
  /* font-weight: 700; */
  /* letter-spacing: 0.08em; */
  /* text-transform: uppercase; */
/* } */

.contact-meta a {
  text-decoration: none;
  color: #a6adb5;
}

.contact-meta a:hover {
  color: #d8dee5;
  text-decoration: none;
}

.contact-meta span[aria-hidden="true"] {
  color: #62686f;
}

.contact-meta:hover {
  opacity: 0.96;
  border-color: rgba(186, 186, 194, 0.22);
}

.contact-meta .contact-meta__label {
  white-space: nowrap;
  color: #767d85;
}

.contact-meta .fingerprint {
  display: inline-block;
  max-width: 100%;
  border: 0;
  border-radius: 4px;
  letter-spacing: 0.04em;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.05rem 0.45rem;
  color: #bcc3cb;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* ===== PROJECT CARDS STYLING ===== */

.projects {
  margin: 2rem 0;
  padding: 0 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--light-background-secondary, #ffffff);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--light-color-secondary, #e0e0e0);
  position: relative;
  overflow: hidden;
  height: fit-content;
}
.project-grid:has(.project-card:only-child) .project-card {
  max-width: 600px;
  margin: 0 auto;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2babff, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

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

.project-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--light-color, #333333);
  line-height: 1.3;
  background: linear-gradient(135deg, #2babff, #6366f1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.project-card p {
  color: var(--light-color-secondary, #666666);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  text-align: left;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-card .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  /* border: 1px solid #7dd3fc; */
  transition: all 0.2s ease;
  cursor: pointer;
}

.project-card .tag:hover {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #ffffff;
  transform: scale(1.05);
}

.project-card .links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-card .links a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 80px;
  justify-content: center;
}

.project-card .links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.project-card .links a:hover::before {
  left: 100%;
}

/* GitHub button styling */
.project-card .links a[href*="github"] {
  background: linear-gradient(135deg, #333333, #24292e);
  color: #ffffff;
  /* border: 2px solid transparent; */
  border: 1px solid #434343;
}

.project-card .links a[href*="github"]:hover {
  background: linear-gradient(135deg, #24292e, #1a1e22);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

/* Demo button styling */
.project-card .links a[href*="demo"] {
  /* background: linear-gradient(135deg, #10b981, #059669); */
      background: linear-gradient(135deg, #7110b9, #380058);
  color: #ffffff;
  border: 2px solid transparent;
}

.project-card .links a[href*="demo"]:hover {
  /* background: linear-gradient(135deg, #059669, #047857); */
      background: linear-gradient(135deg, #7110b9, #510583);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(117, 16, 185, 0.4);
}

/* Website/Details button styling */
.project-card .links a:not([href*="github"]):not([href*="demo"]) {
  /* background: linear-gradient(135deg, #2babff, #6366f1); */
background-image: linear-gradient(135deg, #199cf1, #2e2f90);

  color: #ffffff;
  /* border: 2px solid transparent; */
border-color: #173f62;
}

.project-card .links a:not([href*="github"]):not([href*="demo"]):hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(135, 43, 255, 0.4);
}

/* Dark theme support */
[data-theme="dark"] .project-card {
  background: var(--dark-background-secondary, #2d2d2d);
  border-color: var(--dark-color-secondary, #4a4a4a);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .project-card h3 {
  color: var(--dark-color, #ffffff);
}

[data-theme="dark"] .project-card p {
  color: var(--dark-color-secondary, #cccccc);
}

[data-theme="dark"] .project-card .tag {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #7dd3fc;
  border-color: #475569;
}

[data-theme="dark"] .project-card .tag:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
}

/* System preference support */
@media (prefers-color-scheme: dark) {
  .project-card {
    background: var(--dark-background-secondary, #2d2d2d);
    border-color: var(--dark-color-secondary, #4a4a4a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .project-card h3 {
    color: var(--dark-color, #ffffff);
  }

  .project-card p {
    color: var(--dark-color-secondary, #cccccc);
  }

  .project-card .tag {
    background: linear-gradient(135deg, #333333, #24292e);
    color: #c2c2c2;
    border-color: #444444 !important;
    border: 1px solid;
  }

  
  .project-card .tag:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
  }
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-card .links {
    flex-direction: column;
  }

  .project-card .links a {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .projects {
    padding: 0 0.5rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    font-size: 1.25rem;
  }

  .project-card img {
    height: 150px;
  }
}

/* ===== SHOWCASE OVERVIEW SHORTCODE ===== */

.showcase-overview {
  margin: 2rem 0;
}

.showcase-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.showcase-overview__card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 171, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.showcase-overview__card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dd3fc;
}

.showcase-overview__copy,
.showcase-overview__copy p {
  margin: 0;
  color: inherit;
  line-height: 1.65;
  text-align: left;
}

.showcase-overview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.showcase-overview__badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.showcase-overview__badge {
  display: block;
  height: 24px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.showcase-overview__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(43, 171, 255, 0.14), rgba(99, 102, 241, 0.14));
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 600;
}

.showcase-overview__media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.35);
}

.showcase-overview__media img {
  display: block;
  width: 100%;
  height: auto;
}

[data-theme="light"] .showcase-overview__card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(43, 171, 255, 0.14);
}

[data-theme="light"] .showcase-overview__title,
[data-theme="light"] .showcase-overview__copy,
[data-theme="light"] .showcase-overview__copy p {
  color: #0f172a;
}

[data-theme="light"] .showcase-overview__badge {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .showcase-overview__tag {
  color: #075985;
  background: linear-gradient(135deg, rgba(43, 171, 255, 0.12), rgba(99, 102, 241, 0.08));
}

[data-theme="light"] .showcase-overview__media {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(43, 171, 255, 0.14);
}

@media (prefers-color-scheme: light) {
  .showcase-overview {
    background:
      radial-gradient(circle at top right, rgba(99, 102, 241, 0.10), transparent 30%),
      linear-gradient(180deg, rgba(43, 171, 255, 0.07), rgba(43, 171, 255, 0.03));
    border-color: rgba(43, 171, 255, 0.16);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }

  .showcase-overview__card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(43, 171, 255, 0.14);
  }

  .showcase-overview__title,
  .showcase-overview__copy,
  .showcase-overview__copy p {
    color: #0f172a;
  }

  .showcase-overview__badge {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  }

  .showcase-overview__tag {
    color: #075985;
    background: linear-gradient(135deg, rgba(43, 171, 255, 0.12), rgba(99, 102, 241, 0.08));
  }

  .showcase-overview__media {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(43, 171, 255, 0.14);
  }
}

[data-theme="dark"] .showcase-overview__copy,
[data-theme="dark"] .showcase-overview__copy p {
  color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  .showcase-overview__copy,
  .showcase-overview__copy p {
    color: #e5e7eb;
  }
}

@media screen and (max-width: 768px) {
  .showcase-overview__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SHOWCASE LAYOUT STYLING ===== */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.showcase-card {
  background: var(--light-background-secondary, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--light-color-secondary, #e0e0e0);
  height: fit-content;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.showcase-card .card-header {
  padding: 1.5rem 1.5rem 1rem;
}

.showcase-card .card-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.showcase-card .card-header h2 a {
  color: var(--light-color, #333333);
  text-decoration: none;
  background: linear-gradient(135deg, #2babff, #6366f1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.showcase-card .card-header h2 a:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
}

.showcase-card .project-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--light-color-secondary, #666666);
}

.showcase-card .status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  text-transform: capitalize;
  border-radius: 5px;
}

.showcase-card .status-released {
  background: linear-gradient(135deg, #00b83f, #006323);
  color: #fff;
  border: 1px solid #327d4d;
}

.showcase-card .status-development {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.showcase-card .status-beta {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  border: 1px solid #60a5fa;
}

.showcase-card .card-image {
  margin: 0;
  overflow: hidden;
}

.showcase-card .card-image a,
.showcase-card .card-image picture,
.showcase-card .card-image img {
  display: block;
}

.showcase-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

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

.showcase-card .card-content {
  padding: 1rem 1.5rem;
}

.showcase-card .summary {
  color: var(--light-color-secondary, #666666);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.showcase-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.showcase-card .tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #7dd3fc;
  transition: all 0.2s ease;
}

.showcase-card .tech-tag:hover {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #ffffff;
  transform: scale(1.05);
}

.showcase-card .card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.showcase-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #4141419c;
}

.showcase-card .demo-link {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.showcase-card .demo-link:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.showcase-card .github-link {
  background: linear-gradient(135deg, #333333, #24292e);
  color: #ffffff;
}

.showcase-card .github-link:hover {
  background: linear-gradient(135deg, #24292e, #1a1e22);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(36, 41, 46, 0.4);
}

.showcase-card .read-more {
  background: linear-gradient(135deg, #2babff, #6366f1);
  color: #ffffff;
}

.showcase-card .read-more:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(43, 171, 255, 0.4);
}

/* Project image styling for single pages */
.project-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.project-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive image handling */
.responsive-image {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.responsive-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Error states */
.project-image-error,
.missing-image,
.error-image {
  padding: 2rem;
  background: #fee2e2;
  border: 2px dashed #fca5a5;
  border-radius: 8px;
  text-align: center;
  color: #dc2626;
  font-style: italic;
}

/* Dark theme support for showcase */
[data-theme="dark"] .showcase-card {
  background: var(--dark-background-secondary, #2d2d2d);
  border-color: var(--dark-color-secondary, #4a4a4a);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .showcase-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .showcase-card .card-header h2 a {
  color: var(--dark-color, #ffffff);
}

[data-theme="dark"] .showcase-card .project-meta,
[data-theme="dark"] .showcase-card .summary {
  color: var(--dark-color-secondary, #cccccc);
}

[data-theme="dark"] .showcase-card .tech-tag {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #7dd3fc;
  border-color: #475569;
}

[data-theme="dark"] .showcase-card .tech-tag:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
}

[data-theme="dark"] .project-image-error,
[data-theme="dark"] .missing-image,
[data-theme="dark"] .error-image {
  background: #451a1a;
  border-color: #991b1b;
  color: #fca5a5;
}

/* System preference support */
@media (prefers-color-scheme: dark) {
  .showcase-card {
    background: var(--dark-background-secondary, #2d2d2d);
    border-color: var(--dark-color-secondary, #4a4a4a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .showcase-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .showcase-card .card-header h2 a {
    color: var(--dark-color, #ffffff);
  }

  .showcase-card .project-meta,
  .showcase-card .summary {
    color: var(--dark-color-secondary, #cccccc);
  }

  .showcase-card .tech-tag {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #7dd3fc;
    border-color: #475569;
  }

  .showcase-card .tech-tag:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
  }

  .project-image-error,
  .missing-image,
  .error-image {
    background: #451a1a;
    border-color: #991b1b;
    color: #fca5a5;
  }
}

/* ===== IMAGE GALLERY STYLING ===== */

.image-gallery {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
}

/* Gallery column configurations */
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-background-secondary, #ffffff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--light-color-secondary, #e0e0e0);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-image {
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.08);
}

.gallery-caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--light-color-secondary, #666666);
  line-height: 1.4;
  background: var(--light-background-secondary, #ffffff);
  border-top: 1px solid var(--light-color-secondary, #e0e0e0);
}

.gallery-caption p {
  margin: 0;
}

/* Gallery error states */
.gallery-error {
  padding: 2rem;
  background: #fee2e2;
  border: 2px dashed #fca5a5;
  border-radius: 8px;
  text-align: center;
  color: #dc2626;
  font-style: italic;
  grid-column: 1 / -1;
}

.gallery-item.gallery-error {
  padding: 1rem;
  font-size: 0.875rem;
}

/* Lightbox support indicators */
.gallery-link::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-item:hover .gallery-link::before {
  opacity: 1;
}

/* Dark theme support for gallery */
[data-theme="dark"] .gallery-item {
  background: var(--dark-background-secondary, #2d2d2d);
  border-color: var(--dark-color-secondary, #4a4a4a);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .gallery-caption {
  color: var(--dark-color-secondary, #cccccc);
  background: var(--dark-background-secondary, #2d2d2d);
  border-color: var(--dark-color-secondary, #4a4a4a);
}

[data-theme="dark"] .gallery-error,
[data-theme="dark"] .gallery-item.gallery-error {
  background: #451a1a;
  border-color: #991b1b;
  color: #fca5a5;
}

/* System preference support for gallery */
@media (prefers-color-scheme: dark) {
  .gallery-item {
    background: var(--dark-background-secondary, #2d2d2d);
    border-color: var(--dark-color-secondary, #4a4a4a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  }

  .gallery-caption {
    color: var(--dark-color-secondary, #cccccc);
    background: var(--dark-background-secondary, #2d2d2d);
    border-color: var(--dark-color-secondary, #4a4a4a);
  }

  .gallery-error,
  .gallery-item.gallery-error {
    background: #451a1a;
    border-color: #991b1b;
    color: #fca5a5;
  }
}

/* ===== ENHANCED RESPONSIVE IMAGE STYLING ===== */

.responsive-image {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.responsive-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.responsive-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Aspect ratio classes for cropped images */
.aspect-4-3 .responsive-image img,
.aspect-4-3 .gallery-image img,
.aspect-4-3 .project-image img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.aspect-16-9 .responsive-image img,
.aspect-16-9 .gallery-image img,
.aspect-16-9 .project-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.aspect-1-1 .responsive-image img,
.aspect-1-1 .gallery-image img,
.aspect-1-1 .project-image img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.aspect-3-2 .responsive-image img,
.aspect-3-2 .gallery-image img,
.aspect-3-2 .project-image img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Image loading states */
.responsive-image img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.responsive-image img[loading="lazy"].loaded {
  opacity: 1;
}

/* Mobile responsive for gallery */
@media screen and (max-width: 768px) {
  .image-gallery.gallery-columns-3,
  .image-gallery.gallery-columns-4,
  .image-gallery.gallery-columns-5,
  .image-gallery.gallery-columns-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-image img {
    height: 150px;
  }

  .gallery-caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .image-gallery.gallery-columns-2,
  .image-gallery.gallery-columns-3,
  .image-gallery.gallery-columns-4,
  .image-gallery.gallery-columns-5,
  .image-gallery.gallery-columns-6 {
    grid-template-columns: 1fr;
  }

  .gallery-image img {
    height: 180px;
  }

  .image-gallery {
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
}

/* Mobile responsive for showcase */
@media screen and (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .showcase-card .card-footer {
    flex-direction: column;
  }

  .showcase-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== MODERN POSTS LIST STYLING ===== */

.recent-posts {
  margin: 3rem 0;
  padding: 0;
}

.recent-posts h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #2babff, #6366f1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modern-post-item {
  display: block;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(43, 171, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.modern-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2babff, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-post-item:hover {
  background: rgba(43, 171, 255, 0.05);
  border-color: rgba(43, 171, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 171, 255, 0.15);
}

.modern-post-item:hover::before {
  opacity: 1;
}

.modern-post-link {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;

    box-shadow: var(--darkreader-background-0000004d, rgba(0, 0, 0, 0.3)) 0px 4px 20px;
    border-color: var(--darkreader-border--dark-color-secondary, var(--darkreader-border-4a4a4a, #746b5f));

}

.modern-post-link:hover {
  text-decoration: none;
}

.post-content-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* margin-bottom: 0.75rem; */
  flex-wrap: wrap;
  text-align: left;
}

.post-date-badge {
  display: inline-flex;
  align-items: center;
  /* padding: 0.5rem 0.75rem; */
  /* background: linear-gradient(135deg, #2babff, #1e90ff); */
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* box-shadow: 0 2px 8px rgba(43, 171, 255, 0.3); */
  min-width: 80px;
  justify-content: center;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.post-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  flex: 1;
  min-width: 200px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* margin-top: 0.5rem; */
}

.modern-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, rgba(43, 171, 255, 0.1), rgba(99, 102, 241, 0.1));
  color: #7dd3fc;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
  border: 1px solid rgba(43, 171, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(43, 171, 255, 0.1);
}

.modern-tag:hover {
  background: linear-gradient(135deg, rgba(43, 171, 255, 0.2), rgba(99, 102, 241, 0.2));
  color: #ffffff;
  border-color: rgba(43, 171, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 171, 255, 0.2);
}

.view-all-posts {
  margin-top: 2rem;
  text-align: center;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(43, 171, 255, 0.1), rgba(99, 102, 241, 0.1));
  color: #2babff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(43, 171, 255, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.view-all-link:hover {
  background: linear-gradient(135deg, #2babff, #6366f1);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 171, 255, 0.3);
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .modern-post-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(43, 171, 255, 0.15);
  }
  
  .modern-post-item:hover {
    background: rgba(43, 171, 255, 0.08);
    border-color: rgba(43, 171, 255, 0.4);
  }
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
  .recent-posts h2 {
    color: #1a1a1a;
  }
  
  .post-title-modern {
    color: #1a1a1a;
    text-shadow: none;
  }
  
  .modern-post-item {
    background: rgba(43, 171, 255, 0.03);
    border-color: rgba(43, 171, 255, 0.2);
  }
  
  .modern-post-item:hover {
    background: rgba(43, 171, 255, 0.08);
  }
  
  .modern-tag {
    color: #0369a1;
    background: linear-gradient(135deg, rgba(43, 171, 255, 0.15), rgba(99, 102, 241, 0.15));
  }
  
  .modern-tag:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2babff, #6366f1);
  }
}

/* Responsive design for modern posts */
@media screen and (max-width: 768px) {
  .post-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .post-date-badge {
    align-self: flex-start;
    min-width: auto;
  }
  
  .post-title-modern {
    font-size: 1.1rem;
    min-width: auto;
  }
  
  .modern-post-link {
    padding: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .recent-posts {
    margin: 2rem 0;
  }
  
  .recent-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .post-title-modern {
    font-size: 1rem;
  }
  
  .post-date-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .modern-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}


/* Code block styling override */
pre[class*="language-"] {
  border-radius: .5em;
  border: 0.1em solid #2c2c2c;
  box-shadow: 1px 1px .5em black inset;
  margin: .5em 0;
  overflow: auto;
  padding: 1em;
  background-color: #171717 !important;
  font-size: 0.9em;
}

/* ===== FOOTER LEGAL LINKS ===== */

.footer__inner--legal {
  margin-top: 0.35rem;
}

.footer__legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.76rem;
  opacity: 0.62;
}

.footer__legal a {
  text-decoration: none;
}

.footer__legal a:hover {
  opacity: 0.95;
  text-decoration: underline;
}

.footer__legal > *:not(:last-child)::after {
  padding: 0 0 0 0.5rem;
}

@media screen and (max-width: 684px) {
  .footer__legal {
    font-size: 0.72rem;
    gap: 0.25rem;
  }
}


/* Syntax highligthing */
.token.string {
  color: #ffd847;
}

.token.builtin {
  color: #1fd0e4;
}

.token.shebang {
  color: #e8e8e1;
}

.token.function {
  color: #80f900;  
}

.token.keyword {
  color: #ea3e4c;
}

.token.variable {
  color: #e272cd;
}

.token.tag, .token.boolean, .token.number, .token.deleted {
  color: #da6fc6;
}

.token.attr-name, .token.attr-value, .token.string, .token.char, .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string, .token.variable, .token.inserted {
  color: #f39660;
}

.post-info {
  margin-top: 0; 
}
