@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-navy: #070918;
  --bg-deep: #0c1029;
  --card-bg: rgba(19, 25, 58, 0.65);
  --card-hover: rgba(29, 37, 84, 0.85);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --indigo: #4f46e5;
  --cyan-glow: #38bdf8;
  --useme-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(139, 92, 246, 0.22);
  --border-bright: rgba(167, 139, 250, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-navy);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(79, 70, 229, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(30, 58, 138, 0.35) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  padding: 3rem 1.25rem;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* PROFIL / HERO */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(3, 5, 18, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), var(--cyan-glow), transparent);
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 1.25rem;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  background: var(--useme-green);
  border: 3px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--useme-green);
}

.profile-card h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  background: linear-gradient(to right, #ffffff, #ddd6fe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--violet-bright);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.bio {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge.useme {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

/* LINKTREE PRZYCISKI */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3.25rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  text-decoration: none;
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-btn:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px rgba(79, 70, 229, 0.4);
}

.link-btn .left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.link-btn .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--violet-bright);
}

.link-btn.primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.5);
}

.link-btn.primary:hover {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.7);
}

.link-btn.primary .icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.arrow {
  color: var(--violet-bright);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.link-btn.primary .arrow {
  color: #ffffff;
}

.link-btn:hover .arrow {
  transform: translateX(4px);
}

/* SEKCJA PROJEKTÓW */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header span {
  font-size: 0.85rem;
  color: var(--violet-bright);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.65rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(79, 70, 229, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  font-weight: 700;
}

.project-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: #ffffff;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--violet-bright);
}

.project-card:hover .card-footer {
  color: #ffffff;
}

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

footer strong {
  color: #ddd6fe;
}

@media (max-width: 680px) {
  body { padding: 1.75rem 1rem; }
  .profile-card { padding: 2.25rem 1.25rem; }
  .profile-card h1 { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; }
}