:root {
  --bg-light: #ffffff;
  --fg-light: #111111;
  --bg-dark: #111111;
  --fg-dark: #eeeeee;
  --accent: #4e9af1;
  --transition-speed: 0.3s;
}

html {
  background: var(--bg-light);
  color: var(--fg-light);
  transition: background var(--transition-speed), color var(--transition-speed);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

html.dark {
  background: var(--bg-dark);
  color: var(--fg-dark);
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  padding: 2rem 1rem;
  text-align: center;
}

nav {
  margin-top: 1rem;
}
nav a {
  margin: 0 0.7rem;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

.toggle-mode {
  position: fixed;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  background: none;
  border: 2px solid currentColor;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  transition: background var(--transition-speed), color var(--transition-speed);
}

section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin: 0.5rem 0;
  font-size: 2.5rem;
}

.profile-pic {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.profile-pic img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--accent);
}


h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
}

.skills-list, .projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  display: inline-block;
  margin: 0.3rem 0.6rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  font-size: 0.9rem;
}

.projects-list li {
  margin-bottom: 1.5rem;
}

.projects-list li a {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

.contact {
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Fade-in Animations */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
