/* ============================================
   WHY-STORY.CSS - Why FINE STAR & Story Sections
   ============================================ */

/* ===== Why FINE STAR Section ===== */
.why-section {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 50%, #0a0a0a 100%);
  padding: 8em 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.why-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(60, 130, 200, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(155, 225, 93, 0.08) 0%, transparent 50%);
  background-size: 100% 100%;
  opacity: 0.6;
  z-index: 0;
  animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -2%) scale(1.05); }
}

.why-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.why-particles::before,
.why-particles::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 130, 200, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: float 15s ease-in-out infinite;
}

.why-particles::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.why-particles::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 7.5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.why-section .container {
  position: relative;
  z-index: 2;
}

/* ===== Header ===== */
.why-header {
  text-align: center;
  margin-bottom: 5em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-header.animated {
  opacity: 1;
  transform: translateY(0);
}

.why-label {
  display: inline-block;
  padding: 0.6em 1.8em;
  background: linear-gradient(135deg, rgba(60, 130, 200, 0.2) 0%, rgba(155, 225, 93, 0.2) 100%);
  border: 1px solid rgba(60, 130, 200, 0.3);
  color: #9be15d;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.5em;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(60, 130, 200, 0.2);
  animation: labelPulse 3s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(60, 130, 200, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(60, 130, 200, 0.4), 0 0 40px rgba(155, 225, 93, 0.2); }
}

.why-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin: 0 auto 1em;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #9be15d 50%, #3c82c8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s linear infinite;
  filter: drop-shadow(0 4px 20px rgba(60, 130, 200, 0.3));
  line-height: 1.2;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.why-subtitle {
  color: #aaa;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 2em;
  text-align: center;
  line-height: 1.8;
  font-weight: 300;
}

/* ===== Content Grid ===== */
.why-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
}

/* ===== Feature Cards ===== */
.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

.why-feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5em 2em;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  cursor: pointer;
}

.why-feature-card.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.why-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(60, 130, 200, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.why-feature-card:hover::before {
  left: 100%;
}

.why-feature-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(60, 130, 200, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.why-feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(60, 130, 200, 0.5);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(60, 130, 200, 0.2),
    0 0 40px rgba(60, 130, 200, 0.2);
}

.why-feature-card:hover::after {
  opacity: 1;
}

.why-feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5em;
  color: #9be15d;
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-feature-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 15px rgba(155, 225, 93, 0.4));
}

.why-feature-card:hover .why-feature-icon {
  transform: scale(1.2) rotate(5deg);
  color: #3c82c8;
}

.why-feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1em;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff 0%, #9be15d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-feature-description {
  color: #ccc;
  line-height: 1.8;
  font-size: 1em;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.why-feature-number {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  font-size: 4em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  font-family: "Allenia", sans-serif;
  transition: all 0.5s ease;
  z-index: 0;
}

.why-feature-card:hover .why-feature-number {
  color: rgba(60, 130, 200, 0.1);
  transform: scale(1.1);
}

