/* Reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  background-color: #000;
  color: #00ffaa;
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1' viewBox='0 0 1 1'%3E%3Crect width='1' height='1' fill='%23001111'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 1px 1px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08) 50%, transparent 50%),
    rgba(0, 0, 0, 0.03);
  background-size: 100% 2px;
  animation: scanlines 0.3s steps(2) infinite, flicker 4s infinite;
  mix-blend-mode: soft-light;
}

@keyframes scanlines {
  to { background-position: 0 2px; }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.94; }
}

/* Navigation */
nav {
  background-color: #000;
  padding: 1rem;
  border-bottom: 1px solid #00ffaa;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav a {
  color: #00ffaa;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #ff6699;
}

/* Hero Section */
.hero {
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.glitch {
  animation: glitch-stable 2.5s infinite;
  color: #00ffaa;
}

@keyframes glitch-stable {
  0%   { transform: none; opacity: 1; }
  10%  { transform: translateX(-1px); opacity: 0.98; }
  20%  { transform: translateY(1px); opacity: 0.96; }
  30%  { transform: translateX(1px); }
  40%  { transform: translateY(-1px); }
  50%  { transform: none; }
  100% { opacity: 1; }
}

.subtitle {
  color: #66ffe2;
  margin: 1rem auto 2rem;
  max-width: 700px;
}

.terminal-line {
  font-family: monospace;
  color: #00ffcc;
  font-size: 1.1rem;
}

.blinker {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.highlight {
  color: #ffffff;
}

/* Section Titles */
.section-title {
  font-size: 1.3rem;
  color: #00ffaa;
  text-align: center;
  margin: 3rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.gallery-item {
  max-width: 340px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  border: 2px solid #00ffaa;
  box-shadow: 0 0 20px #00ffaa33;
}

.caption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #88ffef;
}

/* Log Fragments */
.log-section {
  padding: 1rem 2rem;
}

.log-entry {
  font-family: monospace;
  color: #00ffcc;
  background-color: #111;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  border-left: 2px solid #00ffaa;
}

/* Glitch Vision */
.glitch-vision {
  text-align: center;
  padding: 2rem;
}

.glitch-full {
  max-width: 90%;
  border: 2px solid #00ffaa;
  box-shadow: 0 0 40px #00ffaa33;
  margin-bottom: 1rem;
}

/* Warning */
.warning-box {
  background-color: #220000;
  padding: 2rem;
  text-align: center;
  color: #ff3333;
  font-family: monospace;
  margin-top: 4rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: #00ffaa99;
  border-top: 1px solid #00ffaa22;
}

/* JOURNAL SPECIAL STYLING */
#journal {
  background-color: #000000;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  animation: journalPulse 8s ease-in-out infinite;
}

@keyframes journalPulse {
  0%, 100% { background-color: #000000; }
  50% { background-color: #020202; }
}

#journal .log-entry {
  position: relative;
  background-color: #111111;
  padding: 1rem;
  margin: 1.5rem auto;
  max-width: 800px;
  border-left: 2px solid #00ffaa;
  font-family: monospace;
  color: #00ffcc;
  box-shadow: 0 0 10px #00ffaa22;
  animation: glitchShadow 3.5s infinite ease-in-out;
}

@keyframes glitchShadow {
  0%, 100% { box-shadow: 0 0 10px #00ffaa22; }
  20% { box-shadow: -2px 0 10px #00ffaa44; }
  40% { box-shadow: 2px 0 10px #00ffaa33; }
  60% { box-shadow: 0 -2px 8px #00ffaa55; }
  80% { box-shadow: 0 2px 8px #00ffaa22; }
}

#loadMore {
  animation: glitchShadow 4s infinite ease-in-out;
}
.log-entry {
  font-family: monospace;
  color: #00ffcc;
  background-color: #111;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  border-left: 2px solid #00ffaa;
  position: relative;
  overflow: hidden;
}

/* Animowana linia z lewej strony */
.log-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #00ffaa;
  animation: pulseLine 2.5s infinite;
  opacity: 0.5;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Stylizacja daty */
.log-label {
  color: #00ffaa;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Stylizacja ikony */
.log-icon {
  color: #ff4444;
  margin-right: 0.5rem;
  font-size: 1.05rem;
}
/* Terminal Auto Logs */
#log-container .log-entry {
  font-family: monospace;
  color: #00ffcc;
  background-color: #111;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  border-left: 2px solid #00ffaa;
  position: relative;
  overflow: hidden;
}
#log-container .log-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #00ffaa;
  animation: pulseLine 2.5s infinite;
  opacity: 0.5;
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.typewriter {
  display: inline-block;
  border-right: 1px solid #00ffaa;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2.4s steps(40, end), blink-caret 0.7s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: #00ffaa; }
}


