
/* SERAFIN – ZIMNY, PŁYNNY DRYF KOLORÓW */

:root {
  --dryf-czas: 18s;
  --dryf-moc: 1;
}

/* Sekcje */
.hero, .offer, .copy-section, .social-section,
.video-section, .graphics, .contact,
.gallery-top, .gallery-main, .projects-title {
  position: relative;
  isolation: isolate;
}

/* Animowane poświaty */
.hero::before, .offer::before,
.copy-section::before, .social-section::before,
.video-section::before, .graphics::before,
.contact::before, .gallery-top::before,
.gallery-main::before, .projects-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      ellipse 45% 55% at 15% 20%,
      rgba(35, 95, 220, .30),
      transparent 75%
    ),
    radial-gradient(
      ellipse 40% 55% at 85% 80%,
      rgba(75, 35, 175, .28),
      transparent 75%
    );

  background-size: 180% 180%, 170% 170%;
  background-position: 0% 0%, 100% 100%;

  animation: zimny-dryf var(--dryf-czas)
    ease-in-out infinite alternate;
}

/* CIEMNE SEKCJE – CZERŃ Z KOLOROWYM REFLEKSEM */
.hero::before,
.contact::before,
.gallery-top::before {
  background-image:
    radial-gradient(
      ellipse 32% 45% at 20% 25%,
      rgba(15, 55, 165, .48),
      transparent 75%
    ),
    radial-gradient(
      ellipse 30% 40% at 80% 75%,
      rgba(65, 20, 145, .36),
      transparent 75%
    );

  background-size: 160% 160%, 160% 160%;
  mix-blend-mode: screen;
}

/* JASNE SEKCJE – BŁĘKIT, LODOWY FIOLET */
.copy-section::before,
.video-section::before,
.gallery-main::before {
  background-image:
    radial-gradient(
      ellipse 55% 65% at 20% 25%,
      rgba(65, 145, 255, .45),
      transparent 75%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 75%,
      rgba(125, 85, 230, .38),
      transparent 75%
    );
}

/* POZOSTAŁE SEKCJE – CHŁODNY DRYF */
.offer::before,
.social-section::before,
.graphics::before,
.projects-title::before {
  background-image:
    radial-gradient(
      ellipse 50% 60% at 20% 30%,
      rgba(35, 105, 235, .38),
      transparent 75%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 70%,
      rgba(90, 50, 190, .34),
      transparent 75%
    );
}

/* Teksty i zawartość na wierzchu */
.hero > *, .offer > *, .copy-section > *,
.social-section > *, .video-section > *,
.graphics > *, .contact > *,
.gallery-top > *, .gallery-main > *,
.projects-title > * {
  position: relative;
  z-index: 1;
}

/* Płynne przemieszczanie */
@keyframes zimny-dryf {
  0% {
    background-position: 0% 0%, 100% 100%;
    opacity: .55;
  }

  25% {
    background-position: 35% 25%, 70% 75%;
    opacity: var(--dryf-moc);
  }

  50% {
    background-position: 85% 65%, 15% 30%;
    opacity: .75;
  }

  75% {
    background-position: 55% 85%, 85% 15%;
    opacity: var(--dryf-moc);
  }

  100% {
    background-position: 100% 100%, 0% 0%;
    opacity: .55;
  }
}

/* Ograniczenie ruchu – dostępność */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .offer::before,
  .copy-section::before, .social-section::before,
  .video-section::before, .graphics::before,
  .contact::before, .gallery-top::before,
  .gallery-main::before, .projects-title::before {
    animation: none;
  }
}

/* ==========================================
   SERAFIN – DOPRACOWANIE KOLORYSTYKI
   Sapphire Blue / Ocean Blue / Neon Jade
   ========================================== */

:root {
  --ps-blue: #0042AC;
  --ps-offer-blue: #1268CB;
  --ps-cyan: #00D3FB;
  --ps-green: #83FD80;
}

/* 1. STRONA TYTUŁOWA */
html body .hero {
  background: #0042AC !important;
}

/* 2. PŁYNNE PRZEJŚCIE HERO -> OFERTA */
html body .offer {
  background: linear-gradient(
    180deg,
    #0042AC 0%,
    #0752B8 18%,
    #1268CB 48%,
    #1268CB 100%
  ) !important;
}

/* Białe nagłówki oferty */
html body .offer h2,
html body .offer .projects-title h2 {
  color: #FFFFFF !important;
}

/* Czarne karty pozostają bez zmian */
html body .offer-card {
  background: #050505 !important;
  color: #FFFFFF !important;
}

/* Zielone akcenty na kartach oferty */
html body .offer-card:hover {
  border-color: #83FD80 !important;
  box-shadow: 0 0 26px rgba(131,253,128,.30);
}

