/* Home about section — Sandy design, scoped to page-home only */

/*================================
          ABOUT SECTION
================================*/

.page-home .about {
  padding: 22vh 0 12vh;
  background: var(--color-bg-surface);
  overflow: hidden;
}

.page-home .about-container {
  width: 100%;
  max-width: var(--site-container-max-width);
  padding: 0 var(--site-container-inline-padding);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/*================================
          ABOUT CONTENT
================================*/

.page-home .about-content {
  width: 50%;
  position: relative;
  z-index: 2;

  animation: aboutFadeLeft 0.9s ease both;
}

.page-home .about-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  color: var(--color-text-eyebrow-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.page-home .about-tag::before,
.page-home .about-tag::after {
  content: "";

  width: 32px;
  height: 2px;

  background: var(--color-text-eyebrow-strong);
  border-radius: 20px;
}

.page-home .about-content h2 {
  max-width: 720px;
  margin: 30px 0 26px;

  color: var(--color-text);
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.page-home .about-content h2 span {
  color: var(--color-text-headline-accent);
}

.page-home .about-content p {
  max-width: 570px;
  margin: 0;

  color: var(--color-text-paragraph-subtle);
  font-size: 19px;
  line-height: 1.8;
}

/*================================
            ABOUT BUTTON
================================*/

.page-home .about-btn {
  position: relative;



  gap: 22px;

  margin-top: 42px;
}

.page-home .custom-cta-button {
  min-height: 60px;
  padding: 0 18px 0 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;

  background: linear-gradient(135deg,
      #246bd7 0%,
      #5367e8 55%,
      #8b5cf6 100%);

  border-radius: 999px;

  box-shadow: 0 16px 35px rgba(63, 90, 215, 0.24);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.page-home .custom-cta-button i {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #336fd5;
  font-size: 14px;

  background: #ffffff;
  border-radius: 50%;

  transform: rotate(-45deg);
  transition: transform 0.35s ease;
}

.page-home .custom-cta-button:hover {
  color: #ffffff;
  transform: translateY(-4px);

  box-shadow: 0 22px 45px rgba(63, 90, 215, 0.32);
}

.page-home .custom-cta-button:hover i {
  transform: rotate(0deg);
}

.page-home .grow {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: var(--color-text-headline-accent);
  font-size: 17px;
  font-weight: 700;
  font-family: cursive;

  transform: rotate(-7deg);
}

.page-home .grow span {
  white-space: nowrap;
}

.page-home .grow img {
  width: 80px;
  height: auto;
  margin-top: 2px;

  object-fit: contain;
}

/*================================
        EMPLOYEE IMAGE CARD
================================*/

.page-home .about-image {
  position: relative;
  isolation: isolate;

  width: 50%;
  min-height: 375px;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: aboutFadeRight 0.9s ease both;
}

/* Gradient shape behind the employee image */

.page-home .about-image::before {
  content: "";

  position: absolute;
  z-index: 1;

  width: min(77%, 520px);
  height: 87%;

  top: 4%;
  right: 2%;

  background: linear-gradient(145deg,
      #1766d5 0%,
      #5267e8 48%,
      #8b5cf6 100%);

  border-radius: 44px;

  transform: rotate(4deg);

  box-shadow: 0 30px 65px rgba(83, 83, 220, 0.22);
}

/* Employee information floating card */

.page-home .about-image::after {
  content: "Team Member\A Web Developer";

  position: absolute;
  z-index: 5;

  left: 3%;
  bottom: 6%;

  min-width: 250px;
  padding: 19px 52px 19px 68px;

  color: #121625;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre;

  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;

  background:
    radial-gradient(circle at calc(100% - 25px) 67%,
      #22c55e 0 5px,
      #ffffff 6px 8px,
      transparent 9px),
    radial-gradient(circle at 34px 34px,
      #3479da 0 7px,
      #dceaff 8px 22px,
      transparent 23px),
    rgba(255, 255, 255, 0.95);

  box-shadow:
    0 20px 45px rgba(22, 41, 80, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  animation: aboutCardFloat 4s ease-in-out infinite;
}

/* Employee photo */

.page-home .about-image>img {
  position: relative;
  z-index: 3;

  display: block;

  width: min(77%, 520px);
  aspect-ratio: 7 / 5;

  object-fit: cover;
  object-position: center;

  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;

  box-shadow:
    0 30px 70px rgba(23, 55, 110, 0.18),
    0 12px 30px rgba(27, 43, 79, 0.12);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.page-home .about-image>img:hover {
  transform: translateY(-8px) scale(1.015);

  box-shadow:
    0 40px 85px rgba(23, 55, 110, 0.23),
    0 18px 38px rgba(27, 43, 79, 0.15);
}

/* Purple decorative dots */

.page-home .about-image .dots {
  position: absolute;
  z-index: 2;

  width: 145px;
  height: 145px;

  top: 4%;
  right: -2%;

  background-image: radial-gradient(circle,
      #8b5cf6 2.5px,
      transparent 2.5px);

  background-size: 16px 16px;
  opacity: 0.42;
}

/*================================
            ANIMATIONS
================================*/

@keyframes aboutFadeLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aboutFadeRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aboutCardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/*================================
            RESPONSIVE
================================*/

@media (max-width: 1100px) {
  .page-home .about-container {
    gap: 45px;
  }

  .page-home .about-content {
    width: 52%;
  }

  .page-home .about-image {
    width: 48%;
    min-height: 530px;
  }

  .page-home .about-content h2 {
    font-size: 42px;
  }

  .page-home .about-image>img,
  .page-home .about-image::before {
    width: min(82%, 460px);
  }
}

@media (max-width: 992px) {
  .page-home .about {
    padding: 100px 0 90px;
  }

  .page-home .about-container {
    flex-direction: column;
    gap: 65px;
    text-align: center;
  }

  .page-home .about-content {
    width: 100%;
    order: 1;
  }

  .page-home .about-image {
    width: 100%;
    min-height: 600px;
    order: 2;
  }

  .page-home .about-content h2,
  .page-home .about-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .about-btn {
    justify-content: center;
  }

  .page-home .about-image>img,
  .page-home .about-image::before {
    width: min(68%, 470px);
  }

  .page-home .about-image::before {
    right: 12%;
  }

  .page-home .about-image .dots {
    right: 10%;
  }

  .page-home .about-image::after {
    left: 18%;
    bottom: 5%;
  }
}

@media (max-width: 768px) {
  .page-home .about {
    padding: 70px 20px;
    background: var(--color-bg-muted-alt);
  }

  .page-home .about-container {
    padding: 0;
    gap: 48px;
  }

  .page-home .about-tag {
    gap: 10px;

    font-size: 12px;
    letter-spacing: 2.2px;
  }

  .page-home .about-tag::before,
  .page-home .about-tag::after {
    width: 25px;
  }

  .page-home .about-content h2 {
    margin: 24px 0;
    font-size: clamp(30px, 8vw, 39px);
    line-height: 1.25;
  }

  .page-home .about-content p {
    max-width: 45ch;

    font-size: 15px;
    line-height: 1.75;
  }

  .page-home .about-btn {
    flex-direction: column-reverse;
    gap: 15px;
    margin-top: 32px;
  }

  .page-home .grow {
    font-size: 15px;
  }

  .page-home .grow img {
    width: 65px;
  }

  .page-home .about-image {
    min-height: 520px;
  }

  .page-home .about-image>img {
    width: min(82%, 390px);

    border-width: 4px;
    border-radius: 28px;
  }

  .page-home .about-image::before {
    width: min(82%, 390px);
    height: 85%;

    top: 4%;
    right: 5%;

    border-radius: 34px;
    transform: rotate(3deg);
  }

  .page-home .about-image .dots {
    width: 105px;
    height: 105px;

    top: 2%;
    right: 0;

    background-size: 14px 14px;
  }

  .page-home .about-image::after {
    left: 5%;
    bottom: 4%;

    min-width: 210px;
    padding: 15px 42px 15px 57px;

    font-size: 14px;
    border-radius: 17px;

    background:
      radial-gradient(circle at calc(100% - 21px) 67%,
        #22c55e 0 4px,
        #ffffff 5px 7px,
        transparent 8px),
      radial-gradient(circle at 28px 30px,
        #3479da 0 6px,
        #dceaff 7px 18px,
        transparent 19px),
      rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 480px) {
  .page-home .about {
    padding: 60px 16px;
  }

  .page-home .about-content h2 {
    font-size: 28px;
    letter-spacing: -0.7px;
  }

  .page-home .about-tag {
    font-size: 11px;
    letter-spacing: 1.7px;
  }

  .page-home .about-content p {
    font-size: 14px;
    padding: 0 24px 16px;
  }

  .page-home .custom-cta-button {
    min-height: 54px;
    padding: 0 14px 0 25px;

    font-size: 14px;
  }

  .page-home .custom-cta-button i {
    width: 34px;
    height: 34px;
  }

  .page-home .about-image {
    min-height: 450px;
  }

  .page-home .about-image>img {
    width: 88%;
    border-radius: 24px;
  }

  .page-home .about-image::before {
    width: 88%;
    height: 84%;
    right: 1%;

    border-radius: 28px;
  }

  .page-home .about-image .dots {
    display: none;
  }

  .page-home .about-image::after {
    left: 0;
    bottom: 2%;

    min-width: 190px;
    padding: 13px 37px 13px 52px;

    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-home .about-content,
  .page-home .about-image,
  .page-home .about-image::after {
    animation: none;
  }

  .page-home .about-image>img,
  .page-home .custom-cta-button,
  .page-home .custom-cta-button i {
    transition: none;
  }
}