/* ===== Base reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Hero ===== */
.site-header {
  background: #0b1120;
  color: #f9fafb;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #818cf8;
  margin: 0 0 0.5rem;
}

.site-title {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.site-subtitle {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: #e5e7eb;
  font-size: 0.98rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

.meta-line {
  margin: 0.15rem 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.1s ease;
}

.btn.primary {
  background: #4f46e5;
  color: #f9fafb;
  border-color: #4f46e5;
}

.btn.primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* ===== Sections ===== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 0.96rem;
  color: #4b5563;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.project-name {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.project-role {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.project-description {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: #374151;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.15rem 0.55rem;
  font-size: 0.74rem;
  color: #4b5563;
  background: #f9fafb;
}

.project-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-link {
  font-size: 0.82rem;
  text-decoration: none;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link::after {
  content: "↗";
  font-size: 0.75rem;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skill-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.skill-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a; /* bardzo ciemny, „engineeringowy” */
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.skill-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f46e5;
  font-weight: 700;
}

.skill-list strong {
  font-weight: 600;
  color: #0f172a;
}

/* ===== Footer ===== */
.site-footer {
  padding: 1.8rem 0 2.2rem;
  background: #0b1120;
  color: #9ca3af;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-name {
  margin: 0 0 0.15rem;
  font-weight: 500;
  color: #e5e7eb;
}

.footer-tagline {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer .btn.primary {
  margin-top: 1rem;
  display: inline-block;
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-title {
    font-size: 2.4rem;
  }
}
