/* style.css */
:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --card: #1f242a;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2f81f7;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  background: linear-gradient(135deg, #2f81f7, #1b1f23);
  color: #fff;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  object-position: center;
  margin-bottom: 1rem;
  background: #0d1117;
}

.tagline {
  font-size: 1.15rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.socials {
  margin-top: 1.2rem;
}

.socials a {
  display: inline-block;
  margin: 0 0.4rem 0.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  transition: 0.2s ease;
  font-size: 0.92rem;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-switch {
  margin-top: 1.3rem;
}

.lang-switch button {
  background: rgba(13, 17, 23, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.35rem 0.9rem;
  margin: 0 0.3rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
}

.lang-switch button.active,
.lang-switch button:hover {
  background: #fff;
  color: #0d1117;
}

.section {
  padding: 3.7rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#about p {
  max-width: 780px;
  margin: 0.6rem auto;
  text-align: center;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 200px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.project-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  width: fit-content;
}

.btn-primary:hover {
  background: #1f6feb;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.skills-grid > div {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.skills-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* testimonial */
.testimonial-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-title {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

blockquote {
  margin: 0;
  padding: 0 0.8rem;
  font-style: italic;
  color: #e6edf3;
  line-height: 1.6;
}

.testimonial-author {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

/* certyfikaty */
.cert-list {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-top: 1rem;
}

.cert-list li {
  margin: 0.4rem 0;
  background: var(--card);
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.cert-link {
  margin-left: 0.4rem;
  color: #2f81f7;
  text-decoration: none;
  font-size: 0.78rem;
}

.cert-link:hover {
  text-decoration: underline;
}

#contact p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
}

#contact .btn-primary {
  margin: 0 auto;
  display: block;
}

footer {
  background: var(--bg-alt);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--text);
  text-decoration: none;
}

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

/* responsive */
@media (max-width: 700px) {
  .hero {
    padding-top: 3rem;
  }
  .socials a {
    display: inline-block;
    margin-bottom: 0.3rem;
  }
  h2 {
    font-size: 1.55rem;
  }
  .testimonial-card {
    padding: 1.4rem 1rem;
  }
}

/* --- DODANE POD MINIATURY I DRUGI PRZYCISK --- */

.project-thumb {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.project-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.btn-secondary {
  background: rgba(47, 129, 247, 0.14);
  color: #dbeafe;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(47, 129, 247, 0.3);
}

/* --- MODAL DO POWIĘKSZANIA MINIATURY --- */

.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.img-modal-content {
  display: block;
  margin: 3rem auto;
  max-width: min(90%, 1100px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.img-modal-close {
  position: fixed;
  top: 1.6rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 400;
  cursor: pointer;
}

@media (max-width: 700px) {
  .img-modal-content {
    max-width: 95%;
  }
  .img-modal-close {
    right: 1.2rem;
  }
}

/* ujednolicenie szerokości przycisków w kartach projektów */
.project-buttons .btn-primary,
.project-buttons .btn-secondary {
  min-width: 150px;         
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
