@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "JetBrains Mono", monospace;
  background: #000;
  color: #00ff00;
  overflow: hidden;
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 12px;
  height: 16px;
  background: #00ff00;
  z-index: 10000;
  pointer-events: none;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.boot-text {
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  color: #00ff00;
  font-family: "JetBrains Mono", monospace;
  margin: 0;
  padding: 0;
}

.desktop {
  width: 100vw;
  height: 100vh;
  background: transparent;
  /* background: linear-gradient(45deg, #001100, #002200); */
  position: relative;
  display: none;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, #333, #111);
  border-top: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 100;
}

.start-menu {
  background: #222;
  color: #00ff00;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #555;
}

.start-menu:hover {
  background: #333;
}

.system-time {
  color: #00ff00;
  font-size: 12px;
}

.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  gap: 15px;
}

.desktop-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 10px;
  text-align: center;
  padding: 5px;
}

.desktop-icon:hover {
  background: rgba(0, 255, 0, 0.5);
  transform: scale(1.05);
}

.window {
  position: absolute;
  background: #000;
  border: 2px solid #00ff00;
  min-width: 400px;
  min-height: 300px;
  display: none;
  z-index: 50;
}

.window-header {
  background: linear-gradient(to right, #003300, #001100);
  padding: 8px;
  border-bottom: 1px solid #00ff00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.window-title {
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-btn {
  width: 20px;
  height: 20px;
  background: #333;
  border: 1px solid #555;
  color: #00ff00;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.window-btn:hover {
  background: #555;
}

.window-content {
  padding: 15px;
  height: calc(100% - 40px);
  overflow-y: auto;
}

.terminal {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 100%;
}

.prompt {
  color: #00ff00;
}

.error {
  color: #ff0000;
}

.warning {
  color: #ffff00;
}

.glitch {
  animation: glitch 0.3s infinite;
}

@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);
  }
}

.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: rgba(0, 50, 0, 0.3);
  border: 1px solid #00ff00;
  padding: 15px;
  transition: all 0.3s;
}

.project-card:hover {
  background: rgba(0, 100, 0, 0.3);
  transform: translateY(-5px);
}

.ascii-art {
  font-size: 8px;
  line-height: 1;
  color: #00aa00;
}

.hidden {
  display: none !important;
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #00ff00;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff00;
  }
}

.button-container {
  position: relative;
  z-index: 10;
}

.matrix-button {
  top: 5px;
  position: relative;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: "Orbitron", monospace;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
  overflow: hidden;
}

.matrix-button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent,
    #00ff00,
    transparent,
    #00ff00,
    transparent
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.matrix-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 0, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.matrix-button:hover {
  color: #000;
  background: rgba(0, 255, 0, 0.1);
  border-color: #00ff00;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), inset 0 0 30px rgba(0, 255, 0, 0.2);
  text-shadow: 0 0 10px #00ff00;
}

.matrix-button:hover::before {
  opacity: 1;
  animation: border-glow 2s linear infinite;
}

.matrix-button:hover::after {
  left: 100%;
}

.matrix-button:active {
  transform: scale(0.98);
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.8), inset 0 0 40px rgba(0, 255, 0, 0.3);
}

@keyframes border-glow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.matrix-button.glitch {
  animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}
