/* -----------GENERAL----------- */

:root {
  --primary: #bea30c;
  --secondary: #fff;
  --main-font: "Lato", sans-serif;
  --secondary-font: "Roboto Condensed", sans-serif;
}
html {
  font-family: var(--main-font);
}
a {
  text-decoration: none !important;
}
.home-parent::after, .clients-parent::after, .about-parent::after, .casestudies-parent::after, .contact-parent::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: -1;
  display: block;
}
.section-header h1 {
  position: absolute;
  top: 50px;
  right: 50px;
  border-right: var(--primary) 5px solid;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: right;
  font-size: 1.6em;
  font-family: var(--main-font);
  font-weight: 600 !important;
  letter-spacing: 0.2em;
  color: var(--primary) !important;
}
/* -----------NAV----------- */

.nav-parent {
  position: fixed;
  left: -300px;
  top: 35vh;
  z-index: 2;
  animation: slideNav 1.5s ease-in-out 4s forwards;
}
@keyframes slideNav {
  from {
    left: -300px;
  }
  to {
    left: 0;
  }
}
.nav-parent a svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  stroke: var(--primary);
  stroke-width: 3 !important;
}
.nav-parent a svg g path {
  stroke-width: 0.5px !important;
}
.nav-parent a {
  text-decoration: none;
  font-family: var(--main-font);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--secondary);
}
.nav-parent a span {
  display: inline-block;
  padding-left: 10px;
}
.nav-link-custom {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link-custom:hover {
  background: var(--primary);
  padding: 20px;
  margin-left: -30px;
  padding-left: 30px;
  color: var(--secondary);
}
.nav-link-custom:hover svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  stroke: var(--secondary);
  stroke-width: 3 !important;
}
.nav-link-custom.active span {
  color: var(--secondary) !important;
}
.nav-link-custom.active {
  background-color: var(--primary);
  padding: 20px;
  margin-left: -30px;
  padding-left: 30px;
}
.nav-link-custom.active svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
  stroke: var(--secondary);
  stroke-width: 3 !important;
}
/* -----------FIXED LOGO----------- */

