:root {
  --color-background: #171717;
  --color-background-fade: #434343;
  --color-heading: #FFFFFF;
  --color-text: #c7c7c7;

  --color-accent: #147efb;
  --color-accent-light: #6baefb;
  --color-accent-dark: #0c4a92;
  --box-shadow: 0 8px 34px rgba(20, 126, 251, .5);
  --box-shadow-reduced: 0 4px 10px rgba(20, 126, 251, .5);

  --font-header-family: "Archivo", sans-serif;
  --font-body-family: sans-serif;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  padding: 0;
  margin: 0;
  font-size: 62.5%;
  background: var(--color-background);
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-text);
  font-family: var(--font-body-family);
}

@media (max-width: 750px) {
  html {
    font-size: 50%;
  }
}

.container {
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem;
}

.container+.container {
  margin-top: 3rem;
}

.section {
  position: relative;
}

.section+.section {
  margin-top: 8rem;
}


/* ========= TYPOGRAPHY ========= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-header-family);
  margin: 0;
  line-height: 1.15
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

p {
  margin: 0;
}

.tag__group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tag__item {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 15px;
  background-color: rgba(67, 67, 67, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
}


/* ========= BUTTONS ========= */

a:not(.nolink) {
  color: var(--color-heading);
  font-size: 1.4rem;
  position: relative;
  text-decoration: none;
  transition: .25s ease all;
  display: block;
}

a:not(.nolink):hover {
  color: var(--color-accent);
  transform: scale(1.03);
}

.btn {
  display: block;
  outline: none;
  background: var(--color-background-fade);
  border-radius: var(--radius);
  color: var(--color-heading);
  line-height: 1.1;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 15px 25px;
  position: relative;
}

.btn:hover {
  color: var(--color-heading);
}

.btn__primary {
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent-dark);
  box-shadow: var(--box-shadow);
}

.btn__primary:hover {
  box-shadow: var(--box-shadow-reduced);
}

.btn__secondary {
  border: 2px solid var(--color-background-fade);
}

.btn__group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn__group--center {
  align-items: center;
}

.btn__green {
  background-color: #25d366;
  border: 2px solid #169043;
  box-shadow: 0 8px 34px rgba(37, 211, 102, .5);
}

.btn__green:hover {
  box-shadow: 0 4px 10px rgba(37, 211, 102, .5);
}


/* ========= COMPONENT ========= */

.icons__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.icons__list a {
  font-size: 2rem;
}


/* ========= HEADER ========= */

.header,
.header__meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.header__meta {
  flex: 1;
  background: var(--color-background-fade);
  border-radius: var(--radius);
  padding: 3rem;
}

.header__logo {
  color: var(--color-heading);
  font-size: 2.4rem;
  font-family: var(--font-header-family);
  font-weight: bold;
  position: relative;
}

.header__logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: var(--radius);
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent-dark);
  box-shadow: var(--box-shadow);
}

.header__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__list li:not(:last-child) {
  padding-right: 3rem;
  position: relative;
}

.header__list li:not(:last-child)::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-background);
  top: 50%;
  left: auto;
  right: 0.8rem;
  position: absolute;
  transform: translateY(-50%);
}

@media (max-width: 789px) {
  .header__meta {
    flex: 0;
    position: relative;
  }

  .header__hamburger {
    background-color: transparent;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    cursor: pointer;
  }

  .header__hamburger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    border-radius: 100px;
    background-color: var(--color-heading);
    display: block;
    width: 40%;
  }

  .header__hamburger span:nth-child(1) {
    top: 40%;
  }

  .header__hamburger span:nth-child(2) {
    top: 50%;
  }

  .header__hamburger span:nth-child(3) {
    top: 60%;
  }

  .header__drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(67, 67, 67, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5rem;
    transition: .25s ease all;
    z-index: 999;
    transform: translateY(-100%);
  }

  .header__drawer .popup__close {
    top: 4.8rem;
    right: 4.8rem;
    font-size: 2.5rem;
    background: transparent;
    border: none;
    color: var(--color-heading);
  }

  .header__list {
    justify-content: start;
    flex-direction: column;
  }

  .header__list a {
    font-size: 1.8rem;
  }

  .header__list li:not(:last-child) {
    padding-right: 0;
  }

  .header__list li::after {
    display: none;
  }
}

/* ========= RTE ========= */

.rte>h1,
.rte>h2,
.rte>h3,
.rte>h4 {
  margin-bottom: 2rem;
}

.rte>p:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* ========= BANNER ========= */

.banner__wrapper {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 3rem;
  align-items: center;
}

.banner__media {
  position: relative;
}

.banner__media::after {
  content: "";
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 1) 100%);
  z-index: 1;
}

.banner__media img {
  display: block;
  width: 100%;
  filter: grayscale(1);
  position: relative;
}

@media (max-width: 635px) {
  .banner__wrapper {
    grid-template-columns: 1fr;
  }

  .banner__media {
    max-width: 48rem;
  }
}


/* ========= SKILLS ========= */

.skills {
  overflow: hidden;
}

.skills__header {
  text-align: center;
  margin-bottom: 4rem;
}

