@import url("https://fonts.cdnfonts.com/css/poppins");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg-color: #333;
  --main-text-color: #fff;
  --secondary-bg-color: #555;
  --secondary-text-color: #ccc;
}

html,
body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth !important;
}

body {
  background: #151515;
  font-family: "lora-regular", serif;
  font-size: 1.7rem;
  line-height: 3rem;
  color: #6e6e6e;
}

nav {
  cursor: pointer;
  position: fixed;
  width: fit-content;
  min-height: 66px;
  z-index: 4;
}

#intro {
  background: #151515 url(https://heywill-graphisme.com//images/PAGES/P1.jpg) no-repeat
    center bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: flex;
  position: relative;
  text-align: center;
}

#projects {
  background: #151515 url(https://heywill-graphisme.com/images/PAGES/P2.jpg) no-repeat
    center bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: flex;
  position: relative;
  text-align: center;
}

#services {
  background: rgba(21, 21, 21, 0.5)
    url(https://heywill-graphisme.com/images/PAGES/P3.jpg) no-repeat center bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: flex;
  position: relative;
  text-align: center;
  z-index: -1;
}

#contact {
  background: #151515 url(https://heywill-graphisme.com/images/PAGES/P4.jpg) no-repeat
    center bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: flex;
  position: relative;
  text-align: center;
}

.swipe-logo {
  height: 80px;
  width: 80px;
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  animation: pulse 2s infinite;
  cursor: pointer;
  left: calc(50% - 40px);
}

.logos {
  display: flex;
  gap: 16px;
  margin-top: 40px;

  &.logo {
    height: 24px;
    width: 24px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.card.justify-end {
  justify-content: flex-end;
}

.card.align-end {
  align-items: flex-end;
}

.card h1 {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  color: #f00955;
  text-transform: uppercase;
  margin: 0;
  padding: 16px;
}

.card p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #ffffff;
  margin: 0;

  &.text-primary {
    font-size: 64px;
    font-weight: bold;
    padding: 16px;
  }

  &.text-secondary {
    font-size: 36px;
    font-weight: lighter;
    padding: 16px;
  }

  &.text-tertiary {
    font-size: 36px;
    font-weight: normal;

    color: #000000;

    &.lighter {
      font-weight: lighter;
    }

    &.p-4 {
      padding: 16px;
    }

    &.white {
      color: #ffffff;
    }
  }
}

.container-card {
  padding: 64px;
}

.text-group {
  display: flex;
  margin-bottom: 16px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.pb-1 {
  padding-bottom: 8px;
}

.pb-2 {
  padding-bottom: 16px;
}

.pb-4 {
  padding-bottom: 32px;
}

.pt-1 {
  padding-top: 8px;
}

.pt-2 {
  padding-top: 16px;
}

.pl-1 {
  padding-left: 8px;
}

.pl-2 {
  padding-left: 16px;
}

.pr-1 {
  padding-right: 8px;
}

.pr-2 {
  padding-right: 16px;
}

.col {
  display: flex;
  flex-direction: column;
}
.sm-sub-second {
  display: none;
}

.sm-sub {
  display: block;
}

@media only screen and (max-width: 1024px) {
  .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgb(255 255 255 / 50%);
  }

  .overlay-black {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
  }
}

@media only screen and (max-width: 600px) {
  .card h1 {
    padding: 0px;
    font-size: 32px;
  }

  .card p.text-primary {
    font-size: 42px;
    padding: 0;
    margin-bottom: 80px;
  }

  .card p.text-secondary {
    font-size: 24px;
    padding: 0;
  }

  .card p.text-tertiary {
    font-size: 28px;
  }

  .sm-sub {
    display: none;
  }

  .sm-sub-second {
    display: block;
  }

  .card.justify-end {
    justify-content: center;
  }

  .card.align-end {
    align-items: center;
  }

  .container-card {
    padding: 16px;
  }

  #services {
    background-position-x: -50px;
  }
}

#menuToggle {
  display: block;
  position: relative;
  top: 50px;
  left: 50px;

  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: #232323;

  transition: color 0.3s ease;
}

#menuToggle a:hover {
  color: #f00955;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;

  background: #f00955;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  position: absolute;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  width: 300px;

  background: #000000;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;

  transform-origin: 0% 0%;
  transform: translate(0%, -120%);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  border-bottom-right-radius: 16px;
}

#menu li {
  color: #ffffff;
  padding: 10px 0;
  font-size: 22px;
}

#menu li:hover {
  color: #f00955;
}

#menuToggle input:checked ~ ul {
  transform: none;
}

.swiper {
  width: 100%;
}



.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  color: #e8e7e7;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.9);
  }
}


/** carousel mobile */
.carousel-container {
  display: none;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;

  img {
    max-width: 100%;
    height: auto;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide-active {
  display: block;
  opacity: 1;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control:active {
  background-color: rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}



.menu {
  overflow: hidden;
  cursor: grab;
  width: 100%;
  position: relative;
  z-index: 1;
  height: 40vh;
  
  &.is-dragging {
    cursor: grabbing;
  }
  
  &--wrapper {
    counter-reset: count;
    display: flex;
    position: absolute;
    z-index: 1;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
  }
  
  &--item {
    counter-increment: count;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 30vw;
    height: 100%;
    padding: 0 1.5vw;
    overflow: hidden;
    
    @media (max-width: 767px) {
      width: 40vw;
      height: 40vw;
    }
    
    &:nth-child(n+10):before {
      content: counter(count);
    }
    
    figure {
      position: absolute;
      z-index: 1;
      display: block;
      user-select: none;
      -webkit-appearance: none;
      padding: 0;
      border: none;
      outline: none;
      box-shadow: none;
      cursor: pointer;
      width: 100%;
      height: 100%;
      overflow: hidden;
      pointer-events: none;
      transform-origin: center;
      
      img {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        vertical-align: middle;
        transform-origin: center;
      }
    
      &:before {
        position: absolute;
        z-index: 2;
        bottom: 1vw;
        left: 1vw;
        display: inline-block;
        content: "0" counter(count);
        color: #ffffff;
        font-size: 3vw;
      }
    }
  }
}

.version {
  display: inline-block;
  position: fixed;
  text-align: center;
  z-index: 1;
  text-decoration: none;
  background: #333;
  font-family: sans-serif;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2);
  top: -30px;
  right: -50px;
  bottom: auto;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  border-radius: 0;
  padding: 8px 30px;
  font-size: 11px;
  
  &:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100px;
    bottom: 0;
    right: 0%;
    background: transparent;
  }
  
  @media (max-width: 767px) {
    transform: scale(.6) rotate(45deg) ;
    right: -100px;
  }
}