:root {
  /* Brand Theme Colors */
  --brand-900: #003024;
  --brand-800: #004838;
  --brand-700: #00634c;  
  --brand-600: #008764;
  --brand-500: #00b07d;
  --brand-400: #00d084;
  --brand-200: #a7f3d0;
  --brand-100: #d1fae5;
  --brand-50:  #f0fdf8;

  --bg-page: #f4fbf8;
  --text-dark: #07251d;
  --text-muted: #4e6b63;
}

/* Full Width Container */
#RatingJourney {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
}

#RatingJourney .viewport-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 1400px;
    height: 605px;
    transform-origin: top left; /* Container ke andar bilkul fit baithega */
    flex-shrink: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
} 

/* Scene Canvas with Brand Gradient */
#RatingJourney .scene {
  position: relative;
  width: 1400px;
  height: 605px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #eefbf6 45%,
    #c8f2e2 75%,
    #4ecba4 100%
  );
  overflow: hidden;
}

/* Brand subtle ambient lights */
#RatingJourney .sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 75%,
      rgba(0, 208, 132, 0.18),
      #005b3fd6
    ),
    radial-gradient(
      circle at 82% 25%,
      rgba(255, 255, 255, 0.65),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 10%,
      rgba(167, 243, 208, 0.25),
      transparent 40%
    );
}

#RatingJourney h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 14px 0 16px;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: var(--brand-900);
}

#RatingJourney p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

#RatingJourney .line {
  width: 80px;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-400));
  margin-top: 25px;
}

/* Brand-themed layered topography */
#RatingJourney .mountain {
  position: absolute;
  bottom: -45px;
  filter: drop-shadow(0 -8px 25px rgba(0, 48, 36, 0.07));
}

#RatingJourney .back {
  right: -5%;
  width: 90%;
  height: 62%;
  background: linear-gradient(150deg, #9ae6ca, #38a584);
  clip-path: polygon(
    0 100%,
    14% 61%,
    24% 78%,
    38% 35%,
    50% 67%,
    64% 28%,
    76% 58%,
    88% 38%,
    100% 67%,
    100% 100%
  );
  opacity: 0.65;
}

#RatingJourney .mid {
  right: 0%;
  width: 88%;
  height: 54%;
  background: linear-gradient(150deg, #3aa986, var(--brand-700));
  clip-path: polygon(
    0 100%,
    12% 57%,
    22% 77%,
    35% 31%,
    48% 70%,
    61% 47%,
    74% 67%,
    86% 42%,
    100% 72%,
    100% 100%
  );
  opacity: 0.88;
}

#RatingJourney .front {
  left: -5%;
  width: 105%;
  height: 46%;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
  clip-path: polygon(
    0 100%,
    32% 38%,
    45% 76%,
    58% 45%,
    72% 76%,
    85% 53%,
    100% 70%,
    100% 100%
  );
}

/* Growth dashed path - Shifted leftward */
#RatingJourney .path {
  position: absolute;
  z-index: 5;
  left: 3%;
  bottom: 20%;
  width: 76%;
  height: 48%;
  border-top: 4px dashed rgba(255, 255, 255, 0.9);
  border-radius: 55% 45% 0 0;
  transform: rotate(-6deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: draw 7s ease-in-out infinite;
}

/* Markers - Left gap reduced */
#RatingJourney .marker {
  position: absolute;
  z-index: 8;
  text-align: center;
}

#RatingJourney .m1 {
  left: 14%;
  bottom: 27%;
}

#RatingJourney .m2 {
  left: 42%;
  bottom: 44%;
}

#RatingJourney .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: auto;
  background: #ffffff;
  border: 4px solid var(--brand-700);
  box-shadow: 0 0 0 8px rgba(0, 99, 76, 0.2);
}

#RatingJourney .card {
  margin-top: -2px;
  transform: translateY(-50%);
  min-width: 220px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(0, 48, 36, 0.12);
  white-space: nowrap;
}

#RatingJourney .year {
  font-size: 24px;
  color: var(--brand-700);
  font-weight: 700;
  letter-spacing: 0.5px;
}

#RatingJourney .rating {
  font-size: 38px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--brand-900);
  white-space: nowrap;
}

#RatingJourney .tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  border-radius: 20px;
  background: #dff7ed;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

#RatingJourney .continue {
  position: absolute;
  z-index: 9;
  right: 60px;
  top: 65px;
  padding: 14px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 48, 36, 0.15);
  white-space: nowrap;
}

/* Paper Plane */
#RatingJourney .plane {
  position: absolute;
  z-index: 10;
  left: 17%;
  bottom: 29%;
  width: 86px;
  height: 60px;
  animation: fly 7s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
  filter: drop-shadow(0 10px 14px rgba(0, 48, 36, 0.25));
}

#RatingJourney .plane:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  border-left: 70px solid #ffffff;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  transform: rotate(-8deg);
}

#RatingJourney .plane:after {
  content: "";
  position: absolute;
  left: 30px;
  top: 28px;
  width: 38px;
  height: 2px;
  background: var(--brand-400);
  transform: rotate(17deg);
}

#RatingJourney .glow {
  position: absolute;
  right: 12%;
  top: 24%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 28px 12px rgba(255, 255, 255, 0.85);
  animation: pulse 2s ease-in-out infinite;
}

/* Coordinated Flight Keyframes matching new path */
@keyframes fly {
  0%, 8% { left: 17%; bottom: 29%; transform: rotate(-5deg); }
  38% { left: 39%; bottom: 43%; transform: rotate(-10deg); }
  63% { left: 54%; bottom: 53%; transform: rotate(-12deg); }
  100% { left: 74%; bottom: 68%; transform: rotate(-8deg); }
}

@keyframes draw {
  0% { width: 8%; opacity: 0.2; }
  55% { width: 55%; opacity: 0.8; }
  100% { width: 76%; opacity: 0.55; }
}

@keyframes pulse {
  50% { transform: scale(1.25); opacity: 0.7; }
}