:root {
  --font-primary: "Martian Mono", monospace;
  --color-grey-50: rgb(245, 245, 245);
  --color-grey-100: rgb(236, 236, 236);
  --color-grey-200: rgb(90, 90, 90);
  --color-grey-300: rgb(61, 61, 61);

  --color-black: #3d3d3d;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}
/* @media only screen and (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
}

*/
@media only screen and (max-width: 56.25em) {
  html {
    font-size: 50%;
  }
}
.container {
  @media only screen and (min-width: 87.5em) {
    width: 130rem;
  }
}

body {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  line-height: 1.5;

  display: grid;
  justify-content: center;

  color: var(--color-black);

  position: relative;
}

.notification {
  position: fixed;
  z-index: 9999;

  left: 50%;
  transform: translateX(-50%);

  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
  background-color: var(--color-grey-100);
  border: 2px solid var(--color-grey-50);
  box-shadow: 0 1px 2px var(--color-grey-100);
}

@media only screen and (max-width: 43.75em) {
  .notification {
    padding: 1rem;
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 31.25em) {
  .notification {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 23em) {
  .notification {
    padding: 0.2rem;
  }
}

ion-icon {
  cursor: pointer;
}

a:link,
a:visited {
  text-decoration: none;
  color: var(--color-grey-300);
  display: inline-block !important;
}

.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

.disabled {
  pointer-events: none;
}

.overlay {
  height: 100dvh;
  width: 100dvw;

  position: absolute;
  top: 0;
  left: 0;

  z-index: 30;

  background-color: rgba(213, 213, 213, 0.452);
  backdrop-filter: blur(5px);
}

.uppercase {
  text-transform: uppercase;
}

.navigation {
  display: flex;
  gap: 1rem;
  align-items: center;

  height: 4rem;
  padding: 1rem;

  background-color: var(--color-grey-100);

  /* position: fixed;
  width: 100vw;
  z-index: 40; */

  @media only screen and (max-width: 39.75em) {
    padding: 0.5rem;
  }
}

.list {
  margin-left: auto;
  display: flex;
  gap: 0.8rem;

  height: 100%;
  list-style: none;

  @media only screen and (max-width: 42.253em) {
    gap: 0.5rem;
  }

  @media only screen and (max-width: 40.4375em) {
    display: none;
  }
}

.list-item {
  cursor: pointer;
  transition: all 0.5s;
}

.list-item a {
  font-size: 1.6rem;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;

  padding: 0 1rem;
  border-radius: 5px;

  @media only screen and (max-width: 56.25em) {
    font-size: 1.3rem;
  }

  @media only screen and (max-width: 42.253em) {
    padding: 0 0.5rem;
  }
}

.list-item a:hover,
.list-item a:active {
  background-color: rgb(235, 235, 235);
}

.list-item a:link,
.list-item a:visited {
  color: var(--color-black);
}

section,
.header {
  padding: 8rem 15rem;
  @media only screen and (max-width: 71.5625em) {
    padding: 5.5rem 10rem;
  }

  @media only screen and (max-width: 62.5em) {
    padding: 5rem 7.5rem;
  }

  @media only screen and (max-width: 45.75em) {
    padding: 4rem;
  }

  @media only screen and (max-width: 34em) {
    padding: 4rem 2rem;
  }

  @media only screen and (max-width: 28.125em) {
    padding: 4rem;
  }
}

.btn {
  font-size: inherit;
  font-family: var(--font-primary);
  cursor: pointer;
  background-color: transparent;
  border: 1px solid grey;
  display: block;
}

/* section {
  padding-left: 15rem;
  padding-right: 15rem;
} */

h1,
h2,
h3 {
  font-family: inherit;
}

h2 {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  gap: 0.3rem;

  .heading-2 {
    letter-spacing: 3px;
    font-size: 3rem;
    /* text-transform: uppercase; */

    @media only screen and (max-width: 27em) {
      font-size: 2rem;
    }
  }

  .sub-heading-2 {
    font-weight: 400;
    font-size: 1.5rem;
  }
}

.menu-outline {
  display: none;

  @media only screen and (max-width: 40.375em) {
    display: block;
    margin-left: auto;
  }
}

.logo {
  color: var(--color-black);
  text-transform: lowercase;
  letter-spacing: 3px;
  font-family: var(--font-primary);

  align-self: center;

  text-decoration: underline dotted !important;
}

.school_logo {
  align-self: start;

  @media only screen and (max-width: 31.25em) {
    height: 6rem;
  }
}

section:nth-child(odd) {
  background-color: var(--color-grey-100);
}

section:nth-child(even) {
  background-color: rgb(255, 255, 255);
}

/* SECTION HEADER */

.header {
  align-items: center;

  display: flex;
  justify-content: space-between;

  @media only screen and (max-width: 48.5em) {
    flex-direction: column;
    text-align: center;
    gap: 1.8rem;
  }

  @media only screen and (max-width: 40.375em) {
    gap: 3rem;
  }
}

.header .left {
  line-height: 1.15;

  @media only screen and (max-width: 48.5em) {
    order: 2;
  }
}

.header .left .name {
  font-size: 7rem;
  margin-bottom: 0.5rem;

  @media screen and (max-width: 71.875em) {
    font-size: 6rem;
  }

  @media only screen and (max-width: 62em) {
    font-size: 5rem;
  }

  @media only screen and (max-width: 40.375em) {
    font-size: 4rem;
    margin-bottom: 0.6rem;
  }

  @media only screen and (max-width: 25em) {
    font-size: 3rem;
  }
}

.header .left .title {
  font-size: 1.5rem;

  @media screen and (max-width: 71.875em) {
    font-size: 1.3rem;
  }

  @media only screen and (max-width: 62em) {
    font-size: 1.2rem;
  }

  @media only screen and (max-width: 31.25em) {
    font-size: 1.3rem;
  }
}

.headshot {
  height: 25rem;
  width: 25rem;
  border-radius: 50rem;
  object-fit: top;

  @media only screen and (max-width: 71.5625em) {
    height: 18rem;
    width: 18rem;
  }

  @media only screen and (max-width: 48em) {
    order: 1;
  }

  @media only screen and (max-width: 30.625em) {
    height: 13rem;
    width: 13rem;
  }
}

/* ABOUT SECTION */

.section-about-me {
  display: flex;
  flex-direction: column;
}

.section-about-me-details {
  display: flex;
  gap: 5rem;

  @media only screen and (max-width: 46.875em) {
    flex-direction: column;
    gap: 3rem;
  }
}

.section-about-me-details p {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: justify;
  hyphens: auto;

  padding-right: 15rem;

  @media screen and (max-width: 62.5em) {
    padding: 0;
  }
}

.about-me-pix {
  height: 25rem;
  width: 40rem;

  @media only screen and (max-width: 46.875em) {
    width: 20rem;
    height: 20rem;
  }
}

.about-me-btn,
.projects-btn {
  margin-top: auto;
  align-self: start;

  padding: 1rem;
  border: 2px solid var(--color-grey-200);
  transition: all 0.3s;

  &:hover {
    background-color: var(--color-grey-300);
    border-radius: 50rem;
    color: #fff;
  }
}

.projects-btn {
  margin-top: 5rem;
  text-align: center;
  justify-self: flex-start;
}

/* CAREER EXPERIENCE SECTION */

.work-experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-experience-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;

  background-color: var(--color-grey-50);
  padding: 3rem;
  border-radius: 0.5rem;

  @media only screen and (max-width: 40em) {
    flex-direction: column;
    gap: 1rem;
  }
}

.work-type {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.3rem;

  background-color: rgb(192, 192, 192);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 1.2rem;
  font-family: var(--font-primary);
}

.work-company {
  display: flex;
  flex-direction: column;
}

.work-company-image {
  width: 13rem;
}

.work-company-name {
  font-weight: 600;
  font-family: var(--font-primary);

  font-size: 2rem;

  @media only screen and (max-width: 31.25em) {
    font-size: 1.5rem;
  }
}

.work-company-role-location {
  font-family: var(--font-primary);
}

.work-duration {
  margin-top: 2.5rem;
  font-style: oblique;
}

/* SECTION SKILLS */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
}

.skill {
  background-color: var(--color-black);
  color: #fff;
  font-weight: 600;
  padding: 0.25rem 0.8rem;

  display: block;
  border-radius: 0.5rem;

  @media only screen and (max-width: 43.75em) {
    font-size: 1.2rem;
  }

  @media only screen and (max-width: 29.1875em) {
    font-size: 1rem;
  }
}

/* SECTION PROJECTS */

.project-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 3rem;

  @media only screen and (max-width: 62.5em) {
    /* grid-template-columns: repeat(2, 1fr); */
    gap: 2rem;
  }

  @media only screen and (max-width: 59.375em) {
    gap: 1.5rem;
  }
}

