* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #e5e7eb;
  color: black;
  transition: background 0.4s ease, color 0.4s ease;
}

.cv-wrapper {
  display: flex;
  min-height: 90vh;
  background: white;
  transition: background 0.4s ease;
}

.sidebar {
  width: 25%;
  background: #0f172a;
  color: white;
  padding: 25px 15px;
  transition: background 0.4s ease, color 0.4s ease;
}

.sidebar img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 40% 10%;
  border: 2px solid white;
  display: block;
  margin: 0 auto 20px;
  transition: all 0.5s ease;
}

.sidebar img:hover {
  transform: scale(1.05);
  object-position: 35% 5%;
}

.sidebar h3 {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  padding: 5px 0;
  margin-bottom: 10px;
}

.sidebar p, .sidebar ul {
  margin-bottom: 8px;
}

.sidebar ul {
  list-style: disc inside;
}

.sidebar h3 i,
.contact p i {
  margin-right: 6px;
  color: #ffffff;
}

.content {
  width: 75%;
  transition: background 0.4s ease, color 0.4s ease;
}

.header{
  background-color: #0f172a;
  color: white;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
  margin-left: 2px;
}

.header h1 {
  margin-bottom: 5px;
  color: white;
}

.header p {
  font-size: 0.9rem;
  transition: color 0.4s ease;
  color: white;
}

.header-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.button-link {
  padding: 6px 12px;
  background: whitesmoke;
  color: black;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.button-link:hover {
  scale: 1.1;
}

.right{
  padding-left: 8px;
  padding-top: 8px;
}

.right section {
  margin-bottom: 25px;
  margin-left:5px;
}

.content h2 {
  color: black;
  margin-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.content h2 i {
  margin-right: 8px;
}

.item {
  margin-bottom: 15px;
}

.item span {
  font-size: 0.9rem;
  color: #444;
  transition: color 0.4s ease;
}

.footer {
  text-align: center;
  padding: 15px;
  background: #0f172a;
  color: white;
  transition: background 0.4s ease, color 0.4s ease;
}

.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal:target {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  transform: translateY(-50px);
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.modal:target .modal-content {
  transform: translateY(0);
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.modal .close:hover {
  scale: 1.1;
}

.modal form input, .modal form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal form button {
  width: 100%;
  background: whitesmoke;
  color: black;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.modal form button:hover {
  background: #b04c67;
}

body.dark-mode {
  background: black;
  color: #eee;
}

body.dark-mode .sidebar {
  background: #000;
}

body.dark-mode .sidebar h3,
body.dark-mode .contact p {
  color: #fff;
}

body.dark-mode .sidebar ul,
body.dark-mode .item span {
  color: #ccc;
}

body.dark-mode .content {
  background: #111;
  color: #eee;
}

body.dark-mode .content h2 {
  color: #eee;
  border-bottom-color: white;
}
body.dark-mode .header  {
  color: #ddd;
  background-color: black;
}
body.dark-mode .header p {
  color: #ddd;
  background-color: black;
}

body.dark-mode .footer {
  background: #000;
  color: #fff;
}

body.dark-mode .modal-content {
  background: #222;
  color: #eee;
}

body.dark-mode .modal .close {
  color: #eee;
}

body.dark-mode .modal form input,
body.dark-mode .modal form textarea {
  background: #333;
  color: #eee;
  border: 1px solid #555;
}

body.dark-mode .modal form button {
  background: whitesmoke;
  color:#000;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal:target {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  text-decoration: none;
  font-size: 24px;
  color: #333;
}

#success:target ~ .modal {
  display: none;
}

@media (max-width: 1024px) {
  .cv-wrapper {
    flex-direction: column;
  }

  .sidebar, .content {
    width: 100%;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-buttons {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .right {
    padding-left: 5px;
    padding-top: 5px;
  }

  .content h2 {
    font-size: 1.1rem;
  }

  .item h4 {
    font-size: 1rem;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .header p {
    font-size: 0.8rem;
  }

  .button-link {
    font-size: 0.8rem;
    padding: 5px 10px;
    color: bla;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 15px 10px;
  }

  .sidebar img {
    width: 120px;
    height: 120px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
  }

  .button-link {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }
}
