/*
Theme Name: NK Theme
Author: Marcin Kuśnierz
Author URI: http://www.ffs-video.pl/
Description: Ten motyw jest stowrzony w całości przez Marcina Kuśnierza :-) 
Version: 1.1
Text Domain: NK Theme

*/

/*------------------
O NAS - SHORT
------------------*/
.nk-history {
  background: var(--color-sand);
  position: relative;
  width: 100%;
}
.nk-history h2,
.nk-history h3 {
  color: var(--color-blue-dark);
}
.nk-history .page-content {
  overflow: hidden;
  padding: 60px 15px;
}

.flex-about-nk {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: 40px;
}

/* --- MODYFIKACJA KONTENERA --- */

.flex-about-nk.story-layout {
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* --- LEWA KOLUMNA (TEKST) --- */
.story-text-col {
  width: calc(50% - 30px); /* Połowa minus połowa gapu */
  /* Brak tła i paddingu - to klucz do luźnego stylu! */
  display: flex;
  flex-direction: column;
}

.story-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.story-desc p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--color-blue-dark);
}

/* --- PRAWA KOLUMNA (ZDJĘCIE BLOB) --- */
.story-visual-col {
  width: calc(50% - 30px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.image-mask {
  width: 90%;
  max-width: 400px;
  aspect-ratio: 1 / 1; /* Kwadratowa proporcja */
  overflow: hidden;
  background-color: #fde3cf; /* Półprzezroczysty pomarańcz */
  /* Magia organicznego kształtu: */
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;

  border: 5px solid var(--color-white); /* Biała ramka */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;

  /* Delikatna animacja kształtu */
  animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  100% {
    border-radius: 58% 42% 30% 70% / 55% 55% 45% 45%;
  }
}

.image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kolorowa plama pod spodem */
.blob-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(
    var(--color-orange-rgb),
    0.15
  ); /* Półprzezroczysty pomarańcz */
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 1;
  transform: rotate(-10deg);
}

/* Latająca rakieta */
.floating-deco {
  position: absolute;
  top: -20px;
  right: 0;
  width: 60px;
  z-index: 3;
  animation: floatRocket 3s ease-in-out infinite;
}

@keyframes floatRocket {
  0% {
    transform: translateY(0px) rotate(10deg);
  }
  50% {
    transform: translateY(-15px) rotate(15deg);
  }
  100% {
    transform: translateY(0px) rotate(10deg);
  }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .flex-about-nk.story-layout {
    flex-direction: column;
    gap: 40px;
  }

  .story-text-col,
  .story-visual-col {
    width: 100%;
  }

  .story-text-col {
    text-align: center;
  }

  .image-mask {
    max-width: 300px;
  }
}
/*------------------
MISJA
------------------*/
.nk-mission,
.nk-social-links {
  width: 100%;
  height: 100%;
  background: var(--color-sand);
  position: relative;
}
.nk-mission .page-content {
  background: var(--color-blue-dark);
  border-radius: 30px;
  position: relative;
}
.flex-nk-mission {
  display: flex;
  flex-direction: column;
}
.nk-mission p {
  color: var(--color-white);
}

/*------------------
Nasz Zespół
------------------*/
/* --- ZMIENNE (Dopasowane do KidsCamp) --- */

/* --- SIATKA --- */
.creators-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

/* --- KARTA --- */
.team-card {
  background: rgba(var(--color-white-rgb), 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--color-white-rgb), 0.2);
  width: calc(50% - 20px);
  border-radius: 20px;
  padding: 30px;
  box-sizing: border-box;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.card-image-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.creator-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid var(--color-white);
}

.blob-shape {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 100%;
  height: 100%;
  border-radius: 50% 60% 40% 70% / 50% 40% 60% 50%;
  z-index: 1;
  opacity: 0.6;
}

.card-orange .blob-shape {
  background: var(--color-red);
}
.card-blue .blob-shape {
  background-color: var(--color-mint);
}

.header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.creator-name {
  font-family: 'Francois One', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 5px 0;
  line-height: 1;
}

.creator-role {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--default-transition);
}

.card-orange .creator-role {
  color: var(--color-red);
}
.card-blue .creator-role {
  color: var(--color-mint);
}

/* --- BIO I TAGI --- */
.creator-bio {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* Biały z lekką przezroczystością dla czytelności na ciemnym tle */
  color: rgba(var(--color-white-rgb), 0.9);
  margin-top: 0;
  margin-bottom: 25px;
}

