/* --- Global Reset & Base Variables --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #f3f4f6;
  --text-color: #222222;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --hover-accent: #2563eb;
  --font-heading: "Slackey", cursive;
  --font-body: "Quicksand", sans-serif;
  --font-tech: "Prosto One", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mt-0 {
  margin-top: 0 !important;
}

.site-wrapper {
  flex: 1;
  width: 100%;
}

/* Container styling */
.exp-card {
  background-color: #0a0a0a; /* Dark background */
  border: 1px solid #1f2937;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Eyebrow Label: The small, uppercase detail */
.eyebrow-label {
  color: #6b7280; /* Muted gray */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Title: Larger and white for high contrast */
.card-title {
  color: #ffffff;
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
}

/* Body text: Slightly lighter gray for readability */
.card-description {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
/* --- SLIDESHOW FIX --- */

.card-media-preview {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, #1f2937);
  background-color: #000000;
}

.slideshow-container {
  width: 100%;
  position: relative;
}

/* Hide inputs */
input[name="slide-ctrl"] {
  display: none !important;
}

/* Slides default state */
.slide {
  display: none;
  width: 100%;
  position: relative;
}

/* Image formatting */
.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Display active slide */
#slide-1:checked ~ .slide-1-content,
#slide-2:checked ~ .slide-2-content,
#slide-3:checked ~ .slide-3-content,
#slide-4:checked ~ .slide-4-content {
  display: block;
}

/* Captions (positioned below the image) */
.blog-image-caption {
  width: 100%;
  padding: 10px 14px;
  background-color: #0d0d0d;
  color: #a1a1aa;
  font-size: 13px;

  text-align: left;
}

/* Arrow controls */
.arrow label {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  font-size: 20px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.arrow label:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.prev-arrow label { left: 12px; }
.next-arrow label { right: 12px; }

/* Dots Navigation */
.dots-nav-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 12px;
}

.dot-label {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Active dot highlights */
#slide-1:checked ~ .dots-nav-wrapper label[for="slide-1"],
#slide-2:checked ~ .dots-nav-wrapper label[for="slide-2"],
#slide-3:checked ~ .dots-nav-wrapper label[for="slide-3"],
#slide-4:checked ~ .dots-nav-wrapper label[for="slide-4"] {
  background-color: #3b82f6;
}

/* --- Inline Style Replacements & Layout Helpers --- */
.mb-sm {
  margin-bottom: 0.4rem !important;
}
.mb-md {
  margin-bottom: 0.75rem !important;
}
.mt-sm {
  margin-top: 0.5rem !important;
}
.mt-md {
  margin-top: 1rem !important;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-sm {
  gap: 0.25rem;
}
.justify-end {
  justify-content: flex-end;
}
.text-center {
  text-align: center;
}

/* --- Header & Nav --- */
.main-header {
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem 1.5rem;
  text-align: center;
}

.header-brand {
  display: block;
}
/* Base Layout Utility Classes (if you don't have them) */
.flex-row {
  display: flex;
  flex-direction: row;
}
.gap-sm {
  gap: 24px; /* Generous spacing for the dashboard layout */
}
.mb-md {
  margin-bottom: 24px;
}
.mt-md {
  margin-top: 32px;
}
.justify-end {
  display: flex;
  justify-content: flex-end;
}

/* Card Container */
.exp-card {
  background-color: #0b0b0b; /* Deep black background */
  border-radius: 12px;
  padding: 40px; /* Generous breathing room */
  max-width: 650px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #c5c5c5; /* Soft gray for body text */
}

/* The Top Kicker / Eyebrow */
.eyebrow-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em; /* Spaced out for breathing room */
  color: #666666; /* Muted gray so it doesn't fight the title */
  margin-bottom: 12px;
}

/* Main Title */
.card-title {
  font-size: 36px; /* Large, high-contrast typography */
  font-weight: 700;
  color: #ffffff; /* Stark white */
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
}

.dash-tag {
  display: flex;
  flex-direction: column;
}

.dash-val {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.dash-lbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #555555;
  margin-top: 4px;
}


/* Bullet Points */
.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #1a1a1a; /* Subtle divider line */
  padding-top: 24px;
}

.exp-list li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
}

/* Clean custom bullet dot */
.exp-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #444444;
}

/* Action Button / Link */
.ref-link {
  display: inline-flex;
  align-items: center;
  background-color: #161616;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px; /* Pill shape */
  border: 1px solid #262626;
  transition: background-color 0.2s, border-color 0.2s;
}

.ref-link:hover {
  background-color: #222222;
  border-color: #444444;
}

h1.site-title,
h1.site-title a {
  font-family: "Karla", sans-serif !important;
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: #1361d6 !important;
  text-decoration: none !important;
  margin-bottom: 0.5rem;
}

.site-tagline {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 500;
}

.header-nav {
  display: block;
  margin-top: 1.25rem;
}

