/* ==================== ABOUT, CONTACT, SOCIALS, EDUCATION, EXPERIENCE, CV, AND 404 PAGES ==================== */

.about-section {
  display: flow-root;
}

.socials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem;
}

.social-link {
  display: inline-block;
  width: 4.5rem;
  height: 4.5rem;
  box-sizing: border-box;
  border-radius: 50%;
  background-color: var(--text-main);
  border: 2px solid var(--text-main);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.social-link:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 3px;
}

.socials-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: invert(1);
}

html.dark-mode .socials-icon {
  filter: none;
}

.socials-icon:hover {
  cursor: pointer;
  pointer-events: auto;
}

.x-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socials-posts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.social-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 20rem;
  width: 100%;
  max-width: 540px;
  margin-top: 0;
}

.social-post iframe {
  max-width: 100%;
}

.x-tweet-embed {
  display: flex;
  justify-content: center;
  width: 100%;
}

.instagram-embed-blockquote {
  background: #FFF;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
  margin: 1px;
  max-width: 540px;
  min-width: 326px;
  padding: 0;
  width: calc(100% - 2px);
}

.instagram-embed-inner {
  padding: 16px;
}

.instagram-embed-link {
  background: #FFFFFF;
  line-height: 0;
  padding: 0;
  text-align: center;
  text-decoration: none;
  width: 100%;
  display: block;
}

.education-section {
  display: flow-root;
}

.education-section h3 {
  text-align: left;
  padding: 0;
  margin: 0;
}

.education-section h4 {
  text-align: left;
  padding: 0;
  margin: 0;
}

.courses-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  clear: both;
}

.education-list {
  flex: 1 1 50%;
  width: 50%;
  box-sizing: border-box;
}

.education-list h4 {
  padding: 0 3rem 0 1.25rem;
  font-size: 1.4rem;
}

.education-list ul {
  list-style: none;
  margin: 0rem;
  padding: 1.25rem;
  padding-top: 0.3rem;
  padding-right: 3rem;
}

.education-list:first-child h4 {
  padding-left: 0;
}

.education-list:first-child ul {
  padding-left: 0;
}

.awards-list {
  margin: 0rem;
}

.awards-list ul {
  margin: 0rem;
  padding: 1.25rem;
  padding-top: 0.3rem;
}

.experience-section {
  display: flow-root;
}

.experience-section ul {
  margin: 0rem;
  padding: 1.25rem;
  padding-top: 0.3rem;
}

.experience-entry {
  display: flow-root;
  margin-top: 1.5rem;
}

.experience-entry h3 {
  text-align: left;
}

.cv-section {
  text-align: center;
}

.cv-section p {
  text-align: left;
}

.download-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.download-image {
  width: 3rem;
  height: 3rem;
}

.cv-image {
  display: block;
  width: 100%;
  max-width: 45rem;
  margin: 1rem auto 0;
  border: var(--border);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  margin: 2rem auto 0;
}

.timeline-spine-line {
  position: absolute;
  top: 7.95rem;
  bottom: 0;
  left: 50%;
  width: 4px;
  border-radius: 999px;
  background: var(--text-main);
  margin-left: -2px;
}

.timeline-spine-arrow {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 0.9rem solid transparent;
  border-right: 0.9rem solid transparent;
  border-bottom: 1.3rem solid var(--text-main);
  margin-left: -0.9rem;
}

.timeline-end-dot {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--text-main);
  margin-left: -0.75rem;
}

.timeline-item {
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline > * + * {
  margin-top: 1.25rem;
}

.timeline-gap-above {
  margin-top: 0rem;
}

.timeline-gap-tight {
  margin-top: 0rem;
}

.timeline-item.timeline-education {
  align-self: flex-start;
  justify-content: flex-end;
}

.timeline-item.timeline-experience {
  align-self: flex-end;
  justify-content: flex-start;
}

.timeline-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.timeline-row .timeline-item {
  align-self: center;
  margin-top: 0;
}

.timeline-connector {
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 2px;
  background: var(--text-main);
}

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--text-main);
  margin-top: -0.375rem;
}

.timeline-item.timeline-education .timeline-dot {
  left: -0.3rem;
}

.timeline-item.timeline-experience .timeline-dot {
  right: -0.3rem;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  max-width: 14rem;
  text-align: center;
}

.timeline-logo {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.timeline-role {
  margin: 0;
  font-weight: bold;
}

.timeline-date {
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.timeline-content .timeline-role,
.timeline-content .timeline-date {
  width: 100%;
  text-align: center;
}

.not-found-section {
  text-align: center;
}

.not-found-section p {
  text-align: center;
}

@media (max-width: 768px) {
  /* Same alternating spine layout as desktop, just scaled down to fit. */

  .timeline {
    max-width: 100%;
  }

  .timeline-spine-line {
    top: 4.5rem;
  }

  .timeline-spine-arrow {
    top: 2.6rem;
    border-left-width: 0.55rem;
    border-right-width: 0.55rem;
    border-bottom-width: 0.8rem;
    margin-left: -0.55rem;
  }

  .timeline-logo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .timeline-content {
    max-width: 7rem;
    gap: 0.15rem;
  }

  .timeline-role {
    font-size: 0.85rem;
  }

  .timeline-date {
    font-size: 0.7rem;
    white-space: normal;
  }

  .timeline-item {
    gap: 0.4rem;
  }

  .timeline-connector {
    width: 1rem;
  }

  .timeline-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: -0.25rem;
  }

  .timeline-end-dot {
    width: 1rem;
    height: 1rem;
    margin-left: -0.5rem;
  }

  .main-image {
    float: none;
    display: block;
    width: 70%;
    margin: 0 auto 1.5rem;
  }

  .main-image-round {
    float: none;
    display: block;
    width: 80%;
    margin: 0 auto 1.5rem;
  }

  .courses-section {
    flex-direction: column;
  }

  .education-list {
    width: 100%;
  }

  .education-list h4 {
    padding-left: 0;
  }

  .education-list ul {
    padding-left: 0;
  }

  .education-list h4 {
    font-size: 0.9rem;
  }
}
