@font-face {
  font-family: "Chillax";
  src:
    url("assets/Chillax_Complete/Fonts/WEB/fonts/Chillax-Variable.woff2")
      format("woff2-variations"),
    url("assets/Chillax_Complete/Fonts/WEB/fonts/Chillax-Variable.woff")
      format("woff");
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --main-font:
    "Chillax", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-color: #18181b; /* Zinc-900 */
  --muted-text-color: #3f3f46; /* Zinc-700 */
  --background-color: #f4f4f5; /* Zinc-100 */
  --border-color: #e4e4e7; /* Zinc-200 */
  --accent-color: #09090b; /* Zinc-950 */
  --pill-radius: 9999px;
  --card-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--main-font);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500; /* As specified: medium */
  line-height: 1.5; /* As specified: 21px/14px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: normal; /* As specified */
}

.container {
  max-width: 700px; /* Narrower for that document-like feel */
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  font-size: 0.8rem;
  z-index: 2000;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0; /* Tightened from 2rem */
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo:hover {
  opacity: 1;
}

nav {
  display: flex;
  gap: 1.25rem; /* Slightly more space for the pill */
  align-items: center; /* Center everything vertically */
}

nav a {
  text-transform: none;
  font-weight: 500;
  color: var(--muted-text-color);
  transition: all 0.2s ease;
}

nav .nav-button {
  font-family: var(--main-font);
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: none;
  font-weight: 500;
  color: var(--muted-text-color);
  transition: all 0.2s ease;
}

nav a:hover,
nav .nav-button:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* --- Main Content --- */
main {
  width: 100%;
}

.intro {
  padding: 3rem 0 2rem; /* Tightened from 4rem bottom */
  text-align: left;
  line-height: 1.25;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-color);
  max-width: 25ch;
}

.intro p:first-child {
  margin-bottom: 0.5rem;
}

.intro p {
  opacity: 0.9;
}

.persona-highlight {
  animation: persona-fade 1s ease;
}

@keyframes persona-fade {
  0% {
    opacity: 0;
    transform: translateY(10px);
    color: #888;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    color: #000;
  }
}

/* --- Sections --- */
section {
  padding: 1.2rem 0; /* Ultra-tightened from 1.5rem */
  border-top: 1px dashed var(--border-color);
}

.section-title {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--muted-text-color);
  margin-bottom: 0.8rem; /* Ultra-tightened from 1.2rem */
  opacity: 0.6; /* More ghostly presence */
}

