/* === Sekcja O nas === */
.section--about {
  margin-top: 0;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(56px, 7vw, 110px) var(--pad-x);

  color: #f5f5f5;
  text-align: center;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: clip;

  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") center / cover no-repeat;
  background-attachment: fixed; /* parallax */
}

/* Główny kontener sekcji */
.about {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Tytuł (ten używany w HTML: .about-title) */
.about-title {
  font-size: clamp(36px, 6vw, 52px); /* większy min i max */
  font-weight: 700;
  line-height: 1.2;

  background: linear-gradient(270deg, #b35400, #ff8800, #ffcc33, #b35400);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(179, 84, 0, 0.65);
  animation: gradientMove 6s ease-in-out infinite;
}

/* Podtytuł */
.about-subtitle {
  margin: 18px auto 40px;
  max-width: 780px;
  font-size: clamp(16px, 2vw, 20px);
  color: #e8e8e8;
  opacity: .95;
}

/* Kafle kroków */
.about-content {
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-content { grid-template-columns: repeat(3, 1fr); }
}

.about-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
.about-step i {
  font-size: 36px;
  color: #ffcc66;
}
.about-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* CTA */
.about-cta {
  margin-top: 32px;
  text-align: center;
}
.about-cta .btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8800, #ffcc33);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.about-cta .btn:hover {
  background: linear-gradient(135deg, #ffcc33, #ff8800);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

/* Elementy graficzne opcjonalne (jeśli kiedyś użyjesz .about-image/.about-btn) */
.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.about-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all .25s ease;
}
.about-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 18px rgba(255,255,255,.35);
}

/* Preferuje mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  .about-title,
  .about-cta .btn { animation: none; transition: none; }
}


.about-step i {
  position: relative;
  display: inline-block;
  overflow: hidden; /* ważne: wycina shine po wyjściu */
}

.about-step i::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* start daleko z lewej */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  opacity: 0; /* domyślnie niewidoczne */
}


@keyframes shine {
  0% {
    left: -75%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    left: 125%; /* przelatuje poza ikonę */
    opacity: 0; /* i znika */
  }
}
.about-step.is-slow-visible i::after {
  animation: shine 1s ease forwards;
  opacity: 1;
}

/* Kaskada z różnymi delay’ami */
.about-step:nth-child(1).is-slow-visible i::after {
  animation-delay: 0.2s !important;
}
.about-step:nth-child(2).is-slow-visible i::after {
  animation-delay: 0.5s;
}
.about-step:nth-child(3).is-slow-visible i::after {
  animation-delay: 0.8s;
}