.project {
  display: flex;
  flex-direction: column;
  background-color: var(--color-grey-50);
  box-shadow: 0 1px 2px var(--color-grey-100);
  border-radius: 5px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 0.8rem;
}

.project-image-container {
  height: 100%;
  width: 100%;
}

.project-image {
  margin-top: -3px;
  height: 100%;
  width: 100%;
  object-fit: cover;

  /* @media only screen and (max-width: 39.625em) {
    object-fit: cover;
  } */

  @media only screen and (max-width: 19.8125em) {
    object-fit: contain;
  }
}

.project-title {
  font-weight: 500;
  font-size: 1.2rem;

  @media only screen and (max-width: 59.375em) {
    font-size: 1.2rem;
  }
}

.project-description {
  font-size: 1.1rem;
  /* text-align: justify;
  -ms-hyphens: auto;
  hyphens: auto; */

  @media only screen and (max-width: 59.375em) {
    font-size: 1rem;
  }
}

.project-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  @media only screen and (max-width: 59.375em) {
    gap: 0.2rem;
  }
}

.project-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 500rem;
  background-color: var(--color-grey-200);
  color: var(--color-grey-50);
}

.tool-icon {
  font-size: 1rem;

  @media only screen and (max-width: 59.375em) {
    font-size: 1rem;
  }
}

