/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

/* DARK MODE */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  color: #00bfff;
}

.hero .title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.btn {
  background-color: #00bfff;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #008ecc;
}

/* SECTIONS */
section {
  margin-top: 3rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about p,
.services ul,
.contact form,
.portfolio .projects {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* PORTFOLIO */
.projects {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project {
  background: #ddd;
  padding: 2rem;
  border-radius: 6px;
  width: 200px;
}

body.dark-mode .project {
  background: #2a2a2a;
}

/* SERVICES */
.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  background: #e6f7ff;
  margin: 0.5rem 0;
  padding: 0.8rem;
  border-radius: 5px;
}

body.dark-mode .services li {
  background: #2a2a2a;
}

/* CONTACT */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 4rem;
}

.socials a {
  display: inline-block;
  margin: 0 1rem;
  font-size: 1.1rem;
  color: #00bfff;
  text-decoration: none;
}

.socials a:hover {
  text-decoration: underline;
}

.socials i {
  margin-right: 0.4rem;
}

body.dark-mode .btn {
  background-color: #0077cc;
}

body.dark-mode .socials a {
  color: #33bfff;
}

/* Dark mode toggle */
#darkModeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
