@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0b0d12;
  --bg-card: #161922;
  --bg-card-hover: #1d212c;
  --border: #272b38;
  --text: #eef0f4;
  --text-dim: #9aa0ad;
  --accent: #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --accent-2: #36c690;
  --warn: #e0a23b;
  --danger: #e55a5a;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 141, 239, 0.10), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(54, 198, 144, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
}

.site-header .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-engin { color: #eef0f4; }
.logo-path  { color: #c0522a; }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.mark {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(91, 141, 239, 0.6));
}

nav.main-nav {
  display: flex;
  gap: 30px;
  font-size: 1.02rem;
  font-weight: 500;
  justify-content: center;
  grid-column: 2;
}

nav.main-nav a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.2s ease;
  padding-bottom: 4px;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
  border-radius: 2px;
}

nav.main-nav a:hover { color: var(--text); }
nav.main-nav a:hover::after { width: 100%; }
nav.main-nav a.active { color: var(--text); }
nav.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  justify-self: end;
  grid-column: 3;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 24px 16px;
}

.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--accent); }
.mobile-nav.open { display: flex; }

/* Hero */
.hero {
  padding: 84px 24px 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #4a7fe0);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.96rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(91, 141, 239, 0.28);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn:hover { transform: translateY(-2px); opacity: 0.95; }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

.search-bar-wrap { margin-top: 30px; display: flex; justify-content: center; position: relative; }

.search-bar {
  width: 100%;
  max-width: 580px;
  padding: 15px 22px 15px 46px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar-wrap::before {
  content: "🔍";
  position: absolute;
  left: calc(50% - 290px + 18px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 620px) {
  .search-bar-wrap::before { left: 38px; }
}

.search-bar:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-bar::placeholder { color: var(--text-dim); }

section { padding: 44px 0; }

h2.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

p.section-sub {
  color: var(--text-dim);
  margin-bottom: 26px;
}

.about-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-intro p.section-sub {
  text-align: left;
}

.about-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0 0;
  color: var(--text-dim);
  font-style: italic;
  text-align: left;
  font-size: 1.05rem;
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-pill-icon { font-size: 1.15rem; }

.industry-pill-label { letter-spacing: -0.01em; }

.industry-pill-count {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  min-width: 22px;
  text-align: center;
}

.industry-pill:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 141, 239, 0.18);
}

.industry-pill:hover .industry-pill-count {
  background: var(--accent);
  color: #fff;
}

#industry-jump {
  gap: 12px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(91, 141, 239, 0.4);
  box-shadow: var(--shadow);
}

.card .icon { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.tag.green { background: rgba(54, 198, 144, 0.14); color: var(--accent-2); }
.tag.warn { background: rgba(224, 162, 59, 0.14); color: var(--warn); }
.resource-link { cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.resource-link:hover { background: rgba(224, 162, 59, 0.3); transform: translateY(-2px); }
.skill-link { cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.skill-link:hover { background: rgba(91, 141, 239, 0.3); transform: translateY(-2px); }
.tool-link { cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.tool-link:hover { background: rgba(54, 198, 144, 0.3); transform: translateY(-2px); }

.breadcrumb {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--accent); }

.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.detail-header > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.detail-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.detail-header p { color: var(--text-dim); line-height: 1.7; margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  transition: border-color 0.15s ease;
}
.stat-pill:hover { border-color: var(--accent); }
.stat-pill .num { font-weight: 700; font-size: 1.1rem; }
.stat-pill .label { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }

.roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.roadmap li {
  counter-increment: step;
  padding: 14px 0 14px 44px;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 14px;
  transition: border-color 0.2s ease;
}

.roadmap li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4a7fe0);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(91, 141, 239, 0.35);
}

.roadmap li:last-child { border-left: 2px solid transparent; }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: rgba(91, 141, 239, 0.4); transform: translateX(2px); }
.project-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.project-card p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }
.level-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.level-Beginner { background: rgba(54,198,144,0.15); color: var(--accent-2); }
.level-Intermediate { background: rgba(224,162,59,0.15); color: var(--warn); }
.level-Advanced { background: rgba(229, 90, 90, 0.15); color: var(--danger); }

#companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.company-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(91, 141, 239, 0.2);
}

