/*==============================================================================
    STORY SECTION
==============================================================================*/

.fe-story {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(249, 115, 22, 0.08),
      transparent 35%
    ),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.fe-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(circle, #000 45%, transparent 100%);
  pointer-events: none;
}

.fe-story::after {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);

  top: -250px;
  right: -250px;

  animation: storyFloat 12s ease-in-out infinite;
}

/*==============================================================================
    HEADER
==============================================================================*/

.fe-story__header {
  position: relative;

  z-index: 3;

  max-width: 760px;

  margin: 0 auto 110px;

  text-align: center;
}

.fe-story__header .fe-section-title {
  margin-bottom: 22px;
}

.fe-story__header .fe-section-title span {
  display: block;

  margin-top: 12px;

  color: #2563eb;
}

.fe-story__header p {
  max-width: 700px;

  margin: auto;
}

/*==============================================================================
    ROADMAP
==============================================================================*/

.fe-story-roadmap {
  position: relative;

  display: flex;

  flex-direction: column;

  gap: 120px;

  max-width: 1150px;

  margin: auto;
}

/*==============================================================================
    CENTRAL LINE
==============================================================================*/

.fe-story-roadmap__line {
  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 6px;

  transform: translateX(-50%);

  border-radius: 50px;

  background: #dbeafe;

  overflow: hidden;
}

.fe-story-roadmap__line::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    180deg,
    #2563eb,
    #3b82f6,
    #22c55e,
    #f97316,
    #7c3aed
  );

  animation: roadFlow 8s linear infinite;
}

/*==============================================================================
    STEP
==============================================================================*/

.fe-story-card {
  position: relative;

  display: grid;

  grid-template-columns: 1fr 130px 1fr;

  align-items: center;
}

.fe-story-card:nth-child(even) .fe-story-card__content {
  grid-column: 3;
}

.fe-story-card:nth-child(odd) .fe-story-card__content {
  grid-column: 1;
}

.fe-story-card:nth-child(even) .fe-story-card__marker {
  grid-column: 2;
}

.fe-story-card:nth-child(odd) .fe-story-card__marker {
  grid-column: 2;
}

/*==============================================================================
    MARKER
==============================================================================*/

.fe-story-card__marker {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;
}

/*==============================================================================
    YEAR
==============================================================================*/

.fe-story-card__year {
  width: 105px;
  height: 105px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  font-weight: 700;

  font-size: 1.25rem;

  position: relative;

  z-index: 5;

  transform-style: preserve-3d;

  transition: 0.45s;
}

/*==========================
    3D SHADOW
==========================*/

.fe-story-card__year::before {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: 50%;

  transform: translateZ(-12px);

  filter: blur(12px);

  opacity: 0.45;
}

.fe-story-card:hover .fe-story-card__year {
  transform: perspective(800px) rotateX(10deg) translateY(-10px) scale(1.08);
}

/*==========================
    GLOW
==========================*/

.fe-story-card__year::after {
  content: "";

  position: absolute;

  inset: -12px;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.45);

  animation: yearPulse 3s infinite;
}

/*==============================================================================
    UNIQUE COLORS
==============================================================================*/

.fe-story-card:nth-child(1) .fe-story-card__year {
  background: linear-gradient(135deg, #2563eb, #60a5fa);

  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.fe-story-card:nth-child(2) .fe-story-card__year {
  background: linear-gradient(135deg, #22c55e, #4ade80);

  box-shadow:
    0 18px 40px rgba(34, 197, 94, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.fe-story-card:nth-child(3) .fe-story-card__year {
  background: linear-gradient(135deg, #f97316, #fb923c);

  box-shadow:
    0 18px 40px rgba(249, 115, 22, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.fe-story-card:nth-child(4) .fe-story-card__year {
  background: linear-gradient(135deg, #7c3aed, #a855f7);

  box-shadow:
    0 18px 40px rgba(124, 58, 237, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

/*==============================================================================
    CONNECTOR
==============================================================================*/

.fe-story-card__marker::before {
  content: "";

  position: absolute;

  width: 60px;
  height: 4px;

  background: #cbd5e1;
}

.fe-story-card:nth-child(odd) .fe-story-card__marker::before {
  left: -60px;
}

.fe-story-card:nth-child(even) .fe-story-card__marker::before {
  right: -60px;
}

/*==============================================================================
    ANIMATIONS
==============================================================================*/

@keyframes storyFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }
}

@keyframes roadFlow {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes yearPulse {
  0% {
    transform: scale(1);

    opacity: 0.8;
  }

  100% {
    transform: scale(1.35);

    opacity: 0;
  }
}
/*==============================================================================
    STORY CONTENT CARD
==============================================================================*/

.fe-story-card__content {
  position: relative;

  background: rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(226, 232, 240, 0.9);

  border-radius: 30px;

  padding: 40px;

  overflow: hidden;

  transition: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);

  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 6px 14px rgba(15, 23, 42, 0.04);
}

/*=========================
    TOP GLOW
=========================*/

.fe-story-card__content::before {
  content: "";

  position: absolute;

  inset: 0;

  opacity: 0;

  transition: 0.45s;
}

/*=========================
    BOTTOM LIGHT
=========================*/

.fe-story-card__content::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: -120px;

  transform: translateX(-50%);

  width: 220px;

  height: 220px;

  border-radius: 50%;

  filter: blur(55px);

  opacity: 0;

  transition: 0.45s;
}

/*==============================================================================
    DIFFERENT COLORS
==============================================================================*/

.fe-story-card:nth-child(1) .fe-story-card__content::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 70%);
}

.fe-story-card:nth-child(1) .fe-story-card__content::after {
  background: #2563eb;
}

.fe-story-card:nth-child(2) .fe-story-card__content::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 70%);
}

.fe-story-card:nth-child(2) .fe-story-card__content::after {
  background: #22c55e;
}

.fe-story-card:nth-child(3) .fe-story-card__content::before {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.08),
    transparent 70%
  );
}

.fe-story-card:nth-child(3) .fe-story-card__content::after {
  background: #f97316;
}

.fe-story-card:nth-child(4) .fe-story-card__content::before {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08),
    transparent 70%
  );
}

