@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

/* General Terminal Styling */
body {
  background-color: #0B0C10;
  color: #E0E0E0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* Terminal Window */
.terminal-window {
  max-width: 800px;
  margin: 20vh auto 0 auto;
  border: 1px solid rgba(0, 255, 0, 0.3);
  padding: 20px;
  background-color: #000000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#terminal-output {
  white-space: pre-wrap;
  margin-bottom: 50px;
  line-height: 1.6;
}

#terminal-output .user {
  color: #E0E0E0;
}

#terminal-output .readymade {
  color: #33ff33;
}

#terminal-input {
  width: calc(100% - 20px);
  background: black;
  color: #E0E0E0;
  border: 1px solid rgba(0, 255, 0, 0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  border-radius: 4px;
  padding: 10px;
  margin: 0 auto;
  display: block;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0B0C10;
  color: #E0E0E0;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-text {
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

#loading-bar {
  width: 300px;
  height: 20px;
  border: 1px solid #E0E0E0;
  background-color: #1F2023;
  overflow: hidden;
}

#loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FF3CAC, #40C9FF, #F9F871, #FF6F61);
  animation: loadingAnim 3s forwards;
}

@keyframes loadingAnim {
  from { width: 0%; }
  to { width: 100%; }
}

/* Social Icons - Standalone Smaller Boxes */
.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 25px;
  padding: 10px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.social-icons a svg {
  transition: transform 0.3s ease;
}

.social-icons a:hover svg {
  transform: scale(1.2);
}

.social-icons a img.icon-img {
  width: 36px;
  height: 36px;
  background-color: #121212;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover img.icon-img {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Terminal Header */
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background-color: #0a0a0a;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  margin: -20px -20px 20px -20px;
}

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

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-buttons .close { background-color: #ff5f56; }
.terminal-buttons .minimize { background-color: #ffbd2e; }
.terminal-buttons .maximize { background-color: #27c93f; }

.terminal-title {
  color: #33ff33;
  font-size: 0.9em;
}

.terminal-status {
  font-size: 0.8em;
}

.connection-status {
  color: #33ff33;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; text-shadow: 0 0 5px #33ff33; }
  100% { opacity: 0.6; }
}

/* Enhanced Cursor */
#terminal-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

#terminal-input::after {
  content: '▋';
  animation: blink 1s infinite;
  color: #33ff33;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Matrix Effect */
.matrix-char {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  color: #00ff55;
}

/* Glitch Overlay */
.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03) 0px,
    rgba(0, 255, 0, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  animation: glitchScroll 4s linear infinite;
  z-index: 10;
}

@keyframes glitchScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Fade-In Animation */
.fade-in {
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
