/* ===================== */
/* Base layout */
/* ===================== */
body {
  background-color: #0c0c0c;
  color: #00ff9f;
  font-family: "Courier New", monospace;
  font-size: 16px;
  margin: 0;
  height: fit-content;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.bio {
  max-width: 85vw;
  white-space: normal;
  word-wrap: break-word;
  padding-bottom: 20px;
  padding-top: 20px;
}

/* ===================== */
/* Header and navigation bar */
/* ===================== */
nav {
  width: fit-content;
  border-bottom: 1px dashed #00ff9f;
  margin-bottom: 40px;
  white-space: normal;
  word-wrap: break-word;
}

nav a {
  color: #00ff9f;
  text-decoration: none;
  padding-right: 5px;
  padding-left: 5px;
  padding-bottom: 3px;
  display: inline-block;
}

/* ===================== */
/* Terminal container */
/* ===================== */
#terminal {
  height: fit-content;
  width: 100%;
  text-align: left;
  padding: 40px;
  /* ensures padding doesn’t increase total width */
  box-sizing: border-box;

  white-space: normal;
  word-wrap: break-word;
}

/* ===================== */
/* Project list styling */
/* ===================== */
.project {
  border-bottom: 1px dashed #00ff9f;
  margin-bottom: 1rem;
  opacity: 0;
  /* Slight downward offset for a smooth entrance */
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project.visible {
  /* Fade in */
  opacity: 1;
  /* Slide into place */
  transform: translateY(0);
}

.project-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.project-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-details {
  /* Hidden by default (collapsed) */
  display: none;
  /* Add inner spacing for content */
  padding: 10px;
}

.project-details.open {
  /* Shown when toggled open */
  display: block;
  /* Smooth fade-in animation */
  animation: fadeIn 0.3s ease-in-out;
}

.project-line {
  color: #00ff9f;
}

.project-line-accent {
  color: #00ff9f;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========== */
/* Skill cards */
/* =========== */
.skill-card {
  font-family: "Courier New", Courier, monospace;
  color: #00ff9f;
  display: inline-block;
  margin: 6px;
  white-space: pre;
  line-height: 1.2;
}

.skills-container {
  margin-bottom: 20px;
  opacity: 0;
}

/* ===================== */
/* Blinking cursor effect */
/* ===================== */
.cursor {
  display: inline-block;
  animation: blink 1.0s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}

/* ===================== */
/* ASCII */
/* ===================== */
.ascii-text {
  font-family: 'Courier New', monospace;
  line-height: 1;
  transform-origin: top left;
  max-width: none;
  max-height: none;
  width: auto;
  display: block;
  opacity: 0;
}

/* ======= */
/* Divider */
/* ======= */
.divider {
  font-family: "Courier New", monospace;
  color: #00ff9f;
  /* preserves spacing */
  white-space: pre;
  opacity: 0;
}

/* For small screens (phones, narrow windows) */
@media (max-width: 800px) {
  .bio {
    max-width: 85vw;
    white-space: normal;
    word-wrap: break-word;
    padding-bottom: 20px;
    padding-top: 0px;
  }

  #terminal {
    height: fit-content;
    width: 100vw;
    text-align: left;
    padding: 15px;
  }
}