:root {
  --bg: #f5f2ea;
  --bg-accent: #e6f0ec;
  --text: #111827;
  --muted: #6b7280;

  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.12);

  --accent: #0d9488;
  --accent-soft: rgba(13,148,136,0.12);

  --shadow: 0 10px 32px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, var(--bg-accent), transparent 60%),
    radial-gradient(circle at bottom right, #e8eaff, transparent 65%),
    var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
}

/* NAV -------------------------------------------------- */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1500px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a.active,
.nav a:hover {
  color: var(--text);
}

/* WRAP -------------------------------------------------- */
.wrap {
  max-width: 1500px;
  margin: 30px auto;
  padding: 0 20px;
}

/* CARD -------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

/* HERO + NETWORK GRID ----------------------------------- */
.hero-grid,
.layout-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
@media (max-width: 900px) {
  .hero-grid,
  .layout-hero {
    grid-template-columns: 1fr;
  }
}

/* HERO CARD (manual info) ------------------------------- */
.row-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar,
.hero-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-accent);
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-avatar-initials {
  font-family: "Spectral", serif;
  font-size: 1.4rem;
  color: var(--text);
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.hero-name {
  margin: 0 0 4px;
  font-family: "Spectral", serif;
  font-size: 1.6rem;
}
.hero-subtitle,
.hero-tagline {
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-body {
  margin-top: 10px;
  line-height: 1.55;
}
.hero-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* NETWORK CARDS (GitHub + LinkedIn) ---------------------- */
.networks-title {
  margin: 0 0 10px;
  font-family: "Spectral", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.network-pill,
.net-chip {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffffcf;
  text-decoration: none;
  margin-bottom: 14px;
  transition: 0.15s ease;
  color: var(--text);
}
.network-pill:hover,
.net-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.pill-left,
.net-chip-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill-logo,
.net-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  justify-content: center;
  align-items: center;
}
.linkedin-pill-logo,
.net-icon-li {
  background: rgba(37,99,235,0.15);
}

.pill-logo-img,
.net-icon {
  width: 18px;
  height: 18px;
}

.pill-label,
.net-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pill-primary,
.net-handle {
  font-size: 1rem;
  font-weight: 500;
}

.pill-secondary,
.net-stats {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Greenwall Card ---------------------------------------- */
.greenwall-card img,
.greenwall-inner img {
  width: 100%;
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
}

/* SECTION TITLES ---------------------------------------- */
.section-title {
  margin: 0 0 14px;
  font-family: "Spectral", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

/* LATEST PROJECT ---------------------------------------- */
.latest-card {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
}
.latest-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.latest-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.desc { color: var(--muted); }
.badges { display: flex; gap: 12px; }

.repo-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.repo-list .latest-card {
  margin: 0;
}

.latest {
  height: 1000px;
  display: flex;
  flex-direction: column;
}

.latest .section-title {
  margin-bottom: 12px;
}

.repo-list {
  flex: 1 1 auto;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}


/* LINKEDIN EMBED --------------------------------------- */
.li-card {
  height: 1000px;
  display: flex;
  flex-direction: column;
}

.li-embed {
  flex: 1 1 auto;
}

.li-card iframe {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: none;
}

/* CV ENTRY --------------------------------------------- */
.paper {
  text-decoration: none;
  color: inherit;
}

.paper-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}
@media (max-width: 800px) {
  .paper-inner {
    grid-template-columns: 1fr;
  }
}

.paper-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-body {
  padding: 16px;
}

.paper-title {
  margin: 0;
  font-family: "Spectral", serif;
}
.paper-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 10px;
}
.paper-snippet {
  margin: 8px 0 12px;
  line-height: 1.55;
}

.paper-badges {
  display: flex;
  gap: 10px;
}
.paper-badges a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
}

/* BOTTOM GRID (latest repos + LinkedIn) ------------- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 22px;
}

@media (max-width: 1100px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* FEATURED PROJECTS STRIP ------------------------------ */
.featured-wrap {
  margin-top: 24px;
  margin-bottom: 12px;
}

.featured-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  overflow-y: visible;
}

.featured-row::-webkit-scrollbar {
  height: 6px;
}
.featured-row::-webkit-scrollbar-track {
  background: transparent;
}
.featured-row::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.featured-card {
  flex: 0 0 400px;
  width: 400px;
  height: 500px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
  display: flex;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;   /* no transform here */
}

.featured-card:hover {
  border-color: var(--accent);
  background: #fffdf6;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.featured-inner {
  position: relative;
  background: #fdf7ec;
  border-radius: 4px;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: transform 0.16s ease;
}

.featured-card:hover .featured-inner {
  transform: translateY(-3px);
}

.featured-inner::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(15, 23, 42, 0.35);
  margin: 4px 10px 16px;
}

.featured-title {
  margin: 0 0 6px;
  font-family: "Spectral", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.featured-meta {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.featured-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.4);
}
.featured-meta a:hover {
  border-bottom-style: solid;
}

.featured-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1f2933;
  overflow: hidden;
  padding-right: 0;
  max-height: none;
  margin-top: 4px;
}

.featured-body p {
  margin: 0 0 0.6em;
}

.featured-body h1,
.featured-body h2,
.featured-body h3 {
  margin: 1em 0 0.4em;
  font-family: "Spectral", serif;
  font-size: 0.98rem;
}

.featured-body ul {
  margin: 0.2em 0 0.6em 1.1em;
  padding: 0;
}
