body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    margin-top: -12px;
    margin-right: -12px;
    margin-left: -12px;
    margin-bottom: -12px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;        
  background-color: #2c2c2c;
  position: sticky;
  z-index: 1000;
  padding: 10px 30px;
  top: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  margin-right: 30px;
}

.logo {
  height: 64px;
  width: auto;
  margin-left: 625px;
}

.brand {
  color: white;
  font-size: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 625px;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a:hover {
  text-decoration: underline;
}

.hero {
      height: 70vh;
      background-image: url('elektryk1.jpg'); 
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      max-width: 1200px;
      margin: 0 auto;
      border-radius: 12px;
      margin-top: 10px;
    }

.overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.5); 
      z-index: 0;
    }

.hero-text {
      position: relative;
      z-index: 1;
      color: white;
      text-align: left;
      margin-left: 5%;
      max-width: 600px;
    }

.hero-text h1 {
      font-size: 3rem;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

.hero-text p {
      font-size: 1.2rem;
      margin-top: 10px;
    }

@media (max-width: 768px) {
      .hero-text h1 {
        font-size: 2rem;
      }
      .hero-text p {
        font-size: 1rem;
      }
    }

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: (0,0,0,0.9);
  color: black;
  font-weight: bold;
  border-radius: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn:hover {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

#wyroznia {
  text-align: center;
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 25px;
}

#main {
  justify-content: center; /* to */
  display: flex; /* i to, wyrownuja calosc do srodka poziomo */
  gap: 80px;
  margin: 60px auto;
  flex-wrap: wrap; /* nie rozjezdza sie na malych ekranach */
}

.zdjecie {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 250px; /* ogranicza szerokosc kazdego z blokow*/
}

.zdjecie img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.zdjecie img:hover {
  transform: scale(1.1);
}

.zdjecie p{
  font-size: 1.5rem;
}

.footer {
  background-color: #2c2c2c;
  color: white;
  padding: 40px 20px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-center {
  margin-left: 625px;
  flex: 1;
}

.footer-right {
  margin-left: -1500px;
  flex: 1;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #ffffff;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

#send-query {
  display: inline-block;
  padding: 6px 12px;
  color: #ffe07d;
  border-radius: 1px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid transparent;
}

#send-query:hover{
  background-color: transparent;
  color: white;
  border: 2px solid white;
  text-decoration: dashed;
}

.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.services-image {
  position: relative;
  max-width: 400px;
}

.services-image .main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.services-image .overlay-image {
  position: absolute;
  top: 65%;
  left: 85%; 
  width: 250px;
  max-width: 60%;
  border-radius: 3px;
  border: 5px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
}

.services-content {
  flex: 2;
  min-width: 300px;
  max-width: 700px;
}

.services-content h2 {
  font-size: 2rem;
  margin-left: 100px;
  margin-bottom: 30px;
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-left: 100px;
  gap: 25px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.3s ease-out;
}

.service-item:hover {
  transform: scale(1.1);
  border: 1px solid #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
  cursor: pointer;
}

.service-item .icon {
  font-size: 28px;
  color: #ffc400;
  flex-shrink: 0;
}

.service-item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.service-item p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  color: #444;
}


.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.submit-btn {
  background-color: #f1c40f;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #d4ac0d;
}

/* Wspólny popup */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popupcontent-a {
  text-decoration: none;
  color: black;
}

/* Okienko popup */
.popup-content {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 2px solid black;
    font-family: 'DM Serif Text', serif;
}

/* Zamknięcie */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close:hover {
    color: #ff4c4c;
}

/* Formularz */
#query-form input,
#query-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

#query-form input:focus,
#query-form textarea:focus {
    border-color: #302c2c;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
    outline: none;
}

#query-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Przycisk wyślij */
#query-form button {
    background-color: #302c2c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.1s;
}

#query-form button:hover {
    background-color: black;
    transform: translateY(-2px);
}

/* Komunikat sukcesu */
#query-success {
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
}
