:root {
  --background-color: #fff;
  --white: #fff;
  --black: #292929;

  --green: #1d954b;
  --pink: #ff78b9;
  --yellow: #e8fd7e;
  --blue: #031cff;

  --grey: #b6b6b6;
  --white-opacity: rgba(255, 255, 255, 0.2);

  /* Default border */
  --border-radius: 12px;
  --border-width: 1px;

  --box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);

  /* Default box shadow */
  --bg-blur: blur(3px);

  /* Typography */
  --font-family: "Roboto", sans-serif;
  --font-size: 0.9rem;
  --big-paragraph: 1rem;
  --line-height: 1.4;

  /* Spacing */
  --unit: 0.5rem;
  --margin: var(--unit);
  --padding: var(--unit);

  /* Section spacing */
  --section-s-small: calc(var(--unit) * 2);
  --section-s-med: calc(var(--unit) * 4);
  --section-s-big: calc(var(--unit) * 8);
  --section-s-large: calc(var(--unit) * 16);

  --gap: calc(var(--unit) * 4);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--black);
  background-color: var(--background-color);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  padding: 0 calc(var(--unit) * 2);
  max-width: 96rem;
  margin: 0 auto;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.5s;
}

.font-one {
  font-family: "Archivo Black", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 400;
  line-height: 1.1;
  font-size: calc(var(--font-size) * 2);
  padding-top: calc(var(--unit) * 2);
  width: 800px;

  @media (max-width: 1200px) {
    font-size: calc(var(--font-size) * 2.4);
  }

  @media (max-width: 850px) {
    font-size: calc(var(--font-size) * 2);
  }

  @media (max-width: 550px) {
    font-size: calc(var(--font-size) * 1);
    padding-top: calc(var(--unit) * 1);
    margin-bottom: calc(var(--unit)*4);
  }
}

.font-two {
  font-family: "Anton", sans-serif;
  font-weight: 400;
}

h1,
.h1 {
  font-family: "Anton", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: calc(var(--font-size) * 6);
  line-height: 1.1;
  transition: font-size 0.5s ease;

  @media (max-width: 1200px) {
    font-size: calc(var(--font-size) * 3.5);
  }

  @media (max-width: 850px) {
    font-size: calc(var(--font-size) * 3);
  }

  @media (max-width: 550px) {
    font-size: calc(var(--font-size) * 3);
  }
}

.landing-h1 {
  font-size: calc(var(--font-size) * 2.5);
  line-height: 1.2;
  font-weight: 500;
  transition: font-size 0.5s ease;
}

h2,
.h2 {
  font-family: "Anton", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-transform: uppercase;
  font-size: calc(var(--font-size) * 2.5);
  line-height: 1.2;
  font-weight: 500;
  transition: font-size 0.5s ease;

  margin-bottom: calc(var(--unit) * 3);

  @media (max-width: 850px) {
    font-size: calc(var(--font-size) * 2);
  }

  @media (max-width: 550px) {
    font-size: calc(var(--font-size) * 2);
  }
}

h3,
.h3 {
  font-family: "Archivo Black", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-transform: uppercase;
  font-size: calc(var(--font-size) * 1.3);
  font-weight: 400;
  /* text-transform: uppercase; */
}

/* h3 {
  font-size: var(--font-size);
  font-weight: 400;
  text-transform: uppercase;
  font-weight: 400;
} */

h4 {
  font-family: "Archivo Black", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-transform: uppercase;
  font-size: var(--big-paragraph);
  font-weight: 400;
}

/*Button settings*/

.round-button {
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
  border-radius: 50px;
  font-size: var(--big-paragraph);
  /* text-transform: uppercase; */
  align-self: flex-start;
  margin-top: calc(var(--unit) * 3);
}

/* 01 HEADER *********************/

