/* ---- Base ---- */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  cursor: default;
  user-select: none;
}
.job-title {
  color: #555;
  font-weight: 600;
  margin-top: 10px;
}
.section {
  margin-top: 40px;
}
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

/* ---- Framed headings ---- */
.framed-title {
  display: inline-block;
  padding: 8px 20px;
  font-size: 1.4rem;
  font-weight: bold;
  border: 2px solid #555;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ---- Experience ---- */
.experience-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.experience-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.experience-text strong {
  font-size: 1.1rem;
}
.experience-text span.dates {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 3px;
}

/* ---- Project links grid ---- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f9f9f9;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, border-color 0.2s;
}
.link-row:hover {
  background: #ffffff;
  border-color: #bbb;
}
.link-row-icon {
  font-size: 18px;
  color: #777;
  flex-shrink: 0;
}
.link-row-text .lr-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.link-row-text .lr-desc {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}
.link-row-arrow {
  margin-left: auto;
  font-size: 14px;
  color: #bbb;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .link-grid { grid-template-columns: 1fr; }
}

/* ---- CV Card ---- */
.cv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border: 0.5px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  max-width: 260px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.cv-card-icon {
  width: 48px;
  height: 56px;
  background: #f5f5f5;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cv-card-icon i {
  font-size: 22px;
  color: #777;
}
.cv-card-icon .doc-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #d0d0d0;
  border-bottom-left-radius: 4px;
}
.cv-meta {
  font-size: 12px;
  color: #888;
}
.cv-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  background: #f0f0f0;
  color: #333;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cv-dl-btn:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cv-dl-btn i {
  font-size: 13px;
}

/* ---- Footer ---- */
footer {
  margin-top: 50px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #777;
}
.footer-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
}
.footer-logos img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.footer-logos img:hover {
  opacity: 1;
}

/* ---- Easter egg: runner game ---- */
#game-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#game-overlay.active {
  display: flex;
}
#game-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 24px 28px;
  text-align: center;
  position: relative;
  font-family: "Segoe UI", Arial, sans-serif;
}
#game-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
#game-close:hover { color: #555; }
#game-score {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
#game-breaks {
  display: flex;
  gap: 5px;
  align-items: center;
}
.break-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: 1px solid #bbb;
  display: inline-block;
  transition: background 0.2s;
}
.break-pip.active {
  background: #555;
  border-color: #333;
}
#game-canvas {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
#game-msg {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  min-height: 20px;
}
