:root {
  --bg-color: #f0f0f0;
  --text-color: #111;
  --dim-color: #666;
  --link-color: #111;
  --border-color: #ccc;
  --font-mono: 'Space Mono', monospace;
  --wrapper-max-width: 680px;
}

[data-theme="dark"] {
  --bg-color: #111;
  --text-color: #eee;
  --dim-color: #999;
  --link-color: #eee;
  --border-color: #333;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 14px;
  /* Slightly smaller for that 'technical' feel */
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.cv-container {
  max-width: var(--wrapper-max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
}

/* Header */
.cv-header {
  margin-bottom: 2rem;
}

.name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.role {
  font-size: 1rem;
  color: var(--dim-color);
}

.location {
  font-size: 0.9rem;
  color: var(--dim-color);
  font-style: italic;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

/* Sections */
.section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 0.9rem;
  color: var(--dim-color);
  margin-bottom: 1.5rem;
  /* Make it sticky/stand out? No, keep it simple */
}

/* Jobs */
.job-entry {
  margin-bottom: 2.5rem;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.2rem;
}

.job-company {
  font-weight: 700;
}

.job-date {
  color: var(--dim-color);
}

.job-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.job-desc {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Links */
.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 0.5rem;
}

/* Theme Toggle */
.theme-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  color: var(--dim-color);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.theme-btn:hover {
  text-decoration: underline;
  color: var(--text-color);
}

/* Mobile */
@media (max-width: 600px) {
  .cv-container {
    padding: 2rem 1.5rem;
  }
}

/* Typewriter Effect */
.typing-cursor::after {
  content: '_';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--primary-color, currentColor);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Initially hide content for typing effect to prevent flash */
.cv-header .name,
.cv-header .role,
.cv-header .portfolio-link a,
.cv-header .location {
  visibility: hidden;
}

.cv-header .name.typing-active,
.cv-header .role.typing-active,
.cv-header .portfolio-link a.typing-active,
.cv-header .location.typing-active {
  visibility: visible;
}