header {
  position: fixed;
  top: calc(var(--unit) * 2);
  z-index: 99;

  width: 96rem;
  max-width: 100%;
  padding: 0 calc(var(--unit) * 2);

  left: 50%;
  transform: translate(-50%, 0);
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--unit) calc(var(--unit) * 2);
  transition: background-color 0.5s;

  /* backdrop-filter: var(--bg-blur);
  background-color: var(--white-opacity);
  border-color: var(--white);
 
  border-style: solid;
   color: var(--white); */

  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  border-width: var(--border-width);
  border-radius: var(--border-radius);
  a {
    color: var(--black);
  }
}

.marquee {
  overflow: hidden;
  display: flex;
  width: 100%;
  max-width: 300px;

  @media (max-width: 650px) {
    display: none;
  }
}

.marquee p {
  white-space: nowrap;
  text-transform: uppercase;
}

/*_______*/

.contact-box {
  position: absolute;

  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 2);

  top: calc(100% + 10px);
  right: 0;

  width: 330px;
  white-space: nowrap;
  opacity: 0;

 transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 100;
  border-radius: var(--border-radius);
  color: var(--black);
  background-color: var(--white);
  padding: calc(var(--unit) * 2);
  border: var(--black) var(--border-width) solid;
  pointer-events: none;

  div {
    display: flex;
    flex-direction: column;
  }

  div:last-child a {
    margin-top: var(--unit);
  }

  a:hover {
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    width: 100%;
  }
}

.contact-box.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  scale(1);
}

.contact-toggle::after {
  content: "";
  display: inline-block;
  height: 0.65rem;
  width: 1.3rem;
  background-size: 0.65rem 0.65rem;
  background-image: url(icons/arrow.svg);
  background-repeat: no-repeat;
  background-position: bottom center;
  padding-top: 3px;

   transition: transform 0.3s ease;
}

.contact-toggle:hover::after {
  transform: rotate(15deg);
}

.contact-toggle.active::after {
  transform: rotate(180deg);
}

/** hover projects and polaroids **/

.hover-text {
  position: fixed;
  z-index: 1000;

  backdrop-filter: var(--bg-blur);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 10px 4px 10px;
  border-radius: 50px;
  pointer-events: none;
  border: 1px var(--white) solid;

  transition: opacity 0.3s ease;
}

/* Project pages header */
.project-header {
  border-color: var(--black);
  background-color: var(--white);
  color: var(--black);
}

.project-header a {
  color: var(--black);
}

.project-header a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.project-header nav {
  a::after {
    background-image: url(icons/stars-b.svg);
  }
}

/* 02 HERO *************************/

#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  transition: height 0.5s ease;
  background-color: var(--green);
  color: var(--white);

  h1 {
    max-width: 1100px;
  }

  @media (max-width: 850px) {
    height: 100vh;

    h1 {
      max-width: 600px;
    }
  }

  @media (max-width: 500px) {
    height: 100vh;
    text-align: left;

    h1 {
      max-width: 300px;
    }
  }
}

section#hero {
  max-width: unset;
}

/* 04 PROJECTS *************************/

#projects {
  margin-top: 100px;

  @media (max-width: 600px) {
    margin-top: calc(var(--unit) * 6);
  }
}

.grid-container {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  grid-column-gap: calc(var(--unit) * 2);
  grid-row-gap: calc(var(--unit) * 4);

  @media (max-width: 600px) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.project {
  .project-content {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;

    img {
      width: 100%;
      height: auto;
      /* object-fit: cover; */
      display: block;
      aspect-ratio: 593 / 412;
    }
  }

  .project-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    align-items: center;
    padding-top: var(--unit);

    @media (max-width: 450px) {
      flex-direction: column;
      align-items: unset;
    }
  }

  .tags > * {
    border-radius: 50px;
    background-color: var(--white);
    border: 1px solid var(--black);
    margin-right: var(--unit);
    padding: calc(var(--unit) / 3) calc(var(--unit) * 1.5) calc(var(--unit) / 3)
      calc(var(--unit) * 1.5);
  }

  .tags {
    @media (max-width: 1400px) {
      display: flex;
      /* margin-top: var(--unit); */
      gap: 5px;
    }

    @media (max-width: 450px) {
      margin-top: var(--unit);
    }
  }
}

