
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #1e1e1e;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

header {
  background-color: #2b3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

header .contact a {
  color: #cce4ff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

section {
  margin-top: 3rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

ul {
  margin-left: 1.5rem;
  list-style: disc;
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  background-color: #f1f1f1;
  color: #888;
  font-size: 0.9rem;
}

/* Dark mode */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f5f7fa;
}

body.dark-mode header {
  background-color: #121a24;
}

body.dark-mode footer {
  background-color: #2a2a2a;
  color: #ccc;
}

/* Toggle switch */
.toggle-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-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: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
