/* Portfolio theme extracted from the old dashboard styles (dark, bold, accented) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --bg-primary: #0d1117;
  --bg-elevated: rgba(22, 27, 34, 0.88);
  --card: rgba(27, 34, 43, 0.85);
  --border: #2c3540;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --accent: #58a6ff;
  --accent-2: #7c3aed;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --gutter: 18px;
  --max-width: 1100px;
  --grid-gap: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  background: radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.12), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.16), transparent 30%),
              var(--bg-primary);
  color: var(--text-strong);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(13, 17, 23, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0b1220;
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.3);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: 0.2s ease;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-strong);
  border-color: var(--accent);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: linear-gradient(120deg, var(--accent), #7db4ff);
  color: #0b1220;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 25px rgba(88, 166, 255, 0.28);
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border);
  box-shadow: none;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 22px;
  letter-spacing: 0.2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch; /* Stretch children so the right card matches the hero card height */
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Keep the Now card height in sync with the hero card even when the list length changes */
.hero aside.section {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  overflow: hidden;
}

.hero aside .timeline,
.hero aside .socials {
  flex-shrink: 0;
}

.hero aside .timeline {
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.hero aside .timeline::-webkit-scrollbar {
  width: 6px;
}

.hero aside .timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.hero h1 {
  font-size: 40px;
  margin: 10px 0 8px;
}

.hero p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card h3 {
  font-size: 18px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-weight: 800;
  font-size: 12px;
}

.links-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.links-inline a {
  font-weight: 800;
  color: var(--accent);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack .pill {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(16, 22, 30, 0.8);
}

.timeline-item h4 {
  font-size: 16px;
}

.timeline-item span {
  color: var(--text-muted);
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.socials a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.footer {
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
}

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

  .top-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    margin-left: 0;
    justify-content: center;
  }
}
