*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation Bar */

#home {
  background-color: #7600bc;
  padding: 1.5rem 1rem;
  margin: 0;
  min-height: auto;
}

.profile_name {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.profile_name .contact_info {
  font-size: 0.95rem;
  font-style: italic;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact_info img {
  width: 25px;
  margin-right: 8px;
}

.topdiv {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.topmenu {
  color: lightgray;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  text-decoration: none;
}

.topmenu:hover {
  color: white;
  font-weight: bolder;
  text-decoration: underline;
}

/* Everything Below Nav */

.main_container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Titles */

h2 {
  font-size: 3rem;
  text-align: center;
  color: #7600bc;
  margin: 2rem 0 1rem;
}

.introduction {
  font-size: 1.4rem;
  text-align: center;
  margin: 1rem 0 1.5rem;
  animation-duration: 5s;
  position: relative;
}

/* Used in the About Me sections */

.container {
  display: flex;
  flex-wrap: wrap;
}

/* About Me */

.wave {
  display: inline-block;
  width: 40px;
  height: auto;
  vertical-align: middle;
  margin-left: 8px;
  transform-origin: 70% 70%;
}

.wave:hover {
  animation: wave 1s ease-in-out 3;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(15deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.about-me {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

#about-me h1 {
  font-size: 4rem;
  margin-top: 0;
  color: #7600bc;
}

#about-me p {
  font-size: 1.35rem;
  color: rgb(128, 128, 128);
  margin-top: 0.5rem;
  line-height: 1.6;
  text-align: center;
}

.profile_image {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: scale(0.95);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profile_image:hover {
  transform: scale(1);
}

.about-me-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.rocket {
  margin-left: 5px;
  font-size: 0.9em;
  display: inline-block;
  transition: transform 0.3s ease;
}

.rocket:hover {
  transform: translateY(-5px) rotate(-10deg);
}

.signature {
  display: block;
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.4em;
  color: #555;
  text-align: center;
  letter-spacing: 2px;
  border-top: 2px solid #ddd;
  padding-top: 10px;
}

/* Skills */

.all_skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill {
  border: 1px solid gray;
  display: block;
  border-radius: 6px;
  text-align: center;
  margin: 0;
  padding: 1rem;
  width: 220px;
  font-size: 20px;
  box-shadow: 0 3px 10px gray;
  background-color: #fff;
}

.skill:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

.skill img {
  height: 80px;
  align-items: center;
  margin: 0 auto 0.75rem;
}

.skills h6 {
  align-items: center;
  font-size: 20px;
  margin-block-start: 8px;
  margin-block-end: 5px;
  font-weight: bold;
}

.skills p {
  align-items: center;
  font-size: 15px;
  color: gray;
  margin-block-start: 5px;
  margin-block-end: 5px;
}

.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Projects */

.projects-container {
  margin-top: 30px;
  margin-left: 0;
}

.projects-container hr {
  border: 1px solid lightgray;
  width: 100%;
  margin-left: 0;
}

.project-card {
  margin: 0 0 1rem 0;
  padding-bottom: 5px;
}

.project-card h3 {
  font-size: 25px;
  margin-left: 0;
}

.project-card li {
  font-size: 20px;
  margin-left: 1.2rem;
  line-height: 1.5;
}

/* Recommendations */

.all_recommendations {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-left: 0;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 1rem;
}

.recommendation {
  font-style: italic;
  text-align: left;
  width: 100%;
  max-width: 19.5rem;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin: 0;
  border: 1px solid gray;
  font-size: 18px;
  min-height: 200px;
  height: auto;
}

.recommendation span {
  color: #7600bc;
  font-size: 20px;
  font-family: "Times New Roman", Times, serif;
}

/* Scroll to Top Button */

.iconbutton {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background-color: #7600bc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 3%;
  bottom: 3%;
  cursor: pointer;
  z-index: 1000;
}

/* Form Pop-up */

.popup {
  width: 90%;
  max-width: 400px;
  background-color: #e8bcf0;
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  position: fixed;
  visibility: hidden;
  padding: 1rem;
  z-index: 2000;
}

.popup img {
  padding-top: 20px;
  margin: 0 auto;
}

.popup button {
  background-color: #fff;
  border: 1px solid #7600bc;
  color: #7600bc;
  display: block;
  border-radius: 6px;
  text-align: center;
  margin: 1rem auto 0;
  padding: 10px;
  width: 100%;
  max-width: 220px;
  font-size: 20px;
}

.popup button:hover {
  background-color: #fff;
  border: 2px solid #7600bc;
  color: #7600bc;
  display: block;
  font-weight: bolder;
  text-align: center;
  cursor: pointer;
}

/* Recommendation Form */

input,
textarea {
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  margin: 10px 0;
  width: 100%;
  padding: 0.75rem;
}

fieldset {
  display: block;
  align-content: center;
  justify-content: center;
  padding: 25px;
  margin: 0 auto;
  border: thin solid white;
  width: 100%;
  max-width: 700px;
}

/* Buttons */

button {
  background-color: #fff;
  border: 1px solid #7600bc;
  color: #7600bc;
  display: block;
  border-radius: 6px;
  text-align: center;
  margin: 1.5rem auto;
  padding: 10px 18px;
  width: 100%;
  max-width: 220px;
  font-size: 20px;
}

button:hover {
  background-color: #7600bc;
  border: 1px solid #7600bc;
  color: #fff;
  display: block;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
}

/* Tablet */

@media (max-width: 1024px) {
  #about-me h1 {
    font-size: 3rem;
  }

  #about-me p {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .introduction {
    font-size: 1.2rem;
  }

  .profile_image {
    max-width: 420px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  #home {
    padding: 1rem;
    text-align: center;
  }

  .profile_name {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .profile_name .contact_info {
    justify-content: center;
    text-align: center;
  }

  .topdiv {
    justify-content: center;
  }

  .topmenu {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .main_container {
    padding: 16px;
  }

  h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
  }

  .introduction {
    font-size: 1.05rem;
    margin: 0.5rem 0 1rem;
  }

  .about-me {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  #about-me h1 {
    font-size: 2.2rem;
  }

  #about-me p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-me-box {
    max-width: 100%;
  }

  .profile_image {
    max-width: 320px;
    margin: 0 auto;
    transform: none;
  }

  .signature {
    text-align: center;
  }

  .skill {
    width: 100%;
    max-width: 280px;
  }

  .projects-container {
    margin-top: 20px;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  .project-card li {
    font-size: 1rem;
  }

  .all_recommendations {
    padding: 10px 0;
  }

  .recommendation {
    max-width: 100%;
    min-height: auto;
  }

  fieldset {
    padding: 16px;
  }

  button,
  .popup button {
    max-width: 100%;
  }

  .iconbutton {
    width: 42px;
    height: 42px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Small phones */

@media (max-width: 480px) {
  #about-me h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .profile_name {
    font-size: 1.1rem;
  }

  .topmenu {
    font-size: 0.95rem;
  }

  .introduction,
  #about-me p,
  .project-card li,
  .recommendation {
    font-size: 0.95rem;
  }

  .skill img {
    height: 64px;
  }
}
