/* Index page specific styles extracted from inline <style> */

body {
  background: #000;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3; /* Override default to be stronger on index */
}

.matrix-char {
  position: absolute;
  color: #00ff41;
  font-family: monospace;
  font-size: 14px;
  animation: matrix-fall 3s linear infinite;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.terminal-container {
  width: 90%;
  max-width: 800px;
  z-index: 10;
}

.terminal-window {
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #00ff41;
  border-radius: 15px;
  padding: 0;
  margin: 0;
  box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.terminal-header {
  background: linear-gradient(90deg, #ff5f56, #ffbd2e, #27ca3f);
  height: 35px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
}

.terminal-button.close { background: #ff5f56; }
.terminal-button.minimize { background: #ffbd2e; }
.terminal-button.maximize { background: #27ca3f; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 12px;
  font-weight: bold;
}

.terminal-content {
  padding: 2rem;
  color: #00ff41;
  font-size: 1.1rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }
.terminal-line:nth-child(6) { animation-delay: 3s; }
.terminal-line:nth-child(7) { animation-delay: 3.5s; }
.terminal-line:nth-child(8) { animation-delay: 4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prompt {
  color: #00ff41;
  font-weight: bold;
}

.command {
  color: #0080ff;
  font-weight: bold;
}

.output {
  color: #ffffff;
  margin-left: 20px;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #00ff41;
  margin-left: 5px;
  animation: blink 1s infinite;
}

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

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  background: transparent;
  color: #00ff41;
  border: 2px solid #00ff41;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
  transition: left 0.5s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
  transform: translateY(-3px);
}

.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #00ff41;
  border: 2px solid #00ff41;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 100;
}

.language-toggle:hover {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

@media (max-width: 768px) {
  .terminal-container {
    width: 95%;
    top: 60%;
  }

  .terminal-content {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
  }

  .language-toggle {
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .terminal-content {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .action-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