/* 06 SERVICE *************************/

.experience-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-column-gap: calc(var(--unit) * 2);
  grid-row-gap: calc(var(--unit) * 2);
}

.experience {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--border-radius);
  padding: calc(var(--unit) * 2);

  .circle {
    height: calc(var(--unit) * 2);
    width: calc(var(--unit) * 2);
    border-radius: 50px;
    margin-bottom: calc(var(--unit) * 10);
    background-color: var(--pink);
  }

  .experience-list {
    list-style-type: none;
    font-size: var(--big-paragraph);
  }

  @media (max-width: 1050px) {
    min-height: 300px;
  }

  @media (max-width: 850px) {
    min-height: 270px;
  }
}

/* About Section */

.about-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(365px, 1fr));
  grid-column-gap: calc(var(--unit) * 8);
  grid-row-gap: calc(var(--unit) * 2);

  .about-image {
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;

    @media (max-width: 820px) {
      aspect-ratio: unset;
      height: 600px;
    }

    @media (max-width: 550px) {
      aspect-ratio: 1/1;
      height: unset;
    }

    /** all polaroid styling **/

    .about-polaroid {
      opacity: 1;
      position: absolute;
      top: 15%;
      left: calc(50% - 270px);
      transform: rotate(-3deg);

      background-color: var(--white);
      padding: 0.8rem 0.8rem 0.8rem 0.8rem;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      overflow: clip;

      @media (max-width: 1370px) {
        top: 15%;
        left: calc(50% - 230px);
      }

      @media (max-width: 1200px) {
        top: 15%;
        left: calc(50% - 200px);
      }

      @media (max-width: 1100px) {
        top: 15%;
        left: calc(50% - 145px);
      }

      @media (max-width: 900px) {
        left: 20%;
        top: 5%;
      }

      @media (max-width: 770px) {
        left: 19%;
        top: 10%;
      }

      @media (max-width: 550px) {
        left: 7%;
        top: 3%;
        padding: 0.5rem 0.5rem 0.8rem 0.5rem;
      }

      @media (max-width: 440px) {
        left: 15%;
        top: 5%;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
      }

      .content {
        position: relative;
        border-radius: var(--border-radius);
        overflow: hidden;
        aspect-ratio: 573 / 449;
        width: 550px;
        height: auto;
        transition: width 0.5s ease;

        @media (max-width: 1600px) {
          width: 500px;
        }

        @media (max-width: 1370px) {
          width: 430px;
        }

        @media (max-width: 1200px) {
          width: 390px;
        }

        @media (max-width: 1100px) {
          width: 310px;
        }

        @media (max-width: 900px) {
          width: 450px;
        }

        @media (max-width: 770px) {
          width: 450px;
        }

        @media (max-width: 650px) {
          width: 400px;
        }

        @media (max-width: 550px) {
          width: 350px;
        }

        @media (max-width: 440px) {
          width: 300px;
        }

        .about-img {
          object-fit: cover;
          object-position: center center;
          width: 100%;
          height: 100%;
          user-drag: none;
        }
      }

      .title {
        margin-top: 1rem;
        text-align: center;

        @media (max-width: 550px) {
          margin-top: 0.8rem;
        }

        img {
          max-height: 50px;
          user-drag: none;

          @media (max-width: 550px) {
            max-height: 40px;
          }

          @media (max-width: 440px) {
            max-height: 30px;
          }
        }
      }
    }
  }

  .about-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    position: relative;

    @media (max-width: 770px) {
      max-width: 750px;
    }

    .h1,
    p,
    ul {
      margin-bottom: calc(var(--unit) * 2);
    }

    h3 {
      margin-bottom: calc(var(--unit) * 3);
    }

    h2 {
      margin-top: calc(var(--unit) * 2);
    }

    ul,
    p {
      font-size: var(--big-paragraph);
    }

    li {
      margin-bottom: var(--unit);
      list-style: disc;
      margin-left: calc(var(--unit) * 2);
    }
  }
}

