* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

/* Navigation */
header {
  background: #222;
  color: #fff;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  color: #ff9800;
}

/* Sections */
section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  margin-bottom: 1rem;
  color: #222;
  text-align: center;
}

.profile-pic {
  display: block;
  margin: 0 auto 1rem;
  width: 150px;
  border-radius: 50%;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skills-list li {
  background: #ff9800;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
}

/* Projects */
.project-card {
  background: #fff;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #ff9800;
  text-decoration: none;
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

form input, form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #ff9800;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background: #e68900;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #fff;
  margin-top: 2rem;
}
/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-left: 1rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked = Dark Mode */
input:checked + .slider {
  background-color: #ff9800;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
/* 🌙 Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode nav ul li a {
  color: #f1f1f1;
}

body.dark-mode nav ul li a:hover {
  color: #ff9800;
}

body.dark-mode .project-card {
  background-color: #1e1e1e;
  color: #f1f1f1;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode form input,
body.dark-mode form textarea {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border: 1px solid #444;
}

body.dark-mode form button {
  background: #ff9800;
  color: #fff;
}

body.dark-mode h2 {
  color: #f1f1f1;
}


