/**
 * PAGES.CSS - Subpage-Specific Styles
 * ====================================
 * 
 * Styles specific to inner pages: about, skills, cases, work, etc.
 * Loaded only on subpages to reduce homepage load.
 */

/* ===========================================
   ABOUT PAGE OVERRIDES
   =========================================== */
.page-about #hero-heading {
  margin-top: 3rem;
}

/* ===========================================
   ORIGIN SECTION (About Page)
   =========================================== */
.origin {
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  border-bottom: 1px solid var(--divider);
}

.origin-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.origin-photo {
  position: sticky;
  top: 120px;
}

.headshot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(225, 6, 31, 0.5);
  box-shadow:
    0 0 0 8px rgba(225, 6, 31, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.headshot:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow:
    0 0 0 10px rgba(225, 6, 31, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.6);
}

.origin-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.origin-label::before {
  content: '01';
  display: block;
  font-size: 56px;
  font-weight: 800;
  color: rgba(225, 6, 31, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.origin-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.origin-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 24px;
}

.origin-body strong {
  color: var(--text-white);
  font-weight: 600;
}

/* Accent Block / Blockquote */
.accent-block {
  background: var(--bg-dark);
  padding: 28px 32px;
  border-left: 4px solid var(--accent);
  margin: 40px 0;
}

.accent-block p {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-white);
  font-style: italic;
}

.accent-block cite {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ===========================================
   TIMELINE SECTION
   =========================================== */
.timeline-section {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, #e1061fa3 0%, var(--bg-dark) 30%);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

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

.timeline-item::after {
  content: '';
  position: absolute;
  left: 154px;
  top: 52px;
  width: 13px;
  height: 13px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  transition: background 0.3s;
}

.timeline-item:hover::after {
  background: var(--accent);
}

.timeline-item:hover .timeline-content {
  transform: translateX(6px);
}

.timeline-date {
  text-align: right;
  padding-right: 44px;
}

.timeline-year {
  font-size: 28px;
  font-weight: 800;
  color: rgba(225, 6, 31, 0.3);
  line-height: 1;
  letter-spacing: -1px;
}

.timeline-period {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.timeline-content {
  padding-left: 44px;
  transition: transform 0.3s ease;
}

.timeline-role {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.timeline-company i {
  margin-right: 6px;
}

.timeline-desc {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--status-bg);
  padding: 6px 14px;
  border: 1px solid rgba(225, 6, 31, 0.2);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--divider);
  padding: 4px 10px;
  transition: all 0.2s;
}

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

/* ===========================================
   PHILOSOPHY SECTION
   =========================================== */
.philosophy {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 56px;
}

.philosophy-card {
  background: var(--bg-dark);
  padding: 44px 36px;
  transition: background 0.3s;
}

.philosophy-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

.philosophy-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: 'Montserrat', monospace;
}

.philosophy-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.philosophy-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ===========================================
   ASSESSMENT SECTION
   =========================================== */
.assessment {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, rgba(225, 6, 31, 0.03) 0%, transparent 100%);
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 500px;
}

.assessment-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  margin-top: 56px;
  align-items: start;
}

/* Radar Chart Card */
.assessment-radar {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.radar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E1061F;
  margin-bottom: 16px;
  text-align: center;
}

.radar-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.radar-chart {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.radar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #888;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.high {
  background-color: #E1061F;
}

.legend-dot.mid {
  background-color: rgba(225, 6, 31, 0.5);
}

/* Insights Grid */
.assessment-insights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.insight-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
}

.insight-card:hover {
  border-color: #E1061F;
  background-color: #1f1a1a;
  transform: translateY(-2px);
}

.insight-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #E1061F 0%, #8B0000 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
  min-width: 0;
}

.insight-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.insight-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #e1061f;
  margin-bottom: 6px;
  line-height: 1.3;
}

.insight-desc {
  display: block;
  font-size: 15px;
  color: #888;
  line-height: 1.5;
}

.trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.trait-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #E1061F;
  background-color: rgba(225, 6, 31, 0.12);
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(225, 6, 31, 0.4);
  direction: rtl;
  transition: all 0.3s ease;
}

.trait-tag:hover {
  background-color: rgba(225, 6, 31, 0.25);
  border-color: #E1061F;
}

/* Download Button - Prominent Red CTA */
.assessment-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #E1061F 0%, #a00000 100%);
  padding: 18px 36px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 6px 24px rgba(225, 6, 31, 0.5);
}