/*** PROJECT SINGLE PAGE ***/

.project-hero {
  margin-top: calc(var(--unit) * 10);
  margin-bottom: calc(var(--unit) * 2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(365px, 1fr));
  grid-column-gap: calc(var(--unit) * 2);
  grid-row-gap: calc(var(--unit) * 2);

  .project-hero-info {
    display: flex;
    flex-direction: column;
    max-width: 650px;
  }

  h1 {
    margin-bottom: calc(var(--unit) * 3);
  }

  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 593 / 412;
    border-radius: var(--border-radius);
  }

  video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 593 / 412;
    border-radius: var(--border-radius);
  }

  #project-description {
    font-size: 1.2rem;
  }

  .project-info {
    /* max-width: 200px; */
    margin-top: calc(var(--unit) * 3);

    .bold {
      font-weight: 500;
      width: 100px;
    }

    .flex-info {
      display: flex;

      /* justify-content: space-between; */
    }
  }
}

.project-content-column,
.project-1column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(365px, 1fr));
  grid-column-gap: calc(var(--unit) * 2);
  grid-row-gap: calc(var(--unit) * 2);
  margin-bottom: calc(var(--unit) * 2);

  img,
  video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 593 / 412;
    object-fit: cover;
  }

  .webdesign-full {
    aspect-ratio: unset;
    height: 100%;
    width: 100%;
  }

  video {
    object-fit: cover;
  }

  p {
    font-size: var(--big-paragraph);
  }
}

.project-1column {
  img {
    height: 400px;
    object-fit: cover;
    /* aspect-ratio: 3 / 1; */
  }
}

.project-divider {
  margin-top: calc(var(--unit) * 8);
}

.project-text-column {
  display: flex;
  flex-direction: row;
  gap: calc(var(--unit) * 6);
}

.github-link {
  display: inline-block;
  margin-top: calc(var(--unit) * 2);
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
  /* font-size: var(--big-paragraph); */
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  transition: all 0.3s ease;
 
}
.github-link:hover {
  background-color: var(--black);
  color: var(--white);  
}

.project-bg-quiz {
  background-color: #E1F7EC;
  border-radius: var(--border-radius);
  padding: calc(var(--unit) * 2);
  height: 100%;
}

.next-prev-section {
  display: flex;
  gap: calc(var(--unit) * 2);
}

#prev-project,
#next-project {
  margin-top: calc(var(--unit) * 8);
  width: 100%;
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--border-radius);
  border: 0px solid transparent;
  height: 100px;
  cursor: pointer;
}

.project-quote {
  background-color: var(--black);
  border-radius: var(--border-radius);
  color: var(--white);
  padding: calc(var(--unit) * 2);
  height: 100%;

  p {
    margin-top: calc(var(--unit) * 2);
  }
}

.quote-list li {
  font-size: var(--big-paragraph);
  list-style: none;
  margin-top: calc(var(--unit) * 2);
}

.quote-list li::before {
  content: "";
  display: inline-block;
  height: 10px;
  width: 7px;
  background-image: url(icons/flower-sm.svg);
  background-repeat: no-repeat;
  margin-right: 5px;
}

/** 05. Landing Page ******************************************************************/

.header-green {
  background-color: var(--green);
}

.landing-hero {
  display: flex;
  justify-content: center;
  gap: calc(var(--unit) * 8);

  height: 100vh;
  margin: 0 auto;

  div {
    justify-content: center;

    display: flex;
    flex-direction: column;
    max-width: 650px;

    position: relative;
  }

  h1 {
    margin-bottom: calc(var(--unit) * 3);
  }

  p,
  ul {
    font-size: var(--big-paragraph);
  }

  p:first-of-type {
    margin-bottom: calc(var(--unit) * 2);
  }

  .project-hero-image {
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
  }
}