/* --- About Section --- */
.about-content p {
  max-width: 65ch;
  margin-bottom: 1.5rem;
  font-size: 1.15rem; /* Slightly larger for that friendly feel */
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.technical-highlight {
  display: inline;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin: 0 0.1rem;
  font-size: 0.9em;
  background-color: var(--border-color);
  color: var(--text-color);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* T-Shaped Engineer & Popover */
.t-shaped-engineer {
  position: relative;
  display: inline-block;
  cursor: help;
  font-weight: 700;
  padding-bottom: 2px;
  /* Dashed-dot pattern: 8px dash, 2px gap, 2px dot, 2px gap = 14px total */
  background: linear-gradient(90deg, currentColor 8px, transparent 8px 10px, currentColor 10px 12px, transparent 12px 14px) 0 100% / 14px 2px repeat-x;
}

.t-shaped-popover {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 130%; /* Slightly closer to the text */
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  width: 290px; /* More compact width */
  background: #ffffff;
  color: #111111;
  padding: 0; 
  border-radius: 2px; /* Square for a tighter, more technical feel */
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1); 
  text-align: left;
  line-height: 1.6;
  overflow: visible; 
  pointer-events: none;
}

.t-shaped-engineer:hover .t-shaped-popover,
.t-shaped-engineer:focus .t-shaped-popover {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.popover-main {
  padding: 1.25rem 1.4rem; /* Balanced, compact padding */
  font-size: 0.88rem;
  font-family: var(--main-font);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.4rem; /* Tighter gap between title and body */
}

.popover-main strong {
  display: block;
  font-size: 1.05rem; /* More balanced title size */
  color: #000;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

.popover-arrow {
  position: absolute;
  bottom: 100%; /* Move to top of popover */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff; /* Arrow points up */
}

.popover-footer {
  margin-top: 0.6rem; /* Much smaller margin */
  display: flex;
  justify-content: flex-start;
  opacity: 0.2;
}

.t-shaped-engineer:hover .popover-footer {
  opacity: 0.5;
}

.gear-icon {
  width: 16px;
  height: 16px;
  stroke: #111;
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 0 1rem;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }

  nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  nav a, nav .nav-button {
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .intro {
    font-size: 1.2rem;
    padding: 2.2rem 0 1.2rem;
    line-height: 1.3;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: none;
  }

  .t-shaped-engineer {
    position: static;
  }

  .t-shaped-popover {
    width: calc(100% - 2.5rem);
    max-width: 320px;
    left: 50%;
    top: 3.5rem; /* Sit below the intro line */
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
  }

  .popover-arrow {
    display: none;
  }

  .popover-main {
    padding: 1.1rem 1.25rem;
    font-size: 0.85rem;
  }

  .popover-main strong {
    font-size: 1rem;
  }

  .t-shaped-engineer:hover .t-shaped-popover,
  .t-shaped-engineer:focus .t-shaped-popover {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }

  .section-title {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
  }

  .skill-list {
    font-size: 0.68rem;
    line-height: 1.6;
    max-width: none;
  }

  .skill-list strong {
    font-size: 0.78rem;
  }

  .item-header h3 {
    font-size: 0.85rem;
  }

  .item p, .item ul li {
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: none;
  }
}

.footnote-indicator {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted-text-color);
  margin-left: 0.5rem; /* The requested space */
  vertical-align: super;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem; /* Near-zero gap for tight layout */
  position: relative; /* Added to anchor popovers on mobile */
}

.footnote-pill {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--muted-text-color);
  background: var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-weight: 500;
  width: fit-content;
  opacity: 0.8;
}

.contact-links {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  background-color: #facc15;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill-radius);
  color: #000;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: -0.01em;
  width: fit-content;
}
/* 
.contact-links::before {
  content: "— CONTACT";
  margin-right: 0.2rem;
  opacity: 0.9;
} */

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-bottom: none;
  padding: 0;
  margin: 0;
}

.contact-links a:hover {
  opacity: 0.6;
  transform: translateY(-1px);
}

.location-info {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted-text-color);
  margin-bottom: 0.6rem !important;
}

.availability-badge {
  background-color: #10b981;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--pill-radius);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Item Lists (Experience & Projects) --- */

/* --- App Grid (4-col) --- */
/* List View for Published Apps (In-depth) */
/* Reference-style List for Published Apps (In-depth) */
.app-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Increased spacing between items */
}

.app-card {
  padding-bottom: 1.5rem;
  border: none;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.2s ease;
}

.app-card:last-child {
  border-bottom: none;
}

.app-card:hover {
  border-color: var(--accent-color);
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.2rem;
}

.app-card-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-color);
  margin: 0;
  letter-spacing: -0.012em;
}

.app-card-header .tags {
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--border-color);
  color: var(--muted-text-color);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.app-card p {
  font-size: 0.8rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
  max-width: 80ch;
  opacity: 0.75;
}

.app-card-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.app-card .item-link {
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-color);
  border: 1px dashed #cccccc;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  background: transparent;
}

.app-card .item-link:hover {
  background: var(--accent-color);
  border-style: solid;
  border-color: var(--accent-color);
  color: #fff;
}




/* End of App List Styles */

@media (max-width: 600px) {
  .app-grid {
    gap: 1.5rem;
  }
  
  .app-card {
    padding-bottom: 1.2rem;
    gap: 0.5rem;
  }

  .app-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}



.item {
  padding: 0.8rem 0; /* Ultra-tightened from 1rem */
  border-bottom: 1px dashed var(--border-color);
  transition: all 0.2s ease;
}

.item:last-child {
  border-bottom: none;
}

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

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.item-header h3 {
  font-size: 0.95rem; /* Tighter heading */
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--accent-color);
}

