/* ============================================================
   🦐 Shrimp Dev — Portfolio CSS
   Design System v1.0 — 2026
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Colors */
  --accent:       #ff6b35;
  --accent2:      #ff9f1c;
  --bg:           #0d0d0f;
  --bg2:          #141418;
  --bg3:          #1b1b21;
  --surface:      #1e1e26;
  --border:       #2a2a35;
  --text:         #e8e6f0;
  --muted:        #7a7890;
  --link:         #7eb8f7;

  /* Layout */
  --max:          1200px;
  --gap:          24px;
  --radius:       12px;
  --radius-sm:    8px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Utility ───────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section { padding: 4rem 0; }
.section__title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar__brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}
.navbar__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.navbar__link:hover { color: var(--text); background: var(--surface); }
.navbar__link--active { color: var(--accent); }
.navbar__social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar__social a {
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.navbar__social a:hover { color: var(--text); background: var(--surface); }
.navbar__social svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__greeting {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero__name {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  background: transparent;
}
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--bg3); border-color: var(--muted); }

/* ── Project Cards ─────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}
.project-card__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg3);
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-card__img { transform: scale(1.04); }
.project-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.project-card__tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent2);
  background: rgba(255, 159, 28, 0.08);
  border: 1px solid rgba(255, 159, 28, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.project-card__title a:hover { color: var(--accent); }
.project-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.project-card__links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.project-card__link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--link);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.project-card__link:hover { color: var(--accent); }
.project-card__link svg { width: 14px; height: 14px; fill: currentColor; }
.project-card__stack {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Project card image placeholders (gradient backgrounds) */
.project-card__img--gradient-orange {
  background: linear-gradient(135deg, #1e1e26 0%, #ff6b35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__img--gradient-dark {
  background: linear-gradient(135deg, #0d0d0f 0%, #1e1e26 50%, #ff6b35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__img--gradient-slate {
  background: linear-gradient(135deg, #1b1b21 0%, #2a2a35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__img-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.project-card__img-text--lg { font-size: 3rem; }

/* ── Side Projects ─────────────────────────────────── */
.side-projects-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.side-projects-note__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.side-projects-note__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.side-projects-note__text strong { color: var(--text); }
.side-projects-note__text a { color: var(--accent); text-decoration: underline; }
.side-projects-note__sub {
  margin-top: 0.75rem;
}

/* ── Utility ───────────────────────────────────────── */
.about-link {
  color: var(--accent);
  transition: color 0.15s;
}
.about-link:hover { color: var(--text); text-decoration: underline; }

.skills-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.about__bio p { margin-bottom: 1rem; }
.about__bio strong { color: var(--text); }
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: border-color 0.15s, color 0.15s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }
.section--no-top { padding-top: 0; }
.skills-list--wide { max-width: 800px; }

/* ── Contact ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(255, 107, 53, 0.4); }
.contact-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.contact-card__icon svg { width: 100%; height: 100%; fill: currentColor; }
.contact-card__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact-card__value {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}
.contact-card__value a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  margin-top: 4rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.footer__logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}
.footer__copy {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 1rem;
}
.footer__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer__link:hover { color: var(--accent); }

/* ── Page Header (for sub-pages) ───────────────────── */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.page-header__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Back Link ─────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .hero__name { font-size: 2.2rem; }
  .hero__title { font-size: 0.95rem; }
  .section { padding: 3rem 0; }
  .section__title { font-size: 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .side-projects-note { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__name { font-size: 1.8rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ── Animations ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Selection ─────────────────────────────────────── */
::selection { background: rgba(255, 107, 53, 0.3); color: var(--text); }
