:root {

  --bg: #f5f5f5;

  --bg-soft: rgba(255, 255, 255, 0.75);

  --bg-alt: #f0f2f5;

  --accent: #1f4f7b;

  --accent-soft: #e0ecf7;

  --accent-strong: #153554;

  --text-main: #111827;

  --text-muted: #6b7280;

  --border-subtle: #d1d5db;

  --chip-bg: #e5e7eb;



  /* New Theming Variables */

  --header-bg: rgba(255, 255, 255, 0.85);

  --text-on-accent: #ffffff;



  --card-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);

  --radius-lg: 16px;

  --radius-md: 10px;

  --radius-pill: 999px;

  --font-family-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-caption: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-body-lg: 15px;
  --font-size-title: 18px;
  --font-size-display: clamp(28px, 3.8vw, 34px);

  --max-width: 1120px;

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



html {

  background: var(--bg);

  transition: background 0.2s ease;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

}



body {

  position: relative;

  font-family: var(--font-family-base);

  background: transparent;

  /* Transparent to show canvas behind */

  color: var(--text-main);

  font-size: var(--font-size-base);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

}



a {

  text-decoration: none;

  color: inherit;

}



img {

  max-width: 100%;

  display: block;

}



/* UTILITY */

.grid {

  display: grid;

}



.grid-cols-1 {

  grid-template-columns: minmax(0, 1fr);

}



.gap-8 {

  gap: 32px;

}



.items-start {

  align-items: flex-start;

}



@media (min-width: 1024px) {

  .lg\:grid-cols-2 {

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  }

}



/* LAYOUT */

.page {

  position: relative;

  z-index: 1;

  /* Above canvas */

  min-height: 100vh;

  display: flex;

  flex-direction: column;

}



.shell {

  width: 100%;

  max-width: var(--max-width);

  margin: 0 auto;

  padding: 0 18px;

}

/* WIDE SCREENS (large monitors / TVs) */
@media (min-width: 1440px) {
  :root {
    --max-width: 1240px;
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 1360px;
  }
}



/* CANVAS (from index.html) */

#bg-canvas {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: 0;

  pointer-events: none;

  /* Let clicks pass through */

}



#particle-canvas {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  /* Keep particles behind page content but above the html background. */
  z-index: 0;

  pointer-events: none;

}



/* HEADER */

header {

  position: sticky;

  top: 0;

  z-index: 20;

  backdrop-filter: blur(12px);

  background: var(--header-bg);

  border-bottom: 1px solid var(--border-subtle);

  transition: background 0.2s ease, border-color 0.2s ease;

}



.nav {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 0;

  gap: 16px;

}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(31, 79, 123, 0.42);
  outline-offset: 2px;
}

.nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-strong);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5px; }
.nav-toggle-icon span:nth-child(3) { top: 10px; }

body.nav-open .nav-toggle-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  justify-content: flex-end;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-mobile-panel {
  position: relative;
  width: min(420px, 92vw);
  height: 100%;
  background: var(--bg-soft);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -30px 0 80px rgba(15, 23, 42, 0.25);
  transform: translateX(16px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  padding: 14px;
  overflow: auto;
}

.nav-mobile.is-open .nav-mobile-overlay {
  opacity: 1;
}

.nav-mobile.is-open .nav-mobile-panel {
  transform: translateX(0);
  opacity: 1;
}

.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  margin-bottom: 10px;
}

