/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* USTAWIENIA BAZOWE */
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden; /* ukrycie ewentualnych pasków w poziomie */
}

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

/* NAGŁÓWEK */
.header {
  background-color: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  color: #1565c0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #1565c0;
}

/* SEKCJA HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* pełen ekran wysokości */
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* WARSTWY TŁA (animowany wielokolorowy gradient) */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  opacity: 0.5;
  background: linear-gradient(270deg, #1565c0, #0d47a1, #b71c1c, #f57c00, #1565c0);
  background-size: 600% 600%;
  will-change: background-position;
}

/* Różne prędkości animacji, by uzyskać efekt parallaxu */
.layer1 {
  animation: gradientAnim 20s ease infinite;
}
.layer2 {
  animation: gradientAnim 30s ease infinite reverse;
}
.layer3 {
  animation: gradientAnim 40s ease infinite;
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Zawartość hero */
.hero-content {
  position: relative; /* aby być nad warstwami tła */
  z-index: 1;
  max-width: 700px;
  padding: 0 20px; /* drobny margines na mniejszych ekranach */
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* PRZYCISK */
.btn {
  display: inline-block;
  background-color: #fff;
  color: #1565c0;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s background-color ease, 0.3s transform ease;
}

.btn:hover {
  background-color: #eee;
  transform: scale(1.05);
}

/* FALISTY SEPARATOR */
.wave {
  margin-bottom: -1px;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* SEKCJA O NAS */
.about {
  padding: 60px 0;
  background-color: #fff;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* SEKCJA MAPY */
.map-section {
  padding: 60px 0;
  background: #fafafa;
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.map-container {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

/* SEKCJA KONTAKTU */
.contact-section {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* STOPKA */
.footer {
  background-color: #1565c0;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.footer-content p {
  margin: 0;
}

/* ANIMACJA WIDOCZNOŚCI PRZY SCROLLU */
.anim-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMACJA POJAWIANIA SIĘ (HERO) */
.fade-in-on-load {
  opacity: 0;
  animation: fadeIn 1.2s forwards ease-in-out;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* PROSTE DOPASOWANIE ROZMIARÓW EKRANU */
@media screen and (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-content h3 {
    font-size: 1.5rem;
  }
  .hero {
    height: 80vh;
  }
}
