/* =========================================================
   SMART SOLUTIONS
========================================================= */

.smart-solutions {
  width: 100%;
  padding: 3.5rem 1rem 3rem;

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      #e9e6f8 0%,
      #eaf3fd 50%,
      #ddeeff 100%
    );

  overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.smart-solutions__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}


/* =========================================================
   TITLE
========================================================= */

.smart-solutions__title {
  margin: 0 0 3rem;

  text-align: center;

  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;

  color: #163356;
}


/* =========================================================
   CAROUSEL
========================================================= */

.smart-solutions__carousel {
  position: relative;

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

  width: 100%;
  min-height: 640px;

  perspective: 1400px;
}


/* =========================================================
   CARD CONTAINER
========================================================= */

.smart-solutions__cards {
  position: relative;

  width: 380px;
  height: 540px;

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

  transform-style: preserve-3d;
}


/* =========================================================
   SOLUTION CARD
========================================================= */

.solution-card {
  position: absolute;

  top: 0;
  left: 0;

  width: 380px;
  min-height: 540px;

  border-radius: 24px;

  overflow: hidden;

  cursor: default;

  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 650ms cubic-bezier(0.4, 0, 0.2, 1);

  will-change:
    transform,
    opacity,
    filter;
}


/* =========================================================
   CARD BACKGROUND
========================================================= */

.solution-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.88);

  border:
    1px solid rgba(255, 255, 255, 0.95);

  z-index: 0;
}


/* =========================================================
   CARD GRADIENT
========================================================= */