.tool-title {
  text-transform: uppercase;
  font-size: 0.8rem;

  @media only screen and (max-width: 59.375em) {
    font-size: 0.8rem;
  }
}

.project-showcase {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.logo-github,
.globe-outline {
  font-size: 1.6rem;
}

.section-experience {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* CONTACT FORM */

.contact-details {
  display: flex;
  gap: 8rem;

  @media only screen and (max-width: 53.625em) {
    flex-direction: column;
    gap: 3rem;
  }
}

.contact-details-info {
  flex-basis: 65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  @media only screen and (max-width: 53.625em) {
    flex-basis: auto;
  }

  & p {
    display: flex;
    flex-direction: column;
    gap: 1px;

    align-items: center;
  }
}

.contact-details-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-details-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  a {
    text-decoration-style: dotted;
    color: rgb(44, 44, 44);
  }
}

.contact-details-socials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details-socials-items {
  display: flex;
  gap: 1rem;
}

.contact-details-socials-items span ion-icon {
  cursor: pointer;
  transition: all 0.2s;
}

.contact-details-socials-items span ion-icon:hover {
  transform: rotate(-14deg);
}
/* FORM */

.row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row label {
  font-weight: 500;
  font-family: var(--font-primary);
}

.row input,
.row textarea,
input[type="submit"] {
  padding: 1.2rem;
  font-size: inherit;
  font-family: var(--font-primary);
  border-radius: 3px;
  border: 2px solid grey;
}

.row textarea {
  resize: none;
  font-family: var(--font-primary);
}

input[type="submit"] {
  align-self: start;
  cursor: pointer;
  font-family: var(--font-primary);
}

.contact-btn {
  font-weight: 500;
  transition: all 0.2s;
  border: 2px solid var(--color-grey-200);

  &:hover {
    background-color: var(--color-grey-200);
    color: #fff;
  }
}

/* FOOTER */
.footer {
  display: flex;
  text-align: center;

  padding: 1.4rem;
  background-color: rgb(231, 231, 231);
}

.footer .left {
  margin: 0 auto;
  display: flex;
  gap: 1rem;

  @media only screen and (max-width: 31.25em) {
    flex-direction: column;
    gap: 0.8rem;
  }
}

ion-icon {
  font-size: 30px;
}

aside {
  background-color: rgb(231, 231, 231);
  width: 30rem;
  height: 100dvh;

  margin: 0 auto;
  padding: 5rem;

  position: absolute;
  top: 0;
  right: 0;

  z-index: 50;

  @media only screen and (max-width: 26.1875em) {
    padding: 2rem;
  }

  @media only screen and (max-width: 13.375em) {
    width: 100vw;
  }
}

.side-navigation {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: start;
}

.side-logo {
  font-style: italic;
  align-self: start;
  margin-bottom: 2rem;
}

.side-navigation ion-icon {
  position: absolute;
  right: 0;
  top: 0;

  font-size: 4x rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    color: red;
    transform: scale(1.2);
  }
}

.side-list {
  flex-direction: column;
  margin: 0;
  gap: 2rem;
  width: 100%;

  display: block !important;

  & li {
    display: block;
    padding: 1rem;
    transition: all 0.4s;

    &:hover {
      background-color: rgb(41, 41, 41);

      a {
        color: #fff;
      }
    }
  }

  & .list-item a:hover,
  & .list-item a:active {
    background-color: transparent;
  }
}

.projects-h1 {
  margin: 5rem 0 !important;
}

.project-go-back {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 1rem;
}
