/* === Terminal Theme === */

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #1e1e2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}

/* Selection */
::selection {
  background: rgba(0, 255, 65, 0.2);
  color: #00ff41;
}

/* Terminal glow effect */
.glow {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
}

.glow-subtle {
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Blinking cursor */
.cursor::after {
  content: "█";
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Typing animation */
.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #00ff41;
  animation: typing 2.5s steps(40, end), blink-caret 0.75s step-end infinite;
  width: 0;
}

.typing.active {
  width: 100%;
}

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

@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Terminal window decoration */
.terminal-window {
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
}

.terminal-header {
  background: #1a1a2e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-body {
  padding: 20px;
}

/* Prompt styling */
.prompt::before {
  content: "$ ";
  color: #00cc33;
  font-weight: 600;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  width: 2px;
  bottom: 0;
  background: #1e1e2e;
}

.timeline-item:last-child::after {
  display: none;
}

/* Skill badge */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #a0a0b0;
  transition: all 0.2s ease;
}

.skill-badge:hover {
  border-color: #00cc33;
  color: #00ff41;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.15);
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: #00cc33;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blog post card */
.blog-card {
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: #00cc33;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

/* Scanline effect (subtle) */
.scanlines::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 9999;
}
