* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  min-height: 100vh;
  background-color: white;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* max-width: 40rem; */
  /* margin: 0 auto 5rem auto; */
  margin: 0;
}

.callout {
  background-color: #ffb53e;
  color: #721c24;
  padding: 0.5rem 1.25rem;
  margin: 0 auto 1rem auto;

  .callout-content {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 40rem;
  margin: 0 auto 5rem auto;
}
h1,
h2 {
  color: #2c3e50;
  margin: 0;
  height: 32px;
}
p {
  color: #2c3e50;
  margin: 0;
  margin-top: 0.25em;
  margin-bottom: 1em;
}
p:last-of-type {
  margin-bottom: 0;
}

header {
  padding: 3rem 0 0 0;
}
@media (max-width: 768px) {
  header {
    padding: 1.4rem 1rem 0 1rem;
  }
}
header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
}
header > div > p {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
header > div > h1 {
  font-size: 3.75rem;
  line-height: 1;
}
.header-content {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: auto;
  h1 {
    font-size: 1.875rem;
    font-weight: bold;
    letter-spacing: -0.05em;
    line-height: 1;
  }
  p {
    max-width: 600px;
    font-size: 1rem;
    display: inline-block;
  }
}
.break-line {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .break-line {
    display: block;
  }
}
.header-image {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (min-width: 640px) {
    width: 5rem;
    height: 5rem;
  }
}
@media (min-width: 640px) {
  .header-title {
    font-size: 3rem;
  }
}
@media (min-width: 1280px) {
  .header-title {
    font-size: 3.75rem;
  }
}
@media (min-width: 768px) {
  .header-description {
    font-size: 1.3rem;
  }
}
.header-title a {
  text-decoration: none;
  color: inherit;
  text-underline-offset: none;
  text-underline-position: none;
}
menu {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;

  @media (min-width: 768px) {
    font-size: 1rem;
  }

  ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;

    @media (min-width: 768px) {
      gap: 1rem;
      flex-wrap: nowrap;
    }
  }
  li {
    display: contents;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: auto;
    color: inherit;
    -webkit-text-decoration-color: #85969d;
    text-decoration-color: #85969d;
    text-underline-position: from-font;
  }
  a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: auto;
    color: inherit;
    -webkit-text-decoration-color: #85969d;
    text-decoration-color: #85969d;
    text-underline-position: under;
    text-decoration-thickness: from-font;
  }
  a:hover {
    color: #0073e6;
  }
}

.hide-on-mobile {
  @media (max-width: 768px) {
    display: none;
  }
}

/* about section */
/* .section#about p {
  margin-top: 0.25em;
  margin-bottom: 1.25em;
} */

/* contact/say-hi section */
/* @media (max-width: 768px) {
  .contact {
    border: 1px solid #ddd;
    border-right: 0;
    border-left: 0;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
} */
.contact {
  border: 1px solid #ddd;
  border-right: 0;
  border-left: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.375rem;
}
.contact h2 {
  display: inline;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.contact h2 > span {
  font-weight: 600;
  font-size: 1em;
}
.contact p {
  margin-top: 0.1rem;
  line-height: 1.9em;
  font-size: 0.95rem;
}
.contact a {
  background: #fff281;
  padding: 4px;
  color: #2c3e50;
  font-weight: 600;
  text-decoration: underline;
}

/* work section */
#experience {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.experience-item {
  display: flex;
  gap: 1rem;
}
.experience-item-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.experience-item-image span {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ecf0f1;
  border: 1px solid #ddd;
  border-radius: 100%;
  overflow: hidden;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.experience-item-image span img {
  height: auto;
  align-self: normal;
  object-fit: cover;
  width: 100%;
}
.experience-item-content {
  display: flex;
  flex-direction: column;
  /* gap: 0.12rem; */
}
.experience-item-content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0;
}
.experience-item-content p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.experience-item-content-text {
  display: flex;
  gap: 0.5rem;
}
.experience-item-details {
  display: flex;
  gap: 0.5rem;
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0.2rem;
  }
}
.tag-container {
  display: flex;
  gap: 0.5rem;
  height: 24px;
}
.tag {
  background: #ecf0f1;
  padding: 0.125rem 0.375rem;
  border-radius: 10%;
  font-size: 0.75rem;
  font-weight: 400;
}
.company-name {
  font-size: 0.875rem;
  font-weight: 400;
}

