﻿/* Projects page */
:root {
  --bg: #f7f7f9;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #7567f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(31,41,55,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; background: var(--bg); color: var(--text); }
.container { width: min(1200px, 92%); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; }
.menu { display: flex; gap: 20px; align-items: center; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a.active, .menu a:hover { color: var(--text); }
.btn { background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); }

.hero { padding: 48px 0 8px; }
.hero-inner { text-align: center; }
.hero h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.lead { color: var(--muted); margin: 6px 0 0; }

.filters { padding: 10px 0 6px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; color: var(--text); cursor: pointer; }
.tab.active { background: var(--primary); color: #fff; border-color: transparent; }

.projects { padding: 12px 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.02); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe3ea; }
.card.done { opacity: .94; }
.cover { height: 136px; background: #ddd; background-size: cover; background-position: center; }
/* Thematic banner images */
.cover-edu {
  background-image:
    linear-gradient(135deg, rgba(49,115,214,0.2), rgba(49,115,214,0.05)),
    url('https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1200&q=80');
}
.cover-emg {
  background-image:
    linear-gradient(135deg, rgba(190,18,60,0.25), rgba(190,18,60,0.05)),
    url('https://images.unsplash.com/photo-1587502537745-84f281d1d338?auto=format&fit=crop&w=1200&q=80');
}
.cover-com {
  background-image:
    linear-gradient(135deg, rgba(4,120,87,0.20), rgba(4,120,87,0.04)),
    url('https://images.unsplash.com/photo-1526256262350-7da7584cf5eb?auto=format&fit=crop&w=1200&q=80');
}
.cover-edu2 {
  background-image:
    linear-gradient(135deg, rgba(180,134,0,0.20), rgba(180,134,0,0.04)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=80');
}
.cover-done {
  background-image:
    linear-gradient(135deg, rgba(55,65,81,0.18), rgba(55,65,81,0.05)),
    url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?auto=format&fit=crop&w=1200&q=80');
}

.body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.chip-edu { background: #eff6ff; color: #1d4ed8; }
.chip-emg { background: #fff1f2; color: #be123c; }
.chip-com { background: #ecfdf5; color: #047857; }
.chip-done { background: #f3f4f6; color: #374151; }

h3 { margin: 0; font-size: 18px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.desc { color: var(--muted); margin: 0; min-height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.progress { position: relative; height: 10px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.bar { position: relative; height: 100%; background: linear-gradient(90deg, var(--primary), #9aa0ff); border-radius: 999px; }
.pct { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #fff; font-weight: 700; }
.amounts { display: flex; justify-content: space-between; align-items: center; }
.actions { display: flex; gap: 10px; margin-top: 2px; }
.btn-primary { background: var(--primary); color: #fff; padding: 9px 12px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow); }
.btn-ghost { background: #f3f4f6; color: var(--text); padding: 9px 12px; border-radius: 10px; text-decoration: none; }

.stories { background: #fbfbfc; border-top: 1px solid var(--border); padding: 28px 0 40px; }
.stories h2 { margin: 0 0 14px; }
.timeline { position: relative; padding-left: 18px; display: grid; gap: 16px; }
.timeline:before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.node { position: relative; }
.dot { position: absolute; left: -1px; top: 6px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; box-shadow: var(--shadow); }
.node .content { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }

.footer { border-top: 1px solid var(--border); padding: 22px 0 40px; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .grid3 { grid-template-columns: 1fr; }
}

/* Extra tweaks for small phones */
@media (max-width: 640px) {
  .tabs { gap: 8px; }
  .tab { padding: 7px 12px; }
  .meta { font-size: 12px; }
  .pct { font-size: 10px; }
}

@media (max-width: 420px) {
  .actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
} 
