/* ═══════════════════════════════════════════════════════════════
   QTSI — sections2.css
   Founder · Cybersecurity · Procurement · Cloud · ERP · Why QTSI
   Design by NEXORA (nexorayyc.io)
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   FOUNDER
══════════════════════════════════════════ */

.founder-section {
  overflow: hidden;
}

.founder-blob-1 {
  width: 560px; height: 560px;
  top: -10%; right: -5%;
  z-index: 0;
}
.founder-blob-2 {
  width: 380px; height: 380px;
  bottom: 0; left: -8%;
  z-index: 0;
}

/* 2-column split */
.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Visual side ── */
.founder-visual {
  position: relative;
}

/* Poster-style frame — shows the full campaign image */
.founder-photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  /* Dark bg so contained image edges don't show gaps */
  background: #08080E;
  border: 1px solid var(--border-blue);
  /* Square format matches the social poster asset */
  aspect-ratio: 1 / 1;
  max-width: 460px;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
}

.founder-photo {
  width: 100%;
  height: 100%;
  /* contain shows the full poster — nothing cropped */
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0;
}

/* Subtle inner edge glow — premium frame effect */
.founder-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0,112,243,.08);
  pointer-events: none;
  z-index: 2;
}

/* Remove old gradient overlay that was hiding poster content */
.founder-photo-frame::after { display: none; }

/* Photo placeholder — shown until real image is loaded */
.founder-photo-placeholder {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(0,112,243,.15) 0%,
    rgba(93,185,55,.10) 100%
  );
}

/* When real photo loads successfully, hide placeholder */
.founder-photo:not([src=""]):not([src]) ~ .founder-photo-placeholder {
  display: none;
}

.founder-initials {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.founder-placeholder-glow {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,243,.18) 0%, transparent 70%);
  filter: blur(32px);
}

/* Corner accent brackets */
.founder-frame-corner {
  position: absolute;
  width: 24px; height: 24px;
  z-index: 3;
}
.founder-frame-corner--tl {
  top: -1px; left: -1px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  border-radius: var(--r-xl) 0 0 0;
}
.founder-frame-corner--br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 0 var(--r-xl) 0;
}

/* Floating credential chips */
.founder-credential-chips {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.founder-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  /* chips use reveal from animations.js */
}

.founder-chip svg { color: var(--blue-light); flex-shrink: 0; }

/* ── Content side ── */
.founder-name {
  margin-top: var(--sp-4);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

.founder-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-6);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.founder-title-sep { color: var(--text-muted); }

.founder-bio {
  max-width: 560px;
  margin-bottom: var(--sp-8);
}

/* Quote block */
.founder-quote {
  position: relative;
  padding: var(--sp-6) var(--sp-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-8);
  overflow: hidden;
}

.founder-quote-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-brand);
  border-radius: 3px 0 0 3px;
}

.founder-quote-text {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.founder-quote-cite {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

/* Expertise tags row */
.founder-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

/* CTA group */
.founder-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Responsive */
@media (max-width: 1024px) {
  .founder-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }
  .founder-visual { order: 2; }
  .founder-content { order: 1; }
  .founder-credential-chips {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: var(--sp-5);
  }
  .founder-photo-frame { max-width: 480px; aspect-ratio: 1/1; margin-inline: auto; }
}

@media (max-width: 640px) {
  .founder-cta { flex-direction: column; }
  .founder-cta .btn { justify-content: center; }
  .founder-quote { padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-7); }
}

/* ══════════════════════════════════════════
   CYBERSECURITY
══════════════════════════════════════════ */

.cyber-section {
  background: var(--bg-void);
}

.cyber-blob-1 {
  width: 700px; height: 700px;
  top: -20%; left: -15%;
  opacity: .7;
}
.cyber-blob-2 {
  width: 500px; height: 500px;
  bottom: -15%; right: -10%;
  opacity: .6;
}

/* Pillar cards — always 3-col until single-column; avoids 2+1 unbalanced split */
.cyber-pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 860px) {
  .cyber-pillars { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
}

.cyber-pillar {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: rgba(255,255,255,.035);
  /* Critical: never clip content */
  height: auto;
  min-height: 0;
  overflow: visible;
}

.cyber-pillar--center {
  background: rgba(0,112,243,.07);
  border-color: rgba(0,112,243,.25);
  position: relative;
}

.cyber-pillar--center:hover {
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,112,243,.25), 0 0 160px rgba(93,185,55,.12);
}

.cyber-pillar-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}

.cyber-pillar-icon { flex-shrink: 0; }

.cyber-pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.cyber-pillar-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.cyber-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.cyber-feature-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding-left: var(--sp-5);
  position: relative;
}

.cyber-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 6px rgba(59,158,255,.5);
}

/* Trust row — 4-up */
.cyber-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border);
}

.cyber-trust-item {
  text-align: center;
  padding: var(--sp-6);
}