.nav-mobile-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-mobile-close {
  border: 1px solid var(--border-subtle);
  background: var(--chip-bg);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.nav-mobile-close:hover {
  filter: brightness(0.98);
}

.nav-mobile-links {
  display: grid;
  gap: 8px;
}

.nav-mobile-links a {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  background: color-mix(in srgb, var(--bg-soft) 72%, var(--accent-soft) 28%);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.nav-mobile-links a.nav-mobile-active {
  background: var(--accent-soft);
  border-color: rgba(31, 79, 123, 0.35);
  color: var(--accent-strong);
}

.nav-mobile-section {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
}

.nav-mobile-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nav-mobile-sub {
  display: grid;
  gap: 6px;
}

.nav-mobile-sub a {
  font-weight: 600;
  font-size: 12px;
  padding: 9px 12px;
  background: var(--bg-alt);
  background: color-mix(in srgb, var(--bg-soft) 82%, var(--accent-soft) 18%);
}

body.nav-open {
  overflow: hidden;
}



.logo-wrap {

  display: flex;

  align-items: center;

  gap: 10px;

}



.logo-mark {

  width: 36px;

  height: 36px;

  border-radius: 50%;

  border: 1px solid var(--border-subtle);

  background: var(--bg-soft);

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 600;

  font-size: 14px;

  color: var(--accent-strong);

}



.logo-inner {

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

}



.logo-text-block {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.logo-title {

  font-size: 15px;

  font-weight: 600;

  color: var(--accent-strong);

}



.logo-sub {

  font-size: 11px;

  color: var(--text-muted);

}



.nav-links {

  display: flex;

  align-items: center;

  gap: 18px;

  font-size: 13px;

}



.nav-links a {

  padding: 4px 0;

  border-bottom: 2px solid transparent;

  color: var(--text-muted);

  transition: color 0.15s ease, border-color 0.15s ease;

}



.nav-links a:hover {

  color: var(--accent-strong);

  border-color: var(--accent-soft);

}



.nav-links a.nav-active,

.nav-links a.active {

  color: var(--accent-strong);

  border-color: var(--accent);

  font-weight: 500;

}



.nav-cta,

.btn-primary {

  padding: 7px 16px;

  border-radius: var(--radius-pill);

  border: 1px solid var(--accent);

  font-size: 13px;

  font-weight: 600;

  color: var(--text-on-accent);

  background: var(--accent);

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  transition: background 0.15s ease, border-color 0.15s ease;

  white-space: nowrap;

}



.btn-primary span.chevron {

  font-size: 15px;

}



.nav-cta:hover,

.btn-primary:hover {

  background: var(--accent-strong);

  border-color: var(--accent-strong);

  color: var(--text-on-accent);

}



/* DROPDOWN */

.nav-item,

.dropdown {

  position: relative;

}



.nav-dropdown {

  position: absolute;

  top: 100%;

  left: 0;

  margin-top: 6px;

  min-width: 220px;

  background: var(--bg-soft);

  border: 1px solid var(--border-subtle);

  border-radius: 8px;

  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);

  display: flex;

  flex-direction: column;

  padding: 6px 0;

  z-index: 30;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.15s ease;

}



.nav-dropdown.show {

  opacity: 1;

  pointer-events: auto;

}



/* Inner page dropdown specific */

.dropdown-content {

  position: absolute;

  top: 22px;

  left: 0;

  background: var(--bg-soft);

  border: 1px solid var(--border-subtle);

  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  display: none;

  min-width: 220px;

  padding: 8px 0;

  z-index: 50;

}



.dropdown-content a,

.nav-dropdown a {

  display: block;

  padding: 6px 14px;

  font-size: 12px;

  white-space: nowrap;

  border-bottom: 1px solid rgba(209, 213, 219, 0.6);

  color: var(--text-main);

}



.nav-dropdown a:last-child {

  border-bottom: none;

}



.dropdown-content a:hover,

.nav-dropdown a:hover {

  background: var(--accent-soft);

  color: var(--accent-strong);

}



/* HERO (Index) */

.hero {

  padding: 24px 0 4px;

  position: relative;

  z-index: 10;

}



.hero-grid {

  display: grid;

  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);

  gap: 28px;

  align-items: flex-start;

}



.hero-label-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 12px;

  align-items: center;

}



.hero-label {

  font-size: 12px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.14em;

  padding: 6px 14px;

  border-radius: var(--radius-pill);

  background: var(--accent-soft);

  border: 1px solid var(--accent);

  color: var(--accent-strong);

  display: inline-flex;

  align-items: center;

  gap: 8px;

}



.hero-label-dot {

  width: 6px;

  height: 6px;

  border-radius: 999px;

  background: var(--accent);

}



.hero-tagline-chip {

  padding: 4px 10px;

  border-radius: var(--radius-pill);

  background: var(--bg-soft);

  border: 1px solid var(--border-subtle);

  font-size: 11px;

  color: var(--text-muted);

}



.hero-title {

  font-size: clamp(26px, 3.2vw, 32px);

  line-height: 1.15;

  margin-bottom: 10px;

  letter-spacing: -0.02em;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);

  /* Contrast boost for light mode */

}



.hero-title span.accent {

  color: var(--accent-strong);

}



.hero-subtitle {

  font-size: 14px;

  color: var(--text-muted);

  max-width: 540px;

  margin-bottom: 16px;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);

  /* Contrast boost for light mode */

}



