body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  max-width: 480px; /* Wider card */
  width: 90%;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #000;
  text-align: center;
  border: 1px solid #fff;
  position: relative;
  z-index: 1;
}

.profile {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #fff;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.subtitle {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #ccc;
}

.bio {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #bbb;
  text-align: justify;      /* Justifies the text */
  display: flex;
  justify-content: center;  /* Centers the bio block itself */
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the group of links in the card */
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.link-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* Center the row as a whole */
  min-width: 180px; /* Optional: ensures all rows have the same width */
  gap: 0.8rem;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
  font-size: 1rem;
  border-radius: 0.3rem;
}

.link-row:hover {
  transform: scale(1.05);
  background-color: #111;
}

.link-label {
  font-family: monospace;
  flex: 0 0 48px; /* Fixed width for label column */
  text-align: right;
}

.link-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.downloads {
  font-size: 0.9rem;
}

.downloads a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-top: 0.3rem;
  transition: transform 0.2s;
}

.downloads a:hover {
  transform: scale(1.05);
}

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

.typewriter-cursor {
  display: inline-block;
  width: 1ch;
  color: #fff;
  background: none;
  animation: blink 1s steps(1) infinite;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.icon-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.3rem;
  font-family: monospace;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s ease;
}

.icon-button:hover {
  color: #ccc;
}

/* Light mode styles */
body.light-mode {
  background-color: #fff;
  color: #111;
}

body.light-mode .card {
  background-color: #fff;
  color: #111;
  border: 1px solid #111;
}

body.light-mode .profile {
  border: 2px solid #111;
}

body.light-mode .subtitle,
body.light-mode .bio,
body.light-mode .link-row,
body.light-mode .downloads a {
  color: #222;
}

body.light-mode .link-row:hover,
body.light-mode .downloads a:hover {
  background-color: #eee;
}

body.light-mode .typewriter-cursor {
  color: #111;
}

body.light-mode .icon-button {
  color: #111;
}

body.light-mode .icon-button:hover {
  color: #555;
}




