@font-face {
  font-family: "Source Sans Pro";
  src: url("../font/roboto-mono.woff2") format("woff2"),
    url("../font/roboto-mono.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../font/roboto-mono-bold.woff2") format("woff2"),
    url("../font/roboto-mono-bold.woff") format("woff");
  font-weight: bold;
  font-display: swap
}

h1 {
  display: block;
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h2 {
  display: block;
  font-size: 1.5em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h3 {
  display: block;
  font-size: 1.17em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h4 {
  display: block;
  margin-top: 1.33em;
  margin-bottom: 1.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h5 {
  display: block;
  font-size: .83em;
  margin-top: 1.67em;
  margin-bottom: 1.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h6 {
  display: block;
  font-size: .67em;
  margin-top: 2.33em;
  margin-bottom: 2.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #171E26;
  color: #d2e0f0;
  font-family: "Source Sans Pro";
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: auto;
  padding: 20px;
  max-width: 1100px;
  min-height: 100vh;
  box-sizing: border-box;
  line-height: 1.5;
}

body a {
  text-decoration: none;
  color: #FF6600;
  border-bottom: 3px solid #FF6600;
}

body a:hover {
  background-color: #FF6600;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  border-bottom: 3px solid white;
}

strong {
  color: #ff6600;
  font-weight: bold;
}

figcaption {
  text-align: center;
  font-size: 13px;
  font-style: italic;
}

.body img {
  width: 100%;
  height: max-content;
}

.skip-to-main-content-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  padding: 1em;
  background-color: #FF6600;
  color: #ffffff;
  font-weight: bold;
  opacity: 0;
}

.skip-to-main-content-link:focus {
  opacity: 1;
}

/* region about me home*/
.about-me-home {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
  margin-top: 100px;
  align-items: center;
}

.avatar {
  object-fit: cover;
  clip-path: path("M150,0 C210,20 260,60 270,120 C280,180 250,240 200,270 C150,300 90,290 50,250 C10,210 0,150 30,90 C60,30 90,-10 150,0 Z");
  transition: clip-path 0.3s;
}

.about-me-home img {
  width: 250px;
  height: 250px;
}

.about-me-home-name {
  font-size: 50px;
  margin: 0;
  padding: 0;
  color: #FF6600;
  text-decoration: none;
}

.about-me-home-current-position {
  font-size: 20px;
  border-bottom: none;
}

.about-me-home-left {
  padding: 0;
  padding-right: 50px;
}

#about-me-home-icons {
  width: 100%;
  display: flex;
}

#about-me-home-icons a {
  height: 30px;
  width: 30px;
  margin-right: 10px;
}

.my-resume {
  width: fit-content !important;
  margin-right: 20px !important;
}

.icons-divider {
  border-right: 1px solid #FF6600;
  margin-right: 20px;
}

.main-icons {
  display: flex;
  width: 30px;
  height: 30px;
}

.main-icons svg {
  height: fit-content;
}

#about-me-home-icons a:hover path {
  fill: #ffffff !important;
}

#about-me-home-icons a:hover polygon {
  fill: #ffffff !important;
}

.main-title {
  text-decoration: unset;
  color: inherit;
  border-bottom: unset;
  z-index: 100;
}

.main-title h1 {
  text-decoration: none;
}

.main-title:hover {
  background-color: unset;
  color: unset;
}

/* endregion about me home*/

/* region header*/
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

header nav a {
  margin-left: 20px;
  color: #d2e0f0;
}

header h1 {
  border-bottom: 3px solid #FF6600;
  font-size: 2rem;
  width: fit-content;
}

header h1:hover {
  background-color: #FF6600;
  color: #ffffff;
}

.language-icon {
  width: 30px;
  height: 24px;
}

.common-switch {
  width: fit-content;
}

.common-switch:hover path {
    fill: #ffffff !important;
}

.common-switch:hover polygon {
    fill: #ffffff !important;
}

.portuguese-switch {
  color: #0C8F27;
  border-bottom: 3px solid #0C8F27;
}

.portuguese-switch path {
  fill: #0C8F27 !important;
}

.portuguese-switch polygon {
  fill: #0C8F27 !important;
}

.portuguese-switch:hover {
  background: #0C8F27;
  color: #ffffff;
}

.english-switch{
  color: #BE0A2F;
  border-bottom: 3px solid #BE0A2F;
  width: fit-content;
}

.english-switch path {
  fill: #BE0A2F !important;
}

.english-switch polygon {
  fill: #BE0A2F !important;
}

.english-switch:hover {
  background: #BE0A2F;
  color: #ffffff;
}

/* endregion header*/

/* region pre code*/
pre {
  tab-size: 2 !important;
  background: #282828;
  padding: 20px;
  overflow-x: auto;
  border: 3px solid #485fa0;
}

/* endregion pre code*/

/* region footer*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  margin-top: auto;
  padding-top: 50px;
}

footer p {
  text-align: center;
}

#footer-icons {
  width: 100%;
  display: flex;
  justify-content: center;
}

#footer-icons a {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}

#footer-icons a div {
  display: flex;
}

#footer-icons a div svg {
  width: fit-content;
  height: fit-content;
}

#footer-icons a:hover path {
  fill: #ffffff !important;
}

#footer-icons a:hover polygon {
  fill: #ffffff !important;
}

/* endregion footer*/