.hero-pills {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 18px;

}



.pill {

  font-size: 11px;

  padding: 5px 10px;

  border-radius: var(--radius-pill);

  background: var(--bg-soft);

  border: 1px solid var(--border-subtle);

  color: var(--text-muted);

}



.hero-actions {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 12px;

  margin-top: 4px;

  max-width: 720px;

}

.nav-auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-cta [data-auth-desktop="1"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-cta [data-auth-desktop="1"] a:not(.nav-cta):not(.header-cta):not(.email-btn) {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-auth-cta [data-auth-desktop="1"] a:not(.nav-cta):not(.header-cta):not(.email-btn):hover {
  color: var(--accent-strong);
}

.external-links-actions {

  flex-direction: row;

  flex-wrap: wrap;

  gap: 10px;

}

/* About page: give the External Links buttons more room before the footer. */
body.about-page main {
  padding-bottom: 28px;
}

body.about-page .external-links-actions {
  margin-bottom: 18px;
}

.social-link-btn {

  position: relative;

  overflow: hidden;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.social-link-btn::after {

  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);

  transform: translateX(-120%);

  transition: transform 0.45s ease;

}

.social-link-btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 22px rgba(34, 95, 190, 0.28);

}

.social-link-btn:hover::after {

  transform: translateX(120%);

}

.social-link-icon {

  width: 16px;

  height: 16px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

}

.social-link-icon svg {

  width: 100%;

  height: 100%;

  fill: currentColor;

}



.hero-cta-row {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  align-items: center;

}



.hero-meta-row {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));

  gap: 10px 14px;

  font-size: 11px;

  color: var(--text-muted);

  width: 100%;

  background: var(--bg-soft);

  backdrop-filter: blur(5px);

  border: 1px solid var(--border-subtle);

  border-radius: 12px;

  padding: 10px 12px;

}



.hero-meta-item {

  display: grid;

  grid-template-columns: auto 1fr;

  align-items: center;

  gap: 10px;

  line-height: 1.55;

}



.meta-dot {

  width: 8px;

  height: 8px;

  border-radius: 999px;

  border: 1px solid var(--border-subtle);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 8px;

}



.hero-card-wrap {

  margin-top: 10px;

  position: relative;

}

.hero-card-wrap.sticky-card {
  position: sticky;
  top: 80px;
  z-index: 10;
}



.hero-card {

  background: var(--bg-soft);

  backdrop-filter: blur(8px);

  border-radius: 14px;

  border: 1px solid var(--border-subtle);

  box-shadow: var(--card-shadow);

  padding: 0;

  position: relative;

  overflow: hidden;

}



/* About page: keep the info card closer to the text column (less empty space). */
body.about-page .hero-grid {
  gap: 20px;
}

body.about-page .about-info-card {
  max-width: 460px;
  margin-left: 0;
  margin-right: auto;
}

body.about-page #philosophy + div + .standard-text,
body.about-page #philosophy + div + .standard-text + .standard-text {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.hero-img-frame.about-info-image {
  aspect-ratio: 4 / 3;
  max-height: 384px;
}

.hero-img-frame.about-info-image img {
  object-position: center top;
}

.hero-chip {

  font-size: 10px;

  padding: 4px 8px;

  border-radius: var(--radius-pill);

  background: var(--bg-soft);

  border: 1px solid var(--border-subtle);

  color: var(--text-muted);

  text-transform: uppercase;

  letter-spacing: 0.12em;

}



.hero-card-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 14px 10px;

  margin-bottom: 0;

}



.profile-chunk {

  display: flex;

  align-items: center;

  gap: 10px;

}



.profile-avatar {

  width: 40px;

  height: 40px;

  border-radius: 50%;

  overflow: hidden;

  border: 1px solid var(--border-subtle);

  background: var(--bg-alt);

}



