/* =========================================
   POSTER-LIKE BRUTALISM CSS
   ========================================= */

:root {
  --bg-deep: #050505;
  --text-white: #EDEDED;
  --text-off: #999999;

  /* Neon Palette for Poster 2 */
  --neon-cyan: #0ff;
  --neon-magenta: #f0f;
  --neon-yellow: #ff0;

  /* Red Palette for Poster 3 */
  --retro-red: #D24A32;
  --retro-gold: #CDB98B;

  --font-tall: 'Oswald', sans-serif;
  --font-thick: 'Anton', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-kamil: 'Bebas Neue', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Brak przewijania - to jest pojedynczy interaktywny ekran */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* =========================================
   BOCZNA NAWIGACJA (VERTICAL)
   ========================================= */
.side-nav {
  position: absolute;
  top: 50%;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--text-white);
  text-decoration: none;
  text-transform: uppercase;
  z-index: 50;
  transition: all 0.3s ease;
  mix-blend-mode: difference;
  /* Zapewnia widoczność bez względu na tło pod spodem */
}

/* Przesunięcia i modyfikacje transform dla lewej i prawej strony */
.nav-left {
  left: 2vw;
  /* Blisko lewej krawędzi */
  transform-origin: left center;
  transform: translateY(-50%) rotate(-90deg);
}

.nav-right {
  right: 2vw;
  /* Blisko prawej krawędzi */
  transform-origin: right center;
  transform: translateY(-50%) rotate(90deg);
  /* Obrót w drugą stronę dla symetrii */
}

/* Hover effect w stylu brutalistycznym */
.side-nav:hover {
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* =========================================
   INDEX PAGE: CINEMATIC POSTER
   ========================================= */
.index-page {
  background-color: #000000;
  overflow: hidden;
}

.posters-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
}

.poster {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.parallax-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* KLUCZ: Wszystko dociśnięte do dołu */
  will-change: transform;
}

/* WARSTWY POSTACI I TŁA */
.layer-bg {
  z-index: 10;
  background-color: #000000;
  display: block;
  /* Tło nie musi być flexem */
}

.layer-name-wrapper {
  z-index: 20;
}

.layer-name {
  width: 100%;
  height: 110%;
  /* Optymalna wysokość */
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(3%);
  /* Bezpieczne dociśnięcie - nie ucina litery L */
}

.layer-slogans-wrapper {
  z-index: 30;
  align-items: flex-start;
  /* Slogany na samą górę */
  padding-top: 5vh;
  /* Podciągnięte wyżej dla oddechu */
}

.slogans-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 12vw;
  font-family: var(--font-tall);
  font-size: clamp(0.6rem, 0.75vw, 1rem);
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.4);
  /* Start dimmed */
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.slogans-container span {
  filter: blur(3px);
  /* Start blurry */
  transition: opacity 0.5s ease;
  will-change: filter, opacity;
}

.layer-character-wrapper {
  z-index: 40;
}

.layer-character {
  height: 130%;
  /* Jeszcze większa postać */
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(12%);
  /* "Topimy" puste piksele na dole */
}

