/* Reset stylów */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styl dla całego ciała strony */
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #f0f0f0;
  background: url('img/background.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  line-height: 1.7;
}

/* Przyciemnienie tła dla czytelności tekstu */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Nagłówek */
header {
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kontener zdjęcia w procentach */
.profile-container {
  position: relative;
  width: 30%;          /* szerokość kółka w % rodzica */
  max-width: 250px;    /* maksymalna szerokość */
  aspect-ratio: 1 / 1; /* wysokość = szerokość */
  margin-bottom: 1rem;
}

/* Zdjęcie w kółku */
header img.profile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;   /* wypełnia całe kółko */
  display: block;
  border: 4px solid #fff;
}

/* Imię nakładające się na dolną część zdjęcia */
header .profile-container h1 {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2.5rem;
  background: rgba(0,0,0,0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

/* Lista kwalifikacji pod nagłówkiem */
.profile-info {
  list-style-type: disc;
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
  color: #ccc;
  text-align: left;
}

.profile-info li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Usuń kropkę i dodaj odstęp dla ostatniego elementu */
.profile-info li.no-bullet {
  list-style-type: none;  /* usuwa kropkę */
  margin-top: 1rem;       /* odstęp wiersza nad tekstem */
}

/* Sekcje */
section {
  max-width: 900px;
  margin: 3rem auto;
  background: rgba(25, 25, 25, 0.85);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

/* Nagłówki sekcji */
h2 {
  color: #6ea8ff;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Listy w sekcjach */
ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Akapity */
p {
  margin-bottom: 1.2rem;
  color: #e0e0e0;
}

/* Stopka */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Kontakt */
.contact-info {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.direct-contact .direct-name {
  font-size: 1.5rem;  /* większe imię i nazwisko */
  font-weight: 600;   /* pogrubienie */
  margin-bottom: 0.5rem;
  color: #fff;        /* opcjonalnie jaśniejszy kolor */
}

.contact-info li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.contact-info a {
  color: #6ea8ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: #e0e0e0;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px #6ea8ff;
}

.contact-form button {
  background-color: #6ea8ff;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #5580d0;
}

/* Responsywność dla telefonów */
@media (max-width: 600px) {
  header {
    padding: 2.5rem 1rem 1.5rem 1rem;
  }

  header .profile-container h1 {
    font-size: 1.2rem;
  }

  .profile-container {
    width: 50%;   /* większe kółko na telefonach */
    max-width: 180px;
  }

  .profile-info {
    text-align: center;
  }

  section {
    margin: 1rem;
    padding: 1.5rem;
  }
}
