/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --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), 6%, 76%);
  --body-color: hsl(var(--hue), 12%, 4%);
  --container-color: hsl(var(--hue), 8%, 10%);
  --border-color: hsl(var(--hue), 8%, 22%);

  /*========== Font and typography ==========*/
  --body-font: "Poppins", system-ui, -apple-system, sans-serif;
  --second-font: "Syne", system-ui, -apple-system, sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.05rem;
  --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;
}

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.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);
  overflow-x: hidden;
}

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;
}

/* Keyboard Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background-color: var(--first-color);
  color: var(--black-color);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: var(--font-semi-bold);
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 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;
}

/*=============== SCROLL REVEAL (CSP SAFE) ===============*/
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/*=============== BLOB ===============*/
.blob-small, .blob-big {
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.blob-small {
  width: 100px;
  height: 100px;
  filter: blur(50px);
}

.blob-big {
  width: 180px;
  height: 180px;
  filter: blur(110px);
  opacity: 0.45;
}

/*=============== CUSTOM CURSOR ===============*/
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: hsla(var(--hue), 75%, 60%, 0.25);
  border: 1px solid var(--first-color);
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-hidden {
  opacity: 0;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}

.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);
  font-size: 1.15rem;
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -120%;
    width: 80%;
    height: 100%;
    background-color: hsla(var(--hue), 8%, 10%, 0.85);
    -webkit-backdrop-filter: blur(24px);
    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: 2.5rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
  display: inline-block;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.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-top: auto;
  margin-bottom: auto;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav__contact {
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--black-color);
  padding: 0.85rem 1.75rem;
  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.35);
}

.nav__close {
  position: absolute;
  color: var(--white-color);
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.show-menu {
  right: 0;
}

.bg-header {
  background-color: hsla(var(--hue), 12%, 4%, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.active-link {
  color: var(--first-color);
}

.active-link::after {
  opacity: 1;
}

/*=============== HOME SECTION ===============*/
.home {
  position: relative;
  padding-top: 6.5rem;
}

.home__blob-1 {
  top: -3rem;
  left: -3rem;
}

.home__blob-2 {
  top: 10rem;
  right: -4rem;
}

.home__container {
  row-gap: 3rem;
  justify-items: center;
}

.home__data {
  text-align: center;
}

.home__subtitle {
  display: block;
  color: var(--white-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.75rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/*=============== MODERN VISIBLE SHIMMER & BREATHING GLOW ===============*/
.home__highlight {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    hsl(var(--hue), 75%, 52%) 0%,
    hsl(var(--hue), 75%, 52%) 35%,
    #ffffff 50%,
    hsl(var(--hue), 75%, 52%) 65%,
    hsl(var(--hue), 75%, 52%) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
}

/* Garis bawah neon lembut yang berdenyut halus (Breathing Line) */
.home__highlight::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 75%;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--first-color) 25%,
    #ffffff 50%,
    var(--first-color) 75%,
    transparent 100%
  );
  border-radius: 4px;
  transform: translateX(-50%);
  box-shadow: 0 0 14px hsla(var(--hue), 75%, 60%, 0.8);
  animation: pulseLine 2s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulseLine {
  0% {
    width: 35%;
    opacity: 0.4;
  }
  100% {
    width: 90%;
    opacity: 1;
  }
}

.home__description {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--small-font-size);
}

.home__images {
  position: relative;
  display: grid;
  place-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.home__blob-center {
  width: 260px;
  height: 260px;
  filter: blur(90px);
  opacity: 0.4;
}

.home__perfil {
  position: relative;
  width: 230px;
  height: 280px;
}

.home__card-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--white-color);
  border-radius: 1.75rem;
  transform: rotate(-8deg);
  z-index: 1;
}

.home__card {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, hsl(var(--hue), 85%, 75%) 0%, hsl(var(--hue), 75%, 50%) 100%);
  border-radius: 1.75rem;
  border: 3px solid var(--white-color);
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Membuat foto menempel rapi di bagian bawah */
  justify-content: center;
  transform: rotate(6deg);
  z-index: 2;
  box-shadow: 0 16px 40px hsla(var(--hue), 75%, 30%, 0.35);
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mengisi penuh bingkai kartu dengan proporsi pas */
  object-position: center bottom; /* Fokus tampilan dari tengah ke bawah (posisi badan & kepala pas) */
  transform: rotate(-6deg) scale(1.05); /* Sedikit scaling untuk menutup celah sudut */
}

