/* ============================================================
   portfolio-style.css — IT Projects Portfolio
   Aayush Acharya | Consistent with aayushacharya.com.au
   ============================================================ */

/* --- 1. RESET & VARIABLES --- */
:root {
  --bg-main: #0a0a0a;
  --bg-card: #171717;
  --bg-hover: #262626;
  --text-main: #ededed;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.12);
  --accent-border: rgba(59,130,246,0.3);
  --green: #22c55e;
  --green-glow: rgba(34,197,94,0.10);
  --green-border: rgba(34,197,94,0.25);
  --amber: #f59e0b;
  --amber-glow: rgba(245,158,11,0.12);
  --border: #262626;
  --border2: #333333;
  --radius: 10px;
  --max-width: 940px;
  --mono: 'Courier New', 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg-main); color: var(--text-main); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color .15s; }

/* --- 2. TOPBAR / NAV --- */
.topbar {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-brand .prompt { color: var(--accent); }
.cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.topbar-nav { display: flex; gap: 1.5rem; align-items: center; }
.topbar-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--mono);
  transition: color .15s;
}
.topbar-nav a:hover { color: var(--accent); }
.back-link { color: var(--text-muted) !important; }
.back-link:hover { color: var(--accent) !important; }

/* --- 3. PAGE HERO (project pages) --- */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 44px 2rem 36px;
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}
.page-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.tag-blue  { background: var(--accent-glow);  color: var(--accent); border-color: var(--accent-border); }
.tag-green { background: var(--green-glow);   color: var(--green);  border-color: var(--green-border); }
.tag-amber { background: var(--amber-glow);   color: var(--amber);  border-color: rgba(245,158,11,0.3); }
.tag-purple { background: rgba(168,85,247,0.10); color: #c084fc; border-color: rgba(168,85,247,0.25); }
.tag-teal  { background: rgba(20,184,166,0.10); color: #2dd4bf; border-color: rgba(20,184,166,0.25); }

/* --- 4. BACK BAR --- */
.back-bar { max-width: var(--max-width); margin: 0 auto; padding: 16px 2rem 0; }
.back-bar a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all .15s;
}
.back-bar a:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-glow); }

/* --- 5. LAYOUT --- */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 2rem 80px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
}
@media (max-width: 720px) { .layout { grid-template-columns: 1fr; } }
.content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 12px; }

/* --- 6. CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }
.card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.card p { font-size: 13px; color: var(--text-main); line-height: 1.75; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text-main); }
.sidebar .card { margin-bottom: 0; }
.sidebar .card p { color: var(--text-muted); font-size: 13px; }

/* Recruiter highlight box */
.recruiter-box {
  background: rgba(34,197,94,0.06);
  border: 1px solid var(--green-border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.recruiter-box .rl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.recruiter-box p { font-size: 13px; color: var(--text-main); line-height: 1.7; margin-bottom: 0; }

/* --- 7. SECTION LABEL --- */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 500px;
}

/* --- 8. STEP ITEMS --- */
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.step-item:hover { border-color: var(--border2); }
.step-header {
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background .15s;
}
.step-header:hover { background: var(--bg-hover); }
.step-num {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-title { font-size: 14px; font-weight: 500; color: var(--text-main); flex: 1; }
.step-arrow { color: var(--text-dim); transition: transform .2s; font-size: 16px; flex-shrink: 0; }
.step-item.open .step-arrow { transform: rotate(90deg); }
.step-body {
  display: none;
  padding: 0 16px 14px 52px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.step-item.open .step-body { display: block; }
.step-body code {
  background: var(--bg-hover);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.step-body ul { margin: 8px 0 0 16px; }
.step-body ul li { margin-bottom: 6px; color: var(--text-main); }
.step-body strong { color: var(--text-main); }
.step-body p { margin-top: 8px; color: var(--text-main); }

/* Tip / Warn callouts */
.tip {
  background: rgba(34,197,94,0.06);
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-main);
}
.warn {
  background: var(--amber-glow);
  border-left: 3px solid var(--amber);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-main);
}

/* --- 9. PROOF / SCREENSHOTS --- */
.proof-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.proof-img-wrap p {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.proof-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border2);
  cursor: zoom-in;
  transition: opacity .15s, border-color .15s;
  display: block;
}
.proof-img:hover { opacity: 0.85; border-color: var(--accent-border); }
.tenant-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.tenant-note span { color: var(--accent); }

/* --- 10. LIGHTBOX --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 90vh; border-radius: 8px; cursor: default; }
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

/* --- 11. SKILL PILLS --- */
.skill-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  margin: 3px 3px 3px 0;
  transition: border-color .15s, color .15s;
}
.skill-pill:hover { border-color: var(--accent-border); color: var(--accent); }