.item-header span,
.item-header .tags {
  font-size: 0.7rem;
  color: var(--muted-text-color);
  background: var(--border-color); /* Subtle background for tags */
  padding: 0.2rem 0.6rem;
  border-radius: var(--pill-radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.item p {
  max-width: 65ch;
  margin-bottom: 1rem;
  color: var(--muted-text-color);
  font-size: 0.85rem;
  line-height: 1.7;
}

.item ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.item ul li {
  color: var(--muted-text-color);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.item ul li:last-child {
  margin-bottom: 0;
}

.item-link {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border: 2px dashed var(--border-color); /* Signature dashed border */
  border-radius: var(--card-radius); /* Square-ish but rounded */
  margin-right: 0.8rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--text-color);
}

.item-link:hover {
  border-color: var(--accent-color);
  border-style: solid;
  background: var(--accent-color);
  color: #fff;
  opacity: 1;
}

.readme-button {
  display: inline-block;
  font-family: var(--main-font);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  background-color: transparent;
  color: var(--muted-text-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.readme-button:hover {
  border-color: var(--accent-color);
  border-style: solid;
  color: var(--accent-color);
}

/* --- Projects Section --- */
.view-more-container {
  text-align: left;
  padding-top: 2rem;
}

.action-button {
  font-family: var(--main-font);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  background-color: transparent;
  color: var(--text-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
}

.action-button:hover {
  background-color: var(--accent-color);
  border-style: solid;
  border-color: var(--accent-color);
  color: #fff;
}

/* --- Skills & Footer --- */
.skill-list {
  font-size: 0.75rem; /* Smaller values as requested */
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--muted-text-color);
  margin-bottom: 0.8rem;
  max-width: 80ch;
  font-weight: 500; /* Reverted to 500 as requested */
}

.skill-list strong {
  color: var(--text-color);
  font-size: 0.85rem; /* Keep labels at standard size */
  font-weight: 700; /* Increased for better contrast */
  margin-right: 0.5rem;
}

footer {
  padding: 3rem 0 2rem; /* Tightened from 5rem/3rem */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted-text-color);
  border-top: 1px dashed var(--border-color);
  margin-top: 2rem; /* Tightened from 4rem */
  opacity: 0.5;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.3; /* More subtle */
  filter: grayscale(1);
}

/* --- Modal Styles --- */
body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--background-color);
  padding: 3rem; /* More padding for airiness */
  width: 95%;
  max-width: 700px; /* Narrower for consistency */
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); /* Softer shadow */
}

.modal-content h2 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 600;
}

/* Consistently positioned close button */
.modal-close-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-family: var(--main-font);
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
  font-weight: 300;
  z-index: 100;
}

.modal-close-button:hover {
  opacity: 0.5;
}

.cv-preview-modal-content .modal-close-button {
  top: 1.6rem;
  right: 1.5rem;
}

.modal-project-list .item-header {
  margin-bottom: 0.4rem;
}
.modal-project-list .item-header a {
  text-decoration: underline;
}
.modal-project-list .item-header h3 {
  font-size: 0.7rem;
}
.modal-project-list p {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
}
.modal-project-list .tags {
  font-size: 0.7rem;
  color: var(--background-color);
  background-color: var(--muted-text-color);
  padding: 2px 5px;
  display: inline-block;
}
.modal-project-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.modal-project-item:last-child {
  border-bottom: none;
}
.loading-text,
.error-text {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted-text-color);
}

/* --- Pagination Controls --- */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.pagination-button {
  font-family: var(--main-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--text-color);
}

.pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#page-info {
  font-size: 0.7rem;
  color: var(--muted-text-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* --- Filter Controls --- */
.filter-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-controls label {
  font-size: 0.7rem;
  color: var(--muted-text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-controls select {
  font-family: var(--main-font);
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--background-color);
  color: var(--text-color);
  border-radius: 0.5rem;
}

/* --- CV Selection Modal --- */
.cv-modal-content {
  max-width: 450px;
}

.cv-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cv-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  border: 1px dashed var(--border-color); /* Dashed border */
  border-radius: var(--card-radius);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  background: transparent;
}

.cv-option:hover {
  border-color: var(--accent-color);
}

.cv-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

.cv-actions {
  display: flex;
  gap: 0.5rem;
}

.cv-action-btn {
  font-family: var(--main-font);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: var(--pill-radius);
  cursor: pointer;
  border: 1px dashed var(--border-color);
  background: transparent;
  font-weight: 700;
  transition: all 0.2s ease;
  color: var(--muted-text-color);
}

.cv-action-btn.preview:hover {
  background-color: var(--accent-color);
  color: #fff;
  border-style: solid;
  border-color: var(--accent-color);
}

.cv-action-btn.print {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--accent-color);
}

.cv-action-btn.print:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* --- CV Preview Modal --- */
.cv-preview-modal-content {
  max-width: 900px;
  max-height: 90vh;
  padding: 0;
}