/* Circular text animation (CSP-Compliant Pure CSS Rotation) */
.home__circle {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 96px;
  height: 96px;
  background-color: hsla(var(--hue), 12%, 6%, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
}

.home__text {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  animation: rotateText 12s linear infinite;
}

.home__text span {
  position: absolute;
  left: 50%;
  top: 6px;
  font-size: 0.55rem;
  font-weight: var(--font-semi-bold);
  color: var(--white-color);
  transform-origin: 0 42px;
  letter-spacing: 1px;
  transform: rotate(calc(var(--char-index, 0) * 15deg));
}

.home__text span:nth-child(1)  { --char-index: 0; }
.home__text span:nth-child(2)  { --char-index: 1; }
.home__text span:nth-child(3)  { --char-index: 2; }
.home__text span:nth-child(4)  { --char-index: 3; }
.home__text span:nth-child(5)  { --char-index: 4; }
.home__text span:nth-child(6)  { --char-index: 5; }
.home__text span:nth-child(7)  { --char-index: 6; }
.home__text span:nth-child(8)  { --char-index: 7; }
.home__text span:nth-child(9)  { --char-index: 8; }
.home__text span:nth-child(10) { --char-index: 9; }
.home__text span:nth-child(11) { --char-index: 10; }
.home__text span:nth-child(12) { --char-index: 11; }
.home__text span:nth-child(13) { --char-index: 12; }
.home__text span:nth-child(14) { --char-index: 13; }
.home__text span:nth-child(15) { --char-index: 14; }
.home__text span:nth-child(16) { --char-index: 15; }
.home__text span:nth-child(17) { --char-index: 16; }
.home__text span:nth-child(18) { --char-index: 17; }
.home__text span:nth-child(19) { --char-index: 18; }
.home__text span:nth-child(20) { --char-index: 19; }
.home__text span:nth-child(21) { --char-index: 20; }
.home__text span:nth-child(22) { --char-index: 21; }
.home__text span:nth-child(23) { --char-index: 22; }
.home__text span:nth-child(24) { --char-index: 23; }

.home__icon {
  width: 36px;
  height: 36px;
  background-color: var(--first-color);
  color: var(--black-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform 0.3s;
}

.home__circle:hover .home__icon {
  transform: translateY(3px);
}

@keyframes rotateText {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  background: var(--gradient-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 0.9rem 1.85rem;
  border-radius: 4rem;
  cursor: pointer;
  transition: box-shadow 0.4s, transform 0.3s;
}

.button .icon {
  transition: transform 0.3s;
}

.button:hover {
  box-shadow: 0 8px 28px hsla(var(--hue), 75%, 60%, 0.4);
}

.button:hover .icon {
  transform: translateX(4px);
}

/*=============== ABOUT SECTION ===============*/
.about__container {
  row-gap: 2rem;
}

.about__title {
  font-size: var(--h1-font-size);
  line-height: 1.35;
}

.about__title span {
  color: var(--first-color);
}

.about__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 1.5rem;
}

.about__description {
  line-height: 1.6;
}

/*=============== WORK SECTION (NATIVE CSS SCROLL SNAP) ===============*/
.work__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.work__carousel::-webkit-scrollbar {
  display: none;
}

.work__card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--container-color) 0%, hsla(var(--hue), 35%, 14%, 0.85) 100%);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 1.5rem;
  transition: border-color 0.4s;
}

