/* Podstawowy styl ogólny */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px;
}

p {
  margin: 0 0 15px;
}

/* Nawigacja (górny pasek menu) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.logo {
  font-size: 1.2em;
  font-weight: 700;
  color: #2196F3;
  text-decoration: none;
}

.hamburger {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #2196F3;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #2196F3;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #1976D2;
}

/* Sekcja hero (główna sekcja z tłem) */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 20px;
  background: linear-gradient(rgba(33,150,243,0.6), rgba(33,150,243,0.6)), url('serwis_komputerowy.jpg') center/cover no-repeat;
  color: #fff;
}

.hero-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.2em;
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-highlight {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 20px;
}

.call-to-action {
  background: #FF9800;
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  padding: 15px 25px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.call-to-action:hover {
  background: #e68900;
}

.call-to-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,152,0,0.4);
}

/* Sekcje: Usługi, O mnie, Kontakt */
.services-section, .about-section, .contact-section {
  padding: 60px 20px;
}

.about-section {
  background: #E3F2FD;
}

.services-section h2, .about-section h2, .contact-section h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #2196F3;
  text-align: center;
  margin-bottom: 40px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.service-list li {
  padding: 5px 0;
  position: relative;
  font-weight: 500;
}

.service-list li::before {
  content: '✔';
  color: #4CAF50;
  font-weight: 700;
  margin-right: 10px;
}

/* Ustawienia paragrafów w sekcjach O mnie i Kontakt */
.about-section p, .contact-section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section p strong {
  font-weight: 700;
}

/* Efekty pojawiania (reveal) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Opóźnienia animacji dla kolejnych elementów (usługi, kontakt) */
.service-list li.reveal.active:nth-child(1) { transition-delay: 0.1s; }
.service-list li.reveal.active:nth-child(2) { transition-delay: 0.2s; }
.service-list li.reveal.active:nth-child(3) { transition-delay: 0.3s; }
.service-list li.reveal.active:nth-child(4) { transition-delay: 0.4s; }
.service-list li.reveal.active:nth-child(5) { transition-delay: 0.5s; }
.service-list li.reveal.active:nth-child(6) { transition-delay: 0.6s; }
.contact-section p.reveal.active:nth-of-type(1) { transition-delay: 0.1s; }
.contact-section p.reveal.active:nth-of-type(2) { transition-delay: 0.2s; }
.contact-section p.reveal.active:nth-of-type(3) { transition-delay: 0.3s; }
.about-section p.reveal.active:nth-of-type(2) { transition-delay: 0.1s; }

/* Responsywność - mobile */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
  }

   .navbar {
    padding: 0 10px; /* Zmniejszony padding boczny */
  }

  .hamburger {
    margin-right: 10px; /* Zapewnia margines bezpieczeństwa */
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    margin: 10px 0;
  }
  .hero-title {
    font-size: 1.8em;
  }
}

/* Responsywność - większe ekrany */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
  }
  .nav-menu li {
    display: inline-block;
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero-title {
    font-size: 2.5em;
  }
  .hero-subtitle {
    font-size: 1.3em;
  }
  .hero-highlight {
    font-size: 1.2em;
  }
}
