:root {
  --background-light: #e9edf0;
  --background-dark: #333;
  --text-light: #333;
  --text-dark: #f9f9f9;
  --link-light: #0066cc;
  --link-dark: #89b3e7;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--background-light);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

a {
  text-decoration: underline;
  color: var(--text-light);
  font-weight: bold;
}

a:hover {
  color: var(--link-light);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
}

.logo img {
  max-width: 40%;
  height: auto;
  margin-left: 10%;
}

nav {
  display: flex;
  justify-content: center;
  padding: 10px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 10px;
  margin: 0 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav li {
  list-style: none;
  margin: 0 10px;
}

main {
  display: flex;
  justify-content: space-around;
  padding: 20px;
}

.section {
  width: 90%;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
}

.section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section p {
  font-size: 16px;
  line-height: 1.6;
}

.profile {
  background-color: #f5f5f5;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.profile h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.profile h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.profile li {
  list-style-type: none;
  margin-bottom: 8px;
}

.profile li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: bold;
}

.profile li a:hover {
  color: var(--link-light);
}

.profile-img {
  width: 100%;
  border-radius: 5px;
  margin: 20px 0;
  margin-left: auto;
  margin-right: auto;
}

.contact {
  background-color: #f5f5f5;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.contact h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact label {
  display: block;
  margin-bottom: 10px;
}

.contact input,
.contact textarea {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.contact textarea {
  max-width: 90%;
  min-width: 90%;
  min-height: 100px;
}

.contact input[type='checkbox'] {
  width: auto;
  margin: 10px;
}

.contact label[for='cc'] {
  display: inline;
  margin-bottom: 10px;
}

.contact input[type='submit'] {
  width: auto;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: var(--link-light);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--link-light);
}

tr {
  display: flex;
  justify-content: space-between;
  align-items: top;
}

td:first-child {
  width: 30%;
}

td:last-child {
  width: 60%;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--background-light);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-text {
  font-size: 16px;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  width: 80%;
  background-color: var(--background-light);
  border-radius: 5px;
  padding: 20px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

@media only screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  header {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .logo img {
    max-width: 100%;
    height: auto;
    margin-left: 0;
  }

  main {
    flex-direction: column;
    align-items: center;
  }

  .section {
    width: auto;
    margin: 0;
  }

  .profile h2 {
    font-size: 20px;
  }

  .profile h3 {
    font-size: 18px;
  }

  .profile-img {
    width: 100%;
  }

  tr {
    flex-direction: column;
  }

  td:first-child,
  td:last-child {
    width: 100%;
  }

  footer {
    padding: 10px;
  }

  .footer-text {
    font-size: 14px;
  }

  .popup-content {
    width: 90%;
  }
}

body.dark-mode {
  background-color: var(--background-dark);
}

body.dark-mode header {
  background-color: var(--background-dark);
  color: var(--text-light);
}

body.dark-mode div,
body.dark-mode section {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

body.dark-mode a {
  color: var(--link-dark);
}

body.dark-mode a:hover {
  color: var(--text-light);
  background-color: var(--link-dark);
}

body.dark-mode p {
  color: var(--text-dark);
}

body.dark-mode .popup-content {
  background-color: var(--background-dark);
  color: var(--text-light);
}

body.dark-mode footer {
  background-color: var(--background-dark);
  color: var(--text-light);
}
