/* ---------- Wariant A — bezpieczny (refresh) · paleta fioletowa ---------- */

html { scroll-behavior: smooth; }

/* Paleta — zmienne CSS pomocnicze */
:root {
  --accent: #A855F7;
  --accent-deep: #7C3AED;
  --accent-soft: #C4B5FD;
  --ink: #0B0614;
  --ink-soft: #13091F;
  --ink-card: #1A0F2E;
}

::selection { background: var(--accent); color: #fff; }

/* Tekst gradient fioletowy */
.text-gradient-purple {
  background: linear-gradient(135deg, #C4B5FD 0%, #A855F7 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Badge XV w nav */
.badge-xv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.05));
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.1); }
}

/* Hero glow tło - radial fiolet */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(168, 85, 247, 0.18), transparent 60%);
  pointer-events: none;
}

/* WEC outline stack */
.hero-outline-stack {
  position: absolute;
  top: 30%;
  right: -2%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: -3rem;
  opacity: 0.5;
  pointer-events: none;
}
.text-outline {
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 85, 247, 0.18);
  margin-top: -2rem;
}
.text-outline:nth-child(2) { -webkit-text-stroke-color: rgba(168, 85, 247, 0.1); }
.text-outline:nth-child(3) { -webkit-text-stroke-color: rgba(168, 85, 247, 0.05); }

.text-outline-soft {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

/* Hero team photo */
.hero-team-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-card);
  box-shadow:
    0 25px 60px -20px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.15);
}
.hero-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}
.hero-team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 60%);
  pointer-events: none;
}

/* Buttony */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -8px rgba(168, 85, 247, 0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: transparent;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(168, 85, 247, 0.05);
}

/* Service card */
.service-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(196, 181, 253, 0.08);
  border-radius: 6px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(124, 58, 237, 0.3);
}

/* Case card */
.case-card {
  display: block;
  cursor: pointer;
}
.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.5s ease;
}
.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 6, 20, 0.85), transparent 60%);
}
.case-card:hover .case-image {
  transform: scale(1.02);
  box-shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.35);
}
.case-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.badge-cat {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Marquee klientów */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  width: 160px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0.6;
}
.marquee-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(1);
}

/* Cytat */
.quote-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 6px;
}

/* ============ ZESPÓŁ — sekcja kluczowa ============ */

/* Pełnoekranowy banner zespołu */
.team-banner-section {
  position: relative;
  border-bottom: 1px solid rgba(196, 181, 253, 0.08);
}
.team-banner {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.team-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 6, 20, 0.5) 0%, rgba(11, 6, 20, 0.3) 40%, rgba(11, 6, 20, 0.95) 100%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, transparent 60%);
}

/* Twarze WEC — portretowe karty */
.portrait-card {
  cursor: pointer;
  transition: transform 0.3s;
}
.portrait-card:hover {
  transform: translateY(-4px);
}
.portrait-photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.4s, box-shadow 0.4s;
}
.portrait-card:hover .portrait-photo {
  filter: grayscale(0) contrast(1.05);
  box-shadow: 0 15px 40px -10px rgba(168, 85, 247, 0.4);
}

/* Masonry zdjęć z sesji */
.team-masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .team-masonry { column-count: 2; } }
@media (min-width: 1024px) { .team-masonry { column-count: 3; } }
@media (min-width: 1280px) { .team-masonry { column-count: 4; } }

.masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95);
  transition: transform 0.6s ease, filter 0.4s;
}
.masonry-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}
.masonry-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(11, 6, 20, 0.9), transparent);
  color: rgba(255, 255, 255, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.masonry-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Counter — reset koloru dla span */
.counter span { color: white; -webkit-text-fill-color: white; }
