:root {
  --bg-color: #f9f9f9;
  --text-color: #333333;
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --card-bg: #ffffff;
}

body.dark-mode {
  --bg-color: #1e1e2f;
  --text-color: #e0e0e0;
  --primary-color: #ffffff;
  --accent-color: #00bcd4;
  --card-bg: #2c2c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  line-height: 1.6;
  padding-bottom: 60px;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background-color: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 3px solid var(--accent-color);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

#darkModeToggle {
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
}

nav a.active, nav a:hover {
  background-color: var(--accent-color);
  color: white;
  border-radius: 5px;
}

main {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

section {
  display: none;
}

section.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skills-list, ul {
  list-style: square;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project {
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  padding: 1rem;
  border-left: 4px solid var(--accent-color);
  border-radius: 5px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}

input, textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-color);
}

button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--card-bg);
  position: fixed;
  width: 100%;
  bottom: 0;
  font-size: 0.9rem;
}

html {
  scroll-behavior: smooth;
}
