/* Global */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* Pasek górny */
header {
  background: linear-gradient(90deg, #2b2d42, #1e90ff);
  color: white;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: padding 0.3s, background 0.3s;
}

header.shrink {
  padding: 0.3rem 2rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

nav .logo img {
  height: 50px;
  transition: height 0.3s;
}

header.shrink nav .logo img {
  height: 35px;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

nav ul li a:hover {
  color: #ffdd57;
}

/* Sekcje */
section {
  padding: 100px 20px 60px;
  max-width: 1200px;
  margin: auto;
}

.hero {
  background: #e9ecef;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

/* Sekcja kierunki rozwoju */
#rozwoj {
  background: #ffffff;
  padding: 80px 20px;
}

#rozwoj .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* --- Sekcja kart --- */
#rozwoj .card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#rozwoj .card:hover {
  transform: translateY(-10px) scale(1.03); /* podniesienie i lekkie powiększenie */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);  /* mocniejszy cień */
  background: #f0f4f8; /* delikatne podświetlenie tła */
}

/* --- Link w karcie --- */
.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%; /* cały obszar karty klikalny */
}


#rozwoj h3 {
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

#rozwoj p {
  color: #555555;
  font-size: 0.95rem;
}

/* Animacja sekcji content na podstronach */
#content {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  padding: 120px 20px 60px 20px; /* góra, prawo, dół, lewo */
  max-width: 1200px;
  margin: 0 auto;

}

#content.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Stopka */
footer {
  background: linear-gradient(90deg, #2b2d42, #1e90ff);
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #ffdd57;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-section h4 {
  margin-bottom: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  nav ul {
    justify-content: center;
  }
  nav ul li {
    margin: 0.5rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  #rozwoj .card {
    padding: 1.5rem 1rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-section {
    margin: 15px 0;
  }
}
/* Link w karcie */
.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
