/* =====================
   Resetowanie i podstawowe style
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Roboto', sans-serif;
  background-color: #121212;
  color: #fff;
  height: 100%;
}

/* =====================
  Nagłówek (header)
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 999;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 70px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #00e5ff;
}

/* =====================
   Usunięte indywidualne tła, żeby nie kolidowały
===================== */
.bg-fixed,
.hero,
.testuj-boxy {
  background: none !important;
}

/* =======================
  Nowe tło na całej głównej zawartości (bez stopki)
========================== */
.background-section {
  background-image: url('/img/testuj.webp');
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: cover;
  min-height: 100vh;
  padding-top: 80px;
  background-attachment: fixed;
}

/* =====================
  Sekcja Hero (powitalna)
===================== */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 350px;
  text-align: right;
}

.hero-content {
  max-width: 600px;
  text-align: right;
  margin-top: -250px;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.2em;
  margin: 0;
}

/* =====================
  Sekcja Oferta (dwukolumnowa)
===================== */
.oferta {
  padding: 100px 20px;
  text-align: center;
}

.oferta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.oferta-text {
  flex: 1 1 500px;
  text-align: left;
}

.oferta-text h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.oferta-text p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #ddd;
}

.oferta-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.oferta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .oferta-container {
    flex-direction: column;
  }
  .oferta-text, .oferta-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .oferta-text h2 {
    font-size: 2.5em;
  }
}

/* =====================
       Stopka strony
===================== */
footer {
  padding: 30px 20px;
  text-align: center;
}

.footer-background {
  background-color: #270B28AF;
  backdrop-filter: blur(4px);
}

.main-footer {
  padding: 40px 0px 0;
  color: #fff;
  opacity: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 20px;
  padding-top: 20px;
  border-bottom: 1px solid #444;
}

.footer-col {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 5px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #00e5ff;
  text-decoration: underline;
}

.footer-bottom {
  background-color: #161416;
  color: #ccc;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom a {
  color: #ccc;
  margin-right: 10px;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #00e5ff;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
  flex: 1 1 30%;
  text-align: center;
  margin: 5px 0;
}

/* =====================
  Sekcja Testuj Boxy
===================== */
.testuj-boxy {
  padding: 100px 20px;
  background-color: #121212;
  text-align: center;
}

.testuj-boxy h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.testuj-boxy .lead {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.box-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.box {
  background-color: #1f1f1f;
  border-radius: 12px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
}

.box img {
  width: 48px;
  margin-bottom: 15px;
  filter: none;
}

.box h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #00e5ff;
}

.box p {
  font-size: 0.95em;
  color: #ddd;
}

.testuj-boxy .btn {
  margin-top: 50px;
  display: inline-block;
  padding: 12px 24px;
  background-color: #00e5ff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}

.testuj-boxy .btn:hover {
  background-color: #00c2d4;
}

/* =====================
Strona błędu (Error Page)
===================== */

body.error {
  background: url('/img/error-page.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.85);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.error-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page h1 {
  font-size: 5em;
  color: #00e5ff;
  margin-bottom: 20px;
}

.error-page p {
  font-size: 1.3em;
  color: #ccc;
  max-width: 600px;
  margin-bottom: 30px;
}

.error-page .btn {
  padding: 12px 24px;
  background-color: #00e5ff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.error-page .btn:hover {
  background-color: #00c2d4;
}

/* =====================
  Sekcja Slajdów i animacje
===================== */
.slajdy {
  margin-top: 200px;
  margin-left: 15%;
  max-width: 700px;
  position: relative;
}
.slajd-container {
  display: flex;
  align-items: center;
}
.slajd-tekst {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 120px;
}
.slajd {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(.77,0,.18,1);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}
.slajd.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.slajd-prev, .slajd-next {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #222;
  padding: 0 12px;
}

/* =====================
  Wysylanie Animacje
===================== */
.animacja-wyłaniania {
  opacity: 0;
  transform: scale(0.8) translateY(40px);
  animation: wyłanianie 1s forwards;
}
@keyframes wyłanianie {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.strefa-testowa, .wsparcie, .uslugi {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 60px 15%;
  border-radius: 12px;
  box-shadow: 0px 4px 4px 6px rgba(1, 0, 0, 0.5);
  padding: 32px;
}
.testowa-ikony img, .wsparcie-ikony img, .uslugi-ikony img {
  width: 64px;
  height: 64px;
  margin-right: 8px;
}