* {
  box-sizing: border-box;
}

/* brand color palette */
:root {
  --primary: rgb(242, 5, 5);
  --secondary: rgb(242, 34, 51);
  --tertiary: rgba(89, 89, 89, 1);
  --dark: rgba(13, 13, 13, 1);
  --light: rgba(217, 217, 217, 1);
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: var(--primary);
  background-color: var(--dark);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

/* Header/Navigation Styling */

header {
  padding: 15px 6% 15px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--dark);
  box-shadow: 0 5px 35px rgba(146, 204, 206, 0.4);
  position: sticky;
  top: 0;
}

header h1 {
  color: var(--dark);
  background-color: var(--primary);
  padding: 5px 1% 5px 6%;
  margin: 0;
  font-size: 4vw;
  line-height: 1;
}

nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  padding: 5px 10px;
  color: var(--light);
  margin-right: 10px;
  background-image: linear-gradient(270deg, var(--secondary) 0%, var(--secondary) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: bottom;
  transition: all 0.25s ease-in;
  font-size: 1.4rem;
}

nav a:hover {
  background-size: 100% 100%;
  color: var(--dark);
}

nav a:last-child {
  margin-right: 0;
}

/*End Header/Navigation Style */


main {
  margin-top: 20px;
  margin-bottom: 45px;
}

.hero-banner {
  background: var(--light);
  background-image: url("../images/hero-bg.jpg"), linear-gradient(180deg, var(--secondary) 0%, var(--tertiary) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: hard-light;
  min-height: 30vh;
  color: var(--light);
  padding: 2% 6%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}

.hero-banner div {
  flex: 0 0 90%;
}

.hero-banner h2 {
  background-color: var(--secondary);
  color: var(--light);
  margin: 0;
  padding: 5px 10px;
  font-size: 2.3rem;
  line-height: 1.2;
  display: inline;
}

.page-wrapper {
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
}

.page-section {
  margin: 25px 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}

.page-section > h2 {
  flex: 0 0 20%;
  text-align: left;
  margin: 15px;
  border-bottom: 4px solid var(--secondary);
  font-size: 4vw;
  line-height: 1.1;
}
.about-me {
  display: inline-flex;
  justify-content: space-around;
}

.about-img {
  background-image: url(../images/headshot.jpg);
  background-size: cover;
  margin-right: 10px;    
  height: 300px;
  width: 200px;
}

.about-text {
  width: 70%;    
}

.page-section p {
  margin-bottom: 20px;
}

.grid-container {
  display: grid;
  column-gap: 10px;
  row-gap: 10px;
  grid-auto-flow: dense;
  /* create a 12 column grid */
  grid-template-columns: repeat(12, 1fr);
  /* set each row to be atleast 150px tall and a max of 1fr */
  grid-auto-rows: minmax(150px, 1fr);
}

.grid-item {
  border: 5px solid var(--light);
  grid-column: span 3;
  background-color: var(--dark);
  color: var(--secondary);
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 20px 0;
  text-decoration: none;
  background-blend-mode: soft-light;
  background-size: 100%;
  transition: all 0.5s;
  font-size: 0.9rem;
}

/* feature first portfolio item */
.grid-item:first-child {
    grid-column: span 6;
    grid-row: span 2;
}

.grid-item:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.grid-item div {
  background-color: var(--dark);
  padding: 8px 10px;
}

.grid-item h3 {
  font-size: 1.6rem;
}

.contact address {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.contact address a {
  color: var(--light);
  padding: 5px;
  text-decoration: none;
  font-size: 1.3rem;
  font-style: normal;
  background-image: linear-gradient(270deg, var(--primary) 0%, var(--primary) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: bottom;
  transition: all 0.25s ease-in;
  margin: 0 0.2rem 0.1rem;
  display: inline-block;
}

.contact address a:hover {
  background-size: 100% 88%;
  color: var(--dark);
}

/* PORTFOLIO PROJECT IMAGES */
.work-day-scheduler {
  background-image: url("../images/work-day-scheduler.jpg");
}

.weather-dashboard {
  background-image: url("../images/weatherdashboard.png");
}

.code-quiz {
  background-image: url("../images/code-quiz.png");
}

.note-taker {
  background-image: url("../images/note-taker.jpg");
}

.covid-positivity {
  background-image: url("../images/covidpositivity.png");
}

.dangles {
  background-image: url('../images/dangles.jpg');
  background-size: cover;
}

.mind-decks {
  background-image: url('../images/mind-decks.jpg');
}

/* END PORTFOLIO PROJECT IMAGES */

@media screen and (max-width: 980px) {
  header {
    padding: 0 0 10px 0;
    justify-content: center;
    text-align: center;
  }

  header h1 {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 10vw;
  }

  header nav {
    justify-content: center;
  }

  .page-section > h2,
  .page-section > div {
    flex: 0 0 100%;
  }

  .page-section > h2 {
    border-right: none;
    border-bottom: 4px solid var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: left;
    font-size: 7vw;
  }
}

@media screen and (max-width: 768px) {
  .grid-item,
  .grid-item:first-child {
    grid-column: 1 / -1;
  }

  .grid-container {
    grid-auto-rows: minmax(200px, 1fr);
  }

  .hero-banner {
    justify-content: center;
    text-align: center;
  }

  .contact address {
    flex-direction: column;
    align-items: flex-start;
  }
}
