body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  min-height: 100vh;
  color: #222;
}

.main-container {
  max-width: 750px;
  margin: 48px auto;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  border-radius: 24px;
  padding: 42px 36px 32px 36px;
  backdrop-filter: blur(7px);
  position: relative;
  animation: fadeIn 1.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
}

.logo-initial {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px 0 rgba(33,147,176,0.18);
  letter-spacing: 2px;
  border: 4px solid #fff;
  z-index: 10;
  animation: popIn 1.1s;
}

@keyframes popIn {
  from { transform: scale(0.5);}
  to { transform: scale(1);}
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 24px;
}

h1 {
  margin: 0;
  font-size: 2.1em;
  letter-spacing: 1px;
  color: #2193b0;
  font-weight: 700;
  flex-shrink: 0;
}

.lang-switcher {
  position: absolute;
  top: 18px;
  right: 36px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: #e9f1fa;
  border: none;
  color: #2193b0;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.lang-btn.active, .lang-btn:hover {
  background: #2193b0;
  color: #fff;
}

.subtitle {
  color: #555;
  font-size: 1.12em;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.contact-row {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a4e8a;
  font-size: 1em;
  font-weight: 500;
  background: rgba(193, 222, 255, 0.22);
  padding: 6px 16px;
  border-radius: 14px;
  transition: background 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.contact-item:hover {
  background: #2193b0;
  color: #fff;
  text-decoration: underline;
}
.section {
  margin-top: 30px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(33,147,176,0.07);
  animation: fadeInSection 1.2s;
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(24px);}
  to { opacity: 1; transform: translateY(0);}
}
.section-title {
  font-size: 1.19em;
  color: #2193b0;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: #2193b0;
}
ul, .skills-list, .lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.skills-list, .lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}
.skill-pill {
  background: linear-gradient(90deg, #a1c4fd 20%, #c2e9fb 100%);
  color: #1a4e8a;
  padding: 7px 16px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px 0 rgba(33,147,176,0.07);
  transition: background 0.2s;
}
.skill-pill i {
  font-size: 1em;
}
.lang-pill {
  background: #e9f1fa;
  color: #1a4e8a;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 1em;
  font-weight: 500;
}
.consent {
  font-size: 0.93em;
  color: #666;
  margin-top: 32px;
  line-height: 1.5;
  background: rgba(255,255,255,0.45);
  padding: 12px 18px;
  border-radius: 12px;
}

/* CIEMNY MOTYW */
body.dark-theme {
  background: #121212;
  color: #e0e0e0;
}

body.dark-theme .main-container {
  background: #1e1e1e;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.7);
}

body.dark-theme .logo-initial {
  box-shadow: 0 4px 24px 0 rgba(33,147,176,0.8);
  border: 4px solid #121212;
}

body.dark-theme h1,
body.dark-theme .section-title {
  color: #6dd5ed;
}

body.dark-theme .subtitle {
  color: #a0a0a0;
}

body.dark-theme .lang-switcher .lang-btn {
  background: #333;
  color: #6dd5ed;
}

body.dark-theme .lang-switcher .lang-btn.active,
body.dark-theme .lang-switcher .lang-btn:hover {
  background: #6dd5ed;
  color: #121212;
}

body.dark-theme .contact-item {
  background: #222;
  color: #6dd5ed;
}

body.dark-theme .contact-item:hover {
  background: #6dd5ed;
  color: #121212;
}

body.dark-theme .section {
  background: #222;
  box-shadow: 0 1px 8px 0 rgba(33,147,176,0.3);
}

body.dark-theme ul,
body.dark-theme .skills-list,
body.dark-theme .lang-list {
  color: #ccc;
}

body.dark-theme .skill-pill {
  background: linear-gradient(90deg, #2193b0 20%, #6dd5ed 100%);
  color: #121212;
}

body.dark-theme .lang-pill {
  background: #333;
  color: #6dd5ed;
}

body.dark-theme .consent {
  color: #999;
  background: #1a1a1a;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .main-container {
    padding: 18px 6px 18px 6px;
  }
  .logo-initial {
    width: 56px;
    height: 56px;
    font-size: 1.3em;
    left: 6px;
  }
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-title-row {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  #theme-toggle {
    margin-left: 0;
    margin-top: 10px;
    padding: 7px 13px;
    font-size: 0.95em;
  }
}

@media (max-width: 600px) {
  .main-container {
    padding: 8px 2vw 8px 2vw;
  }
  .logo-initial {
    left: 3px;
    top: -25px;
    width: 42px;
    height: 42px;
    font-size: 1em;
  }
  .lang-switcher {
    right: 8px;
    top: 8px;
    gap: 6px;
  }
  .header-title-row {
    font-size: 0.95em;
  }
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 70px;
}

.logo-initial {
  position: absolute;
  left: 36px;
  top: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px 0 rgba(33,147,176,0.18);
  letter-spacing: 2px;
  border: 4px solid #fff;
  z-index: 10;
  animation: popIn 1.1s;
}

@keyframes popIn {
  from { transform: scale(0.5);}
  to { transform: scale(1);}
}

.header-bar h1 {
  margin: 0 auto;
  font-size: 2.1em;
  letter-spacing: 1px;
  color: #2193b0;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

body.dark-theme .logo-initial {
  box-shadow: 0 4px 24px 0 rgba(33,147,176,0.8);
  border: 4px solid #121212;
}
body.dark-theme .header-bar h1 {
  color: #6dd5ed;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .logo-initial {
    width: 56px;
    height: 56px;
    font-size: 1.3em;
    left: 6px;
    top: 0;
  }

  .header-bar {
    min-height: 56px;
  }
}

@media (max-width: 600px) {
  .logo-initial {
    width: 42px;
    height: 42px;
    font-size: 1em;
    left: 3px;
    top: 0;
  }

  .header-bar h1 {
    font-size: 1.1em;
  }
  .header-bar {
    min-height: 42px;
  }
}

