/*=============== GOOGLE FONTS ===============*/
@import "root.css";

body,
.header,
.button,
.projects__card,
.services__card {
  transition: background-color .4s linear, color .4s linear, border-color .4s linear, box-shadow .4s linear;
}

@media (prefers-reduced-motion: reduce) {

  body,
  .header,
  .button,
  .projects__card,
  .services__card {
    transition: none;
  }
}


/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

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: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
/* Blob animate */
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg, var(--first-color-alt) 20%, var(--first-color-light) 100%);
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Blob */
.blob {
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

/*=============== CUSTOM CURSOR ===============*/
.cursor {
  position: fixed;
  left: 0;
  top: 0;

  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: var(--first-color-light);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--first-color);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform .2s ease-out, left .2s ease-out, top .2s ease-out, width .3s ease-out, height .3s ease-out;
}

/* Hide the custom cursor */
.hide-cursor {
  width: 0;
  height: 0;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  height: 120px;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, var(--body-color) 60%, hsla(240, 100%, 2%, 0) 100%);
  z-index: var(--z-fixed);
}

.header .blob-animate {
  top: -3rem;
  left: -3rem;
}


.nav {
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  font-family: var(--second-font);
  font-size: var(--font-semi-bold);
  color: var(--title-color);
  align-self: flex-start;
  transition: color .4s;
  -webkit-transition: color .4s;
  -moz-transition: color .4s;
  -ms-transition: color .4s;
  -o-transition: color .4s;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: .5rem;
}

.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition: color .4s, test-shadow .4s;
  -webkit-transition: color .4s, test-shadow .4s;
  -moz-transition: color .4s, test-shadow .4s;
  -ms-transition: color .4s, test-shadow .4s;
  -o-transition: color .4s, test-shadow .4s;
}

.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/*=============== HOME ===============*/

.home {
  position: relative;
}

.home__container {
  position: relative;
  padding-top: 4rem;
  row-gap: 3rem;
}

.home__greeting {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  font-weight: var(--font-regular);
}

.home__name {
  font-size: var(--bigger-font-size);
}

