@font-face {
  font-family: 'loader';
  src: url(../fontello/font/fontello.woff);
}

#loader{
  width: 100%;
  height: 100%;
  z-index: 99;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  position: fixed;
}

#loader h2{
  font-size: 4vw;
  font-weight: bold;
  color: #56DFCF;
  font-family: 'loader';
}


header {
  text-align: center;
  position: relative;
  height: 100vh;
}

header.js-fixed {
  height: 110vh;
}

.header-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: start;
}

header h1 {
  font-size: 4rem;
  margin: 0;
}

header h1 p {
  position: relative;
  font: inherit;
  margin: 0;
  width: fit-content;
  font-weight: 800;
  text-align: left;
  line-height: 130%;
  letter-spacing: -0.03em;
}

header h2 {
  max-width: 65ch;
  font-weight: 200;
  color: var(--shade-500);
  margin: 0;
}

header .fixed-header {
  position: absolute;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

header.js-fixed .fixed-header {
  position: fixed;
}

header.js-fixed .fixed-header.scrolled {
  position: absolute;
  top: auto;
  bottom: 0;
}

header .fixed-header:before {
  content: "";
  z-index: -1;
  position: absolute;
  background-color: var(--shade-100);
  width: 100%;
  height: 50%;
  margin: auto;
  bottom: 0;
  left: 0;
}

header .header-text {
  position: relative;
}

.scroll-button {
  position: absolute;
  bottom: 0;
  padding: 2rem 0;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  transition: opacity 250ms;
  font: inherit;
}

.fixed-header.scrolled .scroll-button {
  opacity: 0;
}

.scroll-button .arrow {
  margin-right: 0.25rem;
}

.scroll-button:hover .arrow,
.scroll-button:focus .arrow {
  animation: bounce-top 1.5s ease-in-out infinite both;
}

section:nth-of-type(even) {
  background-color: var(--shade-100);
}

section .container {
  padding: 5rem 0;
}

.articles-section,
.awards-section {
  padding-bottom: 5rem;
}

section:last-of-type .container {
  padding-bottom: 0;
}

.section-link {
  text-align: center;
  margin-top: 5rem;
}

.section-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--shade-500);
}

.section-subtitle {
  font-size: 1.5rem;
  color:#7F8CAA;
  max-width: 60ch;
}

.title-icon {
  display: inline-block;
}

.scrolled .title-icon {
  animation: bounce-top 1s ease-in-out both;
}

.intro a:not([class]) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--grey-color);
}

.project-container {
  margin: 3rem 0;
}

.project {
  display: flex;
  margin: 3rem 0;
}

.project:nth-of-type(even) {
  flex-direction: row-reverse;
}

.project.scrolled {
  animation: fade-in 1s linear both;
}

.project.scrolled .project-content {
  animation: fade-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  opacity: 0.8;
  filter: brightness(45%) grayscale(1);
  transition: filter 1000ms;
  cursor: pointer;
}

.project:hover .project-image img,
.project.active .project-image img,
.project:focus-within .project-image img {
  filter: brightness(100%) grayscale(0);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content p {
  font-size: 1.25rem;
  color: white;
  margin: 0.5rem 0;
  line-height: 135%;
}

.project-title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #eaeaea;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.project-title a {
  color: inherit;
  text-decoration: none;
}

.project-tags {
  display: flex;
  padding: 1rem;
  margin: 0;
}

.project-tags .tag {
  margin-right: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  margin: 0 -1rem;
}

.project-links a {
  color: var(--grey-text);
  margin: 1rem;
  border-radius: 0;
  text-decoration:none;
}

.talk-card {
  flex: 1 0 auto;
  margin: 1.5rem;
}

.talk-card iframe {
  width: 100%;
  min-height: 300px;
  background-color: var(--grey-color);
}

.featured-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, max(300px, 100% / 4)), 1fr)
  );
  gap: 1.5rem;
}

.article,
.card {
  display: flex;
  flex-direction: column;
}

.article.scrolled:nth-of-type(2) {
  animation-delay: 50ms;
}

.article.scrolled:nth-of-type(3) {
  animation-delay: 100ms;
}

.article-image img,
.card-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.8;
  filter: contrast(75%) grayscale(1);
  transition: filter 1000ms, opacity 500ms;
}

.article:hover .article-image img,
.article:focus-within .article-image img,
.card:hover .card-image img,
.card:focus-within .card-image img {
  opacity: 1;
  filter: contrast(100%) grayscale(0);
}

.card:focus-visible {
  outline: auto;
  outline-offset: 2px;
}

.article-content {
  background-color: #eaeaea;
  padding-block: 1rem;
  height: 100%;
}

.card-content {
  background-color: #eaeaea;
  padding-block: 1rem;
  height: 100%;
}

.card-content .card-title {
  margin: 0;
}

