/* ======================================================
   HEADER / NAVBAR — FINAL MERGED VERSION
====================================================== */

/* =======================
   BASE RESET
======================= */

.site-header,
.site-header * {
  box-sizing: border-box;
  font-family: "Playfair Display", serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header ul,
.site-header li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =======================
   HEADER LAYOUT
======================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);

  padding-top: 0;
  padding-bottom: 0;
  overflow: visible !important;
}

/* =======================
   NAV CONTAINER
======================= */

.nav-container {
  width: 100%;
  padding: 0.25rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;
  overflow: visible !important;
}

/* =======================
   BRAND
======================= */

.nav-brand a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: 1.2px !important;
  text-decoration: none;
}

/* link wrapper */
.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* logo wrapper */
.nav-logo-wrap {
  width: 180px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  overflow: visible;
}

/* actual logo */
.nav-logo {
  width: 36px;
  height: auto;
  display: block;

  transform: scale(5) translateY(1px);
  transform-origin: left center;
}

/* =======================
   FALLBACK TEXT LOGIC
======================= */

/* hide text if logo present */
.nav-brand:not(.logo-missing) .nav-brand-text {
  display: none;
}

/* show text when logo missing */
.nav-brand.logo-missing .nav-logo-wrap {
  width: auto;
  transform: none;
}

.nav-brand.logo-missing .nav-brand-text {
  display: inline-block;

  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #ffffff;

  white-space: nowrap;
  text-transform: uppercase;
}

/* =======================
   DESKTOP NAV MENU
======================= */