.intro-bg-parent {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  background: rgba(0, 0, 0, 1);
  z-index: 999;
  display: block;
  animation: fadeInBG 1s ease-in-out 2.5s forwards
}
.logo-parent {
  position: fixed;
  bottom: 40vh;
  width: 100vw;
  z-index: 1000;
  padding-bottom: 40px;
  animation: dropLogo 1.5s ease-in-out 2s forwards;
}
@keyframes fadeInBG {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fadeInLogo {
  from {
    opacity: 0;
    width: 350px;
  }
  to {
    opacity: 1;
    width: 200px;
  }
}
@keyframes dropLogo {
  from {
    bottom: 40vh;
  }
  to {
    bottom: 0;
  }
}
.logo-parent img.desktop-logo {
  width: 350px;
  opacity: 0;
  animation: fadeInLogo 1.5s ease-in-out forwards
}
.logo-parent .mobile-logo {
  opacity:0;
  width: 0;
}
/* -----------HOME----------- */

.home-parent>* {
  position: relative;
  z-index: 2;
}
.home-parent {
  position: relative;
  background-image: url("https://assets.codepen.io/2744809/CodeAndStyle-BG-Home.jpg");
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
}
.home-parent h1 {
  color: var(--primary);
  font-family: var(--primary-font);
  display: block;
  z-index: 4;
  font-weight: 100;
  font-size: 3rem;
  max-width: 600px;
  text-align: right;
  opacity: 0;
  animation: fadeInIntro 1.5s ease-in-out forwards;
  animation-delay: 3s;
}
@keyframes fadeInIntro {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.home-parent span {
  color: var(--secondary);
  font-family: var(--secondary-font);
  font-weight: 500;
}
.home-parent span.amp {
  color: var(--primary);
}
/* -----------CLIENTS----------- */

.clients-parent {
  position: relative;
  height: 100vh;
  background-image: url("https://assets.codepen.io/2744809/CodeAndStyle-BG-Clients.jpg");
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
}
.clients-parent>* {
  position: relative;
  z-index: 2;
}
.clients-parent .container .col-6 img {
  width: 200px;
}
.clients-parent .container .col-6 img.logo-aig {
  width: 100px;
}
.clients-parent .container .col-6 img.logo-hbo {
  width: 100px;
}
/* -----------ABOUT----------- */

.about-parent {
  position: relative;
  background-image: url("https://assets.codepen.io/2744809/CodeAndStyle-BG-About.jpg");
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
}
.about-parent>* {
  position: relative;
  z-index: 2;
}
.about-parent p {
  color: var(--secondary);
  font-family: var(--main-font);
  font-size: 1.2em;
  font-weight: 100;
}
/* -----------READ MORE----------- */

.toggle-input, .toggle-input2 {
  display: none;
}
.collapsible-content, .collapsible-content2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.toggle-input:checked~.collapsible-content, .toggle-input2:checked~.collapsible-content2 {
  max-height: 200px;
}
.toggle-button, .toggle-button2 {
  display: inline-block;
  color: var(--primary);
  padding: 6px 30px;
  border: var(--primary) 2px solid;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--main-font);
  font-weight: 400;
  letter-spacing: 0.2em;
}
.toggle-button::before, .toggle-button2::before {
  content: "LEARN MORE";
}
.toggle-input:checked~.toggle-button::before, .toggle-input2:checked~.toggle-button2::before {
  content: "CLOSE";
}
/* -----------CASE STUDIES----------- */

.casestudies-parent {
  position: relative;
  background-image: url("https://assets.codepen.io/2744809/CodeAndStyle-BG-CaseStudies2.jpg");
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
}
.casestudies-parent .container {
  max-width: 100%;
}
/*.casestudies-parent img {
  max-width:500px;
  border: var(--primary) 2px solid;
}
.casestudies-parent .container {
  max-width:1100px;
}
.casestudies-parent h3 {
  color: var(--primary);
  font-family: var(--main-font);
  font-size:1.6em;
  font-weight:400;
}
.casestudies-parent p {
  color: var(--secondary);
  font-family: var(--main-font);
  font-size:1.2em;
  font-weight:100;
}
.casestudies-parent .row {
  margin-top:40px;
}
*/

/* -----------CASE STUDIES CAROUSEL----------- */

.carousel {
  margin: 0 auto;
}
.carousel-cell1 {
  width: 50%;
  height: 650px;
  /* flex-box, center image in cell */
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  flex-direction: column;
}
.carousel-cell1 img {
  display: block;
  max-width: 600px;
  max-height: 100%;
  /* dim unselected */
  opacity: 0.3;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  -webkit-transform: scale(0.85);
  transform: scale(0.85);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s, transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
}
.carousel-cell1.is-selected img {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-filter: none;
  filter: none;
  border: 2px solid #bea30c;
}
.carousel-cell1 p.project-name {
  opacity: 0.3;
  font-family: var(--main-font);
  color: var(--primary);
  text-align: center;
  font-weight: 300;
  font-size: 1.8em;
  -webkit-filter: blur(5px);
  filter: blur(5px);
}
.carousel-cell1.is-selected p.project-name {
  opacity: 1;
  filter: none;
}
.carousel-cell1 p.project-desc {
  font-family: var(--main-font);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  opacity: 0.3;
  max-width: 600px;
  font-weight: 100;
  -webkit-filter: blur(5px);
  filter: blur(5px);
}
.carousel-cell1.is-selected p.project-desc {
  opacity: 1;
  display: block;
  filter: none;
}
.carousel-cell1 a.project-link {
  display: inline-block;
  color: var(--primary);
  padding: 6px 30px;
  border: var(--primary) 2px solid;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--main-font);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-decoration: none;
  opacity: 0.3;
  -webkit-filter: blur(5px);
  filter: blur(5px);
}
.carousel-cell1.is-selected a.project-link {
  opacity: 1;
  filter: none;
}
.carousel-cell1 a.project-link:hover {
  color: var(--secondary);
  border: var(--secondary) 2px solid;
}
.flickity-prev-next-button.next {
  right: 20% !important;
}
.flickity-prev-next-button.previous {
  left: 20% !important;
}
.flickity-prev-next-button {
  background: var(--primary) !important;
}
.flickity-prev-next-button .arrow {
  fill: var(--secondary) !important;
}
/* -----------CONTACT----------- */

