/* ============================================
   STACK.CSS — Tech stack grid
   ============================================ */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stack-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.stack-cat h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.pill:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
}

/* ============================================
   DSA.CSS — LeetCode / DSA section
   ============================================ */

.dsa-wrap {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(0, 229, 255, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 20px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dsa-left h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.dsa-left h3 span {
  color: var(--accent3);
}

.dsa-left p {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 22px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ttag {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--accent3);
  padding: 4px 11px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
}

.dsa-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

.bar-bg {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 7px;
}

.bar-fill {
  height: 7px;
  border-radius: 4px;
  width: 0; /* starts at 0, JS animates to final value */
  transition: width 1.4s ease;
}

.bar-fill.easy  { background: var(--accent3); }
.bar-fill.med   { background: var(--accent); }
.bar-fill.hard  { background: var(--accent2); }

.dsa-quote {
  margin-top: 4px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.65;
}

.dsa-quote strong {
  color: var(--accent3);
}

/* ============================================
   CONVINCER.CSS — The Convincer (fun section)
   ============================================ */

.convincer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* Big decorative quote mark */
.convincer::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 16px;
  font-size: 14rem;
  font-family: 'Syne', sans-serif;
  color: rgba(0, 229, 255, 0.03);
  line-height: 1;
  pointer-events: none;
}

.conv-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.conv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.conv-head h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.conv-head h3 span {
  color: var(--accent3);
}

.conv-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--accent3);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
}

.conv-story {
  color: var(--text-dim);
  line-height: 1.85;
  font-size: 0.95rem;
  font-style: italic;
  border-left: 3px solid rgba(245, 158, 11, 0.28);
  padding-left: 22px;
  margin-bottom: 22px;
}

.conv-story strong {
  color: var(--text);
  font-style: normal;
}

.conv-punchline {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.conv-punchline strong {
  color: var(--accent);
}

/* ============================================
   FOOTER.CSS
   ============================================ */

footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.76rem;
}

/* ============================================
   RESPONSIVE.CSS — Mobile breakpoints
   ============================================ */

@media (max-width: 768px) {
  .dsa-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .ss-banner,
  .convincer {
    padding: 26px;
  }

  .project-card {
    padding: 26px;
  }

  .terminal-grid {
    grid-template-columns: 1fr;
  }
}