.nav-menu {
  display: block;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu ul li a,
.nav-menu ul li a:link,
.nav-menu ul li a:visited,
.nav-menu ul li a:hover,
.nav-menu ul li a:active,
.nav-menu ul li a:focus {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 1.4px !important;

  text-decoration: none;
  padding: 0.5rem 0.9rem;
  opacity: 1;
}

/* hover */
.nav-menu ul li a:hover {
  opacity: 0.9;
}

/* active */
.nav-menu li.active a {
  color: #ffffff !important;
  opacity: 0.85;
  border-bottom: 2px solid var(--white);
  padding-bottom: 2px;
}

/* =======================
   MOBILE TOGGLE
======================= */

.nav-toggle {
  display: none;

  background: none;
  border: none;
  color: var(--white);

  font-size: 1.6rem;
  cursor: pointer;
}

/* =======================
   MOBILE MENU
======================= */

.mobile-menu {
  display: none;

  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;
  background: var(--blue);
}

.mobile-menu ul {
  padding: 1rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-header .mobile-menu a {
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;

  text-decoration: none;
}

.site-header .mobile-menu a:hover {
  opacity: 0.9;
}

/* open state */
body.nav-open .mobile-menu {
  display: block;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }

  .nav-toggle {
    display: none;
  }
}



/*##############changes made for nav logo#################*/
.nav-container {
  width: 100%;
  padding: 0.25rem 0rem;   /* smaller left/right */

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;
}

.nav-logo-wrap {
  width: 180px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin-left: 0;      /* important */
  padding-left: 0;

  overflow: visible;
}

.nav-logo {
  width: 36px;
  height: auto;
  display: block;

  transform: scale(5) translateX(-10px) translateY(1px);
  transform-origin: left center;
}

@media (min-width: 1246px) {
  .nav-logo {
    transform: scale(5) translateX(-18px) translateY(1px);
  }
}

@media (max-width: 768px) {
  .nav-logo {
    transform: scale(4) translateX(-10px) translateY(0);
  }
}




/*###########################################*/
/* ======================================================
   ROOT + RESET
====================================================== */

:root {
  --blue: #2f5f8f;
  --dark: #1a1a1a;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  background-color: var(--blue);
}


/* ======================================================
   FONTS — LOCAL
====================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display/PlayfairDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display/PlayfairDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display/PlayfairDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ======================================================
   CORE LAYOUT SYSTEM (ONE SOURCE OF TRUTH)
====================================================== */

.section {
  width: 100%;
  margin: 0;
  padding: 2.5rem 0;
}

.section-white {
  background: var(--white);
  color: var(--dark);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

/* ======================================================
   HERO — FINAL
====================================================== */

.hero-img {
  width: 150px;
  height: 150px;

  border-radius: 50%;
  object-fit: cover;

  margin: 0 auto 0.75rem;
  display: block;

  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 600;

  margin: 0 0 0.75rem;
  color: #2a2a2a;
}

/* mobile hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    white-space: nowrap;
  }
}

/* ======================================================
   TERMINAL CTA — FINAL
====================================================== */

.btn-link.terminal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 0 0.5rem;
  height: 40px;

  background: #000;
  color: #b9ffe7 !important;

  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;

  border-radius: 6px 0 0 6px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
}

.terminal-content {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-text-wrap {
  display: inline-flex;
  min-height: 1em;
  white-space: nowrap;
}

.terminal-cursor {
  width: 10px;
  height: 2px;
  margin-left: 3px;
  background-color: #b9ffe7;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ======================================================
   SECTION TITLES
====================================================== */

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;

  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  display: block;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* tablet */
@media (max-width: 1024px) {
  .section-title {
    font-size: 1.7rem;
  }
}

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

.social-icons {
  list-style: none;
  margin: 1.2rem 0 1rem;

  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.social-icons img {
  width: 48px;
  height: 48px;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover img {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* ======================================================
   ICON + CARD GRID SYSTEM — FINAL CANONICAL
====================================================== */

/* ================= GRID ================= */

.icon-grid,
.card-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;

  justify-items: center;
  align-items: start;
}

/* mobile */
@media (max-width: 640px) {
  .icon-grid,
  .card-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= ICON ITEMS ================= */

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.75rem;
  text-align: center;
  text-decoration: none;

  transition: transform 0.25s ease;
}

.icon-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;

  transition: transform 0.25s ease;
}

.icon-item span {
  font-size: 0.95rem;
}

.icon-item small {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* hover */
.icon-item:hover {
  transform: translateY(-4px);
}

.icon-item:hover img {
  transform: scale(1.04);
}

/* section coloring */
.section-blue .icon-item {
  color: #ffffff;
}

.section-white .icon-item {
  color: var(--blue);
}

/* ================= CARD ================= */

.card,
.post-card,
.portfolio-card {
  width: 100%;
  max-width: 260px;
  min-height: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 1rem;
  border-radius: 8px;

  background: #fafafa;
  color: #1a1a1a;

  text-align: center;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* hover */
.card:hover,
.post-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* clickable cards */
a.card {
  display: flex;
  color: inherit;
  text-decoration: none;
}

/* ================= CARD CONTENT ================= */

.card img {
  width: 110px;
  height: 110px;
  object-fit: contain;

  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1rem;
}

.card p,
.card small {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ================= COLOR SYSTEM ================= */

/* blue section → white cards */
.section-blue .card {
  background: #ffffff;
  color: #1a1a1a;
}

/* white section but blue themed cards */
.section-white.blue-on-white-section .card {
  background: var(--blue);
  color: #ffffff;
}

/* links inside blue cards */
.section-white.blue-on-white-section .card a,
.section-white.blue-on-white-section .card h3,
.section-white.blue-on-white-section .card small {
  color: inherit;
}

/* ================= CREDENTIALS OVERRIDE ================= */

.blue-on-white-section .card {
  background: var(--blue);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.credentials-section .card h3,
.credentials-section .card a {
  color: #ffffff !important;
  text-decoration: none;
}

.credentials-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.credentials-section .card img {
  filter: brightness(1.05) contrast(1.05);
}

/* ======================================================
   TERMINAL ENUMERATE CTA — FINAL CANONICAL
====================================================== */

.btn-link.terminal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 0 0.5rem;
  height: 40px;

  background: #000;
  color: #b9ffe7 !important;

  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 600;

  border-radius: 6px 0 0 6px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;

  overflow: visible;
}

/* inner layout */
.terminal-content {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-text-wrap {
  display: inline-flex;
  align-items: flex-end;
  min-height: 1em;
  white-space: nowrap;
}

/* prompt */
.terminal-prompt {
  color: #0bbf6a;
}

/* cursor */
.terminal-cursor {
  width: 10px;
  height: 2px;
  margin-left: 3px;

  background-color: #b9ffe7;
  animation: blink 1s steps(1) infinite;
}

/* arrow svg */
.terminal-arrow-svg {
  position: absolute;
  left: 100%;
  margin-left: -6px;

  top: 50%;
  transform: translateY(-50%);

  display: block;
  pointer-events: none;
}

/* single blink animation */
@keyframes blink {
  50% { opacity: 0; }
}

/* ======================================================
   FOOTER — FINAL CANONICAL
====================================================== */

.site-footer {
  background: var(--blue);
  color: #ffffff;

  width: 100vw;
  margin-left: calc(50% - 50vw);

  padding-top: 0 !important;
}

/* =======================
   FOOTER GRID
======================= */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 2rem;
  text-align: center;

  margin-bottom: 2rem;
}

/* =======================
   FOOTER BLOCK
======================= */

.footer-block h5 {
  margin-bottom: 0.5rem;

  font-size: 1rem;
  font-weight: 600;
}

.footer-block a {
  color: #dbe9ff;
  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-block a:hover {
  color: #ffffff;
}

/* =======================
   FOOTER BOTTOM BAR
======================= */

.footer-bottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 1rem !important;
}

/* copyright row */
.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.6rem;
  font-size: 0.9rem;
}

/* icon in copyright */
.footer-copy img {
  width: 1.2em;
  height: 1.2em;
}

/* =======================
   MOBILE TUNING
======================= */

@media (max-width: 768px) {
  .footer-grid {
    gap: 1.5rem;
  }

  .footer-copy {
    flex-wrap: wrap;
    text-align: center;
  }
}


.section.section-blue:last-of-type {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 0 !important;
}

/* ======================================================
   WRITEUPS / BLOG LIST — FINAL CANONICAL SYSTEM
====================================================== */

/* ================= SECTION ================= */

.section.section-blue {
  background-color: var(--blue);

  width: 100vw;
  margin-left: calc(50% - 50vw);

  padding: 3rem 0;
}

/* inner container */
.section.section-blue > .container {
  max-width: 1180px;
  margin: 0 auto;

  padding: 0 4rem;
}

/* ================= GRID ================= */

.section.section-blue .post-grid {
  display: grid;
  justify-content: center;

  grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
  gap: 4rem;

  margin: 3rem;
}

/* ================= CARD ================= */

.section.section-blue .post-card {
  width: 320px;
  max-width: 100%;

  background: #ffffff;
  border-radius: 10px;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

/* ================= IMAGE ================= */

.section.section-blue .post-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.section.section-blue .post-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;

  display: block;
}

/* ================= BODY ================= */

.section.section-blue .post-card-body {
  padding: 0.8rem 1rem 0.4rem;
  text-align: left;
}

/* ================= TITLE ================= */

.section.section-blue .post-title {
  margin: 0 0 0.25rem;

  width: 100%;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.section.section-blue .post-title a {
  display: inline-block;

  margin: 0 auto;

  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: 0.4px;
  text-transform: uppercase;

  color: var(--blue);
  text-decoration: none;
}

/* ================= DATE (REMOVED) ================= */

.section.section-blue .post-date {
  display: none;
}

/* ================= EXCERPT ================= */

.section.section-blue .post-excerpt {
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;

  overflow: hidden;

  margin-bottom: 0.3rem;
  line-height: 1.45;
}

/* ================= FOOTER ================= */

.section.section-blue .post-card-footer {
  padding: 0.2rem 1rem 0.8rem;
  margin-top: 0;
}

/* button */
.section.section-blue .post-card-footer a {
  display: inline-block;

  padding: 6px 16px;

  border: 1.5px solid var(--blue);
  border-radius: 3px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;

  background: transparent;
  color: var(--blue);
  text-decoration: none;

  transition: all 0.2s ease;
}

.section.section-blue .post-card-footer a:hover {
  background: var(--blue);
  color: #ffffff;
}

/* ================= RESPONSIVE ================= */

/* laptop */
@media (max-width: 1200px) {
  .section.section-blue > .container {
    padding: 0 3rem;
  }

  .section.section-blue .post-grid {
    gap: 3.5rem;
  }
}

/* tablet */
@media (max-width: 900px) {
  .section.section-blue > .container {
    padding: 0 2.5rem;
  }

  .section.section-blue .post-grid {
    gap: 3rem;
  }
}

/* mobile */
@media (max-width: 600px) {
  .section.section-blue > .container {
    padding: 0 1.5rem;
  }

  .section.section-blue .post-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .section.section-blue .post-card {
    width: 100%;
    max-width: 380px;
  }
}

/* SINGLE.HTML PAGE CHANGES */
/* =======================
   SINGLE POST PAGE
   ======================= */

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

.post-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.post-description {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #777;
}

/* =======================
   ACTION LINKS
   ======================= */

.post-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-group strong {
  display: block;
  margin-bottom: 0.5rem;
}

.avatar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.avatar-list li {
  margin-bottom: 0.5rem;
}

.avatar-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--blue);
}

.avatar-list img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* GitHub / links */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.3rem;
}

/* =======================
   TECH STACK
   ======================= */

.tech-section {
  margin: 3rem 0;
}

/* =======================
   CONTENT
   ======================= */

.post-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.post-content img {
  max-width: 100%;
  display: block;
  margin: 2rem auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid #ddd;
  padding: 8px;
}

/* =======================
   HORIZONTAL RULE
   ======================= */

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3rem 0;
}

/* =================================================
    writeups-single.html changes
    ==============================================*/


/* ================================
   ENGAGEMENT TEAM LAYOUT FIX
================================ */

.post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
}

/* each group (Team / Target / Tooling) */
.post-actions .action-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* avatar list */
.avatar-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.avatar-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

/* avatar circle */
.avatar-list img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  color: transparent;
}

/* name link */
.avatar-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  font-weight: 600;
}