.cyber-trust-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: rgba(0,112,243,.10);
  border: 1px solid rgba(0,112,243,.20);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.cyber-trust-label {
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.cyber-trust-desc {
  font-size: 0.825rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .cyber-trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cyber-trust-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .cyber-trust-item { text-align: left; display: flex; gap: var(--sp-4); align-items: flex-start; }
  .cyber-trust-icon { margin: 0; flex-shrink: 0; }
}

/* ══════════════════════════════════════════
   PROCUREMENT
══════════════════════════════════════════ */

.proc-blob {
  width: 600px; height: 600px;
  bottom: -15%; right: -12%;
  opacity: .5;
}

.proc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Steps */
.proc-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  counter-reset: none;
}

.proc-step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.proc-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  background: rgba(0,112,243,.10);
  border: 1px solid rgba(0,112,243,.22);
  border-radius: var(--r-sm);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.proc-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.proc-step-desc {
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Category grid */
.proc-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.proc-cat {
  padding: var(--sp-5) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition:
    background   250ms var(--ease-expo),
    border-color 250ms var(--ease-expo),
    transform    250ms var(--ease-expo);
}

.proc-cat:hover {
  transform: translateY(-3px);
}

.proc-cat--blue {
  background: rgba(0,112,243,.06);
  border-color: rgba(0,112,243,.16);
}
.proc-cat--blue:hover {
  background: rgba(0,112,243,.10);
  border-color: rgba(0,112,243,.28);
}

.proc-cat--green {
  background: rgba(93,185,55,.05);
  border-color: rgba(93,185,55,.14);
}
.proc-cat--green:hover {
  background: rgba(93,185,55,.09);
  border-color: rgba(93,185,55,.24);
}

.proc-cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  color: var(--blue-light);
}
.proc-cat--green .proc-cat-icon { color: var(--green-light); }

.proc-cat-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.proc-cat-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .proc-layout { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .proc-categories { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CLOUD
══════════════════════════════════════════ */

.cloud-blob {
  width: 500px; height: 500px;
  top: -15%; right: 0%;
  opacity: .6;
}

/* Platform badges strip */
.cloud-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.cloud-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  transition: background 200ms, color 200ms, border-color 200ms;
}

.cloud-platform-badge:hover {
  background: rgba(0,112,243,.10);
  border-color: var(--border-blue);
  color: var(--blue-light);
}

.cloud-platform-badge svg { color: var(--blue-light); }

/* Cloud cards */
.cloud-card {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cloud-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.cloud-card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.cloud-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.cloud-feature-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding-left: var(--sp-5);
  position: relative;
}

.cloud-feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 6px rgba(93,185,55,.5);
}

/* ══════════════════════════════════════════
   ERP / FUTURE PLATFORM
══════════════════════════════════════════ */

.erp-section { overflow: hidden; }

.erp-blob-1 { width: 500px; height: 500px; top: -10%; left: -10%; opacity: .5; }
.erp-blob-2 { width: 400px; height: 400px; bottom: 0; right: -8%; opacity: .5; }

/* Phase roadmap */
.erp-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-12);
}

.erp-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  position: relative;
}

/* Connecting line between phases */
.erp-phase-connector {
  position: absolute;
  top: 28px; /* center of the number circle */
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border-md), var(--border));
  z-index: 0;
}

.erp-phase--last .erp-phase-connector { display: none; }

.erp-phase-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 2px solid var(--border-md);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
  transition: border-color 300ms, color 300ms, background 300ms;
}

/* Active phase */
.erp-phase:first-child .erp-phase-num {
  background: linear-gradient(135deg, rgba(0,112,243,.25) 0%, rgba(93,185,55,.18) 100%);
  border-color: var(--blue);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0,112,243,.30);
}

.erp-phase-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}

.erp-phase-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 160px;
  margin-inline: auto;
  margin-bottom: var(--sp-3);
}

.erp-phase-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.erp-phase-badge--active {
  background: rgba(93,185,55,.12);
  border-color: rgba(93,185,55,.28);
  color: var(--green-light);
}

/* Integration tags row */
.erp-integrations {
  text-align: center;
  padding: var(--sp-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.erp-integrations-label {
  display: block;
  margin-bottom: var(--sp-4);
  color: var(--text-muted);
}

.erp-integration-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

@media (max-width: 1100px) {
  .erp-phases { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-8); }
  .erp-phase-connector { display: none; }
}

@media (max-width: 680px) {
  .erp-phases { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
  .erp-phase-desc { max-width: 100%; }
}

@media (max-width: 400px) {
  .erp-phases { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   WHY QTSI
══════════════════════════════════════════ */

/* 4-col × 2-row on desktop */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}

.why-card {
  padding: var(--sp-7) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Lift on hover */
.why-card:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--border-md);
}

/* Icon lifts on card hover */
.why-card:hover .why-icon {
  transform: translateY(-3px) scale(1.08);
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-icon {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.why-icon { flex-shrink: 0; }

.why-title {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.why-desc {
  font-size: 0.84rem;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}
