/* Universal Selectors */
* {
  margin: 0;
  padding: 0;
  color: rgb(75, 135, 240);
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  text-decoration: none;
  line-height: 1.5em;
}

/* Grid  */
main {
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr auto;
}

/* typography */
h1 {
  display: inline-block;
  font-size: 1.5rem;
}

.projects p,
h2,
.about p,
h2,
.resume p,
h2,
.responsive-design p,
h2 {
  padding: 0 1em 1em 0.5em;
  color: white;
}
h3 {
  display: inline;
}
/* typo end */

/* html selectors */
a {
  margin: 1em;
  transition: all 0.3s ease-in-out;
}

img {
  border-radius: 6px;
}

article {
  position: relative;
}

span {
  font-family: cursive;
  font-size: 1.5em;
}

a:hover {
  color: white;
}

figcaption a {
  color: green;
}

figcaption {
  margin-bottom: 3em;
}

/* navigation */
.avatar {
  padding: .8em;
}
.nav-bar {
  width: 100%;
  background-color: rgb(7, 7, 47);
  grid-column: 1 / 5;
}

.nav-items {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  text-align: end;
}
/* nav end */

/* SECTIONS */
/* hero */
#hero {
  width: 100%;
  grid-column: 1 / 5;
  background-image: url(./images/02-hero-bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 16rem;
}

.hero-title {
  position: absolute;
  left: 75%;
  top: 55%;
  font-size: 2rem;
  background-color: rgb(250, 253, 254);
  border-radius: 8px;
  padding: 0 0.2em;
}
/* about */
.about {
  background-color: rgb(7, 7, 47);

  grid-column: 2 / 5;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.about-title {
  position: absolute;
  top: 35%;
  left: 0;
  padding: 0 0.2em;
  font-size: 1.3em;
  background-color: rgb(250, 253, 254);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
/* resume */
.resume {
  background-color: rgb(7, 7, 47);
  position: relative;
  grid-column: 2 / 5;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.resume-title {
  position: absolute;
  top: 35%;
  left: 0;
  padding: 0 0.2em;
  font-size: 1.3em;
  background-color: rgb(250, 253, 254);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
/* responsive design */
.responsive-design {
  background-color: rgb(7, 7, 47);
  position: relative;
  grid-column: 2 / 5;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.responsive-design-title {
  position: absolute;
  left: 0;
  top: 35%;
  padding: 0 0.2em;
  font-size: 1.3em;
  background-color: rgb(250, 253, 254);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
/* PROJECTS */
.projects {
  background-color: rgb(7, 7, 47);
  position: relative;
  grid-column: 1 / 2;
  grid-row: 3 / 6;
  text-align: center;
}
.projects p {
  padding: 3em 1em;

}
/* css code snippets */
.project-code {
  position: absolute;
  left: 50%;
  top: 4%;
  padding: 0 0.2em;
  background-color: white;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
/* simple counter  */
.project-counter {
  position: absolute;
  left: 48%;
  bottom: 41%;
  padding: 0 0.2em;
  background-color: white;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* footer */
.footer {
  background-color: rgb(7, 7, 47);
  grid-column: 1 / 5;
  height: 500px;
}

/* contact  */
.contact-info {
  text-align: center;
  line-height: 2em;
  font-size: 1.4em;
  margin-top: 3em;
}
.contact-info h2 {
  display: inline-block;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  color: rgb(249, 249, 249);
}

.contact-info h2:hover {
  color: rgb(75, 135, 240);
}

.external-links {
  text-align: center;
  margin-top: 8em;
}

.copyright h6 {
  text-align: center;
  margin-top: 3em;
  color: white;
}

/* media queries */


@media (max-width: 1100px) {
    main {
      display: block;
      gap: 0;
  }

  .contact-info {
    margin: 0;
    padding-bottom: 3em;
  }

  .hero-title {
    position: absolute;
    left: 35%;
    top: 55%;
    font-size: 2rem;
    background-color: rgb(250, 253, 254);
    padding: 0 0.2em;
  }

  .about {
    border-radius: 0;
  }

  .about-title {
    position: absolute;
    top: 25%;
    left: 0;
    padding: 0 0.2em;
    font-size: 1.3em;
    background-color: rgb(250, 253, 254);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }

  .resume {
    border-radius: 0;
  }

  .resume-title {
    position: absolute;
    top: 25%;
    left: 0;
    padding: 0 0.2em;
    font-size: 1.3em;
    background-color: rgb(250, 253, 254);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }

  .responsive-design {
    border-radius: 0;
  }

  .responsive-design-title {
    position: absolute;
    left: 0;
    top: 25%;
    padding: 0 0.2em;
    font-size: 1.3em;
    background-color: rgb(250, 253, 254);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }

  .project-code {
    position: absolute;
    left: 50%;
    top: 4%;
    padding: 0 0.2em;
    background-color: white;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .project-hex {
    position: absolute;
    left: 51%;
    bottom: 25%;
    padding: 0 0.2em;
    background-color: white;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  
}
