/* GLOBALNE */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: #0d0d0d;
  color: #eaeaea;
  line-height: 1.6;
}

.container { width: 90%; max-width: 1100px; margin: auto; }

/* HEADER */
header {
  background: #141414;
  border-bottom: 2px solid #ff6a00;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
header h1 {
  font-weight: 700;
  color: #fff;
}
header h1 span { color: #ff6a00; }
header nav a {
  color: #eaeaea;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color .2s;
}
header nav a:hover,
nav a.active { color: #ff8533; border-bottom: 2px solid #ff8533; }

/* HERO */
#hero {
  text-align: center;
  padding: 5rem 1rem;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}
#hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}
#hero p {
  color: #d0d0d0;
  font-size: 1.2rem;
}
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.cta:hover { transform: scale(1.05); }

/* PROTOTYPOWANIE – układ obrazek po lewej, tekst po prawej */
#prototypowanie {
  padding: 5rem 1rem;
  background: #000;
  color: #eaeaea;
}

.prototyp-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap; /* dla responsywności */
}

.prototyp-image {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
}

.prototyp-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.prototyp-content {
  flex: 1 1 400px;
  opacity: 1;
  transform: translateY(0);
  text-align: left;
}

.prototyp-content h2 {
  font-size: 2.8rem;
  color: #ff8533;
  margin-bottom: 1rem;
}

.prototyp-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 1rem;
}

.prototyp-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.prototyp-content ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.prototyp-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff6a00;
  font-weight: bold;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .prototyp-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .prototyp-content, .prototyp-image {
    flex: unset;
  }
  .prototyp-content {
    text-align: center;
  }
}


/* USŁUGI */
#uslugi { background: #141414; padding: 5rem 0; }
#uslugi h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: linear-gradient(145deg, #1c1c1c, #222);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #2a2a2a;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #ff6a00;
  box-shadow: 0 10px 20px rgba(255,106,0,0.2);
}

/* TAB-BUTTON */
.card.tab-button { cursor: pointer; border: 2px solid #333; }
.card.tab-button.active {
  border-color: #ff6a00;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.card.tab-button:hover:not(.active) { border-color: #ff6a00; }

/* TAB CONTENT / GALERIA */
.tab-content {
  display: none;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.tab-content.active { display: grid; }
.tab-content img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .3s, box-shadow .3s, border .3s;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.tab-content img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,106,0,0.5);
  border: 2px solid #ff6a00;
}

/* KONTAKT */
#kontakt { padding: 5rem 0; }
#kontakt h2 { text-align: center; margin-bottom: 2rem; }
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: auto;
}
input, textarea {
  background: linear-gradient(145deg, #1a1a1a, #222);
  border: 1px solid #333;
  color: #eaeaea;
  padding: 0.8rem;
  border-radius: 6px;
  transition: border-color .3s, box-shadow .3s;
}
input::placeholder, textarea::placeholder { color: #aaa; }
input:focus, textarea:focus {
  border-color: #ff8533;
  box-shadow: 0 0 10px rgba(255,106,0,0.3);
  outline: none;
}
button {
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .3s;
}
button:hover { transform: scale(1.03); }
.mail { text-align: center; margin-top: 1rem; }
.mail a { color: #ff6a00; text-decoration: none; }

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(to right, #141414, #1a1a1a);
  color: #aaa;
  font-size: 0.9rem;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* MODAL POTWIERDZENIA */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal-content {
  background: #1e1e1e;
  color: #eaeaea;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.4);
  border: 2px solid #ff6a00;
  animation: fadeInModal 0.3s ease;
}
.modal-content button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform .2s, box-shadow .3s;
}
.modal-content button:hover { transform: scale(1.05); }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