/* region articles list*/
.articles-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.articles-list ul li {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  height: 20px;
}

.articles-list ul li time {
  flex: 0 0 150px;
  font-family: monospace;
  letter-spacing: 0;
}

.articles-list ul li a {
  height: 18px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* endregion articles list*/

.posted-on {
  font-style: italic;
  color: #D2DCF0;
  margin-bottom: 0;
}

.last-update {
  margin-top: 0;
  font-style: italic;
  color: #D2DCF0;
}

/* "Hide" checkbox -- moves it off screen*/
#menu-btn {
  position: absolute;
  top: -100%;
  left: -100%;
}

/* Hide hamburger for bigger screens */
.menu-icon {
  visibility: hidden;
}

/* region card*/

#my-projects-section {
  padding-top: 30px;
}

#card-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  gap: 2em;
  justify-content: center;
}

.card {
  width: 450px;
  border: 3px solid #D2E0EF;
  padding: 20px;
  background-color: #2b3949;
}

.card__title {
  border-bottom: none;
  width: 100%;
}

.card__title a {
  display: block;
  border: none;
  color: #D2E0EF;
}

.card__title:hover {
  background-color: #ff6600;
  cursor: pointer;
  color: #fff;
}

.card__tags {
  display: flex;
  gap: 10px;
}

.tag {
  display: flex;
  gap: 10px;
  background-color: #171E26;
  padding-right: 10px;
  border: 1px solid #D2E0EF;
}

.tag__color {
  width: 25px;
  height: 100%;;
}

/* endregion card*/

.icon {
  width: 20px !important;
  height: 20px !important;
  vertical-align: text-top;
  padding-right: 5px;
}

/* region project */
.project-container {
  margin-top: 40px;
}
.project-title {
  font-size: 3rem;
  border: none;
}
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.video-overlay h2 {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.video-overlay p {
  margin: 0.5rem 0 0;
  max-width: 80%;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.project-status {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-top-right-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  font-size: 0.9em;
  font-weight: 600;
  color: white;
}

.project-status-label {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-top-left-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
  font-size: 0.9em;
  color: white;
  background-color: #2B3949;
  margin: 0;
  margin-right: -10px;
}

.project-meta {
  margin-top: 30px;
}

.project-status--live {
  background-color: #28a745;
}

.project-status--archived {
  background-color: #6c757d;
}

.project-status--maintenance {
  background-color: #007bff;
}


/* endregion project */

/* region responsive*/
@media only screen and (max-device-width: 812px) {

  body {
    width: 100%;

  }

  header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  header h1 {
    font-size: 2rem;
  }

  header {
    display: grid;
    grid-template-areas:
      "title   hamburger hamburger"
      "nav     nav     nav"
      "switch  switch  switch";
  }

  .menu a {
    text-decoration: none;
  }

  .menu-btn {
    display: none;
  }

  .menu-icon {
    grid-area: hamburger;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding: 20px;
    position: relative;
    user-select: none;
    visibility: visible;
  }

  .navicon {
    background: #FF6600;
    display: block;
    height: 2px;
    width: 18px;
    position: relative;
  }

  .navicon:before {
    top: 5px;
  }

  .navicon:after {
    top: -5px;
  }

  .navicon:before,
  .navicon:after {
    background: #FF6600;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
  }

  .menu {
    grid-area: nav;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #FF6600;
    display: flex;
    flex-direction: column;
  }

  .menu a {
    margin: 0;
    background-color: #FF6600;
    color: #ffffff;
    width: 100%;
    font-weight: 600;
    text-align: center;
    padding: 15px 0;
  }

  .menu-btn:checked~.menu {
    max-height: 240px;
  }

  .menu-btn:checked~.menu-icon .navicon {
    background: none;
  }

  .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
  }

  .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
  }

  .menu-btn:checked~.menu-icon .navicon:before,
  .menu-btn:checked~.menu-icon .navicon:after {
    top: 0;
  }


  .about-me-home {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
  }

  .about-me-home img {
    width: 250px;
    height: 250px;
    margin-top: 30px;
  }

  .about-me-home-left {
    padding: 0;
  }

  .articles-list ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .articles-list ul li {
    flex-direction: column;
    align-items: start;
    width: 100%;
    height: fit-content;
  }

  .articles-list ul li a {
    font-size: 20px;
    overflow: inherit;
    white-space: break-spaces;
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: #FF6600;
    text-decoration-thickness: 3px;
    line-height: 1.5;
    height: max-content;
  }

  .articles-list ul li time {
    flex: 0;
    padding-bottom: 10px;
  }

  footer {
    bottom: 0;
    text-align: center;
    width: 100%;
  }

  #card-list {
    width: 100%;
  }

  #card-list a {
    width: 100%;
  }

  #card-list img {
    width: 100%;
  }

  .about-me-home-current-position {
    font-size: 15px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .video-overlay p {
    font-size: 13px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

}

/* endregion responsive*/
