/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero-wrapper {
  background: var(--bg-card-hover);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,120,10,.12), transparent 65%);
  top: -150px; right: -100px;
  pointer-events: none;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,122,74,.1), transparent 65%);
  bottom: -100px; left: 5%;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.75rem 5.5rem;
}

.hero-chips {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  padding: .3rem .85rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1.5px solid;
}

.chip-orange { background: #fff0e0; border-color: #c8780a; color: #8a4d00; }
.chip-green  { background: #edf5e8; border-color: #5a7a4a; color: #3a5a2a; }
.chip-brown  { background: var(--bg-card-hover); border-color: var(--border); color: var(--text-muted); }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .underline-word {
  position: relative;
  color: var(--accent);
  display: inline-block;
}

.hero h1 .underline-word::after {
  content: '';
  position: absolute;
  bottom: 6px; left: -2px; right: -2px;
  height: 8px;
  background: var(--accent-2);
  opacity: .35;
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-.5deg);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Features Strip ─────────────────────────────────────────────────── */
.features-strip {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  padding: 1.75rem 2rem;
  border-right: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--bg);
}

.feature-title { font-size: .88rem; font-weight: 700; margin-bottom: .15rem; color: var(--text); }
.feature-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Projects Section ───────────────────────────────────────────────── */
.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.75rem 6rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text);
}

.section-header h2 span {
  color: var(--accent);
  position: relative;
}

.section-header h2 span::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 5px;
  background: var(--accent-2);
  opacity: .4;
  border-radius: 3px;
  z-index: -1;
}

.section-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .4rem;
  font-style: italic;
}

/* ─── Filter Pills ───────────────────────────────────────────────────── */
.category-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: .4rem 1rem;
  border-radius: 99px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid;
  background: transparent;
}

.filter-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.filter-pill:not(.active) {
  border-color: var(--border);
  color: var(--text-muted);
}

.filter-pill:not(.active):hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
}

.filter-pill.active .filter-count {
  background: rgba(255,255,255,.2);
}

.filter-pill:not(.active) .filter-count {
  background: var(--border);
  color: var(--text-muted);
}

/* ─── Projects Grid ──────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ─── Project Card ───────────────────────────────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--border), inset 0 1px 0 rgba(255,255,255,.9);
  border-color: var(--text-muted);
  color: inherit;
}

.card-top {
  height: 5px;
  flex-shrink: 0;
}

.grad-edu  { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.grad-game { background: linear-gradient(90deg, var(--accent-3), #8aab70); }

.card-thumb {
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf0e0, #f5e5cc);
  border-bottom: 1px solid var(--border-2);
  flex-shrink: 0;
}

.card-thumb img,
.card-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.project-card:hover .card-thumb img,
.project-card:hover .card-thumb svg {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .65rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .75rem;
  border: 1.5px solid;
  width: fit-content;
}

.badge-edu  { background: #fff0e0; border-color: #c8780a; color: #8a4d00; }
.badge-game { background: #edf5e8; border-color: #5a7a4a; color: #3a5a2a; }

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  color: var(--text);
  line-height: 1.3;
}

.card-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.card-arrow {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--transition);
}

.project-card:hover .card-arrow {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--text);
}

/* ─── About Section ──────────────────────────────────────────────────── */
.about-section {
  background: var(--bg-card-hover);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 6rem 1.75rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--border);
  padding: 2.5rem;
  text-align: center;
  min-width: 260px;
}

.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.025em;
  margin-bottom: .25rem;
  color: var(--text);
}

.about-role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-email {
  display: block;
  padding: .65rem 1.25rem;
  border-radius: 10px;
  background: var(--accent);
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.about-email:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--text);
  color: #fff;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .9rem;
  border-radius: 99px;
  background: #fff0e0;
  border: 1.5px solid #c8780a;
  color: #8a4d00;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-heading span {
  color: var(--accent);
  position: relative;
}

.about-heading span::after {
  content: '';
  position: absolute;
  bottom: 3px; left: -2px; right: -2px;
  height: 6px;
  background: var(--accent-2);
  opacity: .35;
  border-radius: 3px;
  z-index: -1;
}

.about-bio {
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}

.about-more-btn {
  margin-top: 1.25rem;
}

/* ─── Skeleton Loading ───────────────────────────────────────────────── */
.skeleton {
  border-radius: 4px;
  animation: shimmer 1.6s infinite;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-card-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
}

.skeleton-card .card-thumb { background: linear-gradient(90deg, var(--border) 25%, var(--bg-card-hover) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }

.projects-error {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 2px solid var(--border-2); }
  .feature-item:last-child { border-bottom: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .about-inner { grid-template-columns: 1fr; }
  .about-card { min-width: unset; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 1rem 3.5rem; }
  .projects-section { padding: 3rem 1rem 4rem; }
  .about-section { padding: 4rem 1rem; }
}