/* --- TAGI --- */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 15px;
  cursor: default;
  /* Styl "Ghost" - przezroczyste tło, kolorowa ramka */
  background: transparent;
  border: 1px solid;
}

/* Kolory tagów */
.card-orange .skill-tag {
  border-color: var(--color-red);
  color: var(--color-red);
  background: rgba(var(--color-red-rgb), 0);
  transition: var(--default-transition);
}
.card-orange .skill-tag:hover {
  background: rgba(var(--color-red-rgb), 1);
  color: var(--color-white);
}

.card-blue .skill-tag {
  border-color: var(--color-mint);
  color: var(--color-mint);
  transition: var(--default-transition);
}
.card-blue .skill-tag:hover {
  background-color: var(--color-mint);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .creators-grid {
    gap: 20px;
  }
  .team-card {
    width: calc(50% - 10px);
  }
}

/* --- RWD --- */
@media (max-width: 768px) {
  .creators-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 100%;
  }

  /* Na bardzo małych ekranach (np. telefon pionowo) można zmienić układ nagłówka */
  @media (max-width: 480px) {
    .card-header {
      flex-direction: column;
      text-align: center;
      gap: 15px;
    }

    .header-info {
      align-items: center;
    }
  }
}
.img-sciezka1,
.img-sciezka2 {
  position: absolute;
  left: 0;
  max-width: 120px;
  opacity: 0.3;
  height: 100%;
  filter: brightness(0) invert(1);
}
.img-sciezka2 {
  left: auto;
  right: 0;
}
@media (max-width: 1780px) {
  .img-sciezka1,
  .img-sciezka2 {
    display: none;
  }
}
@media (max-width: 1280px) {
  .img-sciezka1,
  .img-sciezka2 {
    display: none;
  }
}
/* =========================================
	SOCIALLINKS	
   ========================================= */
/* =========================================
   SEKCJA PROCESU (JAK POWSTAJĄ FILMY)
   ========================================= */
.process-section {
  width: 100%;
  background-color: var(--color-sand);
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.process-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto;
  position: relative;
  align-items: stretch;
}

.process-content {
  flex: 1;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 50px;
}

.process-card {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(var(--color-orange-rgb), 0.15);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
  transition: all 0.3s ease-in-out;
}

.process-card:hover {
  background-color: var(--color-white);
  box-shadow: 0 15px 30px rgba(var(--color-blue-dark-rgb), 0.05);
  transform: translateY(-5px);
  border-color: var(--color-orange);
}

.card-number {
  font-family: 'Francois One', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
}

.card-text h3 {
  font-family: 'Francois One', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin: 0 0 10px 0;
}

.card-text p {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-blue-dark);
  margin: 0;
  opacity: 0.8;
}

.process-visual {
  flex: 1;
  min-width: 300px;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
}

.sticky-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
  z-index: 2;
}

.main-circle-mask {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 8px solid var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.main-circle-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dotted-circle {
  position: absolute;
  width: 550px;
  height: 550px;
  border: 2px dashed rgba(var(--color-orange-rgb), 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin-top: -275px;
  margin-left: -275px;
  z-index: 0;
  animation: rotateCircle 60s linear infinite;
  pointer-events: none;
}

@keyframes rotateCircle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.geo-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 1;
}

.shape-green-top {
  background-color: rgb(var(--color-mint));
  top: -20px;
  left: 0;
  border-radius: 100px 0 0 0;
}

.shape-orange-bottom {
  background-color: var(--color-orange);
  bottom: -20px;
  right: 0;
  border-radius: 0 0 100px 0;
}
@media (max-width: 1280px) {
  .main-circle-mask {
    width: 400px;
    height: 400px;
  }
  .dotted-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    margin-top: -250px;
    margin-left: -250px;
  }
}
@media (max-width: 1024px) {
  .process-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
  }

  .process-visual {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .sticky-wrapper {
    position: relative;
    top: 0;
    height: auto;
  }

  .main-circle-mask {
    width: 280px;
    height: 280px;
  }

  .dotted-circle {
    width: 340px;
    height: 340px;
    margin-top: -170px;
    margin-left: -170px;
  }

  .geo-shape {
    width: 100px;
    height: 90px;
    left: 50%;
    transform: translateX(56%);
  }

  .process-section {
    padding: 60px 0;
  }
}
