.nav-link .nav-underline {
  width: 0;
}

.nav-link:hover .nav-underline {
  width: 100%;
}

.nav-link.active .nav-underline {
  width: 100%;
}


.nav-link.active span {
  color: #dc2626;
}

.menu-link {
  position: relative;
  width: fit-content;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #dc2626;
  transition: width 0.3s ease;
}

.menu-link.active::after {
  width: 100%;
}

.menu-link.active {
  color: #dc2626;
}

.fade-up{
opacity:0;
transform:translateY(80px);
transition:1s;
}

.fade-up.show{
opacity:1;
transform:translateY(0);
}

/* Fade Left */

.fade-left{
opacity:0;
transform:translateX(-100px);
transition:1s;
}

.fade-left.show{
opacity:1;
transform:translateX(0);
}

/* Fade Right */

.fade-right{
opacity:0;
transform:translateX(100px);
transition:1s;
}

.fade-right.show{
opacity:1;
transform:translateX(0);
}

/* Zoom Animation */

.zoom-in{
opacity:0;
transform:scale(0.5);
transition:1s;
}

.zoom-in.show{
opacity:1;
transform:scale(1);
}

/* Rotate Animation */

.rotate{
opacity:0;
transform:rotate(-180deg);
transition:1s;
}

.rotate.show{
opacity:1;
transform:rotate(0deg);
}


@keyframes float {
      0% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-20px);
      }

      100% {
        transform: translateY(0px);
      }
    }

    .animate-float {
      animation: float 6s ease-in-out infinite;
    }

    .glass-effect {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .gradient-text {
      background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 30px;
      border-radius: 50px;
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      color: #fff;
      font-weight: 600;
      font-size: .95rem;
      border: none;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 8px 30px rgba(220, 38, 38, .35);
      transition: transform .2s, box-shadow .2s;
      font-family: 'DM Sans', sans-serif;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 40px rgba(220, 38, 38, .5);
    }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 30px;
      border-radius: 50px;
      background: transparent;
      border: 1.5px solid rgba(220, 38, 38, .35);
      color: #dc2626;
      font-weight: 600;
      font-size: .95rem;
      cursor: pointer;
      text-decoration: none;
      transition: background .2s, border-color .2s, color .2s;
      font-family: 'DM Sans', sans-serif;
    }

    .btn-outline:hover {
      background: rgba(220, 38, 38, .06);
      border-color: #dc2626;
    }


    .nav-link {
      position: relative;
      color: #475569;
      transition: all 0.3s ease;
    }

    .nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -3px;
      height: 2px;
      width: 0;
      background: #dc2626;
      transition: width 0.3s ease;
    }

    .nav-link:hover {
      color: #dc2626;
    }

    .nav-link:hover::after {
      width: 100%;
    }

    .nav-link.active {
      color: #dc2626;
      font-weight: 600;
    }

    .nav-link.active::after {
      width: 100%;
    }

    .timeline-progress {
      width: 0%;
      animation: progressLine 4s ease forwards;
    }

    @keyframes progressLine {
      from {
        width: 0%;
      }

      to {
        width: 100%;
      }
    }

    /* Step circle */
    .step-circle {
      width: 80px;
      height: 80px;
      margin: auto;
      margin-bottom: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-weight: 700;
      color: white;

      background: linear-gradient(135deg, #ef4444, #dc2626);
      border: 6px solid white;

      box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);

      transform: scale(0);
      animation: stepPop .6s forwards;
    }

    /* animation delay for steps */
    .delay-1 {
      animation-delay: .3s
    }

    .delay-2 {
      animation-delay: .8s
    }

    .delay-3 {
      animation-delay: 1.3s
    }

    .delay-4 {
      animation-delay: 1.8s
    }

    /* step pop animation */
    @keyframes stepPop {
      0% {
        transform: scale(0);
      }

      80% {
        transform: scale(1.1);
      }

      100% {
        transform: scale(1);
      }
    }


    /* progress line animation */
    .timeline-progress {
      width: 0%;
      animation: progressLine 3s ease forwards;
    }

    @keyframes progressLine {
      from {
        width: 0%;
      }

      to {
        width: 100%;
      }
    }

    #features {
      scroll-margin-top: 100px;
    }

    .feature-card {
      position: relative;
      padding: 40px;
      border-radius: 20px;
      background: white;
      border: 1px solid #f1f1f1;
      overflow: hidden;
      /* min-height: 180px; */
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all .35s ease;
      cursor: pointer;
    }

    .feature-card:hover {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 25px 60px rgba(255, 0, 80, .15);
    }

    .feature-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 20px;
      background: radial-gradient(circle at var(--x) var(--y), rgba(255, 0, 80, .15), transparent 40%);
      opacity: 0;
      transition: opacity .3s;
    }

    .feature-card:hover::before {
      opacity: 1;
    }

    .gradient-card {
      background: linear-gradient(135deg, #fff 20%, #ffe8ed 100%);
    }

    .feature-img {
      position: absolute;
      right: -22px;
      bottom: -45px;
      width: 185px;
      /* width: 180px; */
      /* opacity: .9; */
    }

    .small-icon {
      position: absolute;
      right: -17px;
      top: -33px;
      width: 100px;
      /* width:42px; */
      opacity: .7;
    }

    .small-icon1 {
      position: absolute;
      right: -17px;
      top: -15px;
      width: 100px;
      /* width:42px; */
      opacity: .7;
    }

    /* mobile responsive */
    @media(max-width:768px) {

      .feature-card {
        flex-direction: column;
        text-align: center;
      }

      .feature-img img {
        width: 100px;
        margin-top: 15px;
      }

    }

    /* initial hidden state */

    .reveal-left,
    .reveal-right {
      opacity: 0;
      transition: all .8s ease;
    }

    .reveal-left {
      transform: translateX(-80px);
    }

    .reveal-right {
      transform: translateX(80px);
    }

    /* active when visible */

    .reveal-active {
      opacity: 1;
      transform: translateX(0);
    }

    /* floating icon animation */
    @keyframes float {
      0% {
        transform: translateY(0)
      }

      50% {
        transform: translateY(-10px)
      }

      100% {
        transform: translateY(0)
      }
    }

    nav a.active span:last-child {
      width: 100%;
    }

    