.badge {
  z-index: 1;

  object-fit: contain;
  position: absolute;
}

.landing-hero-badge {
  bottom: -4rem;
  right: 2rem;
  width: 150px;
  height: 150px;
}

.client-badge {
  top: 4%;
  left: 18%;
  width: 70px;
  height: 70px;
}

.client-section {
  margin-top: calc(var(--unit) * 2);
  margin-bottom: 100px;
  /* margin-top: calc(var(--unit) * 7); */

  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;

  h2,
  div {
    align-self: center;
  }
}

.client-card-grid {
  margin-top: 50px;
  margin-bottom: 50px;

  display: flex;
  width: 100%;

  .client-cards {
    border-radius: var(--border-radius);
    padding: calc(var(--unit) * 2);
    width: 100%;
    margin-right: -0.9rem;
    min-height: 400px;
  }

  .client-cards:nth-child(1) {
    background-color: var(--pink);
    color: var(--white);
  }
  .client-cards:nth-child(2) {
    background-color: var(--green);
    color: var(--white);
  }
  .client-cards:nth-child(3) {
    background-color: var(--yellow);
  }
  .client-cards:nth-child(4) {
    background-color: var(--blue);
    color: var(--white);
    margin-right: 0px;
  }
}

#shopify-section {
  width: 100%;
  max-width: unset;
  background-color: var(--green);
  color: white;

  padding-top: 100px;
  padding-bottom: 100px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;

  h2,
  div {
    align-self: center;
  }

  .shopify-grid {
    max-width: 96rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(650px, 1fr)); */
    grid-column-gap: calc(var(--unit) * 2);
    grid-row-gap: calc(var(--unit) * 2);

    margin-top: 50px;
    margin-bottom: 50px;
  }

  .shopify-card {
    border-radius: var(--border-radius);
    padding: calc(var(--unit) * 2);
    background-color: var(--white);
    color: var(--black);
    width: 100%;
  }

  .shopify-cta {
    display: flex;
    align-items: center;
    gap: calc(var(--unit) * 8);

    .square-button {
      margin-top: 5px;
    }
  }
}

#qoute {
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  transition: height 0.5s ease;

  button {
    align-self: center;
  }

  h1 {
    max-width: 900px;
  }

  img {
    width: 150px;
  }

  @media (max-width: 850px) {
    height: 50vh;
  }
}

#list-section {
  width: 100%;
  max-width: unset;
  background-color: var(--green);
  color: white;

  padding-top: 100px;
  padding-bottom: 100px;

  display: flex;

  justify-content: center;
  position: relative;

  .list-bg {
    color: var(--white);
  }
}

/** FOOTER ***/

footer {
  margin: 0 auto;
  max-width: 96rem;
  padding-top: 100px;

  .footer-content {
    background-color: var(--green);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: calc(var(--unit) * 2);

    /* margin: 0 auto; */
    margin-left: calc(var(--unit) * 2);
    margin-right: calc(var(--unit) * 2);
    margin-bottom: calc(var(--unit) * 2);

    width: calc(100% - calc(var--unit) * 4);

    h2 {
      /* padding-bottom: calc(var(--unit) * 1); */
      max-width: 700px;
    }

    div {
      background-color: var(--white);
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;

      border-radius: inherit;
      margin-top: 100px;
      padding: calc(var(--unit) * 2);

      a {
        margin-right: calc(var(--unit) * 3);
        color: var(--black);
        text-transform: uppercase;
      }

      a::after {
        content: "";
        display: inline-block;
        height: 0.65rem;
        width: 1.3rem;
        background-size: 0.65rem 0.65rem;
        background-image: url(icons/arrow.svg);
        background-repeat: no-repeat;
        background-position: bottom center;

        transition: transform 0.3s;
      }

      a:hover:after {
        transform: translate(2px, -2px);
      }
    }
  }
}

.project-footer {
  padding-top: calc(var(--unit) * 2);
}