.assessment-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(225, 6, 31, 0.6);
  background: linear-gradient(135deg, #ff2020 0%, #c00000 100%);
}

.assessment-download i {
  font-size: 16px;
}

.assessment-download i:last-child {
  font-size: 12px;
  opacity: 0.7;
}

/* ===========================================
   EDUCATION SECTION
   =========================================== */
.education {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0202 100%);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 56px;
}

.edu-card {
  background: var(--bg-dark);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s;
}

.edu-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

.edu-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.edu-degree {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  margin: 0;
}

.edu-institution {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.edu-detail {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-white);
}

/* ===========================================
   CTA STRIP
   =========================================== */
.cta-strip {
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  border-bottom: 1px solid var(--divider);
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.cta-strip-headline {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-white);
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.cta-strip-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-strip-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

/* ===========================================
   CASE STUDY STYLES
   =========================================== */
.case-study {
  border-bottom: 1px solid var(--divider);
}

.cs-header {
  padding: 64px 80px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
}

.cs-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-number::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.cs-title {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.cs-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cs-meta-item {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-meta-item i {
  color: var(--accent);
}

.cs-badge-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-top: 14px;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--divider);
  border-top: 1px solid var(--divider);
  margin-top: 44px;
}

.cs-col {
  background: var(--bg-dark);
  padding: 44px 40px;
}

.cs-col-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-col-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.cs-col-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-body);
}

.cs-col-text p {
  margin-bottom: 14px;
}

.cs-col-text p:last-child {
  margin-bottom: 0;
}

.cs-col-text strong {
  color: var(--text-white);
  font-weight: 600;
}

.cs-results {
  background: rgba(225, 6, 31, 0.04);
}

.result-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}

.result-row:first-child {
  padding-top: 0;
}

.result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-metric {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

.result-metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
}

/* Results Strip */
.results-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--divider);
}

.result-item {
  padding: 36px 48px;
  border-right: 1px solid var(--divider);
  background: rgba(11, 11, 11, 0.8);
  transition: background 0.3s;
}

.result-item:last-child {
  border-right: none;
}

.result-item:hover {
  background: rgba(225, 6, 31, 0.07);
}

.result-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7A7A7A;
  margin-bottom: 10px;
}

.result-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.result-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Case Study Screenshots Gallery */
.cs-screenshots {
  margin-top: 40px;
  padding: 32px;
  background: rgba(11, 11, 11, 0.6);
  border: 1px solid var(--divider);
}

.cs-screenshots-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-screenshots-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.cs-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cs-screenshots-grid.cs-screenshots-2col {
  grid-template-columns: repeat(2, 1fr);
}

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

.cs-screenshot {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: #000;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.cs-screenshot:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cs-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.cs-screenshot:hover img {
  transform: scale(1.02);
}

