body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
  padding: 1rem;
  transition: background 0.3s, color 0.3s;
}

.dark {
  background-color: #121212;
  color: #f5f5f5;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dark .container {
  background: #1f1f1f;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.header-content {
  flex: 1;
  padding-right: 2rem;
}

.header-content h1 {
  margin-bottom: 0;
  font-size: 2rem;
  color: #2c3e50;
}

.dark .header-content h1 {
  color: #f5f5f5;
}

.header-content p {
  margin-top: 0.2rem;
  color: #666;
}

.dark .header-content p {
  color: #aaa;
}

.profile-image {
  flex-shrink: 0;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #0077cc;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

section {
  margin-top: 2rem;
}

section h2 {
  color: #1a1a1a;
  font-size: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

.dark section h2 {
  color: #ddd;
}

ul {
  padding-left: 1.5rem;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

.theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

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

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 50px;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s;
}

.slider .icon {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 1rem;
  transition: transform 0.3s;
}

input:checked + .slider .icon {
  transform: translateX(24px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
    align-items: center;
  }
  
  .header-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 1rem;
  }
  
  .profile-image {
    margin-bottom: 1rem;
  }
  
  .profile-image img {
    width: 120px;
    height: 120px;
  }
}
