/* ============================================================
   PORTFOLIO.GARDCYBER.COM - Master Stylesheet
   NIST SP 800-171 Readiness Assessment Case Study
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0b0d11;
  --bg-secondary: #121418;
  --bg-card: #181b20;
  --bg-card-hover: #1e2128;
  --bg-elevated: #1f2229;
  --border-color: #262930;
  --border-light: #32353e;
  --text-primary: #e8eaed;
  --text-secondary: #9ca0a8;
  --text-muted: #686d78;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --accent-amber: #eab308;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 13, 17, 0.96);
  border-bottom-color: var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.navbar-logo span {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.navbar-links a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 .highlight {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
}

.stat-item {
  background: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Overview Section --- */
#overview {
  background: var(--bg-secondary);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.overview-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}
.detail-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.detail-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.detail-card h4 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.detail-card p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Methodology Section --- */
#methodology {
  background: var(--bg-primary);
}

.methodology-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.methodology-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.methodology-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.methodology-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.methodology-step h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.methodology-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.methodology-approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.approach-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.approach-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Framework Section --- */
#framework {
  background: var(--bg-secondary);
}

.framework-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.framework-families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.family-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
}
.family-item:hover {
  border-color: var(--accent);
}

.family-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 2rem;
}

.family-name {
  color: var(--text-secondary);
}

