/*************************************************************************************
 * 1. Common Styles
 ************************************************************************************/

:root {
  --font-body: 'Source Sans Pro';
  --font-heading: "Alegreya", Georgia, serif, Helvetica, Arial, Verdana, sans-serif;
  --gray-purple-dark: #292831;
  --gray: #A1A1A1;
  --grid-gap: 2.5rem;
}

/* ----------------------------------------------------
   Base Elements
---------------------------------------------------- */
html, body {
  overflow-x: hidden;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  overflow-y: scroll;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  font: 1.05rem/1.5rem var(--font-body);
  background: #fefefe;
}

a {
  color: var(--gray-purple-dark);
}

a:hover {
  color: #888;
  text-decoration: underline;
}

a:focus,
a:active {
  outline: none;
}

p {
  margin: 0.75rem 0;
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  color: #444;
}

ul,
ol {
  display: block;
  margin-bottom: 1.5em;
  color: #444;
}

.mt-0 { margin-top:0 !important; }

/* ----------------------------------------------------
   Headings
---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-purple-dark);
  font-family: var(--font-heading);
  margin: 0 0 2.5rem 0;
  font-weight: normal;
  line-height: 1.1;
}

h1 {
  margin: 0 0 2rem;
  font-size: 2.5rem;
}

h2 {
  margin: 1rem 0 0.25rem;
  font-size: 2rem;
  color: var(--gray-purple-dark);
}

h2.section-header {
  margin: 0 0 4rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
}

h3 {
  font-size: 1.75rem;
}

/* ----------------------------------------------------
   Images
---------------------------------------------------- */
img {
  max-width: 100%;
  min-width: 100%;
  width: auto;
  height: auto;
  border: none;
  vertical-align: bottom;
  box-sizing: content-box;
  -ms-interpolation-mode: bicubic;
}

.img-border {
  border: 1px solid #eee;
}

/* ----------------------------------------------------
   Layout & Animation
---------------------------------------------------- */
.wrapper {
  margin: 2rem 1rem;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.animate {
  animation: slide-down 1s forwards;
}

.section li {
  margin: 0.25rem 0 0.5rem;
}

/* ----------------------------------------------------
   Navigation
---------------------------------------------------- */
.navigation-items {
  grid-column: 3 / 12;
  text-align: right;
  margin-bottom: 4rem;
}

.navigation-items a {
  position: relative;
  margin: 0 0.75rem;
  padding: 1rem 0 0.4rem;
  color: #656565;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
}

.navigation-items a:after {
  bottom: 0;
  width: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: var(--gray-purple-dark);
  transition: width 0.3s ease, left 0.3s ease;
}

.navigation-items a:hover:after {
  width: 100%;
  left: 0;
}

.navigation-items .current:after {
  bottom: 0;
  width: 100%;
  left: 0;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  background: var(--gray-purple-dark);
}

.navigation-items a.btn {
  border: 1px solid #999;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: all 0.4s;
}

.navigation-items a.btn:hover {
  background: #eee;
}

.navigation-items a.btn:hover:after {
  content: none;
}

/* ----------------------------------------------------
   Home - Intro
---------------------------------------------------- */
.name,
.lede,
.lede p {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
}

.name {
  margin: 0 0 0.5rem;
  color: #656565;
}

/* ----------------------------------------------------
   About
---------------------------------------------------- */
.section-about h1 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.section-about .avatar {
  width: 60%;
  margin: 2rem auto;
}

.section-about .avatar img {
  border-radius: 43% 57% 42% 58% / 55% 47% 53% 45%;
}

/* ----------------------------------------------------
   Sections & Columns
---------------------------------------------------- */
.section-process,
.section.overview,
.section.col-3,
.section.col-2 {
  margin: 4rem 0 0;
}

.section.col-2.stacked.top {
  margin: 4rem 0 0;
}

.section.col-2.stacked,
.section.section-project_img.stacked {
  margin: 0;
}

.section-process div,
.section.col-3 div,
.section.col-3 div,
.section.col-2 div,
.section-project_img {
  margin: 0 0 2rem;
}

.section-project_img img,
img {
  border-radius: 20px;
}

.section .step {
  margin: 1rem 0 2rem;
  font-size: 3rem;
  font-family: var(--font-body);
  font-weight: 200;
  color: #aaa;
}

h2.section-header span {
  position: relative;
  left: 2.5rem;
}

h2.section-header span:after {
  position: absolute;
  top: 8px;
  left: -4.5rem;
  content: '';
  width: 28px;
  height: 1.5px;
  margin: 0 2rem;
  background: #aaa;
}

/* ----------------------------------------------------
   Projects
---------------------------------------------------- */
.section-work {
  position: relative;
  margin: 0 0 3rem;
}

.section-work .project {
  margin: 0 0 4rem;
}

.section-work .project .project-desc h2 {
  font-size: 1.75rem;
}

.section-work .project .project-desc p span {
  color: #656565;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.swiper-wrapper {
  height: auto !important;
}

.swiper {
  width: 107%;
  overflow: visible !important;
  padding: 2rem 0;
  grid-column: 1 / 13 !important;
  margin-right: -2rem !important;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  height: auto !important;
}

.swiper-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 1rem 0 0.5rem;
  gap: 0.75rem;
  grid-column: 2 / 12;
}