.company-logo {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.company-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.company-card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.skills-list, .tools-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.quiz-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; max-width: 580px; margin: 0 auto; box-shadow: var(--shadow); }
.quiz-question { margin-bottom: 22px; }
.quiz-question p { font-weight: 600; margin-bottom: 10px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-options label {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-options label:hover { border-color: var(--accent); }
.quiz-options input { margin-right: 8px; }
.quiz-result { margin-top: 20px; text-align: center; }

input[type="text"], input[type="email"], input[type="date"], textarea, select {
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Subscribe section */
.subscribe-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  margin-top: 60px;
}
.subscribe-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.subscribe-text h2 { margin: 0 0 8px; font-size: 1.5rem; }
.subscribe-text p  { margin: 0; color: var(--text-dim); max-width: 420px; }
.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.97rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg-card); }
.contact-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

/* Mentor CTA on role page */
.mentor-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
}
.mentor-cta h3 { margin: 0 0 6px; }
.mentor-cta p { margin: 0; color: var(--text-dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 50px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 24px 34px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover { color: var(--accent); transform: translateX(2px); }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-bottom: 0;
  font-size: 0.8rem;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.empty-msg { color: var(--text-dim); text-align: center; padding: 50px 0; font-size: 1rem; }

.footer-legal { display: inline-flex; gap: 18px; margin-left: 6px; }
.footer-legal a { color: var(--text-dim); transition: color 0.15s ease; }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .footer-legal { display: flex; justify-content: center; margin: 10px 0 0; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header .bar { grid-template-columns: 1fr auto; }
}

@media (max-width: 900px) {
  .detail-header { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 56px 20px 40px; }
  .detail-header { grid-template-columns: 1fr; gap: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   UI template polish — applies to every page site-wide
   ========================================================= */

/* Accessible, on-brand focus ring for keyboard users */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hero: soft glow backdrop (lifts Home, Contact, Become-a-Mentor, etc.) */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(640px 300px at 50% -14%, rgba(91, 141, 239, 0.18), transparent 70%);
}

/* Slightly richer headings */
h2.section-title { letter-spacing: -0.02em; }

/* Reusable section eyebrow / kicker labels */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; margin-bottom: 16px;
}
.kicker {
  color: var(--accent-2); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 8px;
}

/* Reusable tinted icon badge */
.badge-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--accent-soft);
}

/* Reusable gradient-framed spotlight card */
.spotlight {
  border-radius: 22px; padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #4a7fe0 45%, var(--accent-2));
}
.spotlight-inner { background: var(--bg-card); border-radius: 20px; padding: 32px; }

/* Reusable call-to-action band */
.cta-band {
  text-align: center; border-radius: 22px; padding: 50px 28px;
  border: 1px solid var(--border);
  background: radial-gradient(620px 250px at 50% 0%, rgba(91, 141, 239, 0.16), transparent 70%), var(--bg-card);
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.6rem; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 22px; }

/* Button press feedback */
.btn:active { transform: translateY(0); }

/* =========================================================
   Whole-site design polish
   ========================================================= */

/* Section headings get a subtle gradient accent underline */
h2.section-title { position: relative; padding-bottom: 12px; }
h2.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
/* Centre the underline when the heading is centred (e.g. domain.html) */
h2.section-title[style*="center"]::after { left: 50%; transform: translateX(-50%); }

/* Slightly rounder cards and a bit more room between grid items */
.card, .project-card, .company-card { border-radius: 16px; }
.grid { gap: 22px; }

/* Larger, more readable hero copy on wide screens */
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(2.4rem, 4vw, 3.1rem); }
  .hero p.lead { font-size: 1.2rem; }
}

/* Buttons: a touch more presence + spacing when side by side */
.btn { padding: 13px 28px; letter-spacing: 0.01em; }
.hero .btn { margin: 6px; }
.btn.secondary:hover { background: var(--accent-soft); }

/* Tag pills: tidy spacing */
.tag { letter-spacing: 0.01em; }

/* Smoother, consistent link affordance */
.breadcrumb a, .footer-col a, .footer-social a { text-underline-offset: 3px; }

/* Domain/role cards: clearer title hierarchy */
.card h3 { letter-spacing: -0.01em; }
.card .tag-row { margin-top: 12px; }
