:root {
  --size: 1.3;
  --primary-color: #00ff88;
  --secondary-color: #0088ff;
  --accent-color: #ff6b35;
  --bg-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  --glow-color: rgba(0, 255, 136, 0.5);
  /* --terminal-bg: rgba(0, 0, 28, 0.95); */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  font-family: "Fira Code", "Consolas", "Monaco", monospace;
  overflow-x: hidden;
  position: relative;
}

/* Animated background particles */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      var(--primary-color),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, var(--secondary-color), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent-color), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--primary-color), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--secondary-color), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
  opacity: 0.1;
  z-index: -1;
}

@keyframes sparkle {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-100px);
  }
}

/* Terminal container styling */
.terminal {
  /* background: var(--terminal-bg); */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
  margin: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 40px);
  height: calc(100vh - 40px);
}

.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #333;
  border-radius: 12px 12px 0 0;
  z-index: 1;
}

.terminal::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ff5f56;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27ca3f;
}

.terminal-output {
  margin-top: 50px;
}

.job {
  --size: 2;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse-glow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 8px var(--glow-color);
  font-weight: bold;
  letter-spacing: 2px;
}

@keyframes pulse-glow {
  from {
    filter: brightness(1);
    transform: scale(1);
  }
  to {
    filter: brightness(1.2);
    transform: scale(1.02);
  }
}

/* Command and directory styling */
.command,
.directory {
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.command:hover,
.directory:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

.command::after,
.directory::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.command:hover::after,
.directory:hover::after {
  width: 100%;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Link styling */
a {
  text-decoration: none;
  color: var(--secondary-color);
  position: relative;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px currentColor;
}

/* Prompt styling */
.terminal .jquery-terminal-prompt {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* Cursor animation */
.terminal .jquery-terminal-cursor {
  background: var(--primary-color);
  animation: cursor-blink 1s step-end infinite;
  box-shadow: 0 0 10px var(--primary-color);
}

@keyframes cursor-blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scrollbar styling */
.terminal::-webkit-scrollbar {
  width: 8px;
}

.terminal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.terminal::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-color);
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Image styling */
img {
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color);
}

/* Typing animation enhancement */
.terminal .terminal-output > div {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Responsive design */
@media (max-width: 768px) {
  :root {
    --size: 1.3;
  }

  .job {
    --size: 1.5;
  }

  .terminal {
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 480px) {
  :root {
    --size: 0.8;
  }

  .job {
    --size: 0.8;
  }

  .terminal {
    margin: 5px;
    padding: 10px;
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
  }

  .terminal::before {
    height: 30px;
  }

  .terminal-output {
    margin-top: 40px;
  }
}

/* Glowing text effect - reduced intensity */
.glow {
  text-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    text-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
  }
  to {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
}

/* Matrix-like effect for background */
@keyframes matrix {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%,
  20% {
    color: transparent;
    text-shadow: 0 0 0 var(--primary-color);
  }
  40% {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
  }
  100% {
    color: transparent;
    text-shadow: 0 0 0 var(--primary-color);
  }
}
