/* =============== */
/*  Base variables */
/* =============== */

:root {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --text: #1f1f25;
  --muted: #666a73;
  --accent: #ff2fbf; /* neon pink */
  --accent-soft: rgba(255, 47, 191, 0.12);
  --border-soft: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --bg-soft: #141620;
    --text: #f5f5ff;
    --muted: #a3a7c0;
    --accent: #ff51d4; /* slightly lighter neon in dark mode */
    --accent-soft: rgba(255, 81, 212, 0.18);
    --border-soft: rgba(255, 255, 255, 0.08);
  }
}

/* ========== */
/*  Resets    */
/* ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 81, 212, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 178, 255, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =============== */
/*  Layout shell   */
/* =============== */

.site {
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* Header / nav */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.site-title-block {
  min-width: 220px;
}

.site-title a {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-tagline {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Main content card */

.content {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* ======================== */
/*  Hero (index top block)  */
/* ======================== */

.hero-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-subtitle em {
  font-style: italic;
}

/* Hero body text */

.hero-body {
  max-width: 640px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-body-tight {
  margin-top: 0.5rem;
}

/* ===================== */
/*  Skill pills (neon)   */
/* ===================== */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.pill-inline {
  margin: 0 0.16rem;
  vertical-align: baseline;
}

/* ========================= */
/*  Social circle buttons    */
/* ========================= */

.social-links {
  margin: 1.8rem 0 2.3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: lowercase;
  background: transparent;
  color: var(--text);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.social-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===================== */
/*  Platform / tech row  */
/* ===================== */

.platform-strip {
  margin-top: 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0.8;
}

.platform-card {
  min-width: 90px;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.platform-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.platform-card:hover {
  border-color: var(--accent-soft);
  opacity: 1;
  transform: translateY(-1px);
}

/* ======================= */
/*  Project card listing   */
/* ======================= */

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
}

.project-card {
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.project-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.project-card-title a {
  color: var(--text);
  text-decoration: none;
}

.project-card-title a:hover {
  color: var(--accent);
}

.project-card-text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-meta span {
  font-size: 0.8rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.project-card-link {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

/* ======================= */
/*  Individual project pg  */
/* ======================= */

.project-header {
  margin-bottom: 1.5rem;
}

.project-title {
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.project-tagline {
  margin-top: 0;
  color: var(--muted);
}

.project-links a {
  display: inline-block;
  font-size: 0.85rem;
  margin-right: 0.6rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: transparent;
}

.project-body p {
  line-height: 1.6;
}

/* ======= */
/* Footer  */
/* ======= */

.site-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer-links a {
  color: var(--muted);
}

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

/* ============== */
/*  Responsiveness */
/* ============== */

@media (max-width: 640px) {
  .site {
    padding: 1.8rem 1.1rem 2.4rem;
  }

  .content {
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 1.7rem;
    letter-spacing: 0.14em;
  }
}

.project-tags-inline {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-tags-inline li a {
  font-size: 0.78rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  text-decoration: none;
}

.project-tags-inline li a:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* Tag page header */
.tag-hero {
  text-align: center;
  margin-bottom: 1.8rem;
}

.tag-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