.contact-parent {
  position: relative;
  background-image: url("https://assets.codepen.io/2744809/CodeAndStyle-BG-Contact.jpg");
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
  font-family: var(--main-font);
  color: var(--secondary);
}
.contact-parent .container {
  max-width: 1100px;
}
.contact-parent .headshot {
  max-width: 100%;
  margin-bottom: 30px;
  border: var(--primary) 2px solid;
}
.contact-parent h1 {
  font-family: var(--main-font);
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: var(--secondary);
}
.contact-parent h3 {
  font-family: var(--main-font);
  font-weight: 700;
  letter-spacing: 0.2rem;
  font-size: 1em;
  color: var(--primary);
}
.contact-parent p {
  padding-bottom: 50px;
  color: var(--secondary);
  font-weight: 100;
  font-size: 1.1em;
}
.contact-parent span {
  font-family: var(--main-font);
  color: var(--secondary);
  padding-left: 20px;
}
.contact-parent .contact-icon {
  max-width: 35px;
}
.contact-parent button {
  color: var(--primary);
  padding: 6px 30px;
  border: var(--primary) 2px solid;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--main-font);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-decoration: none;
  background: none;
}
.contact-parent button:hover {
  color: var(--secondary);
  border: var(--secondary) 2px solid;
  background: none;
}
/* -----------MEDIA QUERIES----------- */

@media screen and (max-width:1050px) {
  section {
    background-attachment: scroll !important;
  }
  .nav-parent a span {
    display: none;
  }
  .nav-parent {
    top: 30vh;
  }
  @keyframes slideNav {
    from {
      left: -300px;
    }
    to {
      left: -10px;
    }
  }
  .logo-parent {
  position: fixed;
  top: 35vh;
  width: 100vw;
  z-index: 1000;
  padding-top: 25px;
  pointer-events: none;
  animation: moveLogo 0.5s ease-in-out 5.5s forwards;
}
.logo-parent .mobile-logo {
  opacity:0;
  animation: fadeInLogoMobile 0.5s ease-in-out 6s forwards;
}
.logo-parent img.desktop-logo {
  width: 350px;
  opacity: 0;
  animation: fadeInLogo 1.5s ease-in-out forwards, fadeOutLogo 1.0s ease-in-out 2.5s forwards;
}


  @keyframes fadeInLogo {
    from {
      opacity: 0;
      width: 350px;
    }
    to {
      opacity: 1;
      width: 150px;
    }
  }
  @keyframes fadeInLogoMobile {
    from {
      opacity: 0;
      width: 0;
      
    }
    to {
      opacity: 1;
      width: 50px;
    }
  }
  @keyframes fadeOutLogo {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  @keyframes moveLogo {
    from {
      top:35vh;
    }
    to {
      top: 0px;
      width: 150px;
      left: -105px;
    }
  }




  .section-header h1 {
    position: absolute;
    top: 30px;
    right: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.3em;
  }
  .home-parent h1 {
    font-size: 1.7rem;
    max-width: 330px;
  }
  .clients-parent .container .col-6 img {
    width: 100px;
  }
  .clients-parent .container .row {
    max-width: 300px;
    margin-right: -6em;
  }
  .clients-parent .container .col-6 img.logo-aig, .clients-parent .container .col-6 img.logo-hbo {
    width: 70px;
  }
  .about-parent p {
    font-size: 1.0em;
    max-width: 300px;
    margin-left: 75px;
    font-weight: 300;
  }
  .toggle-button, .toggle-button2 {
    display: none;
  }
  .toggle-input:checked~.collapsible-content, .toggle-input2:checked~.collapsible-content2 {
    max-height: 400px;
  }
  .casestudies-parent {
    padding-top: 120px;
    padding-bottom:100px;
  }
  .carousel {
    padding-left: 60px;
  }
  .carousel-cell1 {
    width: 100%;
    height: 600px;
  }
  .carousel-cell1 img {
    max-width: 300px;
  }
  .carousel-cell1 p.project-desc {
    font-size: 10pt;
    max-width: 285px;
    font-weight: 300;
  }
  .carousel-cell1 p.project-name {
    max-width: 300px;
  }
  .flickity-page-dots {
    display: none;
  }
  .flickity-prev-next-button.next {
    right: 20% !important;
    top: 105%;
  }
  .flickity-prev-next-button.previous {
    left: 34% !important;
    top: 105%;
  }
  .contact-parent {
    padding-top: 150px;
    padding-bottom: 100px;
  }
  .contact-parent .container {
    padding-left: 80px;
    max-width: 1000px;
  }
  .contact-parent p {
    padding-bottom: 50px;
    color: var(--secondary);
    font-size: 0.9em;
    padding-top: 20px;
    font-weight: 300;
  }
  .contact-parent h3 {
    font-size: 0.8em;
  }
  .contact-parent span {
    font-size: 0.9em;
    display:none;
  }
  .contact-parent .flex-column {
    flex-direction: row !important;
  }
}
@media screen and (max-width:500px) {
  .contact-parent .container {
    padding-left: 80px;
    max-width: 400px;
  }
  .casestudies-parent .container {
    align-items: flex-start !important;
  }
}