.work__card:hover {
  border-color: hsla(var(--hue), 75%, 60%, 0.5);
}

.work__image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 350 / 230;
}

.work__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work__card:hover .work__img {
  transform: scale(1.05);
}

.work__link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  background-color: var(--first-color);
  color: var(--black-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform 0.3s;
}

.work__link:hover {
  transform: scale(1.08);
}

.work__number {
  display: block;
  font-family: var(--second-font);
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.work__name {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.work__description {
  font-size: var(--small-font-size);
  line-height: 1.5;
}

.work__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  margin-top: 1.5rem;
}

.work__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.work__nav-btn:hover {
  background-color: var(--first-color);
  color: var(--black-color);
  border-color: var(--first-color);
}

.work__dots {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

/* 44x44px hit target for 100/100 Mobile Accessibility & Agentic Browsing */
.work__dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.work__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-color);
  opacity: 0.4;
  transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
}

.work__dot.active::before {
  background-color: var(--first-color);
  opacity: 1;
  transform: scale(1.25);
}

/*=============== SERVICES SECTION ===============*/
.services__container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  row-gap: 1.25rem;
}

.services__card {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.4s, background 0.4s;
}

.services__heading {
  margin: 0;
}

.services__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.services__name {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--white-color);
}

.services__button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsla(var(--hue), 8%, 18%, 0.8);
  border: 1px solid var(--border-color);
  color: var(--first-color);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform 0.4s, background-color 0.4s, color 0.4s;
}

.services__info {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease, padding-top 0.4s ease;
}

.services__content {
  overflow: hidden;
}

