/*=============== GOOGLE FONTS - Insert link for typography ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Syne:wght@400..800&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
      Change favorite color:

      Default (Green): hsl(110, 75%, 60%)
      Blue: hsl(220, 80%, 60%) - Pink: hsl(300, 80%, 65%)
      Purple: hsl(255, 80%, 65%) - Cyan: hsl(180, 60%, 60%)
      Orange: hsl(15, 80%, 65%) - Red: hsl(358, 80%, 55%)

      For more colors visit: https://htmlcolorcodes.com/
      -> Choose any color 
      -> Copy the color mode (HSL)
  */
  --hue: 110;
  --first-color: hsl(var(--hue), 75%, 60%);
  --gradient-color: linear-gradient(
    90deg,
    hsl(var(--hue), 75%, 60%) 0%,
    hsl(var(--hue), 100%, 85%) 40%,
    hsl(var(--hue), 100%, 85%) 60%,
    hsl(var(--hue), 75%, 60%) 100%
  );
  --white-color: hsl(var(--hue), 24%, 98%);
  --black-color: hsl(var(--hue), 12%, 8%);
  --text-color: hsl(var(--hue), 4%, 70%);
  --body-color: hsl(var(--hue), 12%, 4%);
  --container-color: hsl(var(--hue), 8%, 10%);
  --border-color: hsl(var(--hue), 8%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Syne", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media (width >= 1150px) {
  :root {
    --biggest-font-size: 5rem;
    --bigger-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
input,
button,
textarea,
label {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button,
textarea {
  border: none;
  outline: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  color: var(--white-color);
  margin-bottom: 2rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
.blob-small,
.blob-big {
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
}

.blob-small {
  width: 100px;
  height: 100px;
  filter: blur(50px);
}

.blob-big {
  width: 150px;
  height: 150px;
  filter: blur(100px);
}

/*=============== CUSTOM CURSOR ===============*/

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices <> */
@media (width <= 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -120%;
    width: 80%;
    height: 100%;
    background-color: hsla(var(--hue), 8%, 10%, 0.4);
    backdrop-filter: blur(24px);
    padding: 6rem 2rem 2rem 3rem;
    z-index: var(--z-fixed);
    transition: right 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__link::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--first-color);
  border-radius: 50%;
  top: 0;
  left: -1rem;
  bottom: 0;
  margin-block: auto;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav__contact {
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--black-color);
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-semi-bold);
  transition: box-shadow 0.4s;
}

.nav__contact:hover {
  box-shadow: 0 8px 24px hsla(var(--hue), 75%, 60%, 0.3);
}

.nav__close {
  position: absolute;
  color: var(--white-color);
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change header styles */
.scroll-header::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(var(--hue), 8%, 10%, 0.4);
  backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */

/* Navigation for mobile devices <> */

/* Show menu */

/* Change header styles */

/* Active link */

/*=============== HOME SECTION ===============*/
.home {
  position: relative;
}

.home .blob-small:nth-child(1) {
  top: -2rem;
  left: -2rem;
}

.home .blob-small:nth-child(1) {
  top: 11rem;
  right: -4rem;
}

.home__container {
  padding-block: 2.5rem 3rem;
  row-gap: 7rem;
}

.home__data {
  text-align: center;
  color: var(--white-color);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 0.5rem;
}

.home__title span {
  color: var(--first-color);
}

.home__images {
  position: relative;
  justify-self: center;
  margin-right: 1.5rem;
}

.home__box-1,
.home__box-2,
.home__box-3 {
  width: 210px;
  height: 250px;
  border-radius: 1.5rem;
}

.home__box-1 {
  background-color: hsl(var(--hue), 25%, 32%);
}

.home__box-2 {
  background-color: var(--white-color);
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  rotate: 5deg;
}

.home__box-3 {
  background: linear-gradient(
    180deg,
    hsl(var(--hue), 75%, 85%) 0%,
    hsl(var(--hue), 75%, 60%) 100%
  );
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  rotate: 10deg;
}

.home__img {
  position: absolute;
  width: 190px;
  bottom: 2.5rem;
  right: -1.25rem;
  mask-image: linear-gradient(
    to bottom,
    hsla(var(--hue), 75%, 60%) 70%,
    transparent 100%
  );
}

.home__circle {
  position: absolute;
  right: -2rem;
  bottom: -3.5rem;
  width: 100px;
  height: 100px;
  border: 20px solid hsla(var(--hue), 24%, 4%, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.home__circle::after {
  content: "";
  width: 100px;
  height: 100px;
  position: absolute;
  mask-image: radial-gradient(circle, transparent 30px, #000 0);
  backdrop-filter: blur(4px);
  border-radius: 50%;
}

.home__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--white-color);
  color: var(--black-color);
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 10;
}

.home__text {
  z-index: 10;
  color: var(--white-color);
  font: var(--font-semi-bold) var(--smaller-font-size) var(--second-font);
  position: absolute;
  width: 100px;
  height: 100px;
  animation: rotate-text 8s linear infinite;
}

.home__text span {
  position: absolute;
  transform-origin: 0 46px;
  left: 50px;
  top: 5px;
}

.home__images .blob-big {
  top: -1.5rem;
  left: 0;
  right: 0;
  justify-self: center;
}

/* Circular text animation */
@keyframes rotate-text {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*=============== BUTTON ===============*/
.button {
  background: var(--gradient-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.button i {
  font-weight: initial;
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.button:hover i {
  transform: translateX(0.5rem);
}

/*=============== ABOUT SECTION ===============*/
.about__container {
  color: var(--white-color);
  text-align: center;
}

.about__title {
  font-size: var(--h1-font-size);
}

.about__title span {
  color: var(--first-color);
}

.about__description {
  margin-bottom: 1rem;
}

.about__button {
  width: 100%;
}

/*=============== WORK SECTION ===============*/
.work__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1rem 1rem 3rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.work__link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  z-index: 5;
}

.work__data {
  z-index: 5;
}

.work__img {
  border-radius: 1rem;
  transition: transform 0.4s;
}

.work__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--black-color);
  opacity: 0;
  transition: opacity 0.4s;
}

.work__number {
  display: block;
  font: var(--font-semi-bold) var(--biggest-font-size) var(--second-font);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.work__name {
  font-size: var(--h2-font-size);
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.work__card:hover .work__img {
  transform: scale(1.1);
}

.work__card:hover .work__arrow {
  opacity: 1;
}

.work__card .blob-big {
  top: 2rem;
  right: -2rem;
  z-index: 1;
}

/* Swiper class */
.work__swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 4rem;
}

.work .swiper-pagination-bullets {
  bottom: 0;
}

.work .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/*=============== SERVICES SECTION ===============*/
.services__container {
  row-gap: 2rem;
}

.services__card {
  border-bottom: 2px solid var(--container-color);
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.services__button {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  cursor: pointer;
}

.services__icon {
  color: var(--first-color);
  font-size: 2rem;
}

.services__name {
  font-size: var(--h2-font-size);
  text-align: initial;
}

.services__arrow {
  width: 32px;
  height: 32px;
  background-color: var(--container-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  margin-left: auto;
}

.services__arrow i {
  transition: rotate 0.4s;
}

.services__description {
  margin-block: 1rem 2rem;
}

.services__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.services__item {
  border: 2px solid var(--first-color);
  border-radius: 4rem;
  padding: 0.375rem 0.5rem;
  color: var(--white-color);
  font: var(--font-semi-bold) var(--h3-font-size) var(--second-font);
}

.services__data {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s,
    opacity 0.4s;
}

/* Hide services info */
.services-open .services__data {
  max-height: 500px; /* If you have more elements, increase the max-height */
  opacity: 1;
}

/* Rotate icon */
.services-open .services__arrow i {
  rotate: -180deg;
}

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

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

/* Infinite scroll animation */

/*=============== CONTACT SECTION ===============*/

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

/*=============== SCROLL BAR ===============*/

/*=============== SCROLL UP ===============*/

/* Show Scroll Up */

/*=============== BREAKPOINTS ===============*/
/* For medium devices <> */
@media (width >= 540px) {
  .nav__menu {
    width: 50%;
  }

  .home__container,
  .about__container,
  .services__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .work__card {
    width: 350px;
  }
}

/* For large devices <> */
@media (width >= 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .blob-small {
    width: 150px;
    height: 150px;
    filter: blur(100px);
  }

  .blob-big {
    width: 250px;
    height: 250px;
    filter: blur(150px);
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .home__container {
    grid-template-columns: 800px;
  }

  .home__subtitle {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }

  .home__name {
    margin-bottom: 1rem;
  }

  .home__box-1,
  .home__box-2,
  .home__box-3 {
    width: 250px;
    height: 300px;
  }

  .home__img {
    width: 230px;
  }

  .home__circle {
    right: -3rem;
    bottom: -1.5rem;
  }

  .home__images .blob-big {
    top: -8rem;
  }

  .home .blob-small:nth-child(1) {
    top: -3rem;
    left: -3rem;
  }

  .home .blob-small:nth-child(2) {
    top: 21rem;
  }

  .about__container {
    grid-template-columns: 580px 380px;
    justify-content: space-between;
    align-items: center;
    text-align: initial;
  }

  .about__description {
    font-size: var(--h3-font-size);
    margin-bottom: 2rem;
  }

  .about__button {
    width: initial;
  }

  .work__container {
    max-width: 1380px;
  }

  .work__card {
    width: 440px;
    border-radius: 3rem;
    padding: 1.5rem 1.5rem 4rem;
  }

  .work__img {
    border-radius: 2rem;
  }

  .work__number {
    font-size: var(--bigger-font-size);
  }

  .work .blob-big {
    right: -6rem;
  }

  .services__container {
    grid-template-columns: 690px;
    row-gap: 3rem;
  }

  .services__card {
    padding-bottom: 2rem;
  }

  .services__button {
    column-gap: 3rem;
  }

  .services__icon {
    font-size: 2.5rem;
  }

  .services__name {
    font-size: var(--h1-font-size);
  }

  .services__description,
  .services__list {
    padding-left: 5.5rem;
  }
}

/* For 2K resolutions <> */

/* Custom cursor is hidden for mobile devices */
