/* ==========================================================================
   TECHNICAL MINIMALIST DESIGN SYSTEM
   Inspired by technical blueprints & high-end UI wireframes.
   Overrides the Start Bootstrap "Resume" theme (loaded last).
   ========================================================================== */

:root {
  --paper: #F7F7F5;
  --forest: #1A3C2B;
  --grid: #3A3A38;
  --coral: #FF8C69;
  --mint: #9EFFBF;
  --gold: #F4D35E;
  --ai-line: #6D5CE7;   /* distinct overlay accent for the AI threshold */

  --hairline: rgba(58, 58, 56, 0.20);   /* #3A3A38 @ 20% */
  --hairline-soft: rgba(58, 58, 56, 0.30);

  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* --------------------------------------------------------------------------
   MOSAIC BACKGROUND
   Full-page repeating SVG of interlocking rectangular panels on Paper.
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font-body) !important;
  color: var(--grid) !important;
  background-color: var(--paper) !important;
  padding-top: 64px !important;   /* fixed top header height */
  padding-left: 0 !important;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect width='240' height='240' fill='%23F7F7F5'/%3E%3Cg stroke='%233A3A38' stroke-opacity='0.3' stroke-width='0.5' fill='none'%3E%3Crect x='0' y='0' width='120' height='120'/%3E%3Crect x='120' y='0' width='120' height='60'/%3E%3Crect x='120' y='60' width='60' height='60'/%3E%3Crect x='180' y='60' width='60' height='60'/%3E%3Crect x='0' y='120' width='60' height='120'/%3E%3Crect x='60' y='120' width='60' height='60'/%3E%3Crect x='60' y='180' width='60' height='60'/%3E%3Crect x='120' y='120' width='120' height='120'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head) !important;
  color: var(--forest) !important;
  text-transform: none !important;
  letter-spacing: -0.02em;
  font-weight: 700 !important;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 6rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
  line-height: 0.95 !important;
}

h3 {
  font-size: 1.4rem !important;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1rem !important;
  color: var(--forest) !important;
}

p, li {
  font-family: var(--font-body) !important;
  color: var(--grid) !important;
}

p.lead {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.65;
  color: #44443f !important;
}

.text-primary {
  color: var(--forest) !important;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

a:hover, a:focus, a:active {
  color: var(--coral);
}

/* Subheading -> mono technical metadata */
.subheading {
  font-family: var(--font-mono) !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 500 !important;
  color: var(--grid) !important;
}

/* --------------------------------------------------------------------------
   TECHNICAL TOP NAVIGATION
   -------------------------------------------------------------------------- */

.tech-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.tech-nav__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box {
  width: 32px;
  height: 32px;
  background: var(--forest);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  flex: 0 0 auto;
}
.logo-box:hover { color: var(--mint); }

.logo-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.tech-nav__center {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.tech-nav__center a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grid);
}
.tech-nav__center a:hover { color: var(--forest); }

.tech-nav__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ghost,
.btn-solid {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--forest);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.btn-solid {
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
}
.btn-solid:hover {
  background: #14301f;
  color: var(--mint);
}

@media (max-width: 767px) {
  .tech-nav__center { display: none; }
  .logo-name { display: none; }
}

/* --------------------------------------------------------------------------
   SECTIONS & DIVIDERS
   -------------------------------------------------------------------------- */

section.resume-section {
  max-width: 72rem !important;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem) !important;
  min-height: auto !important;
}

hr, hr.m-0 {
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  opacity: 1 !important;
  margin: 0 !important;
}

/* Monospace kicker label above section titles */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--forest);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   STATUS BADGE
   -------------------------------------------------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(26, 60, 43, 0.25);
  border-radius: 2px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--paper);
}
.status-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--forest);
  display: inline-block;
}
.status-badge .dot.pulse {
  animation: badgePulse 1.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* --------------------------------------------------------------------------
   HERO / ABOUT
   -------------------------------------------------------------------------- */

#about .hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grid);
  border-left: 1px solid var(--forest);
  padding-left: 1rem;
  margin: 1.5rem 0 2.5rem;
}
#about .hero-sub a { color: var(--forest); }
#about .hero-sub a:hover { color: var(--coral); }

/* --------------------------------------------------------------------------
   BUTTONS (view toggle + samples)
   -------------------------------------------------------------------------- */

.btn.btn-outline-primary {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest) !important;
  border: 1px solid var(--hairline) !important;
  background: #fff !important;
  border-radius: 2px !important;
  padding: 8px 16px !important;
  box-shadow: none !important;
  transition: all 0.15s ease-out;
}
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary.active {
  background: var(--forest) !important;
  color: var(--paper) !important;
  border-color: var(--forest) !important;
}