/* --- 12. REF TABLE --- */
.ref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ref-table th {
  background: var(--bg-hover);
  padding: 8px 12px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border2);
  text-transform: uppercase;
}
.ref-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.ref-table td:first-child { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.ref-table tr:last-child td { border-bottom: none; }

/* --- 13. INDEX PAGE --- */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 56px 2rem 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-eyebrow-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow-index::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.hero-name { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--text-main); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 10px; }
.hero-role { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.hero-role .sep { margin: 0 10px; color: var(--border2); }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  transition: all .15s;
}
.hero-link:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-glow); }

.stats { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); width: fit-content; }
.stat { padding: 14px 28px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); display: block; }
.stat-label { font-size: 11px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; }

.main { max-width: var(--max-width); margin: 0 auto; padding: 40px 2rem 80px; }

.recruiter-note {
  background: var(--amber-glow);
  border: 1px solid rgba(245,158,11,.25);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #fcd34d;
  line-height: 1.65;
}
.recruiter-note strong { color: var(--amber); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity .2s;
}
.project-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.project-card:hover::before { opacity: 1; }
.project-card.c-blue  { --card-accent: var(--accent); }
.project-card.c-green { --card-accent: var(--green); }
.project-card.c-purple { --card-accent: #c084fc; }
.project-card.c-amber { --card-accent: var(--amber); }

.project-icon { font-size: 24px; margin-bottom: 14px; }
.project-num { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.project-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; line-height: 1.35; }
.project-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  border-radius: 6px;
  background: var(--bg-hover);
  transition: all .15s;
  width: fit-content;
}
.view-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-glow); }
.view-btn::after { content: '→'; }

.kb-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.kb-highlight-text { flex: 1; min-width: 200px; }
.kb-highlight-eyebrow { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.kb-highlight-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.kb-highlight-desc { font-size: 13px; color: var(--text-muted); }
.kb-pill { font-family: var(--mono); font-size: 11px; background: var(--accent-glow); border: 1px solid var(--accent-border); color: var(--accent); border-radius: 20px; padding: 4px 14px; white-space: nowrap; }

.skills-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; margin-top: 14px; }
.skill-item { background: var(--bg-hover); border: 1px solid var(--border2); border-radius: 6px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); transition: border-color .15s, color .15s; }
.skill-item:hover { border-color: var(--accent-border); color: var(--accent); }

/* --- 14. SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* --- 15. RESPONSIVE --- */
@media (max-width: 600px) {
  .topbar { padding: 0 1rem; }
  .topbar-nav { gap: 12px; }
  .topbar-nav .hide-mobile { display: none; }
  .hero { padding: 32px 1rem 28px; }
  .page-hero { padding: 28px 1rem 24px; }
  .main { padding: 24px 1rem 60px; }
  .back-bar { padding: 12px 1rem 0; }
  .stats { width: 100%; }
  .stat { padding: 10px 12px; flex: 1; }
  .stat-num { font-size: 18px; }
  .hero-links { gap: 8px; }
  .hero-link { font-size: 11px; padding: 5px 10px; }
  .kb-highlight { flex-direction: column; align-items: flex-start; }
  .proof-grid { grid-template-columns: 1fr; }
}