/* ===== Showcase ===== */
.why-showcase {
  position: sticky;
  top: 100px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.why-showcase.animated {
  opacity: 1;
  transform: translateX(0);
}

.why-showcase-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2em;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-showcase:hover .why-showcase-image {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.why-showcase-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-showcase:hover .why-showcase-image img {
  transform: scale(1.1);
}

.why-showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(60, 130, 200, 0.3) 0%,
    rgba(155, 225, 93, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.why-showcase:hover .why-showcase-overlay {
  opacity: 1;
}

.why-showcase-badge {
  position: absolute;
  bottom: 2em;
  right: 2em;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(60, 130, 200, 0.3);
  border-radius: 16px;
  padding: 1.5em 2em;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.why-showcase.animated .why-showcase-badge {
  transform: translateY(0);
  opacity: 1;
}

.why-badge-number {
  display: block;
  font-size: 2.5em;
  font-weight: 800;
  color: #9be15d;
  line-height: 1;
  margin-bottom: 0.3em;
  font-family: "Allenia", sans-serif;
  background: linear-gradient(135deg, #9be15d 0%, #3c82c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-badge-label {
  display: block;
  font-size: 0.9em;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.why-showcase-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5em;
  backdrop-filter: blur(20px);
}

.why-showcase-title {
  font-size: 2em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1em;
  background: linear-gradient(135deg, #fff 0%, #9be15d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-showcase-description {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.05em;
  margin-bottom: 2em;
}

.why-showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-stat-item {
  text-align: center;
}

.why-stat-value {
  font-size: 2em;
  font-weight: 800;
  color: #9be15d;
  line-height: 1;
  margin-bottom: 0.5em;
  font-family: "Allenia", sans-serif;
  background: linear-gradient(135deg, #9be15d 0%, #3c82c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-stat-label {
  font-size: 0.85em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.why-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 1.2em 2.5em;
  background: linear-gradient(135deg, #3c82c8 0%, #9be15d 100%);
  color: #000 !important;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(60, 130, 200, 0.3);
  width: 100%;
  justify-content: center;
  text-align: center;
}

.why-cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(60, 130, 200, 0.5);
}

.why-cta-btn svg {
  transition: transform 0.4s ease;
}

.why-cta-btn:hover svg {
  transform: translateX(5px);
}

/* ===== Responsive Design for Why Section ===== */
@media (max-width: 1200px) {
  .why-content-grid {
    gap: 3em;
  }

  .why-features {
    gap: 1.5em;
  }

  .why-feature-card {
    padding: 2em 1.5em;
  }
}

@media (max-width: 968px) {
  .why-section {
    padding: 6em 0;
  }

  .why-content-grid {
    grid-template-columns: 1fr;
    gap: 3em;
  }

  .why-showcase {
    position: relative;
    top: 0;
  }

  .why-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }

  .why-showcase-image img {
    height: 350px;
  }

  .why-showcase-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
  }

  .why-stat-value {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .why-section {
    padding: 4em 0;
    min-height: auto;
  }

  .why-header {
    margin-bottom: 3em;
  }

  .why-features {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .why-feature-card {
    padding: 2em 1.5em;
  }

  .why-feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2em;
  }

  .why-feature-title {
    font-size: 1.3em;
  }

  .why-feature-description {
    font-size: 0.95em;
  }

  .why-feature-number {
    font-size: 3em;
    top: 1em;
    right: 1em;
  }

  .why-showcase-image img {
    height: 300px;
  }

  .why-showcase-content {
    padding: 2em 1.5em;
  }

  .why-showcase-title {
    font-size: 1.6em;
  }

  .why-showcase-stats {
    grid-template-columns: 1fr;
    gap: 1.5em;
    text-align: center;
  }

  .why-stat-value {
    font-size: 2em;
  }

  .why-badge-number {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .why-section {
    padding: 3em 0;
  }

  .why-header {
    margin-bottom: 2.5em;
  }

  .why-label {
    padding: 0.5em 1.5em;
    font-size: 0.75em;
    letter-spacing: 2px;
  }

  .why-title {
    font-size: 2rem;
  }

  .why-subtitle {
    font-size: 1rem;
  }

  .why-content-grid {
    gap: 2em;
  }

  .why-feature-card {
    padding: 1.5em 1.2em;
  }

  .why-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1em;
  }

  .why-feature-title {
    font-size: 1.2em;
    margin-bottom: 0.8em;
  }

  .why-feature-description {
    font-size: 0.9em;
    line-height: 1.6;
  }

  .why-feature-number {
    font-size: 2.5em;
    top: 0.8em;
    right: 0.8em;
  }

  .why-showcase-image {
    margin-bottom: 1.5em;
  }

  .why-showcase-image img {
    height: 250px;
  }

  .why-showcase-badge {
    bottom: 1em;
    right: 1em;
    padding: 1em 1.5em;
  }

  .why-badge-number {
    font-size: 1.8em;
  }

  .why-badge-label {
    font-size: 0.8em;
  }

  .why-showcase-content {
    padding: 1.5em 1.2em;
  }

  .why-showcase-title {
    font-size: 1.4em;
    margin-bottom: 0.8em;
  }

  .why-showcase-description {
    font-size: 0.95em;
    margin-bottom: 1.5em;
  }

  .why-showcase-stats {
    gap: 1.2em;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
  }

  .why-stat-value {
    font-size: 1.8em;
  }

  .why-stat-label {
    font-size: 0.8em;
  }

  .why-cta-btn {
    padding: 1em 2em;
    font-size: 0.95em;
  }
}

/* ===== Story Section ===== */
.story-section {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding: 6em 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.story-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.story-background-image {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  transform: scale(1.1);
  transition: transform 0.3s ease-out;
}

.story-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

.story-section .container {
  position: relative;
  z-index: 2;
}

/* ===== Story Header ===== */
.story-header {
  text-align: center;
  margin-bottom: 5em;
  opacity: 0;
  transform: translateY(30px);
}

.story-label {
  display: inline-block;
  padding: 0.5em 1.5em;
  background: linear-gradient(135deg, #9be15d 0%, #6bcb3f 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.5em;
  box-shadow: 0 4px 20px rgba(155, 225, 93, 0.3);
}

.story-title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1em;
  background: linear-gradient(135deg, #fff 0%, #9be15d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-subtitle {
  color: #aaa;
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Timeline ===== */
.story-timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 4em 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    #9be15d 0%,
    #9be15d 100%
  );
  transform: translateX(-50%);
  transform-origin: top;
  height: 0;
  box-shadow: 0 0 20px rgba(155, 225, 93, 0.5);
  transition: height 0.3s ease-out;
}

.timeline-items {
  display: grid;
  gap: 8em;
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3.5em;
  align-items: center;
  justify-items: stretch;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 260px;
  margin-bottom: 2em;
  direction: ltr;
}

/* Timeline Item Positioning */
.timeline-item:nth-child(1) .timeline-card {
  transform: translateX(-50px) scale(0.9);
  grid-column: 1;
  text-align: right;
  justify-self: end;
  margin-right: 0;
}

.timeline-item:nth-child(2) .timeline-card {
  transform: translateX(50px) scale(0.9);
  grid-column: 3;
  text-align: left;
  justify-self: start;
  margin-left: 0;
}

.timeline-item:nth-child(3) .timeline-card {
  transform: translateX(-50px) scale(0.9);
  grid-column: 1;
  text-align: right;
  justify-self: end;
  margin-right: 0;
}

.timeline-item:nth-child(4) .timeline-card {
  transform: translateX(50px) scale(0.9);
  grid-column: 3;
  text-align: left;
  justify-self: start;
  margin-left: 0;
}

.timeline-item:nth-child(2) {
  margin-bottom: 11em;
}

.timeline-marker {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  position: relative;
  z-index: 3;
  min-width: 140px;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 4px solid #9be15d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 0 rgba(155, 225, 93, 0.7), 0 0 20px rgba(155, 225, 93, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9be15d;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate .timeline-dot {
  box-shadow: 0 0 0 8px rgba(155, 225, 93, 0.2),
    0 0 0 16px rgba(155, 225, 93, 0.1), 0 0 30px rgba(155, 225, 93, 0.4);
  transform: scale(1.2);
}

.timeline-item.animate .timeline-dot-inner {
  transform: scale(1);
}

.timeline-year {
  color: #9be15d;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 0.4em 1em;
  background: rgba(155, 225, 93, 0.1);
  border: 1px solid rgba(155, 225, 93, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate .timeline-year {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2em;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(155, 225, 93, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.timeline-item.animate .timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(155, 225, 93, 0.3);
  transform: translateX(0) scale(1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(155, 225, 93, 0.1);
}

.timeline-item.animate .timeline-card::before {
  opacity: 1;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(155, 225, 93, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(155, 225, 93, 0.2), 0 0 40px rgba(155, 225, 93, 0.2);
}

.timeline-card-content {
  position: relative;
  z-index: 1;
}

.timeline-title {
  color: #fff;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 0.8em;
  background: linear-gradient(135deg, #fff 0%, #9be15d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-description {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.05em;
  margin: 0;
}

.timeline-icon {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  font-size: 2.5em;
  opacity: 0.2;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.animate .timeline-icon {
  transform: scale(1) rotate(10deg);
  opacity: 0.3;
}

/* Timeline Icon Positioning */
.timeline-item:nth-child(1) .timeline-icon,
.timeline-item:nth-child(3) .timeline-icon {
  right: auto;
  left: 1.5em;
}

.timeline-item:nth-child(2) .timeline-icon,
.timeline-item:nth-child(4) .timeline-icon {
  left: auto;
  right: 1.5em;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1.5em;
    direction: ltr !important;
    min-height: auto;
    margin-bottom: 0;
  }

  .timeline-item:nth-child(2) {
    margin-bottom: 0 !important;
  }

  .timeline-item > * {
    direction: ltr !important;
  }

  .timeline-marker {
    grid-column: 1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5em;
    min-width: auto;
    width: 100%;
  }

  .timeline-item:nth-child(1) .timeline-card,
  .timeline-item:nth-child(2) .timeline-card,
  .timeline-item:nth-child(3) .timeline-card,
  .timeline-item:nth-child(4) .timeline-card {
    grid-column: 1 !important;
    text-align: left !important;
    justify-self: stretch !important;
    margin-left: 3.5em;
    margin-right: 1em;
    transform: translateX(0) scale(1) !important;
    max-width: calc(100% - 4.5em);
    width: auto;
  }
  
  .timeline-card {
    padding: 1.5em;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item:nth-child(1) .timeline-icon,
  .timeline-item:nth-child(2) .timeline-icon,
  .timeline-item:nth-child(3) .timeline-icon,
  .timeline-item:nth-child(4) .timeline-icon {
    left: auto;
    right: 1.5em;
  }
}

@media (max-width: 640px) {
  .story-section {
    padding: 4em 0;
  }

  .story-header {
    margin-bottom: 3em;
  }

  .timeline-items {
    gap: 3em;
  }
  
  .timeline-item {
    min-height: 150px;
  }

  .timeline-item:nth-child(2) {
    margin-bottom: 0 !important;
  }

  .timeline-item:nth-child(1) .timeline-card,
  .timeline-item:nth-child(2) .timeline-card,
  .timeline-item:nth-child(3) .timeline-card,
  .timeline-item:nth-child(4) .timeline-card {
    margin-left: 3em;
    margin-right: 0.5em;
    max-width: calc(100% - 3.5em);
    padding: 1.2em;
  }

  .timeline-card {
    padding: 1.2em;
  }

  .timeline-title {
    font-size: 1.5em;
  }

  .timeline-description {
    font-size: 1em;
  }
}
