:root {
  --bg: #282828;
  --fg: #fbf1c7;
  --muted: #928374;
  --accent: #98971a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  margin-top: 3rem;
  font-size: 1.2rem;
}

p {
  text-align: justify;
}

.ascii-intro {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto; /* allows scroll on small screens */
}

.ascii-intro pre {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.7rem;
  line-height: 1.1;
  color: var(--accent);
  white-space: pre;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.profile-info h1 {
  margin: 0;
}

.profile-meta {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-meta li {
  margin-bottom: 0.25rem;
}

.projects-scroll {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  position: relative;
}

.projects-scroll::-webkit-scrollbar {
  width: 6px;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.project {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.project a {
  color: var(--accent);
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

.project .description {
  font-size: 0.9rem;
}

.project .subtitle {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.projects-scroll::before,
.projects-scroll::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  height: px;
  pointer-events: none;
  z-index: 1;
}

/* Top fade */
.projects-scroll::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(40, 40, 40, 0.9), transparent);
}

/* Bottom fade */
.projects-scroll::after {
  bottom: 0;
  background: linear-gradient(to bottom, rgba(40, 40, 40, 0.9), transparent);
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  margin-bottom: 0.5rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
}

.links .sosmed {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 3s ease-in-out;
}

.links .sosmed button {
  background: transparent;
  color: var(--fg);
  outline: none;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 25px;
  cursor: pointer;
  margin-right: 10px;
  margin-left: 10px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .about {
    font-size: 80%;
  }
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .profile-info {
    font-size: 70%;
  }
  .subtitle {
    font-size: 100%;
    text-align: center;
  }
  .profile-meta {
    font-size: 100%;
    text-align: center;
  }
  .project {
    font-size: 85%;
  }
  .project .description {
    font-size: 90%;
  }
}