/* education section */
#education {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.education-item {
  display: flex;
  gap: 1rem;
}
.education-item-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.education-item-image span {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ecf0f1;
  border: 1px solid #ddd;
  border-radius: 100%;
  overflow: hidden;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.education-item-image span img {
  height: 4rem;
}
.education-item-content {
  display: flex;
  flex-direction: column;
}
.education-item-content p {
  margin-top: 0;
}
.education-item-content h3,
.experience-item-content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0;
}

/* skills section */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill {
  background-color: #ecf0f1;
  padding: 4px 8px;
  border-radius: 5px;
}

/* projects section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.project-image {
  display: flex;
  overflow: hidden;
  height: 180px;
}
.project:nth-child(1) .project-image {
  background-color: orange;
}
.project:nth-child(2) .project-image {
  background-color: #ff4545;
}
.project:nth-child(3) .project-image {
  background-color: aliceblue;
}
.project-image div {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ecf0f1;
  overflow: hidden;
  width: 100%;
  /* height: 100%; */
  max-width: 225px;
  max-height: 150px;
  margin: auto;
  -webkit-box-shadow: 1px 0px 15px 5px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 1px 0px 15px 5px rgba(0, 0, 0, 0.24);
  box-shadow: 1px 0px 15px 5px rgba(0, 0, 0, 0.24);
  border-radius: 6px 6px 0px 0px;
}
.project:nth-child(3) .project-image img {
  height: auto;
}
.project-image img {
  width: 100%;
  height: 8rem;
  display: flex;
  align-self: flex-start;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 551px) {
  .project-image img {
    height: auto;
  }
  .project-image div {
    max-width: 325px;
    margin-top: 2.25rem;
  }
  .project:nth-child(3) .project-image div {
    max-width: fit-content;
    margin: auto;
  }
}
.project-content {
  padding: 0 15px 15px;
}
.project-content h3 {
  margin: 0.875rem 0 0.125rem 0;
}
.project-content p {
  font-size: 0.875rem;
}

.section {
  font-size: 1rem;
}
@media (max-width: 768px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
  }
}

/* upwork section */
#upwork {
  padding: 2rem;  
  background-color: #f9f9f9;
  border-radius: 10px;
  text-align: center;
  margin: 2rem auto;
}
#upwork h2 {
  text-align: center;
  color: #14a800;
  font-size: 2.875rem;
  margin-bottom: 1rem;
}
#upwork .upwork-CTA a {
  display: block;
  width: 100%;
  padding: 0.875rem 0;
  border: #00000026;
  border-radius: 10px;
  background: #14a800;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

/* testimonials section */
#testimonials {
  display: grid;
  gap: 1rem;
}
.testimonials-section {
  max-width: 608px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.testimonials-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 0;
  color: #333;
}
.testimonial-card {
  border: 1px solid #a7cde794;
  border-radius: 0.5rem;
  padding: 20px;
  background: #d9e3ea2e;
}
.testimonial-header {
  display: flex;
  margin-bottom: 15px;
}
.testimonial-avatar {
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  position: relative;
}
.testimonial-avatar img.upworkpic {
  width: 120%;
  border-radius: 50%;
  border: 1px solid #eee;
  position: absolute;
}
.testimonial-avatar img:not(.upworkpic) {
  width: 120%;
  border-radius: 50%;
  border: 1px solid #eee;
  position: absolute;
  top: 0;
}
.testimonial-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.testimonial-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0;
}
.testimonial-title {
  font-size: 0.875rem;
  @media (max-width: 768px) {
    font-size: 0.75rem;
  }
}
.testimonial-source a {
  width: 35px;
  height: 35px;
}
.testimonial-source svg:not(.instaIcon, .twitterIcon) {
  width: 35px;
  height: 35px;
}
.testimonial-source .instaIcon {
  width: 26px;
  height: 26px;
}
.testimonial-source .twitterIcon {
  width: 26px;
  height: 26px;
}
.testimonial-text {
  color: #555;
  line-height: 1.5;
}
/* .testimonial-text p {
  margin-top: 0.25em;
  margin-bottom: 1.25em;
} */
.testimonial-highlight {
  background-color: #fff281;
  padding: 2px 2px 2px 2px;
  border-radius: 3px;
  font-weight: 600;
  /* margin: 0 2px 0 0; */
}
.testimonial-link:hover {
  text-decoration: underline;
}

/* deck nav */
.deck-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  width: 100vw;
  z-index: 1000;
}
@media (min-width: 769px) {
  .deck-nav {
    display: none;
  }
}

.nav-item {
  text-align: center;
  color: #555;
  text-decoration: none;
}

.nav-item i {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
}

.nav-item:hover {
  color: #007bff;
}