/* --------------------------------------------------------------------------
   EXPERIENCE / EDUCATION ITEMS -> technical cards
   -------------------------------------------------------------------------- */

section.resume-section .resume-item {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: clamp(1.5rem, 3vw, 2rem) !important;
  margin-bottom: 1px !important;   /* 1px grid-gap feel */
  position: relative;
}

/* Company header accent left-border */
section.resume-section .resume-content > h3:first-child {
  border-left: 3px solid var(--forest);
  padding-left: 12px;
  margin-bottom: 6px !important;
}

/* Date -> mono tag */
section.resume-section .resume-item .resume-date span,
section.resume-section .resume-item .resume-date .text-primary {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest) !important;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 4px 10px;
  display: inline-block;
  background: #fff;
}

@media (min-width: 768px) {
  section.resume-section .resume-item .resume-date {
    min-width: 14rem;
  }
}

/* Project sub-titles */
.resume-content h5 {
  margin-top: 1.5rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}

/* Technology strings -> subtle mono */
.resume-content strong + i,
.resume-content p.lead i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.85em;
  color: var(--grid);
}
.resume-content p.lead strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

/* Summary lists -> technical bullets */
.resume-content ul {
  list-style: none;
  padding-left: 0;
}
.resume-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.resume-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--coral);
}
.resume-content .summary h5 i,
.resume-content .summary h5 {
  font-style: normal;
}
.resume-content .summary h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}

/* Alternate accent colors per problem/solution/tech group */
.resume-content .summary ul:nth-of-type(1) li::before { background: var(--coral); }
.resume-content .summary ul:nth-of-type(2) li::before { background: var(--mint); }
.resume-content .summary ul:nth-of-type(3) li::before { background: var(--gold); }

/* Education grid feel */
#education .resume-item {
  margin-bottom: 1px !important;
}

/* PDF icon container -> corner-marked box */
.pdf-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 16px 20px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  transition: border-color 0.15s ease-out;
}
.pdf-download:hover { border-color: var(--forest); color: var(--forest); }
.pdf-download .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--forest);
}
.pdf-download .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.pdf-download .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.pdf-download .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.pdf-download .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Images: luminosity blend, full color on hover */
.resume-section img:not(.logo-box):not([width]) {
  mix-blend-mode: luminosity;
  opacity: 0.9;
  transition: all 0.2s ease-out;
}
.resume-section img:not(.logo-box):not([width]):hover {
  mix-blend-mode: normal;
  opacity: 1;
}

.indent { margin-left: 0 !important; }

/* --------------------------------------------------------------------------
   AI MAINSTREAM THRESHOLD MARKER
   A horizontal line OVERLAID on the timeline (zero layout impact) marking
   when AI became mainstream in development (~2022). It has a filled-circle
   node at the left end and a 45-degree leader rising to the description.
   -------------------------------------------------------------------------- */

.ai-divider {
  position: relative;
  z-index: 50;        /* overlay above the timeline content */
  height: 0;          /* occupies no vertical space */
  margin: 0;
  pointer-events: none;
}

/* Horizontal overlay line, centered in the gap between roles */
.ai-divider__line {
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ai-line);
}

/* Filled circle terminating the left end */
.ai-divider__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ai-line);
  transform: translate(-2px, -50%);
}

/* 45-degree leader rising from the line up toward the label */
.ai-divider__leader {
  position: absolute;
  top: -1.5rem;
  left: 44px;
  width: 30px;
  height: 2px;
  background: var(--ai-line);
  transform-origin: left center;
  transform: rotate(-45deg);
}

/* Description sitting at the top of the leader */
.ai-divider__label {
  position: absolute;
  top: -1.5rem;
  left: 62px;
  transform: translateY(calc(-100% - 16px));
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai-line);
  background: var(--paper);
  border: 1px solid var(--ai-line);
  border-radius: 2px;
  padding: 6px 12px;
  white-space: nowrap;
}

.ai-divider__label .ai-divider__note {
  color: var(--grid);
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .ai-divider__leader { left: 24px; width: 22px; }
  .ai-divider__label { left: 38px; transform: translateY(calc(-100% - 12px)); }
  .ai-divider__label .ai-divider__note { display: none; }
}

/* Summary / Verbose toggle containers are <i> elements; normalize them
   so body copy isn't italicized and block children lay out correctly. */
.verbose,
.summary {
  display: block;
  font-style: normal;
}
[hidden] { display: none !important; }