/* prevent double usernames line break */
.avatar-list span {
  white-space: nowrap;
}

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

/* ===== WRITEUPS PAGE SECTION SPACING ===== */

.writeups .section.section-white {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.writeups .section.section-blue {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* tools tightening */
.writeups .section-blue .tech-section {
  margin: 0;
}

.writeups .section-blue .icon-grid {
  margin-top: 0.5rem;
}

/* actions spacing */
.writeups .post-actions {
  margin: 0.5rem 0;
}

/* content spacing */
.writeups .post-content {
  margin-top: 0.5rem;
}

/* ===== WRITEUPS: COMPACT TOOLS STRIP ===== */

.writeups .section.section-blue {
  padding-top: 1rem !important;
  padding-bottom: 0.3rem;
}

.writeups .section-blue .section-title {
  margin-bottom: 0.7rem;
}

.writeups .section-blue .tech-section {
  margin: 0;
}

.writeups .section-blue .icon-grid {
  margin-top: 0;
  margin-bottom: 0;
}

.writeups .section-blue .icon-item img {
  max-height: 80px;
  width: auto;
}

.writeups .section-blue .icon-item span {
  margin-top: 0.1rem;
  display: block;
}

/* ============================================
   WRITEUPS – MOBILE OVERFLOW FIX (FINAL)
   ============================================ */

/* ============================================
   WRITEUPS – CODE BLOCK MOBILE FIX
   ============================================ */

.writeups .post-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  padding: 1rem;
  box-sizing: border-box;
}

/* prevent body from expanding */
.writeups {
  overflow-x: hidden;
}

/* inline code */
.writeups .post-content code {
  word-break: break-word;
}

/* long command lines */
.writeups .post-content pre code {
  white-space: pre;
}



/* metadata layouts/writeups/single.html */

.meta-tools-center {
  text-align: center;
  margin-bottom: 3rem;
}

.meta-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.meta-lower-grid.no-operators {
  grid-template-columns: repeat(2, 1fr);
}

.meta-block {
  text-align: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}
.meta-lower-grid {
  width: 100%;
  max-width: 100%;
}

.section-blue .container {
  max-width: 1200px; /* or whatever your site width is */
}

.meta-lower-grid > .meta-block {
  justify-self: center;
}

/* ================= Engagement Panel Only ================= */

.engagement-panel h2,
.engagement-panel h3,
.engagement-panel span,
.engagement-panel p,
.engagement-panel li,
.engagement-panel a {
  color: #fff;
}

/* icon captions */
.engagement-panel .icon-item span {
  color: #fff;
}

/* subtle hover */
.engagement-panel a:hover {
  opacity: 0.85;
}

/* clickable lab image */

.engagement-panel .lab-image-link img {
  max-width: 140px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.engagement-panel .lab-image-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}




.icon-tooltip-wrap {
  position: relative;
  display: inline-block;
}

/* hover bridge — absolutely positioned, no layout impact */
.icon-tooltip-wrap::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 80px;
  pointer-events: auto;
}