/* HOME NAVIGATION (BRUTALIST SIDE NAV) */
.home-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.nav-link {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link.nav-left {
  left: 30px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}

.nav-link.nav-right {
  right: 30px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
}

.nav-link .nav-label {
  font-family: var(--font-tall);
  font-size: clamp(0.7rem, 0.9vw, 1rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.nav-link .nav-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link:hover .nav-label {
  color: #ffffff;
  letter-spacing: 8px;
}

.nav-link:hover .nav-line {
  width: 80px;
  background: #ffffff;
}

/* Zablokowane przewijanie w dół - koniec starych plakatów */
/* Responsive adjustments */
@media (max-width: 768px) {
  .tall-text {
    font-size: 30vh;
  }

  .slogans-top {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .fading-text {
    font-size: 15vh;
  }

  .retro-highlight {
    font-size: 6rem;
  }

  .serif-huge {
    font-size: 3rem;
  }
}

.index-page,
.experience-page,
.about-page {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.experience-container,
.about-container {
  position: relative;
  z-index: 9999;
  /* ABSOLUTNY SZCZYT */
  padding: 8vh 7vw;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 2000px;
  overflow: hidden;
  pointer-events: none;
}

.experience-container * {
  pointer-events: auto;
  /* Ale interakcje wewnątrz (linki, akordeon) działają */
}

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  will-change: transform;
  padding-left: 5vw;
}

.accordion-item {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Chirurgiczna linia góra */
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
  font-family: var(--font-kamil);
  font-size: 8.5vh;
  line-height: 1;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: -1px;
  cursor: pointer;
  margin: 0;
  padding: 1vh 0;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: scaleY(1.3);
  transform-origin: left center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.7;
  /* Jasno na wejściu, widać wszystko */
}

.accordion-header:hover {
  opacity: 1;
  padding-left: 20px;
}

.accordion-header::before {
  content: attr(data-num);
  font-family: var(--font-tall);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  transform: scaleY(0.77);
  margin-right: 15px;
}

.accordion-header:hover {
  color: #fff;
  padding-left: 20px;
}

/* Stan Aktywny - LIQUID GLASS EFFECT */
.accordion-item.active {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin: 0;
  padding: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(1px);
  backface-visibility: hidden;
  will-change: backdrop-filter;
}

/* GLOBALNY REFLEKS (SPEKULAR) */
.accordion-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 400%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 30%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 70%,
      transparent 100%);
  transform: translateX(calc(var(--mouse-x-pct, 0.5) * 80% - 40%));
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accordion-item.active .accordion-header {
  opacity: 1 !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Wygaszanie i Soft Focus nieaktywnych */
.accordion-wrapper.has-active .accordion-item:not(.active) {
  opacity: 0.25;
  filter: blur(4px);
  /* Prawdziwa głębia ostrości */
  transform: scale(0.98);
}



/* Grupa opisowa wyłaniająca się na hover */
.hover-group {
  display: flex;
  flex-direction: column;
  margin-left: 3vw;
  opacity: 0;
  transform: scaleY(0.77) translateX(-20px);
  /* Odwrócenie rozciągnięcia nagłówka dla proporcji tekstu */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: normal;
  /* Pozwalamy na zawijanie tekstu */
  max-width: 40vw;
  /* Ograniczamy szerokość, żeby opis nie wjeżdżał na prawą krawędź */
}

.hover-desc {
  font-family: var(--font-sans);
  font-size: 2vh;
  /* Również zależne od wysokości ekranu */
  line-height: 1.4;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
  font-weight: 300;
}

.hover-tech {
  font-family: var(--font-tall);
  font-size: 1.5vh;
  letter-spacing: 2px;
  color: #ffffff;
  margin-top: 0.5vh;
}

.accordion-header:hover {
  transform: scaleY(1.3) translateX(2vw);
  /* Skalowanie Y plus przesunięcie */
  color: #ffffff;
  /* Rozświetlenie na czystą biel na hover */
}

.accordion-header:hover .hover-group {
  opacity: 1;
  transform: scaleY(0.77) translateX(0);
}

/* Styl, gdy akordeon jest otwarty */
.accordion-item.active .accordion-header {
  color: #ffffff;
  /* Zostaje biały/aktywny, gdy kliknięty */
}

/* Zawartość akordeonu - domyślnie zwinięta */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  /* CSS Grid trick for smooth height transition */
  transition: grid-template-rows 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

/* Wewnętrzny kontener musi mieć overflow hidden dla grid tricka */
.accordion-inner {
  overflow: hidden;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, padding-bottom 0.4s ease;
}

.accordion-item.active .accordion-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 2vh;
}

.about-page .accordion-item.active .accordion-inner {
  padding-bottom: 1.5vh;
}

.about-page .accordion-header {
  font-size: 7vh;
  padding: 0.6vh 0;
}

/* Monochromatyczne Listy Skilli — Oswald uppercase, bez myślników */
.skill-list,
.software-list {
  list-style: none;
  padding-left: 0;
}

.skill-list li,
.software-list li {
  margin-bottom: 1.2vh;
  position: relative;
  font-family: var(--font-tall);
  /* Oswald */
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Styl listy tekstowej */
.skill-list {
  font-size: 1.8vh;
  line-height: 1.6;
}

/* Usunięcie myślników */
.skill-list li::before {
  display: none;
}

.skill-detail {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85em;
  display: inline-block;
  margin-left: 8px;
}

/* Białe akcenty dla kluczowych słów */
.skill-list strong {
  font-family: var(--font-tall);
  font-weight: 400;
  letter-spacing: 2px;
  font-size: inherit;
  color: #ffffff;
}

/* Masywne czcionki dla oprogramowania — zostawiamy duże, też dim + white */
.software-list li {
  font-family: var(--font-tall);
  font-size: 5vh;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ffffff;
}


/* Opis sekcji — Oswald uppercase, styl identyczny z TECH STACK label */
.section-desc {
  font-family: var(--font-tall);
  font-size: clamp(0.8rem, 1.1vw, 1.3rem);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  /* Prawie białe dla czytelności */
  margin-bottom: 2.5vh;
  white-space: normal;
  /* Pozwalamy na zawijanie tekstu */
  letter-spacing: 2px;
  line-height: 1.6;
  /* Większy odstęp między liniami dla czytelności */
}

.section-desc strong {
  color: #ffffff;
  font-weight: 400;
}

/* UI / HUD OVERLAY */
.ui-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 900;
  pointer-events: none;
  font-family: var(--font-tall);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 3px;
}

.corner-bracket {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-left {
  top: 40px;
  left: 40px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 40px;
  right: 40px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 40px;
  left: 40px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 40px;
  right: 40px;
  border-left: none;
  border-top: none;
}

.coords-top,
.coords-bottom {
  display: none;
}

/* ATMOSPHERIC LAYERS - SAFE & SUBTLE */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  /* NAD TEKSTEM */
  pointer-events: none;
  opacity: 0.035;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/7d/Film_grain.png");
  background-repeat: repeat;
}

/* DUST VIDEO LAYERS */
.dust-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateZ(0);
  /* Wymuszenie GPU */
  backface-visibility: hidden;
  will-change: transform, filter;
}

.dust-video.bg {
  z-index: 1;
  opacity: 0.5;
}

.dust-video.fg {
  z-index: 5000;
  /* MIĘDZY TŁEM A TEKSTEM */
  opacity: 0.15;
  /* Ultra subtelna elegancja */
  filter: blur(4px) brightness(1.3);
}

@media (max-width: 768px) {
  .accordion-header {
    font-size: 10vw;
  }

  .section-desc {
    white-space: normal;
    font-size: 3.5vw;
  }
}

/* =========================================
   ABOUT PAGE: 1:1 EXPERIENCE INTEGRATION
   ========================================= */
.about-page .experience-container {
  height: 100vh;
  min-height: unset;
  padding: 5vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.portrait-section {
  display: grid;
  grid-template-columns: clamp(150px, 15vw, 200px) 1fr auto;
  gap: 30px;
  align-items: flex-start;
  padding: 1vh 0;
  width: 100%;
}

.about-portrait-container {
  width: 100%;
  height: clamp(160px, 28vh, 320px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8) contrast(1.2);
  transition: all 0.8s ease;
}

.about-text-block {
  max-width: none;
  /* Pozwalamy wypełnić środek */
}

.about-text-block .section-desc {
  font-size: clamp(0.7rem, 0.95vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 1.2vh;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 10px;
}

.contact-label {
  font-family: var(--font-tall);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: -20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  font-family: var(--font-tall);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-list a:hover {
  letter-spacing: 4px;
  border-bottom-color: #fff;
}

@media (max-width: 1200px) {
  .portrait-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-portrait-container {
    height: 400px;
    width: 300px;
  }

  .contact-column {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
  }
}