.cv-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4.5rem 1.2rem 2.5rem;
  border-bottom: 1px dashed var(--border-color);
  background: var(--background-color);
}

.cv-preview-header h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin: 0;
}

.cv-preview-body {
  padding: 3rem;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  background: #fff;
  color: #1a1a1a;
}

/* CV Header — left-aligned name, contact right */
.cv-preview-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: none;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
  text-align: left;
}

.cv-preview-header-section h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  line-height: 1;
}

.cv-preview-contact {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0;
  text-align: right;
  line-height: 1.6;
}

.cv-preview-contact a {
  color: #555;
  text-decoration: none;
}

.cv-preview-contact a:hover {
  text-decoration: underline;
}

/* Section headers — bold, with thin underline */
.cv-preview-section {
  margin-bottom: 1.2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.cv-preview-section:last-child {
  border-bottom: none;
}

.cv-preview-section h3 {
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  color: #1a1a1a;
  opacity: 1;
}

.cv-preview-section p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  color: #333;
}

.cv-preview-section strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Experience / Project items */
.cv-preview-item {
  margin-bottom: 1.2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.cv-preview-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cv-preview-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.cv-preview-item-header strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
}

.cv-preview-item-header span {
  font-size: 0.8rem;
  color: #555;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  white-space: nowrap;
}

.cv-preview-item p {
  font-size: 0.82rem;
  color: #444;
  margin: 0;
  line-height: 1.55;
}

/* Tech tag pills */
.cv-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.cv-tech-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: #1a1a1a;
  background: #f0f0f0;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0;
  line-height: 1.4;
}

/* Bullet list for experience achievements */
.cv-preview-item ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0.4rem 0 0 0;
}

.cv-preview-item ul li {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 0.3rem;
}

.cv-preview-item ul li:last-child {
  margin-bottom: 0;
}

/* Subtitle (role line under company) */
.cv-preview-subtitle {
  font-size: 0.82rem;
  color: #555;
  margin: 0;
  font-weight: 400;
}

/* Additional info section */
.cv-additional-info {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
}

/* CV Modal Mobile Refinements */
@media (max-width: 600px) {
  .cv-modal-content {
    padding: 2rem 1.5rem;
  }

  .cv-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;
  }

  .cv-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .cv-action-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
    font-size: 0.65rem;
  }

  .cv-preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
  }

  .cv-preview-header h2 {
    font-size: 0.75rem;
  }

  .cv-preview-body {
    padding: 1.2rem;
  }

  .cv-preview-header-section {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cv-preview-header-section h1 {
    font-size: 1.4rem;
  }

  .cv-preview-contact {
    text-align: left;
  }
}

/* --- README Modal Specific Styles --- */
.readme-modal-content {
  max-width: 900px;
  max-height: 90vh;
}

.readme-content {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica",
    "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 12px;
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4,
.readme-content h5,
.readme-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.readme-content h1 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

.readme-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

.readme-content h3 {
  font-size: 1.25rem;
}

.readme-content p {
  margin-bottom: 1rem;
}

.readme-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: var(--main-font);
}

.readme-content pre {
  background-color: #f6f8fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.readme-content pre code {
  background-color: transparent;
  padding: 0;
}

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

.readme-content li {
  margin-bottom: 0.25rem;
}

.readme-content a {
  color: #0969da;
  text-decoration: none;
}

.readme-content a:hover {
  text-decoration: underline;
  opacity: 1;
}

.readme-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.readme-content blockquote {
  padding: 0 1rem;
  border-left: 0.25rem solid var(--border-color);
  color: var(--muted-text-color);
  margin-bottom: 1rem;
}

.readme-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.readme-content table td,
.readme-content table th {
  padding: 6px 13px;
  border: 1px solid var(--border-color);
}

.readme-content table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.readme-content hr {
  height: 0.25rem;
  padding: 0;
  margin: 1.5rem 0;
  background-color: var(--border-color);
  border: 0;
}

