body {
  margin: 0;
  background: #181d23;
  color: #e7e7e7;
  font-family: 'Fira Mono', monospace;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  color: #4fcf58;
  margin-bottom: 0.5rem;
}

header a {
  color: #4fcf58;
  text-decoration: none;
  font-weight: bold;
}

header a:hover {
  color: #ffe97a;
}

.project {
  background: #101418;
  border: 2px solid #4fcf58;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 700px;
  box-shadow: 0 0 12px #4fcf5880;
  position: relative;
  overflow: hidden;
}

.project-title {
  color: #ffe97a;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-desc {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ccc;
  text-align: justify;
}

.project-link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 2px solid #4fcf58;
  border-radius: 8px;
  color: #4fcf58;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
  background: none;
}

.project-link:hover {
  background: none;
  color: #ffe97a;
  border-color: #ffe97a;
}

.footer-note {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: #888;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  padding: 1rem 0;
  color: #888;
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .project {
    padding: 1rem;
    margin: 1rem auto;
  }

  .project-title {
    font-size: 1.1rem;
    text-align: center;
  }

  .project-desc {
    font-size: 0.95rem;
    text-align: justify;
  }

  .project-link {
    display: inline-block;
    text-align: center;
    margin: 0.8rem auto 0 auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    max-width: 90%;
  }

  .terminal-bar {
    display: none;
  }
}

.blurred {
  position: relative;
  filter: blur(2.5px) brightness(1.2) contrast(1.3);
  animation: glitchSoft 1.4s infinite;
  pointer-events: none;
}

.blurred::after {
  content: "PWNED";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  color: red;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px #000;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.3rem 1rem;
  border: 2px solid red;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}

@keyframes glitchSoft {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    filter: blur(2px) brightness(1.2) contrast(1.2);
  }
  25% {
    transform: scale(1.01) translate(-1px, 1px) rotate(0.3deg);
    filter: blur(3px) brightness(1.3);
  }
  50% {
    transform: scale(0.99) translate(1px, -1px) rotate(-0.3deg);
    filter: blur(2.8px) brightness(1.1);
  }
  75% {
    transform: scale(1.02) translate(-2px, 0px) rotate(0.2deg);
    filter: blur(3.2px) brightness(1.4);
  }
  100% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    filter: blur(2.5px) brightness(1.2) contrast(1.3);
  }
}

.terminal-bar {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: 'Fira Mono', monospace;
  color: #4fcf58;
  background: transparent;
  font-size: 1rem;
  z-index: 1000;
}

.terminal-bar .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background-color: #4fcf58;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
  vertical-align: bottom;
}

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