.fe-story-card:nth-child(4) .fe-story-card__content::after {
  background: #7c3aed;
}

/*==============================================================================
    HOVER
==============================================================================*/

.fe-story-card:hover .fe-story-card__content {
  transform: translateY(-12px) rotateX(2deg);

  box-shadow:
    0 35px 70px rgba(15, 23, 42, 0.15),
    0 15px 30px rgba(15, 23, 42, 0.08);
}

.fe-story-card:hover .fe-story-card__content::before {
  opacity: 1;
}

.fe-story-card:hover .fe-story-card__content::after {
  opacity: 0.18;
}

/*==============================================================================
    STEP NUMBER
==============================================================================*/

.fe-story-card__content h3 {
  position: relative;

  padding-left: 72px;

  font-size: 1.55rem;

  color: #0f172a;

  margin-bottom: 18px;

  line-height: 1.35;
}

.fe-story-card__content h3::before {
  counter-increment: journey;

  content: "0" counter(journey);

  position: absolute;

  left: 0;

  top: 2px;

  font-size: 0.95rem;

  width: 48px;

  height: 48px;

  border-radius: 16px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #fff;

  font-weight: 700;
}

.fe-story {
  counter-reset: journey;
}

/*==============================================================================
    STEP COLORS
==============================================================================*/

.fe-story-card:nth-child(1) h3::before {
  background: #2563eb;
}

.fe-story-card:nth-child(2) h3::before {
  background: #22c55e;
}

.fe-story-card:nth-child(3) h3::before {
  background: #f97316;
}

.fe-story-card:nth-child(4) h3::before {
  background: #7c3aed;
}

/*==============================================================================
    ICON
==============================================================================*/

.fe-story-card__icon {
  width: 82px;

  height: 82px;

  border-radius: 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #fff;

  font-size: 32px;

  margin-bottom: 28px;

  transition: 0.45s;

  position: relative;
}

