* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: black;
  font-family: monospace;
  color: white;
  overflow: hidden;   /* ← blokuje i pion i poziom */
}


.column img {
  width: 100%;
  height: 33.33vh;
  object-fit: contain;
  filter: brightness(0.85) contrast(1.2);
  transform: scale(1);
  opacity: 1 !important;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.glitch-text {
  font-size: 3.5rem;
  color: white;
  position: relative;
  animation: glitch 1.5s infinite;
  display: inline-block;
  padding: 0.3em 0.6em;
  z-index: 2;
}
.glitch-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  z-index: -1;
}

@keyframes glitch {
  0% { text-shadow: 1px 1px red, -1px -1px blue; }
  20% { text-shadow: 2px 0px red, -2px -1px blue; }
  40% { text-shadow: -1px 1px red, 1px -2px blue; }
  60% { text-shadow: -2px 2px red, 2px 2px blue; }
  80% { text-shadow: 2px -2px red, -2px 1px blue; }
  100% { text-shadow: 1px 1px red, -1px -1px blue; }
}

.typewriter {
  margin-top: 10px;
  font-size: 1.2rem;
}

.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* WINDY BACKGROUND */
.gallery-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  z-index: 1;
}

columns {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.column {
  flex: 1 0 16.66%;
  display: flex;
  flex-direction: column;
}

.column:nth-child(1) { animation: scrollUp 50s linear infinite; transform: translateY(-25%); }
.column:nth-child(2) { animation: scrollDown 60s linear infinite; transform: translateY(-25%); }
.column:nth-child(3) { animation: scrollUp 70s linear infinite; transform: translateY(-25%); }
.column:nth-child(4) { animation: scrollDown 80s linear infinite; transform: translateY(-25%); }
.column:nth-child(5) { animation: scrollUp 55s linear infinite; transform: translateY(-25%); }
.column:nth-child(6) { animation: scrollDown 65s linear infinite; transform: translateY(-25%); }
.column:nth-child(7) { animation: scrollUp 75s linear infinite; transform: translateY(-25%); }
.column:nth-child(8) { animation: scrollDown 85s linear infinite; transform: translateY(-25%); }

@keyframes scrollUp {
  0% { transform: translateY(-25%); }
  100% { transform: translateY(-75%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-75%); }
  100% { transform: translateY(-25%); }
}

.column img {
  width: 100%;
  height: 33.33vh;
  object-fit: contain;
  filter: brightness(0.85) contrast(1.2);
  transform: scale(1);
  opacity: 1 !important;
}

/* WINDY DIRECTION */
.up { animation-name: scrollUp; }
.down { animation-name: scrollDown; }

/* CRT overlay */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 4px
  );
  z-index: 999;
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.95; }
  100% { opacity: 1; }
}
.glitch-jump {
  transform: scale(1.1) rotate(1deg);
  transition: transform 0.1s ease;
  filter: brightness(1.2);
}

.ig-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  font-family: monospace;
  font-size: 1rem;
  color: white;
  border: 1px solid white;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s ease;
}
.ig-button:hover {
  background-color: white;
  color: black;
}

/* === DODANE: podświetlenie liter cytatów === */
#typed-text {
  display: inline-block;
  min-height: 2em;
}
.char {
  display: inline-block;
  background: rgba(0,0,0,0.6);
  padding: 0 2px;
  border-radius: 2px;
  margin: 0 1px;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.char.active {
  opacity: 1;
}

/* logo glitch extra effects */
.glitch-shake {
  transform: translateX(-2px) translateY(1px);
  text-shadow: 2px 0 red, -2px 0 blue;
}

.glitch-fade {
  opacity: 0.2;
}

.glitch-flash {
  filter: brightness(1.8) contrast(1.5);
  transform: skewX(5deg);
}






#exitBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: transparent;
  border: 2px solid #00c896; /* szmaragdowy */
  color: #00c896;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
#exitBtn:hover {
  background: #00c896;
  color: black;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  color: white;
  position: relative;
  min-width: 250px;
  text-align: center;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}



/* === RESPONSYWNOŚĆ === */

/* Tablety (<=1024px) */
@media (max-width: 1024px) {
  .column {
    flex: 1 0 20%; /* ok. 5 kolumn */
  }
  .glitch-text {
    font-size: 3rem;
  }
}

/* Telefony w poziomie (<=768px) */
@media (max-width: 768px) {
  body {
    overflow-y: auto; /* pozwól przewijać */
  }
  .gallery-wrapper {
    flex-wrap: nowrap;
  }
  .column {
    flex: 1 0 25%; /* ok. 4 kolumny */
  }
  .glitch-text {
    font-size: 2.4rem;
  }
  .typewriter {
    font-size: 1rem;
  }
  #exitBtn {
    padding: 8px 16px;
    font-size: 16px;
  }
  .modal-content {
    width: 90%;
    max-width: 300px;
  }
}

/* Telefony małe (<=480px) */
@media (max-width: 480px) {
  .column {
    flex: 1 0 33.33%; /* 3 kolumny */
  }
  .glitch-text {
    font-size: 2rem;
  }
  .typewriter {
    font-size: 0.9rem;
  }
}