* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}

.ubuntu {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
  padding: 2rem;
}

article {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  gap: 3rem;
  /* border: 2px solid blue; */
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

div.card-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

div.card-info h2 {
  font-size: 2.4rem;
  margin-block: 1rem;
  text-align: center;
}

div.card-info p {
  font-size: 1.8rem;
  margin-block: 1rem;
  text-align: center;
}

.socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.socials li {
  list-style: none;
  padding: 1.2rem;
  cursor: pointer;
  background-color: antiquewhite;
}

.socials li:hover {
  background-color: rgb(240, 142, 13);
}

.socials li a {
  text-decoration: none;
  color: black;
}

.socials li a:active {
  background-color: aqua;
}

.socials li a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.card-avatar img {
  width: 20rem;
  height: 20rem;
  border-radius: 100%;
}

.card-avatar figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.card-avatar img:hover {
  border: 2px solid burlywood;
  border-radius: 100%;
}

section h3 {
  font-size: 2.4rem;
}

section ul li {
  list-style: none;
  font-size: 1.8rem;
}

div.sections {
  display: flex;
  flex-direction: row;
  padding: 3rem;
  gap: 2rem;
}

/* Form style - contact us page */
/* main {
  border: 2px solid black;
  width: 60rem;
} */

main {
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
#form {
  /* border: 2px solid black; */
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1rem;
}

.contact-us-h2 {
  font-size: 3rem;
  margin-block: 1rem;
  padding-inline: 1rem;
  text-align: center;
}

label {
  display: flex;
  flex-direction: column;
  /* gap: 1.5rem; */
  font-size: 1.8rem;
}

label input {
  padding: 1.5rem;
  appearance: none;
  border: 1px solid #333333;
  font-size: 1.6rem;
}

.valid {
  border-color: blue;
}

input:focus,
textarea:focus {
  outline: none;
  border: 1px solid #ffdddd;
}

.invalid {
  border-color: red;
  /* background-color: #ffdddd; */
}

#email-error {
  color: red;
}

.error {
  color: red;
}

textarea {
  height: 10rem;
  padding: 1.5rem;
  font-size: 1.6rem;
}

button {
  padding-inline: 2rem;
  padding-block: 1rem;
  font-size: 1.6rem;
  outline: none;
  border: 0px;
}

.button-div button {
  background-color: #ffdddd;
  color: red;
  cursor: pointer;
}

.button-div button a,
button a {
  text-decoration: none;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal container */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal h3 {
  color: #333;
  margin-bottom: 10px;
}

.modal p {
  color: #555;
  font-size: 1.3rem;
}

.close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #0056b3;
}

/* About Me page styles */
main h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-block: 1rem;
}
.bio-section,
.confidence-section,
.note-section,
.thought-section {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.bio-section p,
.confidence-section ul,
.note-section p,
.thought-section p {
  text-align: justify;
  margin-top: 1rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  body {
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
  }
  article {
    width: 60rem;
    flex-direction: row;
  }

  main {
    width: 60rem;
    padding: 2rem;
  }

  div.sections {
    flex-direction: row;
    gap: 4rem;
  }
}