/* 3. KAFELKI COPYWRITINGU */

/* Płynne przejście po najechaniu */
html body .sample-link .sample {
  transition:
    background .35s ease,
    background-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease !important;
}

/* Wszystkie kolorowe kafelki
   zmieniają się na Neon Jade */
html body .sample-link:hover .sample,
html body .sample-link:focus-visible .sample {
  background: #83FD80 !important;
  background-image: none !important;
  box-shadow: 0 0 28px rgba(131,253,128,.38);
  transform: translateY(-5px);
}

/* Ikony na zielonym tle – granatowe */
html body .sample-link:hover .sample svg,
html body .sample-link:focus-visible .sample svg {
  color: #0042AC !important;
  stroke: #0042AC !important;
}

/* Tekst pod kafelkiem */
html body .sample-link:hover {
  color: #83FD80 !important;
}

/* 4. ZIELONE IKONY OZDOBNE */

/* Ikony w kartach oferty */
html body .offer-card .spark {
  color: #83FD80 !important;
}

html body .offer-card .spark svg {
  stroke: #83FD80 !important;
}

/* Gwiazdki i ozdobniki */
html body .ornaments span {
  color: #83FD80 !important;
}

/* Ikony dekoracyjne */
html body .burst {
  color: #83FD80 !important;
}

/* 5. GŁOS SENIORA – BEZ FIOLETU */

/* Główna karta wideo */
html body .video-card {
  background: #0042AC !important;
  background-color: #0042AC !important;
  background-image: none !important;
  color: #FFFFFF !important;
}

/* Biały tekst na karcie */
html body .video-card p,
html body .video-card .video-label {
  color: #FFFFFF !important;
}

/* Przycisk odtwarzania */
html body .video-card .play {
  background: #00D3FB !important;
  background-color: #00D3FB !important;
  color: #0042AC !important;
  border-color: #00D3FB !important;
  transition:
    background-color .3s ease,
    color .3s ease,
    transform .3s ease !important;
}

/* Zielony przycisk po najechaniu */
html body .video-card .play:hover {
  background: #83FD80 !important;
  background-color: #83FD80 !important;
  color: #0042AC !important;
  transform: scale(1.08);
}

/* 6. DODATKOWE ZIELONE AKCENTY */
html body .site-nav a:hover,
html body .contact-copy a:hover,
html body .video-label:hover,
html body .project-open:hover {
  color: #83FD80 !important;
}

/* 7. DOSTĘPNOŚĆ */
@media (prefers-reduced-motion: reduce) {
  html body .sample-link .sample,
  html body .video-card .play {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================
   SERAFIN – CZARNA STRONA TYTUŁOWA
   DRYFUJĄCE ŚWIATŁA:
   NIEBIESKI / TURKUS / ZIELEŃ
   ========================================== */

/* Głęboka czerń zamiast niebieskiego tła */
html body .hero {
  background: #020409 !important;
  background-color: #020409 !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Trzy kolorowe poświaty */
html body .hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      ellipse 35% 45% at 15% 25%,
      rgba(0, 66, 172, .85) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 30% 40% at 85% 75%,
      rgba(0, 211, 251, .55) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 25% 35% at 65% 15%,
      rgba(131, 253, 128, .38) 0%,
      transparent 75%
    );

  background-size:
    130% 130%,
    145% 145%,
    160% 160%;

  background-position:
    0% 0%,
    100% 100%,
    50% 0%;

  opacity: 1;
  mix-blend-mode: normal;

  animation: hero-swiatla 24s
    ease-in-out infinite alternate !important;
}

/* Ruch trzech świateł */
@keyframes hero-swiatla {
  0% {
    background-position:
      0% 0%,
      100% 100%,
      50% 0%;
    opacity: .65;
  }

  25% {
    background-position:
      35% 20%,
      70% 75%,
      80% 35%;
    opacity: 1;
  }

  50% {
    background-position:
      85% 65%,
      20% 30%,
      25% 80%;
    opacity: .85;
  }

  75% {
    background-position:
      45% 85%,
      85% 15%,
      65% 45%;
    opacity: 1;
  }

  100% {
    background-position:
      100% 100%,
      0% 0%,
      15% 65%;
    opacity: .7;
  }
}

/* Treść i zdjęcie zawsze na wierzchu */
html body .hero > * {
  position: relative;
  z-index: 1;
}

/* Zielone podświetlenie nazwy */
html body .hero .name-pill:hover {
  background: #83FD80 !important;
  color: #020409 !important;
  box-shadow: 0 0 25px rgba(131,253,128,.45);
}

/* Dostępność */
@media (prefers-reduced-motion: reduce) {
  html body .hero::before {
    animation: none !important;
  }
}
