/* ✅ Reset & Font */
* {
  margin: 0;
  padding: 0;
}
html {
  font-family: "Outfit", sans-serif;
}
body {
  line-height: 1.8;
  max-width: 800px;
  margin: 10px auto;
  padding: 20px;
  min-height: 100vh;
  background-color: var(--base-color);
  color: var(--text-color);
}

/* ✅ Light + Dark Mode Colors via CSS Variables */
:root {
  --base-color: #fcfcfc;
  --base-variant: #e8e9ed;
  --text-color: #333333;
  --secondary-text: #666666;
  --primary-color: #3a435d;
  --accent-color: #0071ff;
}
.darkmode {
  --base-color: #070b1d;
  --base-variant: #101425;
  --text-color: #ffffff;
  --secondary-text: #a4a5b8;
  --primary-color: #3a435d;
  --accent-color: #0071ff;
}

/* ✅ Typography & Sections */
h1 {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 10px;
  color: var(--text-color);
}
h2 {
  font-size: 28px;
  font-weight: normal;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #cccccc;
  display: inline-block;
  color: var(--text-color);
}
p {
  margin: 10px 0 20px 0;
  color: var(--secondary-text);
}
.core-skills,
.project-date,
.duration {
  color: var(--secondary-text);
  font-style: italic;
}

/* ✅ Sections */
header,
section {
  padding: 70px min(50px, 7%);
}
section {
  background-color: var(--base-variant);
}

/* ✅ Layout */
.contact {
  margin-bottom: 20px;
  font-size: 18px;
}
.project {
  margin-bottom: 40px;
}
.project-title {
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: 5px;
  font-weight: bold;
}
.project-details {
  list-style: none;
  padding-left: 25px;
}
.project-details li {
  margin-bottom: 12px;
  position: relative;
  color: var(--text-color);
}
.project-details li::before {
  content: "→";
  position: absolute;
  left: -25px;
  color: #cccccc;
}
.work-experience {
  margin-bottom: 35px;
}
.role {
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: 5px;
  font-weight: bold;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.skill-category {
  margin-bottom: 20px;
}
.skill-category-title {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 10px;
  text-decoration: underline;
}

/* ✅ Footer */
#footer {
  font-size: 16px;
  font-weight: normal;
  color: var(--text-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-top: 2px solid #cccccc;
  display: inline-block;
  padding-top: 15px;
}

/* ✅ Links */
.links {
  color: inherit;
  text-decoration: none;
}
.project-title a {
  color: var(--text-color);
  text-decoration: none;
  padding-left: 5px;
}
.project-title a:hover i {
  color: var(--primary-color);
}

/* ✅ Buttons */
button {
  border: none;
  padding: 0.8em 2em;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font: inherit;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}
.cta-button {
  background-color: var(--accent-color);
}

/* ✅ Theme Switch Button */
#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--base-variant);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
}
#theme-switch svg {
  fill: var(--primary-color);
}
#theme-switch svg:last-child {
  display: none;
}
.darkmode #theme-switch svg:first-child {
  display: none;
}
.darkmode #theme-switch svg:last-child {
  display: block;
}
