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

body {
  background-color: #0b0c10;
  color: #c5c6c7;
  font-family: 'Press Start 2P', monospace, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.gb-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.retro-box {
  background-color: #1f2833;
  border: 4px solid #66fcf1;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
  padding: 20px;
  border-radius: 4px;
}

/* Header Avatar Layout */
.header-with-avatars {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
}

.header-text {
  text-align: center;
  flex-grow: 1;
}

.header-text h1 {
  font-size: 18px;
  color: #66fcf1;
  margin-bottom: 8px;
  text-shadow: 2px 2px #000;
}

.subtitle {
  font-size: 11px;
  color: #45a29e;
}

.pixel-avatar {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border: 2px solid #66fcf1;
  background-color: #0b0c10;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.nav-menu button {
  flex: 1;
  min-width: 120px;
  background-color: #0b0c10;
  color: #66fcf1;
  border: 2px solid #45a29e;
  padding: 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-menu button:hover {
  background-color: #66fcf1;
  color: #0b0c10;
  border-color: #66fcf1;
}

/* Tabs */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block !important;
}

h2 {
  font-size: 14px;
  color: #66fcf1;
  margin-bottom: 20px;
  border-bottom: 2px dashed #45a29e;
  padding-bottom: 10px;
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  font-size: 11px;
  line-height: 1.6;
}

.profile-grid a {
  color: #66fcf1;
  text-decoration: none;
}

.profile-grid a:hover {
  text-decoration: underline;
}

/* Resume Experience */
.pdf-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0b0c10;
  border: 2px solid #45a29e;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 10px;
}

.pdf-label {
  color: #66fcf1;
}

.download-btn {
  background-color: #45a29e;
  color: #0b0c10;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 2px;
}

.download-btn:hover {
  background-color: #66fcf1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background-color: #0b0c10;
  border-left: 4px solid #66fcf1;
  padding: 18px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.job-header h3 {
  font-size: 12px;
  color: #66fcf1;
}

.badge {
  font-size: 9px;
  background-color: #45a29e;
  color: #0b0c10;
  padding: 4px 8px;
}

.role {
  font-size: 10px;
  color: #c5c6c7;
  margin-bottom: 12px;
}

.job-card ul {
  list-style: none;
  font-size: 10px;
  line-height: 1.6;
}

.job-card li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.job-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #66fcf1;
}

.education-box {
  margin-top: 25px;
  background-color: #0b0c10;
  border: 2px solid #45a29e;
  padding: 18px;
  font-size: 10px;
  line-height: 1.6;
}

.education-box h3 {
  color: #66fcf1;
  margin-bottom: 12px;
  font-size: 12px;
}

/* Projects */
.project-item {
  background-color: #0b0c10;
  border: 2px solid #45a29e;
  padding: 14px;
  margin-bottom: 12px;
}

.project-item h3 {
  font-size: 11px;
  color: #66fcf1;
  margin-bottom: 8px;
}

.project-item p {
  font-size: 10px;
  line-height: 1.5;
}

/* Publications */
.paper-list {
  list-style: none;
  font-size: 10px;
  line-height: 1.6;
}

.paper-list li {
  background-color: #0b0c10;
  border: 2px solid #45a29e;
  padding: 14px;
  margin-bottom: 12px;
}

.paper-list strong {
  color: #66fcf1;
}

.authors {
  color: #c5c6c7;
}

.venue {
  color: #45a29e;
}

.btn-link {
  display: inline-block;
  margin-top: 8px;
  color: #66fcf1;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Mini Game */
.game-instruction {
  font-size: 9px;
  color: #45a29e;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.5;
}

#gameCanvas {
  display: block;
  margin: 0 auto;
  background-color: #0b0c10;
  border: 3px solid #66fcf1;
  width: 100%;
  max-width: 800px;
  height: auto;
}

#gameStats {
  margin-top: 15px;
  text-align: center;
  font-size: 10px;
  color: #66fcf1;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .header-with-avatars {
    flex-direction: column;
    gap: 15px;
  }
}