.swiper-button-prev,
.swiper-button-next {
  position: static !important;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border-radius: 6px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 22px !important;
  color: #222;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #f4f4f4;
  border-color: #999;
}

.card-item {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item__link,
.card-item__link:hover {
  text-decoration: none;
}

.card-item__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-desc {
  padding: 0.5rem 2rem 0;
  flex: 0 0 auto;
}

.project-desc.more {
  margin-top: auto;
  padding-top:1.5rem;
}

.card-item__media {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  padding-bottom: 74%;
  position: relative;
  transition: opacity 0.3s ease-out;
}
.card-item__media img {
border-radius: 20px 20px 0 0;  
}

.card-item__media-image {
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  position: absolute;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-out;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: auto;
}

@media (min-width: 861px) {
  .card-item:hover .card-item__media-image {
    transform: scale(1.055);
    cursor: pointer;
  }
}

/* ----------------------------------------------------
   Buttons & Icons
---------------------------------------------------- */
.more {
  margin: 0 0 1.75rem;
  display: inline-block;
  color: #444;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.icon {
  display: flex;
  align-items: center;
}

.icon.accessibility:before,
.icon.code:before,
.icon.ui:before,
.icon.detail:before {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  width: 50px;
  height: 38px;
  margin-right: 0.5rem;
}

.icon.accessibility:before { background-image: url('images/icon-acc.svg'); }
.icon.code:before { background-image: url('images/icon-code.svg'); }
.icon.ui:before { background-image: url('images/icon-ui.svg'); }
.icon.detail:before { background-image: url('images/icon-detail.svg'); }

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
footer {
  grid-column: 2 / 12;
  margin: 2rem 0 0;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid #ddd;
}

.copyright,
.social-links {
  grid-column: 2 / 12;
  text-align: center;
}

.copyright p {
  color: #555;
  font-size: 0.9rem;
}

.copyright span {
  position: relative;
  top: 0.1rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a {
  margin: 0 0.25rem 0;
  padding: 0.5rem 0.5rem 0;
  transition: all 250ms ease-in-out;
}

/* ----------------------------------------------------
   Columns
---------------------------------------------------- */
.col-3 strong {
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
}

/* ----------------------------------------------------
   Dark Mode
---------------------------------------------------- */
.dark-mode {
  background: #292831;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode .swiper-button-prev::after,
.dark-mode .swiper-button-next::after { color: #eee; }

.dark-mode .more { stroke: #eee; }

.dark-mode a { color: #aaa; }

.dark-mode a:hover { color: #888; }

.dark-mode .card-item { border: 1px solid #494850; }

.dark-mode ul { color: #eee; }

.dark-mode p,
.dark-mode footer { color: #eee; }

.dark-mode footer .social-links svg { stroke: #eee; }

.dark-mode footer { border-color: #444352; }

.dark-mode h2.section-header span:after { background-color: #575663; }

.dark-mode .section-work .project .project-desc p span,
.dark-mode .navigation-items a,
.dark-mode .name,
.dark-mode .more { color: #ccc; }

.dark-mode .navigation-items a:after { background-color: #575663; }

.dark-mode .section .step { color: #696975; }
.dark-mode .more svg { stroke: #eee; }

/* ----------------------------------------------------
   Scroll Button
---------------------------------------------------- */
.button {
  z-index: 999;
  position: fixed;
  bottom: 0.75rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  margin: 0.5rem;
  background: var(--gray-purple-dark);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  overflow: hidden;
  cursor: pointer;
  transition: 0.75s;
  box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.4);
}

.button .icon {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  height: 72px;
  padding: 10px 0;
  transition: 0.75s;
}

.button:hover { transform: scale(1.08); }

.button svg { stroke: #eee; }

.dark-mode .button {
  background: #fff;
  box-shadow: 0px 0px 18px rgba(255, 255, 255, 0.45);
}

.dark-mode svg { stroke: var(--gray-purple-dark); }

/* ----------------------------------------------------
   Media Queries
---------------------------------------------------- */

/* 768px ---------------------------------------------------- */
@media only screen and (min-width: 48em) {
  .wrapper { margin: 2rem 0 0; }

  .container {
    max-width:1600px;
    display: grid;
    margin: 0 auto;
    grid-template-rows: auto;
    grid-template-columns: repeat(12, 1fr);
  }
    
    

  .swiper {
    width: 100%;
    margin-right: 0 !important;
  }

  h2.section-header { font-size: 1.1rem; }

  h2.section-header span { left: 4rem; }

  h2.section-header span:after {
    top: 10px;
    left: -6rem;
    width: 52px;
  }

  .section { grid-column: 2 / 12; }

  .navigation-items { margin-bottom: 9rem; }

  .section-about .avatar {
    width: 100%;
    margin: 0.5rem 0;
  }

  .section-process,
  .section.col-3,
  .section.overview,{ 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--grid-gap);
  }

  .section-process .section-header,
  .section.col-3 .section-header { grid-column: 1 / 5; }

  .section-process div,
  .section.col-3 div,
  .section.overview div,{ grid-column: span 2; }

  .section.col-2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gap);
  }

  .section.col-2 .section-header { grid-column: 1 / 11; }

  .section.col-2 div { grid-column: span 6; }

  .section-about {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-gap: var(--grid-gap);
  }

    
  .about-intro { grid-column: 1 / 10; grid-row: 1; }
    
  .avatar { grid-column: 10 / 15; }

  .section-work {
    grid-column: 1 / 11;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: var(--grid-gap);
  }

  .section-work .project { grid-column: auto / span 6; margin: 0 0 3rem; }

  .section-project_img { margin: 2rem 0 0; }

  .section-process div,
  .section.overview div,
  .section.col-3 div,
  .section.col-2 div,
  .section-project_img { margin-bottom: 2rem; }

  .copyright { grid-column: 1 / 6; text-align: left; }

  .social-links { grid-column: 6 / 13; text-align: right; justify-content: right; }
}

/* 1024px ---------------------------------------------------- */
@media only screen and (min-width: 64em) {
  h1 { font-size: 4rem; }

  .section-about h1 { font-size: 3.5rem; }

  .section,
  .swiper-nav { grid-column: 2 / 12; }

  .section-process,
  .section.overview,
  .section.col-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gap);
  }

  .section-process .section-header,
  .section.col-3 .section-header { grid-column: 1 / 12; }

  .section-process div,
  .section.overview div,
  .section.col-3 div,
  .col-3 div { grid-column: span 4; }
    .span-2 { grid-column: span 8 !important; }

  .section-project_img { margin: 4  rem 0 3rem; }

  .margin-left { margin-left: -4rem !important; }
  .margin-right { margin-right: -4rem !important; }

  .col-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
  }

  .col-3 .section-header { grid-column: 1 / 11; }
}

/* 1440px ---------------------------------------------------- */
@media only screen and (min-width: 90em) {
  h1 { font-size: 4.75rem; }
  .section-about h1 { font-size: 4.25rem; }

  .section,
  .swiper-nav,
  .navigation-items,
  .swiper-nav { grid-column: 2 / 12; }
   .span-2 { grid-column: span 8 !important; }
}

/* 2000px ---------------------------------------------------- */
@media only screen and (min-width: 75em) {
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.75rem; }
}