.home__image {
  position: relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate {
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__perfil {
  width: 420px;
  justify-self: center;
}

.home__shadow,
.home__info,
.home__social,
.home__cv {
  position: absolute;
}

.home__shadow {
  width: 100%;
  height: 375px;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg, hsla(240, 100%, 2%, 0) 60%, hsl(240, 100%, 2%)85%);
}

.home__info {
  z-index: 2;
  bottom: -1rem;
  justify-self: center;
}

.home__split {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1,
.home__profession-2 {
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1 {
  position: relative;
  color: var(--first-color);
}

.home__profession-1::after {
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, hsl(0, 0%, 0%) 10%, hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 15%;
}

.home__profession-2 {
  transform: translateY(-0.9rem);
}

.home__social {
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.25rem;
  transition: color .4s, text-shadow .4s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateX(0.25rem);
}

.home__cv {
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: color .4s;
}

.home__cv i {
  font-size: 1rem;
}

.home__cv:hover {
  color: var(--first-color);
}

/*=============== BUTTON ===============*/
.button {
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px hsla(var(--hue), 60%, 64%, 0.5),
    inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: background-color .4s;
}

.button i {
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  box-shadow: 0 8px 48px hsla(var(--hue), 60%, 64%, 0.7),
    inset 8px -8px 30px var(--first-color-alt-2);
}


/*=============== ABOUT ===============*/
.about {
  position: relative;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

.about__data .section__title {
  margin-bottom: 1.5rem;
  text-align: initial;
}

.about__description {
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
}

.about__description b {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1) {
  top: 1.5rem;
  left: 1rem;
}

.about__image .blob-animate:nth-child(2) {
  right: -0.5rem;
  bottom: 0.5rem;
}

.about__perfil {
  width: 320px;
  justify-self: center;
}

.about__shadow {
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
      hsla(240, 100%, 2%, 0) 60%,
      var(--body-color) 95%);
}

/*=============== PROJECTS ===============*/
.projects .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card {
  position: relative;
  overflow: hidden;
  border-radius: 3rem;
  padding: 1.5rem;
  background-color: var(--container-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.projects__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number,
.projects__data,
.projects__image {
  position: relative;
  z-index: 1;
}

.projects__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__number h1 {
  font-size: var(--biggest-font-size);
}

.projects__number h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
}

.projects__data {
  flex: 1 1 auto;
  margin-block: 1rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.projects__subtitle {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.projects__description {
  font-size: var(--small-font-size);
}

.projects__img {
  margin-top: auto;
  /* pushes image down */
  display: flex;
  border-radius: 1.5rem;
}

.projects__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: .75rem;
  right: .75rem;
  opacity: 0;
  pointer-events: none;
  transition: box-shadow .4s, opacity .4s;
}

.projects__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

.projects__card:hover .projects__button {
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__swiper {
  margin-inline: initial;
  padding-bottom: 2rem;
}

.projects .swiper-pagination-bullet {
  bottom: 0;
  background-color: var(--first-color);
  transition: opacity .4s;
}

/* Collapsible technologies, default hidden */
.tech-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
}

.tech-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
  /* small spacing from text */
}

/* collapsed by default */
.tech-section.collapsed .services__skills {
  display: none;
}

.tech-section.collapsed .tech-arrow {
  transform: rotate(-180deg);
}

/* optional spacing */
.services__info.tech-section {
  margin-top: .75rem;
}

.projects__more {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.projects__more a {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .2s;
}

.projects__more a:hover {
  color: var(--first-color);
}


/*=============== WORK ===============*/
.work__tabs {
  background-color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
}

.work__button {
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color .4s;
}

.work__button i {
  font-size: 1rem;
}

.work__button:hover {
  color: var(--first-color);
}

.work__area {
  position: relative;
  padding-left: 1rem;
}

.work__content {
  display: grid;
  row-gap: 4rem;
}

.work__card {
  display: grid;
  row-gap: 1rem;
  margin-bottom: 1rem;
}

.work__data {
  display: flex;
  justify-content: space-between;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.work__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.work__year {
  padding-left: 1rem;
  font-size: var(--h2-font-size);
}

.work__line {
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, hsla(var(--hue), 60%, 64%, 0), var(--first-color-alt-2));
  position: absolute;
  left: -0.25em;
}

.work__line::after {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

/* Show & hide sections */
.work__area [data-content] {
  display: none;
}

.work-active[data-content] {
  display: grid;
}

/* Active tab */
.work__button.work-active {
  color: var(--first-color);

}

/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2rem;
}

.services__card {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
}

.services__card .blob {
  z-index: 0;
  left: -7.75rem;
  top: -7.75rem;
}

.services__card .blob-2 {
  left: initial;
  right: -7.75rem;
}

.services__card .blob-3 {
  left:-7.75rem;
  top: 7.75rem;
}

.services__card .blob-4 {
  left: 22rem;
  top: 10rem;
}

.services__data,
.services__info {
  position: relative;
  z-index: 1;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.services__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.services__skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .25rem;
}

.services__skill {
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: .5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
}

.services__button {
  transition: rotate .4s;
}


/* Hide services info */
.services-close .services__info {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.services__info {
  transition: height .4s, opacity .4s;
}

/* Rotate icon */
.services-open .services__button {
  rotate: 180deg;
}

/*=============== TESTIMONIALS ===============*/
.testimonials .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.testimonials__container {
  position: relative;
  margin-inline: 0;
  overflow: hidden;
}

.testimonials__card {
  position: relative;
  width: 320px;
  background-color: var(--container-color);
  padding: 1.5rem 1rem 2.5rem;
  margin-inline: 1rem;
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
}

.testimonials__card .blob {
  z-index: 0;
  right: 0;
  left: 0;
  margin-inline: auto;
  bottom: -12.5rem;
}

.testimonials__data {
  position: relative;
  z-index: 1;
}

.testimonials__img {
  width: 60px;
  border-radius: 50%;
  margin: 0 auto .5rem;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1.5rem;
}

.testimonials__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  margin-bottom: .5rem;
}

.testimonials__stars {
  display: flex;
  column-gap: .25rem;
}

.testimonials__stars i {
  font-size: 1rem;
  color: var(--title-color);
}

.testimonials__number {
  font-size: var(--h3-font-size);
}

.testimonials__content {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.testimonials__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

.testimonials__content:hover {
  animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/*=============== CONTACT ===============*/
.contact__container {
  padding-bottom: 2rem;
  row-gap: 4rem;
}

.contact .section__title {
  margin-bottom: 1.5rem;
}

.contact__data {
  text-align: center;
}

.contact__description {
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__email {
  display: none;
}

.contact__button {
  cursor: pointer;
}

.contact__content {
  row-gap: 3rem;
}

.contact__info {
  row-gap: 1rem;
}

.contact__title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact__address {
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-medium);
  text-align: center;
}

.contact__links {
  display: grid;
  justify-content: center;
  grid-template-columns: max-content;
  row-gap: 0.25rem;
}

#coffe1,
#coffe2 {
  margin-top: 0.25rem;
  width: 200px;
}


.contact__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.5rem;
  transition: transform .4s, color .4s;
}

.contact__link i {
  font-size: 1.5rem;
}

.contact__link:hover {
  color: var(--text-color);
  transform: translateX(0.35rem);
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}

.footer .blob-animate {
  right: -3rem;
  bottom: -3rem;
}

.footer__copy {
  color: var(--title-color);
}

.footer__copy span {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__year {
  font-family: var(--second-font);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(240, 6%, 12%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(240, 6%, 30%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(240, 6%, 50%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .blob,
  .home__image .blob-animate {
    width: 220px;
    height: 220px;

  }

  .projects__card {
    padding-inline: 1rem;
  }

  .work__tabs {
    padding-inline: 1rem;
  }

  .testimonials__card {
    width: 250px;
    padding-bottom: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container,
  .work__container,
  .services__container {
    grid-template-columns: 460px;
    justify-content: center;
  }

  .about__data,
  .about__data .section__title {
    text-align: center;
  }

  :is(.projects, .testimonials) .section__title {
    text-align: center;
    margin-left: 0;
  }

  .projects__card {
    width: 350px;
  }

  .work__tabs {
    width: 330px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    width: 600px;
  }

  .work__container {
    grid-template-columns: 600px;
  }

  .work__area {
    padding-left: 0;
  }

  .work__card {
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }

  .work__line {
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .services__container {
    grid-template-columns: repeat(1, 650px);
    align-items: flex-start;

  }

  .contact__content {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 4rem;
  }

  .hue-swatch {
    width: 16px;
    height: 16px;
  }

  .hue-popover {
    left: auto;
    right: 0;
    transform-origin: top right;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 5.5rem;
  }

  .home__container {
    width: initial;
    padding-top: 3rem;
  }

  .home__perfil {
    width: 600px;
  }

  .home__image .blob-animate {
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }

  .home__shadow {
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(180deg, hsla(240, 100%, 2%, 0) 60%, hsl(240, 100%, 2%)95%);
  }

  .home__data {
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }

  .home__info {
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }

  .home__split {
    font-size: var(--h2-font-size);
  }

  .home__profession-1 {
    font-size: var(--biggest-font-size);
    text-align: initial;
  }

  .home__profession-2 {
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5);
  }

  .home__social {
    bottom: 3rem;
    row-gap: 1.5rem;
  }

  .home__social-link {
    font-size: 1.5rem;
  }

  .home__cv {
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }

  .about__container {
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__perfil {
    width: 500px;
  }

  .about__image {
    order: -1;
  }

  .about__image .blob-animate {
    width: 250px;
    height: 250px;
    filter: blur(50px);
  }

  .about__image .blob-animate:nth-child(1) {
    left: 4rem;
    top: 4rem;
  }

  .about__image .blob-animate:nth-child(2) {
    right: -1rem;
    bottom: 3rem;
  }

  .about__shadow {
    height: 600px;
    bottom: 0;
  }

  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-block: 2rem;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: 5rem;
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--h2-font-size);
  }

  .work__subtitle,
  .work__description {
    font-size: var(--h3-font-size);
  }

  .work__subtitle {
    margin-bottom: 2rem;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-columns: repeat(3, 345px); option for 3*/
    column-gap: 4rem;
  }

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

  .services__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
  }

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(90deg, hsl(0, 0%, 0%) 0%, hsla(0, 0%, 0%, 0) 100%);
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(90deg, hsla(0, 0%, 0%, 0) 0%, hsl(0, 0%, 0%) 100%);
  }

  .testimonials__card {
    width: 350px;
    padding: 3rem, 2rem;
    border-radius: 4rem;
  }

  .testimonials__number {
    font-size: var(--normal-font-size);
  }

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

  .contact__description {
    font-size: var(--h2-font-size);
  }

  .contact__content {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    column-gap: auto;
  }

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

  .contact__write {
    justify-self: flex-end;
  }

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }

  .hue-popover{
    margin-top: 2rem !important;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

/* Custom cursor is hidden for mobile devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}


/* Screen-reader only helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.contact__form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.contact__field {
  display: grid;
}

.contact__input,
.contact__textarea {
  width: 100%;
  color: var(--title-color);
  background: var(--container-color);
  border: 2px solid hsl(240 8% 18%);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.contact__textarea {
  resize: vertical;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 0 4px hsla(var(--hue), 60%, 64%, .15);
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--text-color);
}

.contact__send {
  justify-self: start;
  margin-top: .25rem;
}

.contact__status {
  min-height: 1.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-top: .25rem;
}

.contact__status.success {
  color: hsl(140 70% 60%);
}

.contact__status.error {
  color: hsl(0 70% 60%);
}


/* Place swatch next to logo */
.nav__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}

/* Circle showing the current theme color (uses your var) */
.hue-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--first-color);
  border: 2px solid hsl(240 8% 18%);
  box-shadow: 0 0 12px hsla(var(--hue), 60%, 64%, .5);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hue-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px hsla(var(--hue), 60%, 64%, .7);
}

/* Popover panel */
.hue-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: -2rem;
  background: var(--container-color);
  border: 1px solid hsl(240 8% 18%);
  border-radius: 1rem;
  padding: .75rem .9rem;
  min-width: 240px;
  z-index: var(--z-tooltip);
  box-shadow: 0 10px 30px hsla(0, 0%, 0%, .3);
}

.hue-popover[hidden] {
  display: none;
}

.hue-popover__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

#hue-label {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  color: var(--title-color);
}

#hue-value {
  color: var(--first-color);
}

/* Range with rainbow track */
.hue-range {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    hsl(0 100% 50%),
    hsl(30 100% 50%),
    hsl(60 100% 50%),
    hsl(90 100% 50%),
    hsl(120 100% 50%),
    hsl(150 100% 50%),
    hsl(180 100% 50%),
    hsl(210 100% 50%),
    hsl(240 100% 50%),
    hsl(270 100% 50%),
    hsl(300 100% 50%),
    hsl(330 100% 50%),
    hsl(360 100% 50%)
  );
  outline: none;
  border: 1px solid hsl(240 8% 18%);
}

.hue-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--first-color);
  border: 2px solid hsl(240 8% 18%);
  box-shadow: 0 0 8px hsla(var(--hue), 60%, 64%, .6);
}

.hue-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--first-color);
  border: 2px solid hsl(240 8% 18%);
  box-shadow: 0 0 8px hsla(var(--hue), 60%, 64%, .6);
}

/* Buttons inside popover */
.hue-actions {
  margin-top: .6rem;
}

.hue-btn {
  background: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  padding: .4rem .75rem;
  border-radius: .6rem;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  cursor: pointer;
  transition: box-shadow .2s;
}

.hue-btn:hover {
  box-shadow: 0 0 16px hsla(var(--hue), 60%, 64%, .4);
}

.hue-btn--ghost {
  border-color: hsl(240 8% 24%);
}


/* Keep logo + swatch on one line */
.nav__brand {
  gap: .5rem;
  align-items: flex-start
}