/* ZMIENNE Z KOLORAMI */
:root {
  --bg-color: #06070a;
  --card-bg: rgba(18, 19, 26, 0.65);
  --card-border: rgba(255, 255, 255, 0.05);
  --accent-color: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* KANWAS DLA ANIMACJI TŁA */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.container {
  max-width: 680px;
  width: 100%;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

/* PROFIL */
.profile-section {
  text-align: center;
  margin-bottom: 35px;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: #23a55a;
  border: 4px solid var(--bg-color);
  border-radius: 50%;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* KARTY */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}

.card h2 {
  font-size: 19px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.card h2 i {
  color: var(--accent-color);
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* LISTY W KARTACH */
.skills-grid, .projects-list, .experience-list {
  list-style: none;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-grid li {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-list li, .experience-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.projects-list li::before, .experience-list li::before {
  content: "➔";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.projects-list li strong, .experience-list li strong {
  color: #fff;
}

/* SIATKA GALERII */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.project-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: scale(1.08);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

/* NAKŁADKA LIGHTBOX (POWIĘKSZENIE FOTEK) */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 7, 10, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* BLOKI DOŚWIADCZENIA */
.exp-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.exp-box:last-child {
  margin-bottom: 0;
}

.exp-box.discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(99, 102, 241, 0.01));
  border: 1px solid rgba(88, 101, 242, 0.25);
}

.exp-box h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.exp-box .sub {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.server-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.server-link:hover {
  color: #5865F2;
}

.exp-box.discord .sub {
  color: #7289da;
}

/* PRZYCISKI KONTAKTOWE */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.discord-btn:hover {
  transform: translateY(-2px);
  background: #4752C4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.email-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.email-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.contact-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* ANIMACJE */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 550px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-gallery img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  body { padding: 20px 15px; }
  h1 { font-size: 30px; }
  .card { padding: 20px; }
}