* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Karla', sans-serif;
  font-size: 1.75rem;
  margin: 0;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

a:link,
a:visited {
  color: #a0a0a0;
}

a:hover,
a:active {
  color: #676767;
}

a[class='hero-CV']:link,
a[class='hero-CV']:visited,
a[class='hero-CV']:hover,
a[class='hero-CV']:active {
  color: #000;
}

.heading {
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 6rem;
}

.section {
  margin-top: 15rem;
}

.grid {
  display: grid;
  gap: 5rem;
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.main {
  font-weight: 500;
}

.secondary {
  font-weight: 300;
}

.tertiary {
  color: #949494;
  font-weight: 300;
}

/******* ABOUT ME ********/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6rem;
}

.nav {
  display: flex;
  gap: 5rem;
}

.jollibee {
  background-color: #fff8f7;
}

.top {
  background-image: url('./assets/jollibee-hero.png');
  background-size: 400px;
  background-repeat: no-repeat;
  background-position: center;
  height: 500px;
  background-color: #fff8f7;
  margin: 0;
  z-index: 10;
  background-attachment: fixed;
}

main {
  margin: 15rem;
}

.section.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15rem;
  gap: 15rem;
}

.my-name {
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  font-size: 2.4rem;
  line-height: 1;
}

.greeting {
  color: #949494;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-intro {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.summary {
  color: #3a3a3a;
  margin-bottom: 2rem;
}

.hero-CV {
  border-bottom: 1px solid #ff2e00;
}

.hero-img {
  object-fit: cover;
  max-width: 35rem;
  border-radius: 50%;
}

/*** ANIMATION ***/

.hero-details {
  animation: slide-up 1s;
}

.hero-img {
  opacity: 0;
}

.project-intro {
  animation: slide-up 1s;
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(8rem);
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slide-up-contact {
  0% {
    opacity: 0;
    transform: translateY(8rem);
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

/******** WORK EXPERIENCE ********/
.main.category {
  margin-bottom: 2rem;
}

/*** EMAIL ****/

.contact {
  opacity: 0;
  margin-top: 20rem;
}

.email {
  font-size: 6rem;
  font-weight: 600;
}

.copyright {
  font-weight: 400;
  color: #3e3e3e;
}

footer {
  margin-top: 20rem;
  display: flex;
  justify-content: space-between;
  padding: 2rem 6rem;
}

.associated-links {
  display: flex;
  gap: 5rem;
}

/*** PLAY ****/
.projects.summary {
  font-size: 3.5rem;
}

.proj-img {
  max-width: 100%;

  transition: all 1s;
}

.section.projects {
  margin-left: -5rem;
  margin-right: -5rem;
  gap: 10rem;
}

.img-container {
  overflow: hidden;
}

.proj-img:hover {
  transform: scale(1.1);
}

.title {
  font-size: 2.75rem;
  margin-top: 1rem;
}

.project-category {
  color: #949494;
  font-weight: 500;
}

/*** DESIGN ***/

.section-tag {
  color: #a0a0a0;
}

.design-title {
  font-size: 6rem;
  font-weight: 700;
  max-width: 500px;
}

.project-details p {
  line-height: 1.8;
  color: #1a1b1f;
  margin-top: 1rem;
}

.project-details {
  margin-top: 3rem;
}

.design {
  display: flex;
  flex-direction: column;
  justify-items: center;
  padding-top: 20rem;
  align-items: center;
}

.design-pic {
  width: 800px;
}

.design-img {
  max-width: 100%;
  border: 2px solid #f4f4f4;
}

.design-fig {
  max-width: 600px;
}

.design-subtitle {
  font-size: 20px;
  font-weight: 600;
}

.design-section {
  padding: 0rem 10rem;
}

.wecraftcode {
  margin-top: 10rem;
  width: 100%;
  background-color: #dbe9ff;
  display: flex;
  justify-items: center;
  flex-direction: column;
  align-items: center;
}

.recipe {
  margin-top: 10rem;
  width: 100%;
  display: flex;
  justify-items: center;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}
.design-section {
  display: grid;
}

/*** Media Queries ****/
@media only screen and (max-width: 75em) {
  html {
    font-size: 60%;
  }

  main {
    margin: 8rem;
    padding: 2rem 6rem;
  }

  .section.hero {
    gap: 5rem;
  }

  .hero-img {
    max-width: 30rem;
    max-height: 30rem;
  }

  .section.projects {
    gap: 5rem;
    margin-left: -10rem;
    margin-right: -10rem;
  }
  .design-section {
    padding: 0;
  }
}

@media only screen and (max-width: 60em) {
  .section.hero {
    flex-direction: column-reverse;
  }

  .email {
    font-size: 5rem;
  }
  .section.projects {
    margin-left: -7rem;
    margin-right: -7rem;
  }
}

@media only screen and (max-width: 50em) {
  main {
    margin: 2rem;
  }

  .section.projects {
    display: grid;
    grid-template-columns: 1fr;
  }

  figure {
    margin-bottom: 2rem;
  }
  .section.projects {
    gap: 5rem;
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

@media only screen and (max-width: 40em) {
  main {
    margin: 2rem;
  }

  .tools,
  .skills {
    grid-template-columns: 1fr 1fr;
  }

  .email {
    font-size: 4rem;
  }

  footer {
    flex-direction: column;
    gap: 2rem;
  }
}

@media only screen and (max-width: 30em) {
  .email {
    font-size: 2.75rem;
  }

  .education,
  .work-experiences,
  .tools,
  .skills {
    grid-template-columns: 1fr;
  }
}
