:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --card-bg: #fff;
  --accent-blue: #3282e6;
  --accent-orange: #f08c42;
  --tagline-color: #555;
  --skill-bg: #fff;
  --skill-border: var(--accent-blue);
  --footer-color: #777;
  --button-text: #fff;
}

/* Dark mode variables */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --tagline-color: #ccc;
  --skill-bg: #2a2a2a;
  --skill-border: var(--accent-blue);
  --footer-color: #aaa;
  --button-text: #fff;
}

/* Use above variables throughout CSS */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

/* Dark Mode Toggle Container */
#darkModeToggle.toggle {
  position: fixed;       /* stick it relative to viewport */
  top: 15px;
  right: 15px;
  width: 60px;
  height: 28px;
  background: var(--accent-blue);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 1000;         /* ensure it sits above other content */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* subtle shadow for light mode */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* The knob */
#darkModeToggle .knob {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

/* Both icons within the knob */
#darkModeToggle .knob i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  pointer-events: none; /* don’t block clicks */
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* Icon states: moon visible by default, sun hidden */
#darkModeToggle .knob .fa-moon {
  opacity: 1;
  color: var(--accent-orange);
}

#darkModeToggle .knob .fa-sun {
  opacity: 0;
  color: var(--accent-blue);
}

/* Toggle active (dark mode) */
body.dark-mode #darkModeToggle {
  background: var(--accent-orange);
  box-shadow: 0 0 8px 2px rgba(50, 130, 230, 0.5);
}

body.dark-mode #darkModeToggle .knob {
  transform: translateX(32px);
}

body.dark-mode #darkModeToggle .fa-moon {
  opacity: 0;
}

body.dark-mode #darkModeToggle .fa-sun {
  opacity: 1;
}

/* Hover effects */
#darkModeToggle.toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px 3px rgba(50, 130, 230, 0.6); /* subtle lift and glow */
}

body.dark-mode #darkModeToggle.toggle:hover {
  box-shadow: 0 0 12px 4px rgba(240, 140, 66, 0.5); /* orange glow hover in dark mode */
}

/* Transition for smooth movement/fade */
#darkModeToggle.toggle,
#darkModeToggle .knob,
#darkModeToggle .knob i {
  transition: all 0.3s ease;
}

/* Profile Card */
.profile-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 600px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.profile-card img {
  border-radius: 50%;
  height: 160px;
  margin-bottom: 20px;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent-blue);
}

.tagline {
  font-size: 18px;
  font-weight: 300;
  color: var(--tagline-color);
  margin-bottom: 25px;
}

/* Resume Button */
.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-blue);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.resume-btn:hover {
  background: var(--accent-orange);
}

/* Social Icons */
.socials {
  margin-top: 30px;
}

.socials a {
  margin: 0 12px;
  color: var(--tagline-color);
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--accent-orange);
}

/* About & Skills Sections */
section {
  max-width: 800px;
  margin-bottom: 50px;
  padding: 0 20px;
}

section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-blue);
  transition: color 0.3s ease;
}

.about p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill {
  background: var(--skill-bg);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--skill-border);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.skill:hover {
  background: var(--accent-orange);
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: var(--footer-color);
  margin: 40px 0 20px;
}

/* Smooth color transitions for dark mode */
body,
.profile-card,
h1,
.tagline,
.resume-btn,
.socials a,
.skill,
footer {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
