html {
  overflow-x: hidden;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e2e;
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  padding: 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: #89b4fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ─── ASCII Art ─── */

.ascii-art {
  color: #a6e3a1;
  font-size: 0.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-align: center;
  white-space: pre;
  overflow: hidden;
  max-width: 100%;
}

/* ─── Terminal Prompt ─── */

.prompt {
  color: #a6e3a1;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ─── Sections ─── */

section {
  margin-bottom: 2.5rem;
}

/* ─── whoami ─── */

#whoami {
  margin: 1.25rem 0 2.5rem;
}

#me-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

#me-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a6e3a1;
  flex-shrink: 0;
}

#me-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

#me-details h2 {
  font-size: 0.85rem;
  font-weight: 400;
  color: #a6e3a1;
  margin-top: 0.1rem;
}

#bio {
  color: #a0a0b8;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  max-width: 450px;
}

/* ─── File Content ─── */

.file-content {
  padding-left: 0.5rem;
  border-left: 2px solid #2a2a3e;
  margin-bottom: 0.5rem;
}

.file-content > ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.file-content li {
  margin-bottom: 0.5rem;
  color: #c0c0d0;
  font-size: 0.82rem;
}

.highlight {
  color: #f5c2e7;
  font-weight: 500;
}

.accent {
  color: #89b4fa;
}

.meta {
  font-size: 0.78rem;
  color: #585b70;
}

.entry {
  margin-bottom: 1.25rem;
}

.entry ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.25rem;
}

.entry ul li {
  font-size: 0.8rem;
  color: #a0a0b8;
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  position: relative;
}

.entry ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #585b70;
}

/* ─── Skills ─── */

#skills .file-content p {
  margin-bottom: 0.2rem;
}

/* ─── CV Download ─── */

.cv-download {
  margin-top: 1rem;
}

.cv-download a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #c0c0d0;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.cv-download a:hover {
  border-color: #a6e3a1;
  color: #a6e3a1;
  background: rgba(166, 227, 161, 0.06);
  text-decoration: none;
}

.cv-prompt {
  color: #a6e3a1;
  font-weight: 500;
}

/* ─── Contact ─── */

#contact .file-content p {
  margin-bottom: 0.3rem;
}

/* ─── Exit + Cursor ─── */

#exit {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background-color: #a6e3a1;
  animation: blink 1s step-end infinite;
}

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

/* ─── Footer ─── */

footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: #585b70;
  text-align: center;
}

/* ─── Tablet (500px+) ─── */

@media (min-width: 500px) {
  body {
    padding: 2.5rem;
    font-size: 15px;
    max-width: 720px;
    margin: 0 auto;
  }

  .ascii-art {
    font-size: 0.8rem;
  }

  #me-image {
    width: 130px;
    height: 130px;
  }

  #me-name {
    font-size: 1.3rem;
  }

  #bio {
    font-size: 0.9rem;
  }
}

/* ─── Desktop (720px+) ─── */

@media (min-width: 720px) {
  body {
    padding: 3rem 3rem;
    max-width: 900px;
    font-size: 16px;
  }

  .ascii-art {
    font-size: 1rem;
  }

  #me-image {
    width: 150px;
    height: 150px;
  }

  #me-name {
    font-size: 1.5rem;
  }

  #me-details h2 {
    font-size: 1rem;
  }

  #bio {
    font-size: 0.95rem;
    max-width: 550px;
  }

  .entry ul li,
  .file-content li {
    font-size: 0.9rem;
  }

  .prompt {
    font-size: 1rem;
  }
}

/* ─── Wide Desktop (1100px+) ─── */

@media (min-width: 1100px) {
  body {
    max-width: 1100px;
    font-size: 17px;
    padding: 4rem;
  }

  .ascii-art {
    font-size: 1.15rem;
  }

  #me-image {
    width: 180px;
    height: 180px;
  }

  #me-name {
    font-size: 1.75rem;
  }

  #bio {
    font-size: 1rem;
    max-width: 650px;
  }
}

/* ─── Small phones ─── */

@media (max-width: 420px) {
  body {
    padding: 1rem;
    font-size: 13px;
  }

  .ascii-art {
    font-size: 0.4rem;
  }

  #me-container {
    flex-direction: column;
    text-align: center;
  }

  #me-image {
    width: 85px;
    height: 85px;
  }

  #bio {
    max-width: 100%;
  }

  .prompt {
    font-size: 0.75rem;
  }

  section {
    margin-bottom: 2rem;
  }

  .entry ul li,
  .file-content li {
    font-size: 0.78rem;
  }
}
