/* ========== GENERAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  transition: background-color 0.4s, color 0.4s;
  padding: 0 20px;
}

.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle-checkbox {
  display: none;
}

.theme-toggle-label {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: yellow;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s;
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
  background: #111;
}

.theme-toggle-checkbox:checked ~ .site-wrapper {
  background-color: #111;
  color: #f0f0f0;
}

.theme-toggle-checkbox:checked ~ .site-wrapper header,
.theme-toggle-checkbox:checked ~ .site-wrapper footer {
  background-color: #222;
}

/* ========== HEADER ========== */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-color: #8dbceb;
  padding: 20px;
  text-align: center;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.header-title h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  padding: 5px 10px;
  transition: background 0.3s, color 0.3s;
  border-radius: 4px;
}

nav ul li a:hover {
  background: #4472c4;
  color: #fff;
}

/* ========== SECTIONS ========== */
section {
  margin: 40px 0;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

/* ========== SKILLS ========== */
.skill-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.skill-label {
  margin-top: 10px;
  font-weight: bold;
}

.skill-bar {
  width: 100%;
  background-color: #cf9d9d;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-bar-fill {
  height: 25px;
  line-height: 25px;
  color: rgb(243, 236, 236);
  padding-left: 10px;
  border-radius: 5px;
  transition: width 1s ease-out;
}

/* ========== PROJECTS & CV ========== */
#projects ul {
  list-style: none;
  text-align: center;
  margin-bottom: 15px;
}

.download-cv {
  display: inline-block;
  background-color: #4472c4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.download-cv:hover {
  background-color: #0d1d33;
}

/* ========== COMMENT FORM ========== */
#contact {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

#contact input,
#contact textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #999;
  font-size: 16px;
  width: 100%;
}

#contact button {
  padding: 10px;
  background-color: rgb(11, 11, 15);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

#contact button:hover {
  background-color: rgb(241, 226, 226);
}

/* ========== FOOTER ========== */
footer {
  background-color: #e4ecf4;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* ========== DARK MODE CLASSES ========== */
.theme-toggle-checkbox:checked ~ .site-wrapper #contact {
  background-color: #282853;
}

.theme-toggle-checkbox:checked ~ .site-wrapper #contact input,
.theme-toggle-checkbox:checked ~ .site-wrapper #contact textarea {
  background-color: #f2f0f3;
  color: #fff;
  border-color: #f1e3e3;
}

.theme-toggle-checkbox:checked ~ .site-wrapper #contact button {
  background-color: #d4caca;
  color: #050505;
}

.theme-toggle-checkbox:checked ~ .site-wrapper nav ul li a {
  color: #fff;
}

.theme-toggle-checkbox:checked ~ .site-wrapper nav ul li a:hover {
  background: #fff;
  color: #000;
}

