/* --- 1) THEME SETUP & FADE-IN FIX --- */
html, body {
  padding: 0;
  box-sizing: border-box;
}
body {
  opacity: 0;
  transition: opacity 0.8s ease;
  font-family: 'Nunito Sans', sans-serif;
  margin: 20px;
}
body.loaded {
  opacity: 1; 
}

/* --- 2) COLOR VARIABLES --- */
:root {
  --bg-color: #F6F6F7; 
  --text-color: #333;
  --link-color: #0066cc;
  --muted-text: #9F9EA1;
}
.dark {
  --bg-color: #121212; 
  --text-color: #e0e0e0;
  --link-color: #76c2ff;
  --muted-text: #aaa; 
}

/* --- 3) GLOBAL STYLES --- */
html, body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem; 
}
.spacer-top {
  margin-top: 4rem;
}
.spacer-bottom {
  margin-bottom: 4rem;
}

/* --- 4) HEADING STYLES --- */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-bottom: 2rem;
}
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* --- 5) THEME TOGGLE ICON --- */
.theme-toggle {
  position: absolute; 
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-color);
  transition: transform 0.3s, color 0.3s;
  z-index: 999; 
}
.theme-toggle:hover {
  transform: scale(1.1);
}

/* --- 6) EMPLOYMENT SECTION --- */
.employment-history h2 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
  color: #9F9EA1;
  margin-bottom: 1rem;
}
.jobs-list {
  list-style: none;
  padding-left: 0;
}
.job-item {
  margin-bottom: 20px;
  cursor: pointer;
}
.job-item:hover .job-row {
  text-decoration: underline;
}
.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.company {
  font-weight: 700;
  font-size: 1.1rem;
}
.position {
  text-align: right;
}
.role {
  display: block;
  font-weight: 600;
}
.years {
  display: block;
  font-size: 0.875rem;
  margin-top: 2px;
  color: var(--muted-text);
}
/* Hidden description by default */
.job-description {
  display: none;
  margin-top: 6px;
  line-height: 1.4;
  color: var(--text-color);
}
.job-item.open .job-description {
  display: block;
}

/* --- 7) RESUME LINK --- */
.resume-link {
  margin-top: 2rem;
}
.resume-link a {
  text-decoration: none;
  color: var(--link-color);
  font-weight: 600;
  transition: color 0.2s;
}
.resume-link a:hover {
  color: #ff6600;
}

/* --- 8) SOCIAL FOOTER --- */
.social-footer {
  text-align: center;
}
.social-footer a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0 12px;
  transition: color 0.2s;
}
.social-footer a:hover {
  color: var(--link-color);
}