.services__description {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.services__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.services__item {
  background-color: hsla(var(--hue), 12%, 6%, 0.7);
  border: 1px solid var(--border-color);
  color: var(--white-color);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
}

.services-open {
  border-color: hsla(var(--hue), 75%, 60%, 0.5);
  background: linear-gradient(180deg, var(--container-color) 0%, hsla(var(--hue), 35%, 12%, 0.6) 100%);
}

.services-open .services__info {
  grid-template-rows: 1fr;
  padding-top: 1.25rem;
}

.services-open .services__button {
  transform: rotate(-180deg);
  background-color: var(--first-color);
  color: var(--black-color);
}

/*=============== SKILLS SECTION ===============*/
.skills__description {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.skills__container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  row-gap: 1.25rem;
}

.skills__card {
  background: linear-gradient(90deg, hsla(var(--hue), 25%, 12%, 0.85) 0%, var(--container-color) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: grid;
  row-gap: 1.25rem;
  align-items: center;
}

.skills__header {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
}

.skills__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.skills__title {
  font-size: var(--h2-font-size);
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.skills__item {
  display: flex;
  align-items: center;
  column-gap: 0.45rem;
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.skills__badge {
  color: var(--first-color);
  font-size: 1.1rem;
}

/*=============== TESTIMONIALS SECTION ===============*/
.testimonials__container {
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials__slider {
  display: flex;
  column-gap: 1.5rem;
  width: max-content;
  /* Kita set default animasi di sini, tapi durasi pastinya akan diatur oleh JS */
  animation: scrollTestimonials 140s linear infinite;
}

/* Kita tetap pasang hover di CSS sebagai backup */
.testimonials__slider:hover {
  animation-play-state: paused !important;
}

.testimonials__card {
  width: 300px;
  background: linear-gradient(180deg, var(--container-color) 0%, hsla(var(--hue), 40%, 15%, 0.85) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 1.5rem;
  flex-shrink: 0;
}

.testimonials__rating {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.testimonials__number {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
}

.testimonials__stars {
  display: flex;
  column-gap: 0.2rem;
  color: var(--first-color);
  font-size: 0.9rem;
}

.testimonials__description {
  font-size: var(--small-font-size);
  line-height: 1.65;
}

.testimonials__perfil {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
}

.testimonials__img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
  row-gap: 3rem;
}

.contact__form {
  display: grid;
  row-gap: 1.5rem;
}

.contact__group {
  display: grid;
  row-gap: 1.25rem;
}

.contact__box {
  position: relative;
  width: 100%;
  height: 58px;
}

.contact__input {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 0.5rem;
  color: var(--white-color);
  transition: border-color 0.4s;
}

.contact__input:focus {
  border-color: var(--first-color);
}

.contact__label {
  position: absolute;
  left: 1.25rem;
  top: 1.15rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  pointer-events: none;
  transition: top 0.3s, font-size 0.3s, color 0.3s;
}

.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown) + .contact__label {
  top: 0.4rem;
  font-size: var(--smaller-font-size);
  color: var(--first-color);
}

.contact__area {
  height: 150px;
}

.contact__area textarea {
  resize: none;
  padding-top: 1.5rem;
}

.contact__message {
  font-size: var(--small-font-size);
  color: var(--white-color);
  min-height: 1.25rem;
}

.contact__button {
  width: 100%;
}

.contact__info {
  display: grid;
  row-gap: 1rem;
  align-content: center;
}

.contact__card {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 4rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.4s, transform 0.3s;
}

.contact__card:hover {
  border-color: var(--first-color);
  transform: translateX(4px);
}

.contact__card-left {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.contact__icon {
  font-size: 1.35rem;
  color: var(--first-color);
}

.contact__title {
  font-size: var(--small-font-size);
  font-family: var(--body-font);
  margin-bottom: 0.15rem;
}

.contact__address {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.contact__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: hsla(var(--hue), 12%, 6%, 0.8);
  border: 1px solid var(--border-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.contact__card:hover .contact__arrow {
  background-color: var(--first-color);
  color: var(--black-color);
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.footer__blob {
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
}

.footer__container {
  row-gap: 2.5rem;
  margin-bottom: 4rem;
}

.footer__title {
  font-size: var(--h1-font-size);
  line-height: 1.35;
}

.footer__title span {
  font-weight: var(--font-regular);
  color: var(--text-color);
}

.footer__content {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__links {
  display: flex;
  column-gap: 2rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  column-gap: 0.75rem;
}

.footer__social-link {
  color: var(--first-color);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform 0.3s, color 0.3s;
}

.footer__social-link:hover {
  transform: translateY(-3px);
  color: var(--white-color);
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1.25rem;
  bottom: -50%;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  color: var(--first-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.3s, background-color 0.3s, color 0.3s;
}

.scrollup:hover {
  transform: translateY(-4px);
  background-color: var(--first-color);
  color: var(--black-color);
}

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 540px) {
  .nav__menu {
    width: 50%;
  }
  .work__carousel {
    grid-auto-columns: calc(50% - 0.75rem);
  }
  .about__container,
  .contact__container {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 768px) {
  .about__container {
    max-width: 100%;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    column-gap: 3rem;
  }
  .skills__card {
    grid-template-columns: 200px 1fr;
    column-gap: 2rem;
    padding: 1.75rem 2.25rem;
  }
  .contact__container {
    max-width: 100%;
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 3rem;
    align-items: center;
  }
  .footer__container {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
  .footer__content {
    align-items: flex-end;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding-top: 7rem;
    padding-bottom: 2rem;
  }
  .section__title {
    margin-bottom: 3.5rem;
  }
  .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: 3.5rem;
  }
  .home {
    padding-top: 8.5rem;
  }
  .home__perfil {
    width: 270px;
    height: 330px;
  }
  .home__img {
    width: 245px;
  }
  .about__container {
    column-gap: 5rem;
  }
  .work__carousel {
    grid-auto-columns: calc(33.333% - 1rem);
  }
  .work__card {
    padding: 1.5rem;
  }
  .contact__container {
    max-width: 960px;
    column-gap: 4.5rem;
  }
  .scrollup {
    right: 3rem;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}