/* ============================================================
   enlITenment — Stylesheet
   ============================================================ */

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

:root {
  /* Brand green sampled from enlITenment logo */
  --bg:            #0a0b06;
  --bg-nav:        rgba(10, 11, 6, 0.85);
  --bg-card:       #15170d;
  --bg-card-hover: #1c1f12;
  --border:        #2a2d1e;
  --border-light:  #383c28;
  --text:          #eaeee5;
  --text-muted:    #9aa088;
  --text-dim:      #666b55;
  --accent:        #b4d335;
  --accent-light:  #c5e04a;
  --accent-glow:   rgba(180, 211, 53, 0.12);
  --green:         #b4d335;
  --green-dim:     rgba(180, 211, 53, 0.10);
  --amber:         #e8c840;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:          'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; }

/* ---------- View Switching & Skip Link ---------- */
.view { display: none; }
.view.active { display: block; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 999;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}

.skip-link:focus { top: 0; }

/* ---------- Navigation ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 44px;
  opacity: 0.9;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--accent-light); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-back {
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font);
  text-decoration: none;
}

.nav-back:hover { color: var(--accent-light); }

/* ---------- Landing ---------- */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.landing-logo {
  width: 280px;
  max-width: 75%;
  height: auto;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.landing-brand {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.landing-brand span { color: var(--accent-light); }

.landing-text {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.landing-text h1 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.landing-text p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.path-choices {
  display: flex;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.path-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  min-width: 220px;
}

.path-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(180, 211, 53, 0.1);
}

.path-btn .icon    { font-size: 1.8rem; margin-bottom: 0.75rem; }
.path-btn .label   { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.path-btn .sublabel { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section h2 .muted {
  color: var(--text-muted);
  font-weight: 300;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ---------- Hero (Client) ---------- */
.hero {
  padding: 6rem 2rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), #d4e87a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  font-family: var(--mono);
}

.hero-stat .desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ---------- Client Strip ---------- */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0 3rem;
}

.client-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.client-name:hover { color: var(--text-muted); }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.service-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Case Studies ---------- */
.case-studies { display: flex; flex-direction: column; gap: 1.5rem; }

.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.25s ease;
}

.case-study:hover { border-color: var(--border-light); }

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-study-client {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-study-period {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.case-study h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.case-study p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.case-study-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.extensions-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

/* ---------- Testimonials ---------- */
.testimonials { display: flex; flex-direction: column; gap: 1rem; }

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}

.testimonial blockquote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---------- About ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.certs { display: flex; flex-direction: column; gap: 0.75rem; }

.certs h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cert-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Recruiter Hero ---------- */
.recruiter-hero {
  padding: 4rem 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.recruiter-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.recruiter-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ---------- Quick Facts ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.quick-fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.quick-fact .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.quick-fact .value { font-size: 1rem; font-weight: 600; }

/* ---------- Tech Stack ---------- */
.stack-category { margin-bottom: 2rem; }

.stack-category h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--mono);
  transition: all 0.2s;
}

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

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 1rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

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

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 0.15rem;
}

.timeline-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }

.timeline-role {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-role .extensions-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Contact Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.contact-item .c-icon  { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-item .c-label { font-size: 0.85rem; font-weight: 600; }
.contact-item .c-value { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

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

.contact-alt {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.contact-alt > p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }
.footer p { font-size: 0.75rem; color: var(--text-dim); }

/* ---------- Focus & Accessibility ---------- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.path-btn:focus-visible,
.tag:focus-visible,
.contact-item:focus-visible,
.form-submit:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ---------- Skill ↔ Timeline Interaction ---------- */
.tag[data-skill] { cursor: pointer; }

.tag-active {
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
  background: var(--accent-glow) !important;
}

.timeline-highlight {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  opacity: 1;
}

.timeline-dim {
  opacity: 0.25;
}

/* Tooltip */
.skill-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  min-width: 220px;
  max-width: 340px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.skill-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-tooltip-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.skill-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  gap: 1rem;
}

.skill-tooltip-company {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.skill-tooltip-duration {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .about-content { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .path-btn { min-width: 160px; padding: 1.5rem 1.75rem; }
  .section { padding: 3rem 1.25rem; }
  .nav-bar { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 0.75rem; }
  .recruiter-hero { padding: 3rem 1.25rem 1.5rem; }
  .client-strip { gap: 1rem; }
  .client-name { font-size: 0.7rem; }
  .skill-tooltip { min-width: 180px; max-width: calc(100vw - 24px); }
  .contact-form { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: 1rem; }
  .recruiter-hero h1 { font-size: 1.5rem; }
  .section h2 { font-size: 1.4rem; }
  .landing-brand { font-size: 1.4rem; }
  .landing-text h1 { font-size: 0.95rem; }
  .path-choices { flex-direction: column; align-items: center; }
  .path-btn { min-width: 100%; max-width: 280px; }
  .hero-stat .num { font-size: 1.6rem; }
  .case-study { padding: 1.25rem; }
  .testimonial { padding: 1.5rem; }
  .nav-links a:not(.nav-back) { font-size: 0.7rem; }
}