.profile-meta {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.profile-name {

  font-size: 13px;

  font-weight: 600;

}



.profile-role {

  font-size: 11px;

  color: var(--text-muted);

}



.hero-img-frame {

  overflow: hidden;

  border-top: 1px solid var(--border-subtle);

  border-bottom: 1px solid var(--border-subtle);

  position: relative;

  aspect-ratio: 3 / 4;

  max-height: 480px;

  background: var(--bg-alt);

  width: 100%;

}



.hero-img-frame img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.hero-card-footer {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 8px;

  font-size: 11px;

  padding: 14px;

}



.hero-stat {

  padding: 7px 8px;

  border-radius: 8px;

  background: var(--chip-bg);

  /* Could use variable? */

  border: 1px solid var(--border-subtle);

}



.hero-stat-label {

  color: var(--text-muted);

  margin-bottom: 2px;

}



.hero-stat-value {

  font-weight: 600;

  font-size: 12px;

}



/* HIGHLIGHTS (Index) */

/* HIGHLIGHTS (Index) */

.highlights {

  padding: 0 0 10px;

  position: relative;

  z-index: 5;

}



.highlights-overlap {
  margin-top: 0;

}



.experience-full {

  padding: 0 0 10px;

}



.skills-full {

  padding: 0 0 10px;

}



.highlights-inner {

  display: grid;

  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);

  gap: 22px;

  align-items: flex-start;

}

.highlights-left {

  margin-top: 0;

}



.highlights-right {
  margin-top: 0;

}

@media (min-width: 1024px) {
  .highlights-overlap {
    margin-top: -260px;
  }

  .highlights-right {
    margin-top: calc(210px + 2cm);
  }
}

/* RESPONSIVE (phones + tablets) */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-wrap.sticky-card {
    position: static;
    top: auto;
  }

  .hero-img-frame {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .highlights-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .exp-meta {
    text-align: left;
    min-width: auto;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: inline-flex;
    padding: 7px 12px;
    font-size: 12px;
  }

  .nav-auth-cta [data-auth-desktop="1"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 14px;
  }

  .hero {
    padding: 18px 0 4px;
  }

  .hero-title {
    font-size: clamp(22px, 6.2vw, 30px);
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-meta-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}



.section-label {

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.14em;

  color: var(--text-muted);

  margin-bottom: 8px;

}



.section-title {

  font-size: 18px;

  margin-bottom: 6px;

}



.section-sub {

  font-size: 13px;

  color: var(--text-muted);

  margin-bottom: 14px;

  max-width: 560px;

}

.experience-full .section-sub,
.skills-full .section-sub,
.credentials-full .section-sub {
  max-width: none;
  width: 100%;
}



.highlights .section-sub {

  margin-bottom: 6px;

}



.highlight-list {

  display: grid;

  grid-template-columns: minmax(0, 1fr);

  gap: 8px;

}



.highlight-item {

  display: grid;

  grid-template-columns: auto minmax(0, 1fr);

  gap: 10px;

  padding: 8px 10px;

  border-radius: 10px;

  border: 1px solid var(--border-subtle);

  background: var(--bg-soft);

  backdrop-filter: blur(4px);

}



.highlight-badge {

  width: 22px;

  height: 22px;

  border-radius: 6px;

  border: 1px solid var(--border-subtle);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 11px;

  color: var(--text-muted);

}



.highlight-body {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.highlight-title {

  font-size: 13px;

  font-weight: 500;

}



.highlight-text {

  font-size: 12px;

  color: var(--text-muted);

}



.mini-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px;

}



.mini-card {

  padding: 9px 10px;

  border-radius: 10px;

  background: var(--bg-soft);

  backdrop-filter: blur(4px);

  border: 1px solid var(--border-subtle);

  font-size: 12px;

}

#education-section .mini-grid {
  grid-template-columns: minmax(0, 1fr);
}

#education-section .mini-card {
  max-width: 760px;
}



.mini-label {

  font-size: 11px;

  color: var(--text-muted);

  margin-bottom: 4px;

}



.mini-main {

  font-size: 13px;

  font-weight: 500;

  margin-bottom: 4px;

}



.mini-meta {

  font-size: 11px;

  color: var(--text-muted);

}



.skills-strip {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

}



.skill-chip {

  padding: 4px 8px;

  border-radius: var(--radius-pill);

  font-size: 11px;

  background: var(--chip-bg);

  border: 1px solid var(--border-subtle);

  color: var(--text-muted);

}



@media (min-width: 901px) {

  .experience-shell .page-subtitle {

    max-width: 60%;

    text-align: justify;

  }



  .floating-image {

    margin-top: 0;

  }

}



.page-intro {

  margin-bottom: 60px;

}



/* EXPERIENCE PAGE SPECIFIC */

.experience-layout {

  display: grid;

  grid-template-columns: 2.1fr 1.3fr;

  gap: 20px;

  align-items: flex-start;

}