.solution-card__gradient {
  position: absolute;
  inset: 0;

  border-radius: 24px;

  opacity: 0.13;

  pointer-events: none;

  z-index: 1;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.solution-card__content {
  position: relative;

  z-index: 2;

  width: 100%;
  min-height: 540px;

  box-sizing: border-box;

  padding: 36px 32px 34px;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;
}


/* =========================================================
   NUMBER
========================================================= */

.solution-card__number {
  align-self: flex-start;

  display: flex;
  align-items: center;

  margin-bottom: 0;

  font-family:
    "Courier New",
    monospace;

  font-size: 56px;

  font-weight: 700;

  line-height: 0.8;

  letter-spacing: -4px;

  color: #1a3a5c;

  opacity: 0.95;
}


/* Dotted number */

.solution-card__number span {
  display: inline-block;

  position: relative;

  color: transparent;

  background-image:
    radial-gradient(
      circle,
      #1a3a5c 1.8px,
      transparent 2px
    );

  background-size: 6px 6px;

  -webkit-background-clip: text;
  background-clip: text;
}


/* =========================================================
   AI ORB WRAPPER
========================================================= */

.ai-orb-wrapper {
  width: 200px;
  height: 200px;

  flex-shrink: 0;

  margin:
    22px auto 4px;

  border-radius: 50%;

  position: relative;

  display: block;
}


/* =========================================================
   AI ORB CANVAS
========================================================= */

.ai-orb {
  display: block;

  width: 200px;
  height: 200px;

  max-width: none;
  max-height: none;

  margin: 0;

  border-radius: 50%;

  flex-shrink: 0;
}


/* =========================================================
   TITLE
========================================================= */

.solution-card__title {
  margin:
    4px 0 14px;

  text-align: center;

  font-size: 20px;

  line-height: 1.3;

  font-weight: 600;

  color: #163356;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.solution-card__description {
  margin: 0;

  max-width: 310px;

  text-align: center;

  font-size: 14px;

  line-height: 1.75;

  font-weight: 400;

  color: #6a778d;
}


/* =========================================================
   CENTER CARD
========================================================= */

.solution-card[data-slot="0"] {
  transform:
    perspective(1400px)
    translateX(0)
    rotateY(0deg)
    scale(1);

  opacity: 1;

  filter: blur(0);

  z-index: 10;

  box-shadow:
    0 16px 56px
    rgba(100, 140, 200, 0.18);

  cursor: default;
}


/* =========================================================
   LEFT CARD
========================================================= */

.solution-card[data-slot="-1"] {
  transform:
    perspective(1400px)
    translateX(-300px)
    rotateY(18deg)
    scale(0.84);

  opacity: 0.55;

  filter: blur(2px);

  z-index: 1;

  box-shadow: none;

  cursor: pointer;
}


/* =========================================================
   RIGHT CARD
========================================================= */

.solution-card[data-slot="1"] {
  transform:
    perspective(1400px)
    translateX(300px)
    rotateY(-18deg)
    scale(0.84);

  opacity: 0.55;

  filter: blur(2px);

  z-index: 1;

  box-shadow: none;

  cursor: pointer;
}


/* =========================================================
   HIDDEN CARD
========================================================= */

.solution-card[data-slot="99"] {
  transform:
    perspective(1400px)
    translateX(0)
    scale(0.7);

  opacity: 0;

  filter: blur(6px);

  z-index: 0;

  pointer-events: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.smart-solutions__nav {
  position: absolute;

  top: 50%;

  width: 56px;
  height: 56px;

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

  padding: 0;

  transform:
    translateY(-50%);

  border-radius: 50%;

  border:
    1px solid
    rgba(200, 220, 240, 0.6);

  background:
    rgba(255, 255, 255, 0.75);

  color: #163356;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  z-index: 100;

  backdrop-filter:
    blur(6px);

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

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.smart-solutions__nav:hover {
  background:
    rgba(255, 255, 255, 0.95);

  box-shadow:
    0 8px 25px
    rgba(50, 80, 120, 0.12);
}


.smart-solutions__nav:active {
  transform:
    translateY(-50%)
    scale(0.92);
}


.smart-solutions__nav--prev {
  left:
    calc(50% - 560px);
}


.smart-solutions__nav--next {
  right:
    calc(50% - 560px);
}


/* =========================================================
   DOTS
========================================================= */

.smart-solutions__dots {
  display: flex;

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

  gap: 10px;

  margin-top: 2rem;
}


.smart-solutions__dot {
  width: 11px;
  height: 11px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background:
    rgba(22, 51, 86, 0.2);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}


.smart-solutions__dot:hover {
  background:
    rgba(22, 51, 86, 0.45);
}


.smart-solutions__dot.is-active {
  background:
    #163356;

  transform:
    scale(1.3);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .smart-solutions__nav--prev {
    left: 20px;
  }

  .smart-solutions__nav--next {
    right: 20px;
  }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

  .smart-solutions {
    padding:
      3rem
      0.75rem
      2.5rem;
  }


  .smart-solutions__title {
    font-size: 25px;

    margin-bottom: 2rem;
  }


  .smart-solutions__carousel {
    min-height: 590px;

    overflow: hidden;
  }


  .smart-solutions__cards {
    width: 330px;
    height: 500px;
  }


  .solution-card {
    width: 330px;
    min-height: 500px;
  }


  .solution-card__content {
    min-height: 500px;

    padding:
      28px
      25px
      28px;
  }


  .solution-card[data-slot="-1"] {
    transform:
      perspective(1200px)
      translateX(-220px)
      rotateY(15deg)
      scale(0.78);
  }


  .solution-card[data-slot="1"] {
    transform:
      perspective(1200px)
      translateX(220px)
      rotateY(-15deg)
      scale(0.78);
  }


  .smart-solutions__nav {
    width: 46px;
    height: 46px;

    font-size: 23px;
  }


  .smart-solutions__nav--prev {
    left: 8px;
  }


  .smart-solutions__nav--next {
    right: 8px;
  }


  .ai-orb-wrapper {
    width: 175px;
    height: 175px;

    margin-top: 18px;
  }


  .ai-orb {
    width: 175px;
    height: 175px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

  .smart-solutions {
    border-radius: 18px;

    padding:
      2.5rem
      0
      2rem;
  }


  .smart-solutions__title {
    padding:
      0 20px;

    font-size: 23px;

    line-height: 1.35;
  }


  .smart-solutions__carousel {
    min-height: 555px;
  }


  .smart-solutions__cards {
    width:
      min(
        320px,
        calc(100vw - 70px)
      );

    height: 500px;
  }


  .solution-card {
    width:
      min(
        320px,
        calc(100vw - 70px)
      );

    min-height: 500px;
  }


  .solution-card__content {
    padding:
      26px
      20px
      25px;
  }


  .solution-card[data-slot="-1"],
  .solution-card[data-slot="1"] {
    opacity: 0;

    pointer-events: none;
  }


  .smart-solutions__nav {
    width: 42px;
    height: 42px;

    font-size: 21px;
  }


  .smart-solutions__nav--prev {
    left: 6px;
  }


  .smart-solutions__nav--next {
    right: 6px;
  }


  .solution-card__number {
    font-size: 48px;
  }


  .ai-orb-wrapper {
    width: 165px;
    height: 165px;

    margin-top: 16px;
  }


  .ai-orb {
    width: 165px;
    height: 165px;
  }


  .solution-card__title {
    font-size: 19px;
  }


  .solution-card__description {
    font-size: 13.5px;

    line-height: 1.7;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

  .solution-card {
    transition: none;
  }

  .smart-solutions__dot,
  .smart-solutions__nav {
    transition: none;
  }

}