/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@100;500;900&family=Cormorant:ital,wght@0,300;1,300&display=swap');

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Catamaran', sans-serif;
}

:root {
  --drk: #262825;
  --evilez: cubic-bezier(.666,0,.333,1);
}

body {
  transition: 0.3s ease-out;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  overscroll-behavior: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}


h2 {
  font-size: clamp(2.5rem, 1.5323rem + 3.2258vw, 5rem);
  color: var(--drk);
}

h2 span {
  font-family: 'Cormorant', serif;
  font-style: italic;
}

p {
  font-family: 'Cormorant', serif;
  font-style: italic;
}

p a {
  color: white;
}


.bold {
    font-weight: 900;
}

.light {
  font-weight: 100;
}

.name-part {
  position: relative;
  overflow: hidden;
  padding-bottom: 5px;
}

.name-part > span {
  display: block;
  color: var(--drk);

}

#my-name,
#my-title,
#my-location {
  position: relative;
  transform: translate(0px, 300%);
  transition: transform 555ms var(--evilez);
}

#my-name {
  font-size: clamp(1.5rem, 1.3548rem + 0.4839vw, 1.875rem);
}

#my-name.anim-intro {
  transition-delay: 666ms;
  transform: translate(0px, 0%);
}

#my-title.anim-intro {
  transition-delay: 999ms;
  transform: translate(0px, 0%);
}

#my-location.anim-intro {
  transition-delay: 1222ms;
  transform: translate(0px, 0%);
}

.name-part::after {
  content: "";
  display: block;
  position: absolute;
  height: 1px;
  width: 0;
  bottom: 0;
  background-color: var(--drk);
  transform-origin: center;
  transition: all 333ms;
}

.name-part.anim-intro::after {
  transition-delay: 333ms;
  width: 100%;
}

.no-slide {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
}

/* section:not(#projects-desk-view) { */
.top-sec {
  padding: 50px 10vw;
  margin: auto;
  place-items: center;
}

.bottom-sec {
  padding: 15% 10% 25%;
  background-color: var(--drk);
  color: white;
}

.bottom-sec h3 {
  font-family: 'Catamaran', sans-serif;
  font-size: clamp(1.875rem, 1.3427rem + 1.7742vw, 3.25rem);
}

.grid-sec {
  display: flex;
  flex-direction: column;
}

.info-block {
  margin-bottom: 15%;
}

.work-experience {
  margin-bottom: 5%;
}

.work-experience svg {
  max-width: 160px;
  fill: white;
  margin: 10px 0;
}

.work-experience span {
  display: block;
  font-size: 14px;
  opacity: 0.8;
}

#projects-desk-view {
  display: none;
  height: 100vh;
  overflow: hidden;
  left: 0;
  background: white;
  color: black;
}

#projects-mobile-view {
  display: block;
  /* height: 100vh;
  display: flex;
  flex-direction: column;
  background: black;
  color: white; */
}



.pin-wrap {
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 50px 10vw;
}

.pin-wrap > * {
  min-width: 60vw;
  padding: 0 5vw;
}


.pin-mobile-wrap {
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 50px 0vw;
}

.pin-mobile-wrap > * {
  min-width: 90vw;
  padding: 0 5vw;
}

.work-example {
  margin-bottom: 15%;
}

.work-example a {
  position: relative;
  display: block;
}

.work-example a img {
  height: 70vh;
  width: 100%;
  object-fit: cover;
  opacity: 1;
  box-shadow: 5px 5px 50px rgba(0,0,0,0.2);
  transition: all 333ms var(--evilez);
}

.work-example a:hover img {
  box-shadow: none;
}

.launch-site {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -51%);
  padding: 10px 20px;
  border-radius: 50px;
  z-index: 1;
  font-family: 'Catamaran', sans-serif;
  font-weight: 100;
  font-size: 20px;
  background: var(--drk);
  color: white;
  transition: all 333ms var(--evilez);
}

.work-example a:hover .launch-site {
  opacity: 1;
  transform: translate(-50%, -50%);
}

#projects-mobile-view .pin-mobile-wrap .work-example img {
  height: 30vh;
}


.work-example-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.roles-con {
  display: none;
  position: absolute;
  right: 0;
}

.roles-con span,
.we-title {
  background-color: var(--drk);
  color: white;
  font-size: 12px;
  font-family: 'Cormorant', serif;
  padding: 4px 12px;
  border-radius: 50px;
}

.we-title {
  display: inline-block;
  margin-bottom: 2.5%;
  background-color: white;
  color: var(--drk);
}


.contact-links a {
  color: white;
  text-decoration: none;
  font-weight: 100;
  margin-right: 5%;
}

.contact-links a:hover {
  border-bottom: 1px solid white;
}


@media only screen and (min-width: 60em) {

  #projects-desk-view {
    display: flex;
  }

  #projects-mobile-view {
    display: none;
  }

  .pin-wrap > * {
    min-width: 46.46vw;
    margin: 0 5vw;
    padding: 0;
  }

  .bottom-sec {
    padding: 10%;
  }

  .info-sec {
    margin-bottom: 0;
  }

  .grid-sec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10%;
  }

  .roles-con {
    display: block;
  }

  .work-example a:hover img {
    box-shadow: none;
    opacity: 0.4;
  }

  .launch-site {
    display: inline-block;
  }

}