.experience-section-title {

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--text-muted);

  margin-bottom: 10px;

}



.experience-list {

  display: flex;

  flex-direction: column;

  gap: 14px;

}



.experience-card {

  background: var(--bg-soft);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-subtle);

  padding: 14px 16px;

  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);

}



.exp-header {

  display: flex;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 4px;

  flex-wrap: wrap;

}



.exp-role {

  font-size: 14px;

  font-weight: 600;

  color: var(--accent-strong);

}



.exp-company {

  font-size: 13px;

  color: var(--text-muted);

}



.exp-meta {

  text-align: right;

  font-size: 11px;

  color: var(--text-muted);

  min-width: 130px;

}



.exp-meta span {

  display: block;

}



.exp-tags {

  margin: 6px 0 6px;

  font-size: 11px;

  color: var(--text-muted);

}



.exp-tags span {

  display: inline-block;

  border-radius: var(--radius-pill);

  border: 1px solid var(--chip-bg);

  padding: 2px 8px;

  margin-right: 4px;

  margin-bottom: 4px;

  background: var(--chip-bg);

  /* Should maybe be var(--chip-bg)? */

}



/* override hardcoded background if needed */



.exp-details {

  font-size: 12px;

  color: var(--text-main);

}



.exp-details ul {

  padding-left: 18px;

  margin-top: 6px;

}



.exp-details li {

  margin-bottom: 4px;

}



/* STANDARD TEXT (from Home) */

.standard-text {

  font-size: 14px;

  color: var(--text-muted);

  line-height: 1.6;

  margin-bottom: 16px;

  max-width: 600px;

}



.standard-text b,

.standard-text strong {

  font-weight: 600;

  color: var(--text-main);

}



.standard-h2 {

  font-size: 18px;

  font-weight: 600;

  color: var(--text-main);

  margin-top: 32px;

  margin-bottom: 8px;

}



.standard-h3 {

  font-size: 14px;

  font-weight: 600;

  color: var(--accent-strong);

  margin-top: 24px;

  margin-bottom: 6px;

  text-transform: uppercase;

  letter-spacing: 0.05em;

}



.standard-list {

  display: grid;

  gap: 8px;

  margin-bottom: 24px;

}

/* FOOTER */
footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.admin-link {
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.admin-link:hover {
  opacity: 1;
}

/* COURSES & CERTIFICATIONS (Home) */

.credentials-full {
  padding: 0 0 10px;
}

.cc-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0 14px;
}

.cc-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-header-row > div:first-child {
  flex: 1 1 100%;
  min-width: 0;
}

.cc-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

@media (min-width: 760px) {
  .cc-controls {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
  }
}

.cc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.cc-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.cc-tab.is-active {
  background: var(--chip-bg);
  color: var(--text-main);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.cc-tab:hover {
  filter: brightness(0.98);
}

.cc-tab:focus-visible {
  outline: 2px solid rgba(31, 79, 123, 0.42);
  outline-offset: 2px;
}

.cc-sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.cc-sort-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.cc-sort-btn.is-active {
  background: var(--chip-bg);
  color: var(--text-main);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.cc-sort-btn:hover {
  filter: brightness(0.98);
}

.cc-sort-btn:focus-visible {
  outline: 2px solid rgba(31, 79, 123, 0.42);
  outline-offset: 2px;
}

.cc-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.cc-search::placeholder {
  color: var(--text-muted);
}

.cc-search:focus {
  outline: none;
  border-color: rgba(31, 79, 123, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 79, 123, 0.12);
}

.cc-admin-controls {
  display: flex;
  justify-content: flex-end;
}

.cc-admin-controls[hidden] {
  display: none !important;
}

.cc-btn {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--chip-bg);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cc-btn:hover {
  filter: brightness(0.98);
}

.cc-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.cc-btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .cc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cc-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 0;
}

.cc-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.cc-year {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--chip-bg);
}

.cc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cc-issuer {
  font-size: 12px;
  color: var(--text-muted);
}

.cc-kind {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(31, 79, 123, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.cc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 520px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
  }
}

