/* 
Hi, this is Dave Hurwich, if you have any questions feel free to contact me.
Author: David Hurwich
Website: davidhurwich.com
Email: davidhurwich@gmail.com
*/

/*  === Setup / Resets === */
*,
::before,
::after {
  box-sizing: border-box;
}
a {
  color: black;
  text-decoration: none;
  transition: 0.5s;
}

a:hover {
  color: #8ab3ac;
}

html {
  scroll-behavior: smooth;
}

body,
ul {
  padding: 0;
  margin: 0;
}

.index {
  padding-top: 1.25rem;
}

.screenreader-text {
  height: 1px;
  left: -999px;
  position: absolute;
  top: auto;
  width: 1px;
}

.screenreader-text:focus {
  display: inline-block;
  height: auto;
  margin: auto;
  position: static;
  width: auto;
}

img,
picture {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}

/* == Typography === */

h1,
h2,
h3,
h4,
.active {
  font-family: "Fjalla One";
}

body {
  color: #2a2a2a;
  text-rendering: optimizeSpeed;
  font-family: "Nunito", "Arial", sans-serif;
  font-size: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000;
}

footer {
  font-size: 0.9rem;
  text-align: center;
}

#intro h1 {
  font-size: 5rem;
  line-height: 1.1;
}

#poster .fa-solid,
#poster .fa-regular {
  font-size: 5rem;
}

.fa-square-linkedin {
  font-size: 3rem;
}

#poster h2 {
  line-height: 1.5;
  margin-bottom: 0;
}

#scrollButton a {
  color: #000;
}

.poster-highlights {
  line-height: 0;
}
.poster-highlights h2 {
  font-size: 4rem;
}
#poster,
#poster h2 {
  color: #fff;
}

/* == backgrounds == */

body {
  background-color: #fff;
}

#intro {
  background-color: #fff;
}

#poster-items .fa-regular,
#poster-items .fa-solid {
  color: #e1e1e1;
}
#poster {
  background-color: #000;
}

/* === layout === */

header .container,
#intro,
#poster-items,
#who-am-i,
#work,
#education .container,
#contact .container,
#skills {
  max-width: 60rem;
  margin: auto;
}

header .container > * {
  display: grid;
  align-content: center;
}

#resume {
  justify-content: end;
}

ul.teaching {
  columns: 2;
  column-gap: 0.5rem;
}
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.skills li {
  list-style-type: none;
  padding-left: 0;
}

header .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

#contact .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.contact-overview {
  padding-bottom: 3rem;
}

#contact-info {
  text-align: left;
}

.contact-overview {
  grid-column: 1/-1;
}

#poster .poster-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

footer {
  padding: 1rem;
}

#who-am-i,
#work,
#contact,
#education,
#skills {
  padding: 2rem 0;
}

#poster {
  padding: 3.5rem 0;
}

.poster-highlights {
  text-align: center;
}

#education {
  background-color: #eaeaea;
}

#intro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3.5rem;
  padding: 2rem 0 5rem 0;
}

#intro > div {
  display: grid;
  place-content: center;
}

.interaction {
  display: flex;
  place-content: center;
}

#skills h3 {
  font-size: 1.35rem;
  color: #282828;
}

#poster-items > div {
  display: grid;
  place-content: center;
}

#portfolio img {
  box-shadow: 0.1rem 0.1rem 0 #cdcdcd;
}

#poster-items {
  display: grid;
  min-height: 50vh;
}

.poster-highlights {
  grid-column: 1/-1;
  display: grid;
}

#portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

.project-info {
  padding: 0rem 2rem 1rem 2rem;
}

.portfolio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

#bff .splash {
  height: 500px;
  background-image: url(images/BFF-Chrome-Web-App.png);
  background-size: cover;
}

#magic7 .splash {
  height: 500px;
  background-image: url(images/Magic-Seven-Ball-Web-App.png);
  background-size: cover;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cover {
  background-size: cover;
}

/* images */

#bff .image1 {
  background-image: url(images/Projects/BFF/BFF-Application-Wireframe.jpg);
}

.project-image {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-content: center;
  padding: 0 1rem;
}

#bff .image2 {
  background-image: url(images/Projects/BFF/BFF-Persona.png);
}

#bff .image3 {
  background-image: url(images/Projects/BFF/BFF-Chrome-Web-App.png);
}

#magic7 .image1 {
  background-image: url(images/Projects/Magic7/Magic-Seven-Ball-Web-App.png);
}