.icon-hover-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);

  background: #fff;
  color: #000;               /* 👈 force visible text */
  border: 1px solid #ddd;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;

  user-select: text;
  z-index: 9999;             /* 👈 safety */
}

/* visible while wrapper OR tooltip hovered */
.icon-tooltip-wrap:hover .icon-hover-box,
.icon-hover-box:hover {
  opacity: 1;
  visibility: visible;
}

/* tooltip text styling */
.icon-hover-box .tooltip-text {
  color: #000;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* copy icon */
.copy-icon-btn {
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

.copy-icon-btn svg {
  stroke: #444;
  fill: none;
  stroke-width: 1.8;
}

.copy-icon-btn:hover svg {
  stroke: #000;
}

.copy-icon-btn.copied svg {
  stroke: #16a34a;
}

/* ============================================
   WRITEUPS – FORCE CODE BLOCK VISIBILITY
   ============================================ */

.writeups .post-content .highlight {
  max-width: 100%;
  overflow-x: auto;
}

.writeups .post-content pre.chroma {
  background: #0b1220 !important;   /* dark terminal */
  color: #e5f2ff !important;

  padding: 1rem;
  border-radius: 10px;

  overflow-x: auto;
}

/* each line wrapper */
.writeups .post-content .chroma .line {
  display: block !important;   /* kill inline/flex weirdness */
}

/* actual code text */
.writeups .post-content .chroma .cl {
  color: inherit !important;
}

/* tokens */
.writeups .post-content .chroma .k,
.writeups .post-content .chroma .nb,
.writeups .post-content .chroma .nt,
.writeups .post-content .chroma .s,
.writeups .post-content .chroma .m {
  color: inherit;
}

/* inline code */
.writeups .post-content code:not(pre code) {
  background: rgba(0,0,0,0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* ============================================
   WRITEUPS – COPY BUTTON FOR CODE BLOCKS (FINAL)
   ============================================ */

.writeups .highlight {
  position: relative;
}

/* button */
.writeups .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;

  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;

  padding: 6px;
  cursor: pointer;

  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;

  backdrop-filter: blur(4px);
  z-index: 20;
}

/* show on hover */
.writeups .highlight:hover .code-copy-btn {
  opacity: 1;
  transform: translateY(0);
}

/* mobile always visible */
@media (max-width: 768px) {
  .writeups .code-copy-btn {
    opacity: 1;
    transform: none;
  }
}

/* icon */
.writeups .code-copy-btn svg {
  stroke: #cbd5f5;
  fill: none;
  stroke-width: 1.6;
}

/* copied state */
.writeups .code-copy-btn.copied {
  background: rgba(22,163,74,0.9);
  border-color: rgba(22,163,74,0.9);
}

.writeups .code-copy-btn.copied svg {
  stroke: #ffffff;
}

/* ======================================================
   WRITEUPS FULL BLEED STRIP
====================================================== */

.writeups .section-blue {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.writeups .section-blue > .container {
  max-width: 1180px;
}

/* ======================================================
   TOOLTIP SYSTEM
====================================================== */

.icon-tooltip-wrap {
  position: relative;
}

.icon-hover-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .8rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.icon-tooltip-wrap:hover .icon-hover-box {
  opacity: 1;
  visibility: visible;
}

/* ======================================================
   COPY BUTTON
====================================================== */

.writeups .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.6);
  cursor: pointer;
}




/* for all pages except index.html there will be headings for that changes can be made from here */
/* =======================
   page-title.html
   ======================= */

.page-title {
  padding: 1.5rem 0 1.5rem;
}

.page-title-heading {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0;
  position: relative;
  display: inline-block;
}

/* underline to match section headings */
.page-title-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  margin-top: 0.5rem;
}
/* ===== LOCK ALL PAGE-TITLE BANDS TO SAME RAILS ===== */

section.section-white.page-title > .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* ======================================
   COMPACT TITLES FOR ALL PAGES
====================================== */

.profile .section.section-white,
.profile .section.section-blue,
.portfolio .section.section-white,
.portfolio .section.section-blue,
.access .section.section-white,
.access .section.section-blue {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
/* page title stuff ends here */


/* ======================================================
   PROFILE PAGE — FINAL CLEAN CANONICAL VERSION
====================================================== */

/* BLUE SECTION SPACING */
section.section.section-blue.profile-main {
  padding-top: 2.8rem !important;
  padding-bottom: 2.8rem !important;
}

/* KILL FLEX — FLOW LAYOUT */
.section-blue.profile-main .about-layout {
  display: block !important;
}

/* IMAGE FLOAT LEFT */
.profile-main .about-image {
  float: left;
  width: 260px;
  max-width: 260px;
  margin: 0 2.75rem 1.75rem 0;
}

/* IMAGE */
.profile-main .about-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

/* TEXT COLUMN — FULL WIDTH */
.profile-main .about-content {
  width: auto !important;
  max-width: none !important;
}

/* PARAGRAPH TYPOGRAPHY */
.profile-main .about-content p {
  max-width: 1180px;              /* 🔥 reaches right rail */
  text-align: justify;
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 500;              /* slightly heavier for blue bg */
  margin-bottom: 1.6rem;
}

/* CLEAR FLOAT AFTER */
.profile-main::after {
  content: "";
  display: block;
  clear: both;
}

/* CONTAINER WIDTH */
.profile-main > .container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

/* REMOVE DECORATIVE BARS */
.section-blue.profile-main::before,
.section-blue.profile-main::after {
  display: none !important;
}

/* ==========================
   MOBILE STACK
========================== */

@media (max-width: 768px) {

  .profile-main .about-image {
    float: none;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
  }

  .profile-main .about-content p {
    max-width: 100%;
    text-align: justify;
    hypens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: normal;
  }
}

@media (max-width: 600px) {
  .profile-main .about-content p {
    text-align: justify;
    hypens: none;
    -webkit-hypens: none;
  }
}


/* ==========================================
   PROFILE — STRONGER BODY TEXT
========================================== */

.profile-main .about-content p {
  font-weight: 600;          /* semi-bold */
  letter-spacing: 0.01em;
  line-height: 1.50;
}