.blog-empty {
  background: var(--bg-soft);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.blog-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: block;
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-cover img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-post-header {
  margin-top: 40px;
}

.blog-post-title {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.blog-post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.blog-post-cover {
  margin: 18px 0 26px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-prose {
  max-width: 820px;
  margin: 0 auto 60px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
}

.blog-prose h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 26px 0 10px;
  color: var(--text-main);
}

.blog-prose h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 8px;
}

.blog-prose p {
  margin-bottom: 14px;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 18px;
  margin: 10px 0 16px;
}

.blog-prose li {
  margin-bottom: 6px;
}

.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 2px 6px;
  border-radius: 8px;
}

.blog-prose blockquote {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(31, 79, 123, 0.55);
  background: rgba(31, 79, 123, 0.06);
  border-radius: 12px;
  color: var(--text-main);
}

.blog-figure {
  margin: 18px 0 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-figure figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
}

.blog-chapters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 60px;
}

.blog-chapter {
  background: var(--bg-soft);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.blog-chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

@media (max-width: 800px) {
  .blog-chapter-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-chapter-media {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}

.blog-chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-chapter-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 6px;
}

.blog-chapter-body {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.65;
}

.blog-chapter-body p {
  margin-bottom: 10px;
}

.blog-chapter-body p:last-child {
  margin-bottom: 0;
}

.cc-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--chip-bg);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.cc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-action-btn {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--chip-bg);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cc-action-btn:hover {
  filter: brightness(0.98);
}

.cc-action-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.cc-action-btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.cc-action-btn-danger {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.28);
  color: #b91c1c;
}

.cc-action-btn-danger:hover {
  filter: brightness(0.97);
}

body.cc-modal-open {
  overflow: hidden;
}

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.45);
}

.cc-modal-overlay.is-open {
  display: flex;
}

.cc-modal {
  width: min(560px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 14px;
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cc-modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cc-modal-close {
  border: 1px solid var(--border-subtle);
  background: var(--chip-bg);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cc-modal-close:hover {
  filter: brightness(0.98);
}

.cc-modal-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cc-modal-note {
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.cc-modal-image {
  border: 1px dashed rgba(148, 163, 184, 0.65);
  border-radius: 14px;
  padding: 10px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
}

.cc-modal-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
}

.cc-modal-placeholder {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 24px 12px;
}

.cc-modal-linkrow {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-modal-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

.cc-modal-link-empty {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.cc-modal-edit {
  margin-top: 4px;
}

.cc-modal-error {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.cc-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 520px) {
  .cc-form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-field-span {
  grid-column: 1 / -1;
}

.cc-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 12px;
}

.cc-input:focus {
  outline: none;
  border-color: rgba(31, 79, 123, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 79, 123, 0.12);
}

.cc-textarea {
  resize: vertical;
  min-height: 96px;
}

.cc-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* TYPOGRAPHY CONSISTENCY */
.page-title {
  font-size: var(--font-size-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-muted);
}

.section-title,
.standard-h2,
.blog-chapter-title {
  font-size: var(--font-size-title);
  line-height: 1.3;
}

.hero-subtitle,
.standard-text,
.section-sub,
.highlight-text,
.exp-details,
.project-desc,
.blog-card-excerpt,
.blog-chapter-body,
.cc-empty,
.cc-issuer,
.cc-modal-note {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.logo-sub,
.hero-chip,
.hero-tagline-chip,
.pill,
.nav-mobile-title,
.nav-mobile-section-label,
.hero-meta-row,
.hero-card-footer,
.section-label,
.mini-label,
.mini-meta,
.skill-chip,
.exp-meta,
.exp-tags,
.cc-year,
.cc-kind,
.cc-tag,
.cc-action-btn,
.cc-field-label,
.cc-modal-close,
.blog-card-meta,
.blog-figure figcaption,
footer {
  font-size: var(--font-size-caption);
}

.nav-links,
.nav-mobile-links a,
.nav-mobile-sub a,
.nav-mobile-close,
.nav-cta,
.btn-primary,
.project-link,
.blog-card-link,
.cc-btn,
.cc-tab,
.cc-sort-btn,
.cc-search,
.cc-input,
.cc-modal-link,
.cc-modal-link-empty {
  font-size: var(--font-size-sm);
}

.profile-name,
.hero-stat-value,
.project-title,
.blog-card-title {
  font-size: var(--font-size-body-lg);
}

.mini-main,
.highlight-title,
.experience-section-title,
.exp-company,
.blog-post-meta,
.cc-title,
.cc-modal-title {
  font-size: var(--font-size-sm);
}