/* --- Assessment Process Section --- */
#process {
  background: var(--bg-primary);
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.process-item {
  position: relative;
  padding-left: 4.5rem;
  padding-bottom: 2.5rem;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-marker {
  position: absolute;
  left: 1.25rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}

.process-item.completed .process-marker {
  background: var(--accent);
  color: var(--bg-primary);
}

.process-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.process-item .phase-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.process-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Dashboard Section --- */
#dashboard {
  background: var(--bg-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dashboard-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-card .card-title {
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-card .card-badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 500;
}

/* --- Compliance Score Bar --- */
.score-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.score-circle {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  position: relative;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 8;
}

.score-circle .progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 177;
  transition: stroke-dashoffset 1.5s ease;
}

.score-circle .score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-circle .score-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.score-circle .score-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.score-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-row .label {
  min-width: 5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.score-row .bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.score-row .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.score-row .bar-fill.implemented { background: var(--accent-green); }
.score-row .bar-fill.partial { background: var(--accent-amber); }
.score-row .bar-fill.not-implemented { background: var(--accent-red); }

.score-row .value {
  min-width: 3rem;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Risk Heatmap --- */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 0.25rem;
  transition: transform 0.3s ease;
}
.heatmap-cell:hover {
  transform: scale(1.1);
}

.heatmap-cell.critical { background: #7f1d1d; }
.heatmap-cell.high { background: #991b1b; }
.heatmap-cell.medium { background: #92400e; }
.heatmap-cell.low { background: #374151; }
.heatmap-cell.implemented { background: #065f46; }
.heatmap-cell.na { background: #1e293b; color: var(--text-muted); }

/* --- Timeline Chart --- */
.timeline-chart {
  position: relative;
  padding: 1rem 0;
}

.timeline-track {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-track .phase-label {
  min-width: 6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-track .bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.timeline-track .bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-track .bar-fill.phase1 { background: linear-gradient(90deg, #06b6d4, #0891b2); width: 25%; }
.timeline-track .bar-fill.phase2 { background: linear-gradient(90deg, #8b5cf6, #7c3aed); width: 25%; }
.timeline-track .bar-fill.phase3 { background: linear-gradient(90deg, #f59e0b, #d97706); width: 25%; }
.timeline-track .bar-fill.phase4 { background: linear-gradient(90deg, #10b981, #059669); width: 25%; }

/* --- Findings Section --- */
#findings {
  background: var(--bg-primary);
}

.findings-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.finding-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.finding-stat .count {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.finding-stat .count.critical-count { color: var(--accent-red); }
.finding-stat .count.high-count { color: var(--accent-amber); }
.finding-stat .count.medium-count { color: var(--accent); }
.finding-stat .count.low-count { color: var(--text-muted); }

.finding-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.findings-list {
  display: grid;
  gap: 1rem;
}

.finding-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}
.finding-item:hover {
  border-color: var(--border-light);
}

.finding-item.critical { border-left-color: var(--accent-red); }
.finding-item.high { border-left-color: var(--accent-amber); }
.finding-item.medium { border-left-color: var(--accent); }
.finding-item.low { border-left-color: var(--text-muted); }

.finding-item .finding-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.finding-item .finding-priority {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.finding-priority.critical { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.finding-priority.high { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.finding-priority.medium { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.finding-priority.low { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.finding-item .finding-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.finding-item .finding-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- Deliverables Section --- */
#deliverables {
  background: var(--bg-secondary);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.deliverable-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.deliverable-card .del-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.deliverable-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.deliverable-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- Skills Section --- */
#skills {
  background: var(--bg-primary);
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skills-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Download Section --- */
#download {
  background: var(--bg-secondary);
  text-align: center;
}

.download-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.download-box .icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.download-box h3 {
  margin-bottom: 0.75rem;
}

.download-box p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer .social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all 0.3s ease;
}
footer .social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Mockup Gallery (Document Previews) --- */
.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mockup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.mockup-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mockup-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 4px;
}

.mockup-body {
  padding: 0.75rem 1rem;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(42, 51, 70, 0.5);
}

.mockup-row:last-child { border-bottom: none; }

.badge-i {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.badge-pi {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.badge-ni {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* --- Folder Structure (Document Architecture) --- */
.folder-structure {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.folder-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
  width: 100%;
  margin-left: 2rem;
}

.folder-line {
  text-align: center;
  padding: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --- Impact Grid (Business Impact Section) --- */
#impact {
  background: var(--bg-primary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.impact-card:hover::before { opacity: 1; }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.impact-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.impact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.impact-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Lessons Learned Section --- */
#lessons {
  background: var(--bg-secondary);
}

.lessons-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lesson-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.lesson-item:hover { border-color: var(--border-light); }

.lesson-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.lesson-content h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.lesson-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Contact Section --- */
#contact {
  background: var(--bg-primary);
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-link i {
  font-size: 1.125rem;
  color: var(--accent);
}

/* --- Phase Costs (under roadmap) --- */
.phase-costs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  text-align: center;
}

/* --- Bar Text (timeline) --- */
.bar-text {
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; }
  .framework-content { grid-template-columns: 1fr; }
  .skills-content { grid-template-columns: 1fr; }
  .methodology-flow { grid-template-columns: repeat(2, 1fr); }
  .methodology-approach { grid-template-columns: repeat(2, 1fr); }
  .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .findings-summary { grid-template-columns: repeat(2, 1fr); }

  .score-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 0.5rem;
  }
  .navbar-links.open { display: flex; }
  .navbar-toggle { display: block; }

  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero p { font-size: 1rem; }

  .methodology-flow,
  .methodology-approach,
  .deliverables-grid { grid-template-columns: 1fr; }

  .dashboard-grid { grid-template-columns: 1fr; }

  .overview-details { grid-template-columns: 1fr; }

  .process-timeline::before { left: 1rem; }
  .process-item { padding-left: 3.5rem; }
  .process-marker { left: 0.25rem; }

  .findings-summary { grid-template-columns: repeat(2, 1fr); }

  .heatmap-grid { grid-template-columns: repeat(3, 1fr); }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1rem; }
  .stat-number { font-size: 1.25rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .findings-summary { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { padding: 0.75rem; }
  .stat-number { font-size: 1.125rem; }
  .framework-families { grid-template-columns: 1fr; }

  .timeline-track { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .timeline-track .phase-label { min-width: auto; }
  .timeline-track .bar-track { width: 100%; }
  .mockup-gallery { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .lessons-list { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; align-items: center; }
  .folder-structure { padding: 1.5rem; }
  .folder-item { flex-direction: column; text-align: center; gap: 0.25rem; }
  .phase-costs { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .phase-costs { grid-template-columns: 1fr; }
  .folder-item { padding: 0.75rem; font-size: 0.8rem; }
}

/* --- Chart.js Radar Overrides --- */
#radarChart {
  width: 100% !important;
  height: 100% !important;
}
#radarChart + p {
  margin-top: 0.75rem;
}
canvas {
  max-width: 100%;
}

/* --- Data Flow Diagram --- */
.dfd-boundary {
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(59,130,246,0.04);
}
.dfd-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-align: center;
}
.dfd-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dfd-node {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-primary);
}
.dfd-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.5;
}

/* --- Print Styles for PDF --- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .navbar, .hero-actions, #report .btn, footer, .contact-links { display: none !important; }
  .hero { min-height: auto !important; padding: 1rem 0 !important; }
  .container { max-width: 100% !important; padding: 0 1in !important; }
  .dashboard-card, .detail-card, .approach-card, .finding-item, .deliverable-card, .impact-card { break-inside: avoid; }
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .stat-number { color: #000 !important; }
  .score-circle svg { filter: none; }
  .heatmap-grid { gap: 2px; }
  .heatmap-cell { font-size: 0.55rem; padding: 0.2rem; }
  .mockup-gallery { grid-template-columns: repeat(3, 1fr); }
  section { padding: 1rem 0 !important; }
  .section-header { margin-bottom: 1rem; }
  .overview-grid { grid-template-columns: 1fr; }
  #report .btn { display: none !important; }
}