.nav-link {
  display: inline-block;
  margin: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link.style-active {
  color: var(--text-color) !important;
  border-bottom: 2px solid var(--text-color);
  font-weight: 700;
}

/* --- Content Containers --- */
/* --- Content Containers --- */
.content-container {
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  
  /* ADD THESE THREE LINES: Force consistent vertical spacing between all child cards */
  display: flex;
  flex-direction: column;
  gap: 24px; 
}

.blog-content-wrapper {
  max-width: 900px !important;
}

/* --- Core Blog Post Article Architecture --- */
.blog-post {
  display: block;
  width: 100%;
}

.post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 2rem;
}

.post-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #374151;
}

.post-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ol,
.post-content ul {
  margin-bottom: 1.5rem;
}

.post-content li {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: #374151;
  margin-left: 2rem;su
}

.post-content code {
  font-family: monospace;
  background-color: #e5e7eb;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.95em;
}

.code-inline {
  font-family: monospace;
  color: #d88362; /* Gold/Tan text color */
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 1.25rem;
}

.post-content pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: 0.9rem;
}

/* --- Full Width Media Layout Helper --- */
.full-width-media {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 2rem;
}

.full-width-media img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-image-wrapper {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-image-wrapper img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-image-caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Games & Blog Grids --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.game-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-thumbnail {
  width: 100%;
  height: 180px;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-exp-heading {
  font-family: var(--font-tech);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #2563eb; /* Your preferred blue */
  margin-bottom: 0.25rem; /* The tighter spacing you wanted */
  font-weight: 700;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumbnail span {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
}

/* --- Tech Tags Systems --- */
.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  background-color: #e5e7eb;
  color: #4b5563;
}

.tech-tag.ue5 {
  background-color: #000000;
  color: #ffffff;
}
.tech-tag.cpp {
  background-color: #00599c;
  color: #ffffff;
}
.tech-tag.unity {
  background-color: #222c37;
  color: #ffffff;
}
.tech-tag.csharp {
  background-color: #178600;
  color: #ffffff;
}
.tech-tag.paperzd {
  background-color: #db2777;
  color: #ffffff;
}
.tech-tag.engine {
  background-color: #4b5563;
  color: #ffffff;
}
.tech-tag.language {
  background-color: #9ca3af;
  color: #ffffff;
}

.tech-tag.uworld {
  background-color: #5b21b6; /* Deep engine purple */
  color: #ffffff;
}

/* --- Experience View Layouts --- */
.skills-container {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.core-proficiency-heading {
  font-family: var(--font-tech);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-bottom: 1.5em;
  font-weight: 700; /* Added bold */
}

.tech-tags-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.exp-card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.exp-card {
  display: flex;
  flex-direction: row;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  align-items: stretch;

  /* Centering and sizing fixes */
  width: fit-content;    /* Shrinks the box width to perfectly match the text width */
  margin: 0 auto;
}

.exp-card-thumbnail {
  width: 30%;
  min-width: 220px;
  padding: 2rem;
  background-color: #fafafa;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
}

.exp-card-info {
  flex-grow: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.entry-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 700; /* Added bold */
}

.exp-list {
  padding-left: 1.25rem;
  color: #374151;
  font-family: var(--font-body); /* Uses Quicksand */
}

.exp-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.ref-link {
  border-bottom: 1px dashed #2563eb;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

/* --- Resume View Architecture --- */
/* --- SECTION CARD CONTAINERS --- */
.resume-section {
  background: #ffffff; /* Or your dark theme background variable */
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px; /* Space between Card 1, Card 2, and Card 3 */
}

/* Remove bottom margin from the last card */
.resume-section:last-of-type {
  margin-bottom: 0;
}

/* --- SUB-SECTION SPACING INSIDE CARD 3 --- */
.mb-lg {
  margin-bottom: 28px; /* Clean gap between Resume PDF, Skills, and Software Proficiency */
}

/* --- DIVIDER LINES --- */
.card-divider {
  width: 100%;
  height: 1px;
  margin-top: 10px;
  margin-bottom: 16px;
}

/* --- CAPTION & SLIDESHOW FIXES --- */
.blog-image-caption {
  width: 100%;
  padding: 10px 14px;
  background-color: #0d0d0d;
  color: #a1a1aa;
  font-size: 13px;
  border-top: none; /* Keeps border-free look */
  text-align: left;
}

.resume-section h2 {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.resume-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
}

.download-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-color);
  color: var(--card-bg);
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.download-link:hover {
  background-color: var(--hover-accent);
}

.skills-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
}

.skill-tag.tag-blue {
  background-color: #dbeafe;
  color: #1e40af;
}
.skill-tag.tag-green {
  background-color: #dcfce7;
  color: #166534;
}
.skill-tag.tag-yellow {
  background-color: #fef9c3;
  color: #854d0e;
}
.skill-tag.tag-purple {
  background-color: #f3e8ff;
  color: #6b21a8;
}

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

.software-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.software-item img {
  border-radius: 4px;
  object-fit: cover;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 1152px;
  margin: 0 auto;
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s ease;
}

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

.footer-love {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
  .exp-card {
    flex-direction: column;
  }
  .exp-card-thumbnail {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}