#genetech .image1 {
  background-image: url(images/Projects/Genetech/Genetech-Wireframe.png);
}

#genetech .image2 {
  background-image: url(images/Projects/Genetech/Genetech-Persona.png);
}

#genetech .image3 {
  background-image: url(images/Projects/Genetech/Genetech-Mockup.png);
}

.project-images .image {
  aspect-ratio: 1/1;
  height: 200px;
}

#contact {
  text-align: center;
}

#contact .container {
  display: grid;
}

.rounded-image {
  clip-path: circle(50%);
}

#intro img {
  width: 100%;
  max-width: 20rem;
}
.download-case {
  grid-column: 1/-1;
  text-align: center;
}

.download-button {
  background-color: #82dacb;
  color: #fff;
}

.project-overview .non-round {
  border-radius: 0;
}

.image {
  border: 0.1rem gray solid;
}

.download-case {
  display: flex;
  justify-content: center;
}

h1 {
  margin-bottom: 1rem;
}

.header {
  background-color: rgb(255, 255, 255, 0.95);
  border-bottom: 0.1rem #878787 solid;
  left: 0;
  padding: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.resume {
  border: 0.25rem solid #406084;
  box-shadow: 0.15rem 0.15rem 0rem #fff;
  color: #406084;
  float: right;
  transition: 1s;
}

.resume:hover {
  background-color: rgb(144, 225, 252, 0.4);
  color: #406084;
}
/* == Extras === */

ul {
  list-style-type: none;
  padding: 0;
}

.button {
  border-radius: 2rem;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 1rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
}

.button-aqua-marine {
  color: #fff;
  background-color: #82dacb;
  transition: all 1s;
  box-shadow: 0px 21px 25px -15px rgba(160.99999999999994, 96, 255, 0.5);
}

.button-black-ring {
  color: #fff;
  padding: 1rem 3rem;
  background-color: transparent;
  border: 0.35rem solid #fff;
  transition: 1s;
}

.button-black-ring:hover {
  background-color: #525252;
  color: #fff;
}

.button-aqua-marine:hover {
  background-color: #8ab3ac;
  color: #fff;
}

#intro::selection,
#who-am-i::selection {
  background-color: #000;
  color: #fff;
}

#poster::selection {
  background-color: #585858;
}

/* === Utility Classrs === */
.margin-bottom-small {
  margin-bottom: 1rem;
}

.margin-bottom-mediun {
  margin-bottom: 1.25rem;
}

.margin-bottom-large {
  margin-bottom: 1.5rem;
}

.margin-bottom-x-large {
  margin-bottom: 2.5rem;
}

.project img {
  border-radius: 0.4rem;
}

/*  === Javascript === */
@media screen and (min-width: 59.99rem) {
  .fade-in-on-scroll {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

#scroll-area {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1000;
}

#scrollButton {
  aspect-ratio: 1/1;
  background-color: transparent;
  border-radius: 50%;
  display: none; /* hidden initially */
  font-size: 2rem;
  opacity: 0;
  a {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateY(0.25rem);
  }
}

#scrollButton.visible {
  display: block;
  opacity: 1;
}

.fade-out {
  animation: fade-out 0.5s;
}

.fade-in {
  animation: fade-in 0.5s;
}

/* === Animations === */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

header {
  display: block;
  padding: 1rem;
}
.portfolio-page header .container {
  max-width: inherit;
}

.portfolio {
  position: relative;
}

.fa-angle-down {
  font-size: 4rem;
  display: block;
  margin: auto;
}

.next-project {
  position: absolute;
  bottom: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.portfolio-page a:hover {
  background-color: #8ab3ac;
  color: #fff;
}

.project-info h2 {
  margin: 0;
  padding: 1rem 1rem;
  width: fit-content;
  margin-left: -1rem;
}

.portfolio:nth-child(odd) h2 {
  background-color: #ffffd6;
}

.portfolio:nth-child(even) h2 {
  background-color: #d6faff;
}

.portfolio-page a.next-project-link {
  padding: 0.5rem 2rem;
}
.portfolio-page a.next-project-link:hover {
  background-color: rgb(0, 0, 0, 0.75);
}

.project-specs li {
  font-size: 1rem;
}

.project-image-container {
  background-color: #f3f3f3;
  padding: 1rem;
  border-radius: 1rem;
  width: 100%;
}

.project-image-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 1rem;
}
