/* Yirmeyahu Mwangelwa - Portfolio Styles */
/* Light mode, modern, no dependencies */

:root{
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --panel: #f1f5f9;
  --panel2: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --accent: #0284c7;    /* sky-600 */
  --accent-bg: #f0f9ff;
  --accent2: #7c3aed;   /* violet-600 */
  --accent2-bg: #f5f3ff;
  --ok: #16a34a;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html{ height:100%; }
body{
  margin:0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.85; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem; width:auto; height:auto; padding:0.75rem 1rem;
  background: var(--bg); border:1px solid var(--line); border-radius:12px; z-index: 9999;
  color: var(--text);
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand-mark{
  width: 32px; height: 32px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, #38bdf8, transparent 55%),
    radial-gradient(circle at 70% 70%, #a78bfa, transparent 55%),
    #e0f2fe;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 0.25rem;
}
.nav-links a{
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a.active{
  color: var(--text);
  background: var(--panel);
  font-weight: 500;
}
.nav-links a:hover{
  color: var(--text);
  background: var(--panel);
  opacity: 1;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn:hover{ background: var(--panel); border-color: #cbd5e1; opacity: 1; }
.btn.primary{
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(2,132,199,0.2);
}
.btn.primary:hover{
  background: #0369a1;
  border-color: #0369a1;
  opacity: 1;
}

.mobile-toggle{
  display:none;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Hero */
.hero{
  padding: 4rem 0 2.5rem;
}
.hero-profile{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.hero-name{
  margin: 0 0 0.15rem;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero-role{
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9rem;
  margin: 0 0 0.7rem;
}
.hero-bio{
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 60ch;
  line-height: 1.65;
}
.hero-links{
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-cta{
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.founder-avatar{
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.kicker{
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0;
}

/* Panels & Cards */
.panel{
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel.pad{ padding: 1.5rem; }

.card{
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover{
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

/* Grids */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

/* Typography */
.h3{
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Sections */
.section{
  padding: 2.5rem 0;
}
.section-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.section-title h2{
  margin:0;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.section-title .hint{
  color: var(--faint);
  font-size: 0.85rem;
  font-family: var(--mono);
}

.list{
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.list li{ margin: 0.35rem 0; }

/* Footer */
.footer{
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
  background: var(--bg-subtle);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); opacity: 1; }

/* Page header */
.page{
  padding: 3rem 0 2rem;
}
.page h1{
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  letter-spacing: -0.025em;
}
.page .sub{
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.65;
}

/* CTA section */
.cta-section{
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.cta-section h2{
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.cta-section .sub{
  color: var(--muted);
  margin: 0 0 1.4rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons{
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.email-block{
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0.8rem 0;
}

/* Card icons */
.card-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-bg);
  margin-bottom: 0.75rem;
}
.card-icon svg{
  width: 20px; height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon.violet{
  background: var(--accent2-bg);
}
.card-icon.violet svg{ stroke: var(--accent2); }

/* Social links */
.social-links{
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.social-link:hover{ background: var(--panel); color: var(--text); opacity: 1; }
.social-link svg{
  width: 15px; height: 15px;
  fill: currentColor;
}

/* Repo link on cards */
.card-repo{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--faint);
  font-size: 0.8rem;
  font-family: var(--mono);
  transition: all 0.15s ease;
}
.card-repo:hover{ background: var(--panel); color: var(--text); opacity: 1; }
.card-repo svg{
  width: 13px; height: 13px;
  fill: currentColor;
}

/* Project cards */
.project-card{
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-card:hover{
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.project-card.featured{
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}
.project-header{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.project-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}
.project-icon svg{
  width: 22px; height: 22px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.project-icon.sky{ background: var(--accent-bg); }
.project-icon.sky svg{ stroke: var(--accent); }
.project-icon.violet{ background: var(--accent2-bg); }
.project-icon.violet svg{ stroke: var(--accent2); }
.project-icon.green{ background: #f0fdf4; }
.project-icon.green svg{ stroke: var(--ok); }

.project-name{
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.project-tagline{
  color: var(--faint);
  font-size: 0.85rem;
  margin: 0;
}
.project-desc{
  color: var(--muted);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}
.project-tags{
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.tag{
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--mono);
  white-space: nowrap;
}
.project-links{
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.project-status{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.8rem;
}
.status-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.status-dot.dev{ background: var(--accent); }

/* Footer bottom */
.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.footer-social{
  display: flex;
  gap: 0.75rem;
}
.footer-social a{
  color: var(--faint);
  transition: color 0.15s ease;
}
.footer-social a:hover{ color: var(--text); }
.footer-social svg{
  width: 20px; height: 20px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 920px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  .mobile-toggle{ display:inline-flex; }
  .nav-links{
    display:none;
    position:absolute;
    left:0; right:0;
    top: 60px;
    padding: 0.6rem;
    margin: 0.4rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding: 0.65rem 0.75rem; }
  .hero-profile{ grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-bio{ max-width: none; }
  .hero-links{ justify-content: center; }
  .hero-cta{ justify-content: center; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .social-links{ justify-content: center; }
  .project-tags{ justify-content: center; }
}
