.footer {
  padding: 40px 20px;
  color: #f0f0f0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    radial-gradient(1200px 600px at 70% 30%, rgba(255,140,0,0.25), transparent 60%),
    url("../Images/QubitBG.png") no-repeat center center / cover;
  border-top: 2px solid #fff;
  font-size: 1em;
}

.footer-left {
  flex: 1;
  min-width: 260px;
}
.footer-left .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer-desc {
  margin: 12px 0;
  max-width: 400px;
  font-size: 14px;
  color: #ddd;
}
.footer-follow {
  margin: 8px 0;
  font-weight: 600;
  color: #ffcc66;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease;
}
.footer-social a:hover { transform: translateY(-2px); background: #ff8800; }

.footer-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-middle {
  text-align: center;
  margin: 24px 0;
}


/* Dynamiczny „żywy” blob */
.footer-btn {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ff8800, #ffcc33);
  color: #111;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);

  /* startowy blob */
  border-radius: 62% 38% 28% 72% / 58% 32% 68% 42%;

  /* 🔥 szybsze pulsowanie: 4s */
  animation: blobPulse 4s ease-in-out infinite;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* na hover – uniesienie + mocniejszy cień, animacja trochę przyspiesza */
.footer-btn:hover {
  background: linear-gradient(135deg, #ffcc33, #ff8800);
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
  transform: translateY(-4px);
  animation-duration: 6s; /* delikatny „boost” dynamiki pod kursorem */
}

/* klatki kluczowe – większa zmienność kształtu niż w spokojnej wersji */
@keyframes blobPulse {
  0%,
  100% {
    border-radius: 62% 38% 28% 72% / 58% 32% 68% 42%;
  }
  25% {
    border-radius: 48% 62% 74% 38% / 44% 66% 34% 72%;
  }
  50% {
    border-radius: 36% 70% 58% 54% / 68% 38% 60% 42%;
  }
  75% {
    border-radius: 72% 40% 36% 64% / 56% 74% 46% 38%;
  }
}



/* dostępność: wyłącz animacje dla prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .footer-btn { animation: none; transform: none; }
}


/* bezpiecznik – kontener przycisku */
.footer-middle {
  text-align: center;
  overflow: visible;   /* unikamy ucinania */
  padding: 10px 0;
}


/* na wszelki wypadek całej stopce też pozwól „oddychać” */
footer { overflow: visible; }  /* nie koliduje z niczym w Twojej stopce */



.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  margin-top: 18px;
  color: #ccc;
}
.footer-bottom span {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* --- Wyrównania górnej części stopki --- */
.footer-top{
  display: grid;
  grid-template-columns: 1fr 1fr;         /* dwie równe kolumny */
  align-items: center;                    /* pionowe wyśrodkowanie */
  column-gap: clamp(32px, 6vw, 120px);   /* „środkowy padding” między kolumnami */
  max-width: 1200px;
  margin: 0 auto 28px;                   /* wyśrodkuj całość w stopce */
  padding: 0 var(--pad-x, 20px);
}

/* każda kolumna wyśrodkowana w swojej połówce */
.footer-left,
.footer-right{
  justify-self: center;
}

/* ale tekst w lewej kolumnie zostaje do LEWEJ, żeby nie „uciekał” na środek */
.footer-left{
  text-align: left;
}

/* prawa kolumna: obrazki obok siebie, wyśrodkowane w swojej połówce */
.footer-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* pilnujemy dokładnych rozmiarów obrazków z prawej */
.footer-right img:first-child { width: 78px; height: 78px; object-fit: contain; }
.footer-right img:last-child  { width: 79px; height: 114px; object-fit: contain; }

/* mobile: kolumny składają się pionowo i wszystko jest ładnie wyśrodkowane */
@media (max-width: 900px){
  .footer-top{
    grid-template-columns: 1fr;
    row-gap: 18px;
    text-align: center;
  }
  .footer-left{ text-align: center; }
}

@media (max-width: 900px) {
  .footer-left {
    text-align: center;
  }

  .footer-left .brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Kolory brandowe ikon w stopce – takie jak w headerze */
.footer-social a[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:focus-visible {
  background: #1877f2;
  color: #fff;
}

.footer-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:focus-visible {
  background: #e1306c;
  color: #fff;
}

.footer-social a[aria-label="LinkedIn"]:hover,
.footer-social a[aria-label="LinkedIn"]:focus-visible {
  background: #0a66c2;
  color: #fff;
}

.footer-social a[aria-label="GitHub"]:hover,
.footer-social a[aria-label="GitHub"]:focus-visible {
  background: #333; /* klasyczny kolor GitHub */
  color: #fff;
}
a.footer-link {
  text-decoration: none;
	color: inherit;
}