.skills__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 -4rem -4rem 0;
  position: relative;
}

.skills__item {
  padding: 3rem;
  border-radius: var(--radius);
  margin: 0 4rem 4rem 0;
  width: calc(33% - 4rem);
  border: 1px solid rgba(100, 100, 100, 0.6);
  background: rgba(67, 67, 67, 0.3);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.skills__item:nth-child(1),
.skills__item:nth-child(2) {
  width: calc(50% - 4rem);
}

.skills__item--icon {
  font-size: 4rem;
}

.skills__item--title {
  color: white;
}

.skills__background--element {
  position: absolute;
  z-index: -1;
  top: 0;
  left: -4rem;
  right: 0;
  bottom: 0;
}

.skills__background--element dotlottie-player {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.7);
}

@media (max-width: 649px) {
  .skills__item {
    width: calc(50% - 4rem);
  }

  .skills__item:nth-child(5) {
    width: 100%;
  }
}

@media (max-width: 476px) {
  .skills__item {
    width: 100% !important;
  }
}


/* ========= PROJECTS ========= */

.projects {
  overflow: hidden;
}

.projects__header {
  text-align: center;
}

.projects__header.container {
  padding-bottom: 1rem;
}

.projects__slider {
  padding: 3rem;
  overflow: visible;
}

.projects__pagination {
  bottom: -5px !important;
}

.projects__pagination .swiper-pagination-bullet {
  background: var(--color-text);
}

.projects__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  border: 1px solid var(--color-accent-dark);
  box-shadow: var(--box-shadow);
}

.projects__item {
  background-color: var(--color-background-fade);
  border-radius: var(--radius);
  height: auto;
}

.projects__image--container {
  position: relative;
  width: 100%;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  height: 25rem;
  overflow: hidden;
}

.projects__item--image {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

.projects__item--title {
  font-size: 2.2rem;
  font-weight: bold;
  font-family: var(--font-header-family);
  line-height: 1.2;
  padding: 2rem 3rem 1rem;
}

.projects__item--description {
  padding: 0 3rem 3rem;
}

/* ========= TESTIMONIALS ========= */

.testimonials__header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials__item {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  flex-wrap: wrap;
}

.testimonials__item+.testimonials__item {
  margin-top: 4rem;
}

.testimonials__item:nth-child(even) {
  flex-direction: row-reverse;
}

.testimonials__photo {
  display: block;
  max-width: 100%;
  width: 25%;
  height: auto;
  object-fit: cover;
}

.testimonials__meta {
  padding: 3rem;
  background-color: var(--color-background-fade);
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.testimonials__author {
  color: var(--color-heading);
  font-weight: bold;
}

.testimonials__author a {
    color: white;
    text-decoration: none;
}

.testimonials__meta img {
  display: none;
}

@media (max-width: 500px) {
  .testimonials__meta {
    width: 100%;
  }

  .testimonials__meta img {
    display: block;
    height: 8rem;
    width: 8rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .testimonials__item>img {
    display: none;
  }
}


/* ========= MOI ========= */

.moi__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
}

.moi__image--container {
  width: 37%;
  padding-top: 37%;
  display: block;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.moi__image {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.moi__meta {
  width: 60%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.moi__meta .btn {
  width: fit-content;
}

@media (max-width: 789px) {
  .moi__image--container {
    width: 100%;
    padding-top: 100%;
    margin-bottom: 2rem;
  }

  .moi__meta {
    width: 100%;
    padding: 3rem 0 0;
  }
}


/* ========= CTA ========= */

.cta__wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta__wrapper::after {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  bottom: 0;
  width: 2px;
  border-radius: 100px;
  background-color: var(--color-background-fade);
}

.cta__calendly,
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 45%;
}

.cta__wrapper .btn {
  width: fit-content;
}

@media (max-width: 600px) {
  .cta__wrapper::after {
    left: 0;
    top: 50%;
    right: 0;
    height: 2px;
    width: 100%;
    border-radius: 100px;
    background-color: var(--color-background-fade);
  }

  .cta__wrapper {
    gap: 10rem;
  }

  .cta__calendly,
  .cta__form {
    width: 100%;
  }
}


/* ========= FOOTER ========= */

.footer {
  margin-top: 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-background-fade);
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 5rem;
  }
}


/* ========= POPUP ========= */

.hidden {
  display: none;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.popup__overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(67, 67, 67, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup__wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  max-width: 95%;
  max-height: 95%;
  overflow-y: scroll;
  background-color: var(--color-background);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-background-fade);
}

.popup__wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  line-height: 1;
  background-color: var(--color-heading);
  border-radius: var(--radius);
  outline: none;
  border: 1px solid var(--color-background-fade);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.popup__heading {
  margin-bottom: 2rem;
}

/* ========= LEGAL ========= */
.legal h1 {
  margin-bottom: 3rem;
}

.legal h2 {
  margin: 2rem 0 1rem;
}

.legal p {
  margin-bottom: 0.5rem;
}


/* ========= MEDIA QUERIES ========= */

@media (min-width: 790px) {
  .mobile__only {
    display: none !important;
  }
}

@media (max-width: 789px) {
  .desktop__only {
    display: none !important;
  }
}