@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #f0f4ff, #fff0f5);
  color: #333;
  overflow-x: hidden;
}

/* Links & transitions */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
a:hover {
  color: #ff6b00;
}

/* Header */
header {
  background: #fff;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 1s ease;
}
@keyframes slideDown {
  from {transform: translateY(-100px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 50px;
  transition: transform 0.4s ease;
}
.logo img:hover {
  transform: rotate(-10deg) scale(1.1);
}
.logo .text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #005fa3;
}
.logo .text strong {
  color: #ff6b00;
}

/* Navbar */
nav {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
}

/* Dropdown */
.dropdown {
  position: relative;
  cursor: pointer;
}
.dropdown-content {
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.dropdown:hover .dropdown-content,
.dropdown.show .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content a {
  padding: 12px 20px;
  color: #333;
  font-weight: 500;
}
.dropdown-content a:hover {
  background: #ff6b00;
  color: #fff;
  transform: scale(1.05);
}

/* Phone */
header .phone {
  font-weight: 600;
  color: #ff6b00;
  font-size: 1rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); color: #ff4500; }
}
.phone a {
  color: #fff;
  background: #005fa3;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.phone a:hover {
  background: #003f6b;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(50px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Boxes on index page */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 pudełka obok siebie na dużych ekranach */
  gap: 30px;
  margin-top: 50px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.5s ease;
  transform: translateY(0);
}
.feature-card h3 {
  color: #005fa3;
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.feature-card p {
  color: #555;
  font-size: 1rem;
}
.feature-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Responsive for features */
@media (max-width: 1200px) {
  .features {
    grid-template-columns: repeat(2, 1fr); /* 2 kolumny średnie ekrany */
  }
}
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr; /* 1 kolumna mobilnie */
  }
}

/* Offer Grid for oferta.html */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.offer-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.5s ease;
}
.offer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.offer-card h2 {
  color: #005fa3;
  margin: 15px 0 10px;
}
.offer-card p {
  padding: 0 15px 20px;
  color: #555;
}
.offer-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.offer-card:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* About Me */
.omnie-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.omnie-container img {
  width: 300px;
  border-radius: 16px;
  transition: transform 0.6s;
}
.omnie-container img:hover {
  transform: rotate(-5deg) scale(1.05);
}

/* Contact Form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-left, .contact-right {
  flex: 1 1 350px;
}
.contact-right form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-right input, .contact-right textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}
.contact-right input:focus, .contact-right textarea:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 10px rgba(255,107,0,0.4);
}
.contact-right button {
  background: linear-gradient(45deg, #ff6b00, #ff9c00);
  border: none;
  color: #fff;
  padding: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-right button:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 25px rgba(255,107,0,0.5);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #005fa3, #00bcd4);
  color: #fff;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  width: 100%;
}
.footer-section {
  flex: 1 1 250px;
}
.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #ff9800;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-section ul li a:hover {
  color: #ff9800;
}
.footer-section p, .footer-section a {
  color: #fff;
}
.footer-section img {
  height: 60px;
  margin-bottom: 15px;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #cfd8dc;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 900px) {
  .omnie-container, .contact-container {
    flex-direction: column;
    align-items: center;
  }
  header {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-section {
    text-align: center;
  }
}
/* Sekcja O NAS pod pudełkami */
.about-section {
  padding: 80px 20px;
  background: #f9f9f9;
}

.about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-images {
  flex: 1 1 400px;
  position: relative;
}

.image-stack {
  position: relative;
}

.image-stack .main-img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.image-stack .overlay-img {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 80%;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.experience-badge {
  position: absolute;
  bottom: -10px;
  left: 10px;
  background-color: #005fa3;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1 1 500px;
}

.about-text .subtitle {
  color: #ff6b00;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-text h2 {
  color: #005fa3;
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-text .highlight {
  color: #333;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-text .checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.about-text .checklist li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-weight: 500;
}

.about-text .checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #28a745;
}

.about-text .description {
  margin-bottom: 25px;
  color: #555;
}

.about-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.about-buttons .btn-primary {
  background-color: #005fa3;
  color: #fff;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-buttons .btn-primary:hover {
  background-color: #003f6b;
}

.about-buttons .btn-phone {
  background-color: #ff6b00;
  color: #fff;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-buttons .btn-phone:hover {
  background-color: #e65c00;
}

/* Responsywność */
@media (max-width: 992px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
  }
  .about-images, .about-text {
    flex: 1 1 100%;
  }
  .image-stack .overlay-img {
    top: 10px;
    left: 10px;
    width: 85%;
  }
}


/* O mnie - sekcja główna */
/* Sekcja O MNIE */
.omnie-container {
  display: flex;
  align-items: center;      /* wyśrodkowanie w pionie */
  justify-content: center;  /* wyśrodkowanie w poziomie */
  gap: 40px;
  margin-top: 60px;
}

.omnie-left img {
  width: 350px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.6s;
}

.omnie-left img:hover {
  transform: scale(1.05);
}

.omnie-right {
  max-width: 650px;
}

.omnie-right h1 {
  font-size: 2rem;
  color: #005fa3;
  margin-bottom: 15px;
}

.omnie-right .highlight {
  color: #ff6b00;
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
}

.omnie-right p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.omnie-right ul.checklist {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.omnie-right ul.checklist li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #333;
}

/* Responsywność */
@media (max-width: 900px) {
  .omnie-container {
    flex-direction: column;
    text-align: center;
  }
  .omnie-right {
    max-width: 100%;
  }
}


/* Animacje fade-in */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-50px);}
  100% { opacity: 1; transform: translateX(0);}
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px);}
  100% { opacity: 1; transform: translateX(0);}
}

/* Responsywność */
@media (max-width: 992px) {
  .omnie-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* Galeria certyfikatów */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  height: 120px;            /* stała wysokość miniaturek */
  object-fit: cover;        /* przycięcie proporcji, żeby wyglądało równo */
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Lightbox */
.lightbox {
  display: none;            /* ukryty dopóki nie klikniesz */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;         /* zdjęcie nie wychodzi poza ekran */
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.text-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: left;
  margin-bottom: 40px;
}
.text-box h1 {
  color: #005fa3;
  margin-bottom: 20px;
}
.text-box h2 {
  color: #ff6b00;
  margin-top: 25px;
  margin-bottom: 10px;
}
.text-box p, 
.text-box li {
  color: #444;
  line-height: 1.6;
}