.article-site a,
.card-site a {
  text-transform: uppercase;
  color: var(--grey-text);
  font-size: 0.9rem;
  transition: color 500ms;
}

.article-site a:hover {
  color: var(--text-color);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
}

.contact-content .link-btn {
  color: white;
  background-color: black;
  border-radius: 0;
  margin: 1.5rem 0;
  display: block;
  width: fit-content;
}

.links-container {
  flex: 0 1 300px;
   color: white;
  background-color: black;
}

.links-container h3 {
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  color: var(--shade-500);
}

.links-container li {
  margin-bottom: 1rem;
}

.links-container a:hover,
.links-container a:focus {
  text-decoration: underline;
}

.form-container {
  flex: 1 0 auto;
  max-width: 600px;
  width: 100%;
  margin-right: 3rem;
}

.input-container {
  position: relative;
  margin: 1.5rem 0;
}

.input-container .form-input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  caret-color: var(--shade-300);
  border: 1px solid var(--grey-color);
  color: var(--text-color);
  transition: border 500ms;
  padding: 1.75rem 1rem 0.5rem;
  font-size: 1.15rem;
}

.input-container textarea {
  height: 300px;
  resize: none;
  font: inherit;
}

.input-container label {
  display: block;
  position: absolute;
  width: 100%;
  font-size: 1.15rem;
  top: 15px;
  padding: 0.25rem 1rem;
  color: var(--grey-text);
  transform-origin: left;
  user-select: none;
  transition: all 500ms;
}

.input-container .form-input:hover,
.input-container .form-input:focus {
  outline: none;
  border-color: var(--shade-300);
}

.form-input:focus + label,
.focused label {
  top: 0rem;
  font-size: 0.75rem;
  background-color: var(--shade-500);
  color: var(--background-color);
  user-select: auto;
}

footer {
  padding-top: 0;
}

footer.index-footer {
  background-color: #eaeaea;
}

@media screen and (max-width: 960px) {
  header .fixed-header:before {
    height: 51%;
  }
  header h1 {
    font-size: 3rem;
  }
  header h2 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 721px) {
  .project-container {
    margin: 0 -5rem;
  }

  .project {
    justify-content: space-between;
    margin: 0 5rem;
    padding: 5rem 0;
    border-bottom: 1px dashed var(--shade-300);
  }

  .project.scrolled .project-image {
    animation: slide-in-left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .project:nth-of-type(even).scrolled .project-image {
    animation: slide-in-right 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .project-image,
  .project-content-container {
    width: 50%;
  }

  .project:nth-of-type(odd) .project-content-container {
    margin-left: 3rem;
  }

  .project:nth-of-type(even) .project-content-container {
    margin-right: 3rem;
  }

  .project-content p {
    color: var(--text-color);
  }
}

@media screen and (max-width: 720px) {
  header h1 {
    font-size: 2.5rem;
  }

  header h2 {
    font-size: 1.25rem;
  }

  .project,
  .project:nth-of-type(even) {
    flex-direction: column;
  }

  .project-content-container {
    background-color: var(--background-color);
    padding: 2rem;
  }

  .project-links a {
    margin: 1rem auto;
  }
}

@media (prefers-reduced-motion) {
  .project.scrolled,
  .project.scrolled:nth-of-type(odd) .project-image,
  .project.scrolled:nth-of-type(even) .project-image {
    animation: none;
  }
}

/* From Uiverse.io by barisdogansutcu */
.about-btn {
  border: none;
  position: relative;
  width: 200px;
  height: 73px;
  padding: 0;
  z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  -webkit-mask-size: 100%;
  cursor: pointer;
  background-color: transparent;
  transform: translateY(8px);
}

.about-btn:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0px 0 0 0 white;
  transition: all 2s ease;
}

.about-btn:hover:after {
  box-shadow: 0px -13px 56px 12px #ffffffa6;
}

.about-btn span {
  position: absolute;
  width: 100%;
  font-size: 15px;
  font-weight: 100;
  left: 50%;
  top: 39%;
  letter-spacing: 3px;
  text-align: center;
  transform: translate(-50%, -50%);
  color: black;
  transition: all 2s ease;
}

.about-btn:hover span {
  color: white;
}

.about-btn:before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background-color: black;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s ease;
}

.about-btn:hover:before {
  width: 100%;
}

#popupModal1 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  z-index: 10;
}
#popupModal1.active {
  display: block;
}
#popupModal2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  z-index: 10;
}
#popupModal2.active {
  display: block;
}
#popupModal3 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  z-index: 10;
}
#popupModal3.active {
  display: block;
}
#popupModal4 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  border-radius: 10px;
  z-index: 10;
}
#popupModal4.active {
  display: block;
}
#popupModal5 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  border-radius: 10px;
  z-index: 10;
}
#popupModal5.active {
  display: block;
}
#popupModal6 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  display: none;
  border-radius: 10px;
  z-index: 10;
}
#popupModal6.active {
  display: block;
}