.mermaid {
  background-color: transparent !important;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .intro {
    text-align: left;
  }
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 11px;
  }
  .container {
    padding: 0 1rem;
  }
  header {
    padding: 1.2rem 0;
    font-size: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  nav {
    gap: 0.8rem; /* Tighter gap on mobile */
  }
  nav a {
    margin-right: 0;
  }
  .intro {
    padding: 3rem 0;
  }
  section {
    padding: 2rem 0;
  }
  .section-title {
    margin-bottom: 1.5rem;
  }
  .modal-content {
    width: 95%;
    padding: 1.5rem 1.2rem;
  }

  /* README button mobile adjustments */
  .readme-button {
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
    margin-left: 0.4rem;
  }

  /* README modal mobile adjustments */
  .readme-modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 85vh;
    padding: 1.2rem;
    font-size: 11px;
  }

  .readme-content {
    font-size: 11px;
  }

  .readme-content h1 {
    font-size: 1.4rem;
  }

  .readme-content h2 {
    font-size: 1.2rem;
  }

  .readme-content h3 {
    font-size: 1.05rem;
  }

  .readme-content pre {
    padding: 0.8rem;
    font-size: 12px;
    overflow-x: auto;
  }

  .readme-content table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }

  /* Ensure item links and buttons wrap nicely on mobile */
  .item-link {
    display: inline-block;
    margin-bottom: 0.4rem;
  }
}

/* --- Print-Specific Styles for CV Generation --- */
@media print {
  body {
    font-size: 8pt;
    line-height: 1.3;
    color: #000;
    background-color: #fff;
    font-family: "Manrope", sans-serif;
  }

  /* Keep the header, but hide the navigation within it */
  header {
    padding: 0 0 0.8rem 0;
  }
  header nav {
    display: none;
  }

  /* Hide only the view more button, but keep item links */
  footer,
  .view-more-container {
    display: none;
  }

  /* Show app/project links in print with URLs */
  .item-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 7pt;
    color: #666;
    text-transform: none;
  }

  .item-link::before {
    content: "URL: ";
    font-weight: bold;
    text-transform: none;
  }

  .item-link::after {
    content: " (" attr(href) ")";
    text-transform: none;
  }

  /* Hide availability badge in print */
  .availability-badge {
    display: none;
  }

  /* Clean contact links for print - show as blocks */
  .contact-links {
    display: block;
    margin-top: 1rem;
  }

  .contact-links a {
    display: block;
    margin-right: 0;
    margin-bottom: 0.3rem;
    text-decoration: none;
    text-transform: none;
  }

  .contact-links a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 7pt;
    color: #666;
    text-transform: none;
  }

  .contact-links a[href*="github.com"]::after {
    content: " (github.com/jeffasante)";
    font-size: 7pt;
    color: #666;
    text-transform: none;
  }

  .contact-links a[href*="linkedin.com"]::after {
    content: " (linkedin.com/in/jeffrey-asante-a69440231)";
    font-size: 7pt;
    color: #666;
    text-transform: none;
  }

  .contact-links a[href*="stackoverflow.com"]::after {
    content: " (stackoverflow.com/users/13482983/jeffasante)";
    font-size: 7pt;
    color: #666;
    text-transform: none;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .intro {
    text-align: left;
    padding: 0.8rem 0 1.5rem;
  }

  section {
    padding: 1.2rem 0;
    border: none;
  }

  .item-list,
  .item {
    border-top: none;
    border-bottom: 1px solid #ccc;
  }

  #experience .item-list,
  #projects .item-list {
    border-top: 1px solid #ccc;
  }

  .item {
    padding: 0.6rem 0;
    page-break-inside: avoid;
  }

  .section-title {
    padding-top: 0.8rem;
    margin-bottom: 1.2rem;
    page-break-before: auto;
    page-break-after: avoid;
  }

  #about .section-title {
    border-top: none;
    padding-top: 0;
  }
}

/* --- Reads Modal List Styles --- */
.reads-modal-content {
  max-width: 860px;
  background-color: var(--background-color);
  padding: 2.5rem 3rem;
  border-radius: var(--card-radius);
  color: var(--text-color);
}
.readme-modal-content {
  max-width: 800px;
}

.reads-modal-content h2 {
  font-family: var(--main-font);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-color);
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.reads-modal-content .modal-close-button {
  top: 2rem;
  right: 2rem;
  width: 28px;
  height: 28px;
  border: 1px solid var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-color);
  border-radius: 2px;
  background: transparent;
  padding: 0;
  transition: all 0.2s ease;
}

.reads-modal-content .modal-close-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.readme-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.readme-modal-header .modal-close-button {
  position: static;
  font-size: 1.5rem;
}

#readme-back-button:hover {
  color: var(--accent-color);
  opacity: 1;
}

.reads-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reads-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 4px;
  gap: 1rem;
}

