:root {
  --primary: #3b5998;
  --primary-opacity-60: rgba(59, 89, 152, 0.6);
  --primary-light: #e3f4fb;
  --red: #82123f;
  --red-light: #fcf1f6;
  --yellow: #a35200;
  --yellow-light: #fcf3db;
  --green: #3b6218;
  --green-light: #eff8e7;
}

html {
  color: #000;
  font-size: 1em;
  line-height: 1.4;
}

body {
  margin: 0;
}

main {
  margin-top: 94px;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

h1,
h2 {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

h3,
h4,
h5,
h6,
p {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

/* ============================================================ */

.site-container {
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 16px 32px;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: auto;
  right: auto;
  max-width: 1200px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
}

.nav__logo {
  width: 48px;
  height: 48px;
}

.nav__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.nav__menu ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu li {
  margin: 0;
}

.nav__menu a {
  display: inline-block;
  padding: 8px;
  width: 120px;
  text-align: center;
  border: 1px solid var(--primary-opacity-60);
  border-radius: 90px;
  background: #ffffff;
  color: var(--primary);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.2s, border 0.2s;
}

.nav__menu a.active,
.nav__menu a[aria-current="page"] {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.nav__menu a:hover {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.nav__menu-icon {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav__close-icon {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* ============================================================ */

.banner {
  position: relative;
  margin: 0 auto;
  padding: 0 32px;
  background-image: url("img/banner.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  align-items: center;
}

.banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.banner__greeting {
  font-size: 2rem;
  font-weight: 700;
}

.banner__intro {
  font-size: 1.5rem;
  margin-top: 8px;
  max-width: 460px;
}

.banner__image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px;
}

/* ========================================================= */

.project-container {
  margin: 20px auto;
  padding: 0 20px;
  gap: 16px;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.project:hover {
  transform: scale(1.05);
  z-index: 1;
}

.project:visited {
  color: inherit;
}

.project__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project__description {
  width: 100%;
}

.project__description h2 {
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.project__description ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.project__description li {
  margin: 8px;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.875rem;
}

.project__description li:first-child {
  margin-left: 0;
}

.project__description li:last-child {
  margin-right: 0;
}

.project__description li p {
  font-weight: 500;
}

.project:nth-child(1) {
  .project__description li {
    background-color: var(--primary-light);
    color: var(--primary);
  }
}

.project:nth-child(2) {
  .project__description li {
    background-color: var(--yellow-light);
    color: var(--yellow);
  }
}

.project:nth-child(3) {
  .project__description li {
    background-color: var(--red-light);
    color: var(--red);
  }
}

.project:nth-child(4) {
  .project__description li {
    background-color: var(--green-light);
    color: var(--green);
  }
}

/* ========================================================= */

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 40px 40px;
  margin: 40px 0 auto;
}

.footer__container ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================================= */

.row {
  display: grid;
}

.col {
  position: relative;
}

@media screen and (max-width: 39.99em) {
  .s--col2 {
    grid-template-columns: 1fr 1fr;
  }

  .navbar {
    padding: 16px 16px 8px 16px;
  }

  .banner__text {
    text-align: center;
  }

  .banner__intro {
    max-width: none;
  }

  .banner {
    background-position: 50% 25%;
    padding: 0 16px;
  }

  .project-container {
    padding: 0;
  }

  .project {
    padding: 0;
  }

  .footer__container {
    flex-direction: column;
    gap: 16px;
    padding: 32px 16px;
    text-align: center;
  }
}

@media screen and (min-width: 40em) {
  .m--col2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 63.99em) {
  .nav__menu-icon {
    display: block;
  }

  .nav__menu ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 84px;
    z-index: 100;
  }

  .nav__menu ul.show {
    display: flex;
  }

  .banner__image {
    padding: 20px;
  }
}

@media screen and (min-width: 64em) {
  .l--col2 {
    grid-template-columns: 1fr 1fr;
  }

  .nav__menu-icon,
  .nav__close-icon {
    display: none !important;
  }
}

@media screen and (min-width: 64em) and (max-width: 74.99em) {
}

@media screen and (min-width: 75em) {
}
