body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #545454;
}

header {
  height: 65px;
}

.container-all {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-nav {
  float: right;
}

.container-nav nav {
  display: flex;
  justify-content: space-around;
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
  font-size: 1.2em;
  margin-top: 40px;
}

.container-nav a {
  margin: 10px;
  position: relative;
  text-decoration: none;
  color: white;
}

.animation-nav:hover {
  color: white;
  transition: transform 250ms;
  transform: translateY(-5px);
}

.container-description {
  margin-top: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.main-title {
  font-family: Monaco, Consolas, Lucida Console, monospace;
  font-size: 4.5em;
  color: white;
}

.main-description {
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
  font-weight: 200;
  font-size: 1.3em;
  line-height: 40px;
  color: white;
  margin: 80px 0;
}

.main-description a {
  text-decoration: none;
  color: white;
}

.main-description a:hover {
  color: white;
}

.terminal-header {
  height: 28px;
  background-color: #e4e3e5;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.terminal-header-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 9px;
  background-color: black;
}

.red {
  background-color: #f96256;
  border: 1px solid #f65549;
}

.yellow {
  background-color: #fdbc3d;
  border: 1px solid #ffb524;
}

.green {
  background-color: #33c948;
  border: 1px solid #2dbb41;
}

.terminal-body {
  background-color: #494A55;
  border-radius: 0.1px 0.1px 4px 4px;
  box-shadow: 1px 50px 100px rgba(50, 50, 93, 0.15), 1px 15px 35px rgba(50, 50, 93, 0.2), 1px 5px 15px rgba(0, 0, 0, 0.12);
  font-family: Monaco, Consolas, Lucida Console, monospace;
}

.terminal-body section {
  margin-bottom: 25px;
  margin-left: 35px;
  margin-right: 35px;
  line-height: 24px;
  font-size: 16px;
  font-weight: normal;
  font-family: Monaco, Consolas, Lucida Console, monospace;
}

.terminal-body section:first-child {
  padding-top: 35px;
}

.input-terminal-body {
  color: white;
  margin: 0;
  font-weight: normal;
  font-size: 16px;
}

.return-terminal-body {
  margin: 0;
  color: #F5EAC2;
}

.return-terminal-body a {
  color: #35feff;
  text-decoration: none;
}

.terminal-body:last-child {
  padding-bottom: 60px;
}

.last-section-terminal-body {
  display: flex;
}

.section-title {
  color: white;
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
  font-weight: 500;
  font-size: 1.5em;
  text-align: center;
  padding-top: 50px;
  margin-top: 50px;
  margin-bottom: 80px;
}

.projects-container {
  margin: 0 auto;
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
}

.project-card {
  display: flex;
  margin-bottom: 60px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 1px 50px 100px rgba(50, 50, 93, 0.05), 1px 15px 35px rgba(50, 50, 93, 0.1), 1px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Progressive enhancement: cards remain visible when JavaScript is off. */
.project-reveal-enabled .project-card {
  opacity: 0;
  transform: translateX(var(--project-enter-x, 0));
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}

.project-reveal-enabled .project-card:nth-child(odd) {
  --project-enter-x: -40px;
}

.project-reveal-enabled .project-card:nth-child(even) {
  --project-enter-x: 40px;
}

.project-reveal-enabled .project-card.project-card-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .project-reveal-enabled .project-card,
  .project-reveal-enabled .project-card.project-card-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.project-img {
  padding-top: 50px;
}

.project-img img{
  width: 350px;
}

.project-card img {
  padding-left: 10px;
}

.project-content {
  padding: 35px 20px;
}

.project-content h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 38px;
  color: black;
  margin-bottom: 35px;
}

.project-content p {
  margin-bottom: 30px;
  line-height: 27px;
  color: black;
  font-size: 15px;
}

.project-content a {
  text-decoration: none;
  color: #2727B9;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
}

.project-skills span {
  border-radius: 4px;
  border: 2px solid #c3c3c3;
  padding: 8px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
  font-size: 0.85em;
  color: black;
}

.project-links {
  display: flex;
  justify-content: center;
  padding-bottom: 25px;
}

.project-links a {
  margin-right: 20px;
  margin-top: 20px;
  line-height: 40px;
  padding: 1px 14px;
  box-shadow: 1px 4px 6px rgba(50, 50, 93, 0.11), 1px 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  letter-spacing: 0.025em;
  text-decoration: none;
  font-weight: 600;
  background: #545454;
  color: #fff;
}

.project-links a:hover {
  background: #5e5e5e;
  transition: transform 250ms;
}

.container-nav-contact {
  text-align: center;
  padding-bottom: 100px;
  color: white;
}

.container-nav-contact a {
  text-decoration: none;
  color: white;
  font-size: 20px;
}

footer {
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
}

.footer-madeby {
  color: white;
  text-align: center;
  margin-bottom: 50px;
}

.project-links-responsive {
  display: none;
}

.img-mobile {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: Camphor, Open Sans, Segoe UI, sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.lang-btn:hover,
.lang-btn.lang-active {
  color: white;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85em;
}

.terminal-cursor {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.75em;
  animation: terminal-blink 1s steps(1) infinite;
}

@keyframes terminal-blink {
  50% {
    opacity: 0;
  }
}

@media screen and (max-width: 768px) {
  .project-img {
    display: none;
  }
  .project-links-responsive {
    display: flex;
  }
  .project-links-responsive a {
    margin-right: 20px;
    margin-top: 20px;
    line-height: 40px;
    padding: 1px 14px;
    box-shadow: 1px 4px 6px rgba(50, 50, 93, 0.11), 1px 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    letter-spacing: 0.025em;
    text-decoration: none;
    font-weight: 600;
    background: #545454;
    color: #fff;
  }

  .project-card img {
    padding-left: 0px;
  }
  
  .img-mobile {
    display: block;
    width: 80%;
    margin: auto;
  }

  .project-content h3 {
    text-align: center;
  }

}

@media screen and (max-width: 570px) {
  .linkf-mobile-displayn {
    display: none;
  }
}

@media screen and (max-width: 375px) {
  .main-title{
    font-size: 2.5em;
  }

  .input-terminal-body{
    font-size: 14px;
  }

  .terminal-body section{
    font-size: 14px;
  }
}

@media screen and (max-width: 320px) {

  .input-terminal-body{
    font-size: 12px;
  }

  .terminal-body section{
    font-size: 12px;
  }

  .project-links-responsive a {
    font-size: 12px;
  }
}