.reads-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.reads-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.reads-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mobile: stack date below title on narrow screens */
@media (max-width: 600px) {
  .reads-modal-content {
    padding: 1.5rem 1.25rem;
  }

  .reads-modal-content .modal-close-button {
    top: 1.25rem;
    right: 1.25rem;
  }

  .reads-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .reads-date {
    align-self: flex-start;
    margin-left: 0 !important;
    margin-top: 0 !important;
    text-align: left !important;
  }
}

.reads-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-color);
  font-family: var(--main-font);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.reads-tag {
  font-family: var(--main-font);
  font-size: 0.6rem;
  text-transform: lowercase;
  background-color: #e8f0fe;
  color: #1a73e8;
  padding: 1px 7px;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
}

.reads-description {
  font-size: 0.72rem;
  color: var(--muted-text-color);
  line-height: 1.55;
  font-weight: 400;
}

.reads-date {
  font-size: 0.72rem;
  color: var(--muted-text-color);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  padding-top: 3px;
}

/* --- Reads Pill Styling --- */
.reads-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--border-color); /* Light gray naturally */
  padding: 6px 14px;
  border-radius: 40px; /* Fully rounded pill */
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color) !important;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.reads-pill:hover {
  background-color: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 1 !important;
}

.reads-pill svg {
  flex-shrink: 0;
  stroke: var(--text-color);
}

/* --- Lite View (heywinit.xyz style) --- */
body.lite-view {
  background-color: #ffffff !important;
  color: #111111 !important;
  font-family: "Inter Tight", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.625 !important;
  letter-spacing: -0.01em !important;
  -webkit-font-smoothing: antialiased;
}

body.lite-view .container {
  max-width: 600px;
  background-color: #ffffff;
  padding: 0 1.5rem;
  margin: 0 auto;
}

body.lite-view header {
  padding: 6rem 0 2rem;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Reset all section defaults leaking from standard view */
body.lite-view section {
  border: none !important;
  padding: 0 !important;
}

body.lite-view nav {
  display: flex !important;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 600px) {
  body.lite-view header {
    padding-top: 3rem;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  body.lite-view nav {
    order: -1;
  }
}

/* Strictly hide all other nav items */
body.lite-view nav > *:not(.reads-pill):not(.lite-pill) {
  display: none !important;
}

body.lite-view .logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #111111;
  text-decoration: none;
  display: block;
}


body.lite-view .intro {
  padding: 0 0 4rem;
  font-size: 16px;
  font-weight: 400;
  color: #888;
  max-width: none;
  line-height: 1.5;
  border: none;
  text-transform: lowercase;
}

/* Hide/Show logic */
body.lite-view #in-depth-content {
  display: none !important;
}

body:not(.lite-view) #lite-content {
  display: none !important;
}

/* Lite Content Styling */
.lite-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem; /* Matched to heywinit.xyz 3rem gap */
}

.lite-label {
  font-size: 14px; /* Exact match to heywinit.xyz */
  color: #888888; /* Exact match to heywinit.xyz tertiary */
  margin-bottom: 0.1rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.lite-item {
  color: #111111;
  margin-bottom: 0.2rem;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.lite-item b, 
.lite-item strong {
  font-weight: 600;
  color: #000;
}

.lite-item a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: #ddd;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.2s;
  font-weight: 600;
}

.lite-item a:hover {
  text-decoration-color: #111111;
}

/* Update Pill Styles for Both Modes */
.lite-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #111 !important;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-family: inherit;
}

.lite-pill:hover {
  background-color: #eeeeee;
}

body.lite-view .reads-pill {
  background-color: rgba(0, 0, 0, 0.03);
  color: #111 !important;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.lite-view .reads-pill svg {
  stroke: #111;
}

body.lite-view .lite-pill {
  background-color: #111;
  color: #fff !important;
}

body.lite-view .lite-pill:hover {
  background-color: #333;
}

body.lite-view .lite-pill svg {
  stroke: #fff;
}

/* Footer in Lite Mode */
body.lite-view footer {
  border: none;
  padding: 4rem 0 2rem;
  align-items: flex-start;
  opacity: 0.4;
}

body.lite-view .footer-logo {
  margin-bottom: 1rem;
}

.lite-more-container {
  margin-top: 1rem;
  padding-bottom: 2rem;
}

.lite-more-btn {
  font-size: 0.8rem;
  color: #888 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s;
}

.lite-more-btn:hover {
  color: #000 !important;
}