.cs-screenshot-caption {
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(11, 11, 11, 0.95);
  border-top: 1px solid var(--divider);
  line-height: 1.4;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-caption {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ===========================================
   METHODOLOGY SECTION
   =========================================== */
.methodology {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(160deg, #e1061fa3 0%, var(--bg-dark) 40%);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 56px;
}

.method-card {
  background: var(--bg-dark);
  padding: 44px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.method-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

.method-card:hover::before {
  transform: scaleX(1);
}

.method-step {
  font-size: 48px;
  font-weight: 800;
  color: rgba(225, 6, 31, 0.12);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.method-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.method-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===========================================
   WORK GRID
   =========================================== */
.work-section {
  padding: 0 80px 80px;
}

/* Filters */
.filters {
  padding: 40px 80px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s 0.6s forwards;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 73px;
  z-index: 100;
}

.filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--divider);
  padding: 8px 18px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}

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

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
}

/* Work Cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
}

.work-card {
  background: var(--bg-dark);
  padding: 40px 36px;
  transition: background 0.3s;
  position: relative;
}

.work-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

.work-card.featured {
  grid-column: span 2;
}

.card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-metric {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===========================================
   MARKETS / VERTICALS SECTION (Work Page)
   =========================================== */
.markets-row {
  padding: 80px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(160deg, #0e0202 0%, var(--bg-dark) 50%);
}

.markets-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.markets-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.markets-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.markets-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1.1;
}

.markets-sub {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
}

.vertical-item {
  background: var(--bg-dark);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.3s;
}

.vertical-item:hover {
  background: rgba(225, 6, 31, 0.05);
}

.vertical-icon {
  width: 36px;
  height: 36px;
  background: var(--status-bg);
  border: 1px solid rgba(225, 6, 31, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vertical-icon i {
  font-size: 14px;
  color: var(--accent);
}

.vertical-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
}

.vertical-market {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===========================================
   SKILLS / CATEGORIES
   =========================================== */
.skills-wrap,
.categories {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 56px;
}

.category-card {
  background: var(--bg-dark);
  padding: 40px 32px;
  transition: background 0.3s;
}

.category-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

/* ===========================================
   CERTIFICATIONS
   =========================================== */
.certs-section {
  padding: 100px 80px;
  border-bottom: 1px solid var(--divider);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 56px;
}

.cert-card {
  background: var(--bg-dark);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cert-card:hover {
  background: rgba(225, 6, 31, 0.04);
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cert-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon i {
  font-size: 24px;
  color: var(--text-white);
}

.cert-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.cert-issuer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cert-detail {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-body);
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
  border-bottom: 1px solid rgba(225, 6, 31, 0.3);
  padding-bottom: 2px;
}

.cert-verify:hover {
  gap: 14px;
}

.cert-id-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--divider);
  transition: background 0.2s;
}

.cert-id-row:hover {
  background: rgba(225, 6, 31, 0.05);
  border-color: rgba(225, 6, 31, 0.2);
}

.cert-id-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'Montserrat', monospace;
}

.cert-id-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.cert-id-link:hover {
  gap: 10px;
}

/* ===========================================
   CONTACT PAGE
   =========================================== */
.contact-hero {
  padding: 140px 80px 80px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.contact-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 16px;
}

.hero-title {
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.6px;
  color: var(--text-white);
  max-width: 640px;
}

.hero-sub {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 620px;
}

/* H2 Hero Sub - ensures proper styling when h2 */
h2.hero-sub {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 620px;
}

.hero-intro {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-details {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  /* background: rgba(11, 11, 11, 0.55); */
  text-decoration: none;
  color: inherit;
  min-height: 112px;
  transition: background 0.2s ease;
}

.detail-card:hover {
  background: rgba(225, 6, 31, 0.1);
}

.detail-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 6, 31, 0.16);
  border: 1px solid rgba(225, 6, 31, 0.3);
  flex-shrink: 0;
}

.detail-icon i {
  color: var(--accent);
  font-size: 16px;
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.5;
}

.detail-copy {
  font-size: 15px;
  color: var(--text-body);
  margin-top: 4px;
  line-height: 1.6;
}

/* WhatsApp Card - Green Accent */
.whatsapp-card:hover {
  background: rgba(37, 211, 102, 0.15);
}

.whatsapp-icon {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
}

.whatsapp-icon i {
  color: #25D366;
  font-size: 20px;
}

/* Form Card */
.form-card {
  /* background: rgba(11, 11, 11, 0.82); */
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.form-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.form-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.form-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.form-intro {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-bottom: 1px solid var(--divider);
  color: var(--text-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(225, 6, 31, 0.06);
  border-bottom-color: var(--accent);
}

.form-group textarea {
  resize: none;
  height: 140px;
}

.form-group select {
  cursor: pointer;
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-white);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--accent);
  color: var(--text-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.form-submit:hover {
  background: var(--accent-deep);
}

.form-submit i {
  font-size: 14px;
}

.contact-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Open To Section */
.open-to {
  padding: 80px;
  border-bottom: 1px solid var(--divider);
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  margin-top: 48px;
}

.open-card {
  background: var(--bg-dark);
  padding: 40px 36px;
  transition: background 0.3s;
}

.open-card:hover {
  background: rgba(225, 6, 31, 0.05);
}

.open-icon {
  width: 44px;
  height: 44px;
  background: var(--status-bg);
  border: 1px solid rgba(225, 6, 31, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.open-icon i {
  font-size: 18px;
  color: var(--accent);
}

.open-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.open-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ===========================================
   LIGHT MODE — PAGES.CSS OVERRIDES
   =========================================== */
body.light .timeline-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light .insight-card {
  background-color: #EDE9E5;
  border-color: #DDDAD7;
}

body.light .insight-card:hover {
  background-color: #E8E0DC;
  border-color: var(--accent);
}

body.light .result-item {
  background: rgba(245, 242, 238, 0.9);
}

body.light .result-item:hover {
  background: rgba(225, 6, 31, 0.06);
}

body.light .cs-screenshots {
  background: rgba(245, 242, 238, 0.8);
  border-color: var(--divider);
}