/* Global styles */

:root {
  --white: #ffffff;
  --black: #000000;
  --red: #fa382f;
  --section-background: #f4f4f4;
  --blue: #072bce;
  --pink: #fddfe7;
  --bluegrey: #4a6f7d;
  --gainsboro: #d8e5e7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--white);
  color: var(--black);
}

a {
  all: unset;
  cursor: pointer;
}

.regular-text {
  font-weight: 400;
}

.bold-text {
  font-weight: 700;
}

.container {
  /*Lowest supported value for mobiles*/
  width: 375px;
  margin: 0 auto;
  padding: 46px 24px;
}

.section {
  padding: 10px;
  text-align: center;
  width: 100%;
}

.section h2 {
  display: inline-block;
  padding: 5px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--bluegrey);
  font-size: 22px;
  line-height: 27px;
  margin-bottom: 24px;
}

.section:nth-child(2n) {
  background-color: var(--white);
}

.section:nth-child(2n + 1) {
  background-color: var(--section-background);
}

/* Header */

.header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("assets/peter-conlan-LEgwEaBVGMo-unsplash.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--white);
  height: 520px;
  width: 100vw;
  display: flex;
}

.header-container {
  width: 375px;
  margin: 0 auto;
  position: relative;
}

.header-logos {
  width: 100%;
  text-align: right;
  margin-right: 24.5px;
  margin-top: 48px;
}

.header-logos-desktop {
  display: none;
}

.header-logos-desktop a {
  margin: 6px;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-top: 27px;
  margin-left: 24px;
  height: 202px;
  width: 220px;
}

.header-text span {
  display: inline-block;
}

.header-text h1 {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
}

.header-text h2 {
  font-size: 40px;
}

.header-text h2 span {
  font-size: 24px;
  line-height: 40px;
  display: none;
}

.header-image-container {
  position: absolute;
  right: 24px;
  bottom: -16px;
}

.profile-picture {
  height: 180px;
  width: 180px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* SUMMARY SECTION */

.summary-container p {
  text-align: left;
  font-size: 17px;
  line-height: 29px;
}

.summary-container span {
  margin-right: 10px;
}

/* TECH SECTION */

.tech-container p {
  font-size: 17px;
  line-height: 29px;
}

.tech-container span {
  color: var(--bluegrey);
}

/* FEATURED PROJECTS */

.featured-projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  margin-bottom: 20px;
}

.featured-project-article {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.project-image-group {
  position: relative;
}

.project-image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(100, 100, 100, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.8s ease;
  font-size: 18px;
  color: var(--white);
}

.project-image-overlay:hover {
  background-color: transparent;
  color: transparent;
}

.project-title {
  text-transform: uppercase;
}

.project-image {
  width: 100%;
  height: 100%;
  display: flex;
  /* For complete overlay: */
}

.project-text-group {
  font-family: "Roboto", sans-serif;
  text-align: left;
  margin: 20px 0;
}

.project-heading {
  text-transform: uppercase;
  color: var(--bluegrey);
  font-size: 17px;
  line-height: 25px;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}

.project-description {
  font-size: 17px;
  line-height: 29px;
  letter-spacing: 0.01em;
}

.tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag-wrapper p {
  color: var(--black);
  background-color: var(--gainsboro);
  font-size: 13px;
  line-height: 11px;
  letter-spacing: 0.01em;
  padding: 6px;
  margin: 3px 6px 3px 0;
  border-radius: 5%;
}

/* .tag-wrapper p:first-child {
  margin-left: 0;
} */

.other-project-container {
  text-align: left;
  margin-bottom: 20px;
}

.other-projects h2 {
  color: var(--bluegrey);
  background-color: inherit;
}

.other-project-title {
  text-transform: uppercase;
  color: var(--bluegrey);
  font-size: 17px;
  line-height: 29px;
  display: inline-block;
  text-decoration-line: underline;
  text-underline-position: under;
}

.other-project-description {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  line-height: 29px;
  letter-spacing: 0.01em;
  /* text-decoration-line: underline;
  text-underline-position: under; */
}

.other-project-arrows {
  color: var(--bluegrey);
  text-decoration-line: underline;
  text-underline-position: under;
}

/* THOUGHTS */

.thoughts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.thoughts-article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  width: 100%;
}

.thoughts-image-group {
  width: 100%;
}

.thoughts-image {
  width: 100%;
  height: 100%;
}

.thoughts-text-group {
  font-family: "Roboto", sans-serif;
  text-align: left;
  margin: 20px 0 0 0;
}

.thoughts-description {
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 0.01em;
}

.thoughts-description span {
  color: var(--bluegrey);
}



/* SKILLS */

.all-skills-container {
  margin-top: 24px;
  font-size: 17px;
  line-height: 29px;
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px; */
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: space-around;
}

.all-skills-container h3 {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  color: var(--bluegrey);
}

.all-skills-container>div {
  flex: 1;
}

.all-skills-container>div>p {
  white-space: nowrap;
}

/* FOR MORE */

.for-more-logos {
  margin: 30px auto;
  min-width: 247px;
  max-width: 664px;
  display: flex;
  justify-content: space-evenly;
  color: var(--bluegrey);
}

.fore-more-logo-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.icon-container {
  border: 1px solid var(--bluegrey);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}

.fore-more-logo-container p {
  margin-top: 10px;
  font-size: 11px;
  font-weight: bold;
  line-height: 13px;
  text-transform: uppercase;
}

/* FOOTER */

.footer {
  height: 302px;
  text-align: center;
  color: var(--white);
  background-color: var(--bluegrey);
  display: flex;
  justify-content: center;
  align-content: center;
}

.footer h4 {
  font-size: 21px;
  line-height: 25px;
  text-transform: uppercase;
}

footer p {
  font-size: 17px;
  line-height: 25px;
  margin: 5px;
}

.footer-container {
  padding-top: 60px;
  padding-bottom: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}


/* ------  Tablet and desktop media queries ------- */

@media screen and (min-width: 768px) {

  .header-logos-desktop {
    display: block;
    width: 100%;
    text-align: right;
    margin-right: 24.5px;
    margin-top: 48px;
  }

  .header-logos {
    display: none;
  }

  .header {
    height: 681px;
  }

  .header-container,
  .container {
    width: 768px;
  }

  .header-text {
    margin-top: 50px;
    width: 422px;
    height: 339px;
  }

  .header-text h1 {
    font-size: 30px;
    line-height: 37px;
  }

  .header-text h2 {
    font-size: 82px;
    line-height: 100px;
  }

  .header-text h2 span {
    font-size: 50px;
    line-height: 78px;
  }

  .profile-picture {
    height: 225px;
    width: 225px;
  }

  .featured-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .featured-project-article {
    margin-bottom: 0;
  }

  .thoughts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
    margin-top: 30px;
  }

  .for-more-logos {
    max-width: 50%;
  }
}