/* Global Variables */
:root {
  --color-blue: #2F81F7;
  --color-orange: #ff663f;
  --border-radius: 5px;
  --gap: 5em;
}
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;

  & a {
    text-decoration: none;
    color: inherit;
  }
}

html {
  background: linear-gradient(45deg, purple 0, var(--color-blue) 100%);
}

body {
  min-height: 100vh;
  font-family: tahoma, system-ui;
  max-width: 1280px;
  margin: 0 auto;
  color: white;
  padding: 1em;

  gap: var(--gap);

  & main {
    flex: 1;
  }
}

header {
  width: 100%;
  margin: 0 auto;
  max-width: 800px;

  background: rgba(0, 0, 0, .75);
  border-radius: var(--border-radius);

  align-items: center;
  justify-content: center;

  & h1 {
    font-size: 3rem;
  }

  & em {
    color: var(--color-orange);
  }

  &>nav {
    width: 100%;

    &>ul {
      list-style: none;
      padding: 1em;

      &>li {
        flex: 1;
        text-align: center;

        &>a {
          &.active {
            border-bottom: 2px solid var(--color-orange);
          }
        }
      }
    }
  }
}

.title {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap);

  & h2 {
    text-shadow: -1px 1px orange;
    border-bottom: 2px solid var(--color-orange);
  }
}

article {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

section {
  line-height: 1.6;
  padding: 1rem;
  width: 390px;
  min-height: 390px;

  border-radius: var(--border-radius);

  display: flex;
  row-gap: 1rem;
  flex-direction: column;
  align-items: center;

  background: rgb(0 0 0 / 25%);

  & h3 {
    color: var(--color-orange);
  }

  & img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
  }

  & .projectSkills {
    font-size: small;
  }

  & .projectsTitle {
    flex: 1;
    color: #ff663f;
    font-weight: 600;

    & span {
      color: white;
      font-weight: 500;
    }
  }

  & p {
    max-width: 40ch;
    text-align: center;
  }

  & .buttons {
    display: flex;
    width: 100%;
    gap: 1em;
  }

  & button {
    flex: 1;
    padding: .5rem;
    font-weight: 600;
    font-size: inherit;
    color: white;
    background-color: inherit;
    border-radius: var(--border-radius);
    font-family: inherit;
    border: 2px solid transparent;

    &:hover {
      & a {
        text-decoration-line: underline;
        text-decoration-color: var(--color-orange);
        text-decoration-thickness: 2px;
      }
    }
  }
}

#mySkills {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;

  & div {
    padding: 10px;
    & img {
      object-fit: contain;
      height: 50px;
    }

    & p {
      font-size: x-small;
    }
  }
}

  .contact {
    & a {
      border-bottom: 2px solid transparent;
      margin-top: 2rem;

      &:hover,
      &:focus {
        border-bottom-color: var(--color-orange);
      }
    }
  }

  footer {
    text-align: center;

    & .crafted {
      text-shadow: 1px 1px var(--color-orange);
    }
  }

  .flex {
    display: flex;

    &.column {
      flex-direction: column;
    }
  }