@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;700&display=swap');

body {
  background-color: #2c2c2c;
  font-family: 'Fira Mono', monospace;
  color: #d4c6a3;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 50px;
  border: 2px solid #d4c6a3;
  position: relative;
  padding: 20px;
}

/* Add decorative corners */
body::before,
body::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #d4c6a3;
}

body::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

body::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

a,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #d4c6a3;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 2em;
  border-bottom: 1px solid #d4c6a3;
  padding-bottom: 10px;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 1px;
  background-color: #d4c6a3;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #d4c6a3;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: #d4c6a3;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  border: 1px solid #d4c6a3;
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Remove the anime-related styles since we're going for Nier theme */
.anime {
  display: none;
}

/* Custom cursor */
* {
  cursor: default;
}

a {
  cursor: pointer;
}

/* Add subtle animation */
@keyframes pulse {
  0% { border-color: #d4c6a3; }
  50% { border-color: #ffffff; }
  100% { border-color: #d4c6a3; }
}

body {
  animation: pulse 4s infinite;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    margin: 20px;
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5em;
  }
}

body {
  font-family: 'Fira Mono', monospace;
}

/* Add these new effects */
.nier-container {
  position: relative;
}

.nier-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: -1;
}

/* Glitch effect for headings */
@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

h1, h2, h3 {
  position: relative;
}

h1:hover, h2:hover, h3:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: #ffffff;
}

/* Add machine code effect */
.machine-code {
  font-family: 'Fira Mono', monospace;
  font-size: 0.8em;
  color: rgba(212, 198, 163, 0.6);
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

/* Hide machine code on mobile */
@media (max-width: 600px) {
  .machine-code {
    display: none;
  }
}

/* Loading bar animation */
@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}

.loading-bar {
  height: 1px;
  background: #d4c6a3;
  width: 0;
  margin: 10px 0;
  animation: loading 2s ease-in-out forwards;
}

/* Hover effect for list items */
li:hover::before {
  content: '>';
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Floating particles effect */
@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-15px) translateX(5px); }
  100% { transform: translateY(0) translateX(0); }
}

.nier-container::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 198, 163, 0.05) 0%, transparent 2%),
    radial-gradient(circle at 50% 70%, rgba(212, 198, 163, 0.05) 0%, transparent 2%),
    radial-gradient(circle at 80% 20%, rgba(212, 198, 163, 0.05) 0%, transparent 2%),
    radial-gradient(circle at 10% 80%, rgba(212, 198, 163, 0.05) 0%, transparent 2%),
    radial-gradient(circle at 90% 90%, rgba(212, 198, 163, 0.05) 0%, transparent 2%);
  animation: float 8s ease-in-out infinite;
  z-index: -1;
}

/* Vignette effect */
.nier-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: -2;
}

/* Geometric background patterns */
.geometric-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(212, 198, 163, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 198, 163, 0.03) 25%, transparent 25%);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -3;
}

/* Subtle noise texture */
@keyframes noise {
  0% { transform: translate(0,0) }
  10% { transform: translate(-5%,-5%) }
  20% { transform: translate(-10%,5%) }
  30% { transform: translate(5%,-10%) }
  40% { transform: translate(-5%,15%) }
  50% { transform: translate(-10%,5%) }
  60% { transform: translate(15%,0) }
  70% { transform: translate(0,10%) }
  80% { transform: translate(-15%,0) }
  90% { transform: translate(10%,5%) }
  100% { transform: translate(5%,0) }
}

.noise {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('/images/noise.svg');
  opacity: 0.02;
  animation: noise 8s steps(10) infinite;
  pointer-events: none;
  z-index: -1;
}

/* Add geometric corners */
.corner {
  position: fixed;
  width: 100px;
  height: 100px;
  pointer-events: none;
  opacity: 0.2;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 2px solid #d4c6a3;
  border-left: 2px solid #d4c6a3;
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 2px solid #d4c6a3;
  border-right: 2px solid #d4c6a3;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid #d4c6a3;
  border-left: 2px solid #d4c6a3;
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #d4c6a3;
  border-right: 2px solid #d4c6a3;
}