.fe-story-card:nth-child(1) .fe-story-card__icon {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.fe-story-card:nth-child(2) .fe-story-card__icon {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.fe-story-card:nth-child(3) .fe-story-card__icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.fe-story-card:nth-child(4) .fe-story-card__icon {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.fe-story-card__icon::before {
  content: "";

  position: absolute;

  inset: -8px;

  border-radius: 28px;

  opacity: 0.15;

  transition: 0.4s;
}

.fe-story-card:nth-child(1) .fe-story-card__icon::before {
  background: #2563eb;
}

.fe-story-card:nth-child(2) .fe-story-card__icon::before {
  background: #22c55e;
}

.fe-story-card:nth-child(3) .fe-story-card__icon::before {
  background: #f97316;
}

.fe-story-card:nth-child(4) .fe-story-card__icon::before {
  background: #7c3aed;
}

.fe-story-card:hover .fe-story-card__icon {
  transform: rotate(-10deg) scale(1.12);
}

/*==============================================================================
    TEXT
==============================================================================*/

.fe-story-card p {
  font-size: 1rem;

  color: #64748b;

  line-height: 1.9;
}

/*==============================================================================
    DIRECTION ARROW
==============================================================================*/

.fe-story-card:nth-child(odd) .fe-story-card__content {
  margin-right: 45px;
}

.fe-story-card:nth-child(even) .fe-story-card__content {
  margin-left: 45px;
}

.fe-story-card:nth-child(odd) .fe-story-card__content .fe-story-card__icon {
  margin-left: auto;
}

.fe-story-card:nth-child(even) .fe-story-card__content .fe-story-card__icon {
  margin-right: auto;
}
/*==============================================================================
    ACTIVE STEP GLOW
==============================================================================*/

.fe-story-card {
  isolation: isolate;
}

.fe-story-card::before {
  content: "";

  position: absolute;

  left: 50%;

  top: 50%;

  width: 0;

  height: 0;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);

  transform: translate(-50%, -50%);

  transition: 0.5s;

  z-index: -1;
}

.fe-story-card:hover::before {
  width: 520px;

  height: 520px;
}

/*==============================================================================
    FLOATING PARTICLES
==============================================================================*/

.fe-story-card__content::before {
  background-repeat: no-repeat;

  background-image:
    radial-gradient(
      circle at 18% 22%,
      rgba(255, 255, 255, 0.65) 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 78% 30%,
      rgba(255, 255, 255, 0.45) 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 60% 72%,
      rgba(255, 255, 255, 0.45) 2px,
      transparent 3px
    );

  animation: particleFloat 9s linear infinite;
}

/*==============================================================================
    ICON FLOAT
==============================================================================*/

.fe-story-card__icon {
  animation: iconFloat 5s ease-in-out infinite;
}

.fe-story-card:nth-child(2) .fe-story-card__icon {
  animation-delay: 1s;
}

.fe-story-card:nth-child(3) .fe-story-card__icon {
  animation-delay: 2s;
}

.fe-story-card:nth-child(4) .fe-story-card__icon {
  animation-delay: 3s;
}

/*==============================================================================
    MESSAGE CARD
==============================================================================*/

.fe-story-message {
  position: relative;

  overflow: hidden;

  padding: 70px;

  border-radius: 36px;

  background: linear-gradient(135deg, #0f172a, #1e293b);

  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22);
}

.fe-story-message::after {
  content: "";

  position: absolute;

  width: 340px;

  height: 340px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.22),
    transparent 70%
  );

  left: -120px;

  bottom: -120px;
}

.fe-story-message__icon {
  animation: heartbeat 3s infinite;
}

.fe-story-message blockquote {
  position: relative;

  z-index: 2;

  font-size: 1.35rem;

  font-weight: 500;

  line-height: 2;

  letter-spacing: 0.02em;
}

.fe-story-message__author {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-top: 35px;

  padding: 10px 22px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;
}

/*==============================================================================
    ENDING
==============================================================================*/

.fe-story-ending {
  position: relative;

  margin-top: 90px;

  text-align: center;
}

.fe-story-ending h3 {
  position: relative;

  display: inline-block;

  margin-bottom: 24px;
}

.fe-story-ending h3::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: -10px;

  width: 90px;

  height: 4px;

  border-radius: 50px;

  transform: translateX(-50%);

  background: linear-gradient(90deg, #2563eb, #f97316);
}

.fe-story-ending .fe-btn {
  margin-top: 12px;

  transition: 0.35s;
}

.fe-story-ending .fe-btn:hover {
  transform: translateY(-4px);
}

/*==============================================================================
    ANIMATIONS
==============================================================================*/

@keyframes particleFloat {
  0% {
    background-position:
      0 0,
      0 0,
      0 0;
  }

  100% {
    background-position:
      40px -70px,
      -30px -60px,
      20px -80px;
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/*==============================================================================
    RESPONSIVE
==============================================================================*/

@media (max-width: 991px) {
  .fe-story-roadmap {
    gap: 70px;
  }

  .fe-story-roadmap__line {
    left: 55px;

    transform: none;
  }

  .fe-story-card {
    grid-template-columns: 110px 1fr;

    gap: 30px;
  }

  .fe-story-card__marker {
    grid-column: 1 !important;
  }

  .fe-story-card__content {
    grid-column: 2 !important;

    margin: 0 !important;
  }

  .fe-story-card__marker::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .fe-story {
    padding: 80px 0;
  }

  .fe-story-message {
    padding: 45px 28px;
  }

  .fe-story-message blockquote {
    font-size: 1.05rem;

    line-height: 1.9;
  }
}

@media (max-width: 576px) {
  .fe-story-roadmap__line {
    left: 42px;

    width: 5px;
  }

  .fe-story-card {
    grid-template-columns: 84px 1fr;

    gap: 20px;
  }

  .fe-story-card__year {
    width: 72px;

    height: 72px;

    font-size: 1rem;
  }

  .fe-story-card__icon {
    width: 60px;

    height: 60px;

    font-size: 22px;

    border-radius: 18px;
  }
}
