.timeline-section {
  padding-top: 150px;
  padding-bottom: 0px;
  /* background: #1a1a2e; */
  background-color: black;
  background-image: url("/images/photo-backgrounds/timeline-background-dark.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  /* Fallback for browsers without smooth scroll */
  color: white;
  font-family: "Poppins", sans-serif;
  position: relative;
  min-height: 100vh;
  /* at least full screen */
  height: auto;
  z-index: 10;
  /* allow shrinking */
}

/* When smooth scroll is active, background-attachment will be overridden by JS */
.smooth-scroll-active .timeline-section {
  background-attachment: scroll;
}

/* VERTICAL LINE */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(178, 152, 255, 0.2);
  opacity: 0.35;
  border-radius: 4px;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item.background {
  padding-top: 140px;
  padding-bottom: 140px;

  background-size: 100% 170%;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.background {
  position: relative;
  overflow: hidden;
  background-image: url("/images/photo-backgrounds/pexels-apasaric-325185.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  height: 500px;
}

.timeline-item.left.background.visible {
  height: 700px;
}

.scroll-anchor {
  height: 80px;
  /* adjust depending on header height */
  margin-top: -80px;
}

/* ITEM WRAPPER */
.timeline-items {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  margin: 0;
}

/* ITEM */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  min-height: 200px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin: 0;
  margin-bottom: 0;

  /* hidden initially */
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  padding-left: 6%;
}

/* LEFT / RIGHT */
.timeline-item.left {
  padding-right: 6%;
  flex-direction: row-reverse;
}

.timeline-item.right {
  flex-direction: row;
}

/* PROGRESS LINE CONTAINER - Bizee.com style, adapted for centered timeline */
.timeline-progress-line-container {
  position: absolute;
  left: 50%;
  width: 5px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* For all items except last, connect from icon center bottom to next icon center top */
.timeline-item:not(:last-child) .timeline-progress-line-container {
  top: calc(50% + 1.25rem);
  /* Start from current icon bottom (icon centered at 50%, icon height 2.5rem, so bottom = 50% + 1.25rem) */
  bottom: calc(-50% + 1.25rem);
  /* Extend to next item's icon top (next icon centered at 50%, icon height 2.5rem, so top = 50% - 1.25rem) */
}

/* For last item, line extends downward from icon center */
.timeline-item:last-child .timeline-progress-line-container {
  top: calc(50% + 1.25rem);
  /* Start from icon bottom */
  bottom: 0;
  /* Extend to item bottom */
}

.timeline-progress-line-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(178, 152, 255, 0.2);
  border-radius: 2px;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #b298ff, #6a4ddd);
  border-radius: 2px;
  transition: height 2.5s linear;
  box-shadow: 0 0 10px rgba(178, 152, 255, 0.5);
}

.timeline-item.complete .timeline-progress-line {
  height: 100%;
}

/* Hide progress line on last item */
.timeline-item:last-child .timeline-progress-line-container {
  display: none;
}

/* ICON CONTAINER - Bizee.com style, positioned at vertical center */
.timeline-icon-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  flex-shrink: 0;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(178, 152, 255, 0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(178, 152, 255, 0.3);
}

.timeline-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.timeline-item.complete .timeline-icon {
  background: rgba(106, 77, 221, 0.2);
  color: #b298ff;
  border-color: #b298ff;
  box-shadow: 0 0 15px rgba(178, 152, 255, 0.4);
  transform: scale(1.05);
}

/* DOT - Hide when icon container is present, otherwise show */
.timeline-dot {
  width: 22px;
  height: 22px;
  background: #b298ff;
  border-radius: 50%;
  box-shadow: 0 0 20px #b298ff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Hide dots when icon containers are present (icons replace dots) */
/* This is handled by JavaScript for better browser compatibility */
.timeline-item .timeline-icon-container~.timeline-dot {
  display: none;
}

.timeline-item.complete .timeline-dot {
  background: #6a4ddd;
  box-shadow: 0 0 25px #6a4ddd;
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-item.background>.timeline-dot {
  display: none;
}

/* CARD - Modern Glassmorphism Design */
.timeline-card {
  width: 42%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(178, 152, 255, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  z-index: 1;
  padding: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle gradient overlay for depth */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(178, 152, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.timeline-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(178, 152, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(178, 152, 255, 0.5);
  z-index: 100;
}

.timeline-card:hover::before {
  opacity: 1;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.btn-container {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-container>a {
  min-width: 140px;
}

.timeline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: linear-gradient(135deg, #7e43d1 0%, #6a4ddd 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  box-shadow:
    0 4px 12px rgba(126, 67, 209, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.timeline-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.timeline-btn:hover::before {
  left: 100%;
}

.timeline-btn:hover {
  background: linear-gradient(135deg, #3a76e0 0%, #2d5fc7 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(58, 118, 224, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.container {
  gap: 10px;
  perspective: 500px;
  height: 600px;
  transition: 1.2s ease;
  transform: scale(0.9);
  background-color: black;
  ;
  width: 30%;
  margin: auto;
}

.container img {
  width: 30vw;
  height: 30vh;
  object-fit: cover;
  border-radius: 10px;
}

.backImage {
  width: 100%;
  background-color: black;
  position: relative;
  padding: 20px;
}

.backImage-btn-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.more {
  transition: 0.5s ease;
}

/* Page Swipe Effect - Move entire visible screen to the right */
body.swipe-page-right {
  overflow: hidden;
}

/* Move all visible page elements to the right in one smooth swipe */
body.swipe-page-right #wrapper,
body.swipe-page-right #footer,
body.swipe-page-right #sidebar,
body.swipe-page-right #particles-js,
body.swipe-page-right #preloader {
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Page Swipe Effect - Move entire visible screen to the left */
body.swipe-page-left {
  overflow: hidden;
  position: relative;
}

/* Move all visible page elements to the left in one smooth swipe */
body.swipe-page-left #wrapper,
body.swipe-page-left #footer,
body.swipe-page-left #sidebar,
body.swipe-page-left #particles-js,
body.swipe-page-left #preloader {
  transform: translateX(-130%);
  opacity: 0.8;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.4s ease;
  cursor: pointer;
}

.item-1 {
  z-index: 3;
}

.item-2 {
  transform: translate(-50%, -70%) scale(0.9);
  z-index: 2;
}

.item-3 {
  transform: translate(-50%, -90%) scale(0.8);
  z-index: 1;
}

.container:hover {
  transform: scale(1);
}

.container:hover .item-1 {
  transform: translate(-80%, -50%) scale(1) rotateY(-40deg);
}

.container:hover .item-2 {
  transform: translate(-60%, -50%) scale(0.9) rotateY(-40deg);
}

.container:hover .item-3 {
  transform: translate(-40%, -50%) scale(0.9) rotateY(-40deg);
}

.item:hover {
  margin-top: -50px;
}

.img-date {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.img-date>div {
  flex: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 0;
  /* Allow text to wrap properly */
}

.btn-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-date img {
  width: 160px;
  min-width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(178, 152, 255, 0.2);
  background: rgba(178, 152, 255, 0.1);
}

/* Note: The ::before pseudo-element is now used for gradient overlay above */

/* Expanded image container - Base styles */
.timeline-card::after {
  content: '';
  position: fixed;
  top: 50%;
  width: 0;
  height: 0;
  background-image: var(--hover-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 11;
  pointer-events: none;
  border: 3px solid rgba(178, 152, 255, 0.4);
  backdrop-filter: blur(2px);
}

/* Left timeline items - show image on the LEFT side of center */
.timeline-item.left .timeline-card::after {
  top: 10%;
  right: calc(50% + 400px);
  left: auto;
  transform: translateY(-50%) scale(0.7) rotateY(10deg);
}

.timeline-item.left .timeline-card:hover::after {
  width: min(40vw, 500px);
  height: min(55vh, 450px);
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1) rotateY(0deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(178, 152, 255, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.3);
  border-color: rgba(178, 152, 255, 0.7);
}

/* Right timeline items - show image on the RIGHT side of center */
.timeline-item.right .timeline-card::after {
  top: 10%;
  left: calc(50% + 400px);
  right: auto;
  transform: translateY(-50%) scale(0.7) rotateY(-10deg);
}

.timeline-item.right .timeline-card:hover::after {
  width: min(40vw, 500px);
  height: min(55vh, 450px);
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1) rotateY(0deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(178, 152, 255, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.3);
  border-color: rgba(178, 152, 255, 0.7);
}

/* Fade out text content on hover (but keep button visible) */
.timeline-card:hover .img-date>div {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Keep button visible and enhance it on hover */
.timeline-card:hover .btn-container {
  opacity: 1 !important;
  transform: none;
  z-index: 13;
  position: relative;
}

/* Enhance button visibility on card hover */
.timeline-card:hover .timeline-btn {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced image hover effect */
.timeline-card:hover .img-date img {
  transform: scale(1.1) translateZ(0);
  box-shadow:
    0 12px 40px rgba(178, 152, 255, 0.5),
    0 0 0 3px rgba(178, 152, 255, 0.4);
  z-index: 12;
  border-radius: 24px;
}

.img-date .timeline-card>img {
  width: 200px;
  height: 200px;
}

.timeline-card h3 {
  color: #e8dfff;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.timeline-card h3 p {
  color: #cdbaff;
  margin-bottom: 10px;
}

.timeline-card p {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0;
}

/* TABLET FIX — keep layout same but scale everything down */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Make cards narrower so whole block looks smaller */
  .timeline-card {
    width: 38% !important;
  }

  .card {
    padding: 24px !important;
    gap: 18px !important;
  }

  /* Make image visibly smaller */
  .img-date {
    gap: 16px !important;
  }

  .img-date img {
    width: 120px !important;
    min-width: 120px !important;
    height: 120px !important;
  }

  /* Slightly reduce text size */
  .timeline-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }

  .timeline-card p {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  /* Ensure icons stay centered on tablet */
  .timeline-icon-container {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Ensure progress lines connect on tablet with centered icons */
  .timeline-item:not(:last-child) .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: calc(-50% + 1.25rem) !important;
    height: auto !important;
  }

  /* Last item progress line on tablet */
  .timeline-item:last-child .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: 0 !important;
  }

  /* Adjust hover image size and positioning for tablet */
  .timeline-item.left .timeline-card:hover::after {
    width: min(35vw, 450px);
    height: min(50vh, 400px);
    right: calc(50% + 40px);
    left: auto;
  }

  .timeline-item.right .timeline-card:hover::after {
    width: min(35vw, 450px);
    height: min(50vh, 400px);
    left: calc(50% + 40px);
    right: auto;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* Background adjustments for mobile */
  .timeline-section {
    background-attachment: scroll !important;
    background-position: center !important;
    background-size: cover !important;
  }

  /* Fix background attachment for timeline items with backgrounds */
  .timeline-item.background {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Fix background attachment for .background class */
  .background {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Hide only dots, keep icons and lines visible for connection */
  .timeline-dot {
    display: none !important;
  }

  /* Ensure timeline line is visible and spans correctly on mobile */
  .timeline-line {
    display: block !important;
    height: 100% !important;
  }

  /* Ensure icons stay centered on mobile */
  .timeline-icon-container {
    display: block !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Ensure progress lines connect on mobile with centered icons */
  .timeline-item:not(:last-child) .timeline-progress-line-container {
    display: block !important;
    top: calc(50% + 1.25rem) !important;
    bottom: calc(-50% + 1.25rem) !important;
    height: auto !important;
  }

  /* Last item progress line on mobile */
  .timeline-item:last-child .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: 0 !important;
  }

  /* Ensure progress line animation works on mobile */
  .timeline-item.complete .timeline-progress-line {
    height: 100%;
    opacity: 1;
  }

  @media (max-width: 768px) {

    /* Make the whole card layout centered on mobile */
    .card {
      display: flex;
      flex-direction: column;
      align-items: center !important;
      justify-content: center !important;
      gap: 14px;
      width: 100%;
    }

    /* Center button container */
    .btn-container {
      width: 100%;
      display: flex;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Make the button centered */
    .btn-container>button {
      margin: 0 auto !important;
      display: block;
      padding: 0;
    }
  }

  /* Column layout */
  .timeline-item {
    flex-direction: column !important;
    align-items: center !important;
    /* center the whole item */
    text-align: center !important;
    gap: 20px;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* Card smaller + centered */
  .timeline-card {
    width: 90% !important;
    /* slightly wider for better mobile UX */
    margin: 0 auto !important;
    /* centered */
  }

  .card {
    padding: 24px !important;
    gap: 18px !important;
  }

  /* Image stacked on top */
  .img-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* center image + text */
    gap: 16px !important;
  }

  .img-date img {
    float: none !important;
    width: 140px !important;
    min-width: 140px !important;
    height: 140px !important;
    margin: 0 !important;
  }

  /* Text below image */
  .img-date div {
    width: 100%;
    text-align: center !important;
  }

  /* Font adjustments */
  .timeline-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  .timeline-card p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Reduce spacing between items */
  .timeline-items {
    gap: 100px !important;
  }

  /* Background block also centered */
  .timeline-item.background {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  /* Disable all hover effects on mobile - hide pseudo-elements */
  .timeline-card::before,
  .timeline-card::after {
    display: none !important;
  }

  /* Disable card hover transform on mobile */
  .timeline-card:hover {
    transform: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    z-index: 1 !important;
  }

  /* Keep text visible on mobile (no hover effects) */
  .timeline-card:hover .img-date>div,
  .timeline-card:hover .btn-container {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable image hover effect on mobile */
  .timeline-card:hover .img-date img {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
  }
}

@media (min-width: 320px) and (max-width: 768px) {
  .container img {
    width: 250px;
  }
}

/* Tablet and smaller screens - adjust background attachment */
@media (max-width: 1280px) {
  .timeline-section {
    background-attachment: scroll;
  }
}

/* ============================================
   BACKGROUND ANIMATION LAYERS - Modern Effects
   ============================================ */

.timeline-item.left.background.visible {
  position: relative;
  overflow: hidden;
}

.background-animation-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated Gradient Overlay */
.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.7) 0%,
      rgba(106, 77, 221, 0.3) 25%,
      rgba(178, 152, 255, 0.2) 50%,
      rgba(106, 77, 221, 0.3) 75%,
      rgba(26, 26, 46, 0.7) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.8;
}

.more:hover {
  background-color: black;
  color: white !important;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Light Rays Effect */
.bg-light-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.light-ray {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(178, 152, 255, 0.6) 20%,
      rgba(178, 152, 255, 0.8) 50%,
      rgba(178, 152, 255, 0.6) 80%,
      transparent 100%);
  transform-origin: center;
  animation: rayRotate 20s linear infinite;
  box-shadow: 0 0 20px rgba(178, 152, 255, 0.5);
}

.ray-1 {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.ray-2 {
  left: 50%;
  animation-delay: -6s;
  animation-duration: 22s;
  width: 3px;
}

.ray-3 {
  left: 80%;
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes rayRotate {
  0% {
    transform: rotate(0deg) translateY(0);
    opacity: 0.3;
  }

  25% {
    opacity: 0.6;
  }

  50% {
    transform: rotate(180deg) translateY(-20px);
    opacity: 0.4;
  }

  75% {
    opacity: 0.6;
  }

  100% {
    transform: rotate(360deg) translateY(0);
    opacity: 0.3;
  }
}

/* Geometric Shapes */
.bg-geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.geometric-shape {
  position: absolute;
  border: 2px solid rgba(178, 152, 255, 0.3);
  border-radius: 8px;
  opacity: 0.4;
  animation: shapeFloat 12s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 152, 255, 0.2), transparent);
  animation-delay: 0s;
  animation-duration: 14s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(106, 77, 221, 0.2), transparent);
  animation-delay: 2s;
  animation-duration: 16s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 20%;
  border-radius: 20px;
  background: linear-gradient(45deg, rgba(178, 152, 255, 0.15), transparent);
  animation-delay: 4s;
  animation-duration: 18s;
}

.shape-4 {
  width: 70px;
  height: 70px;
  top: 30%;
  right: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 221, 0.25), transparent);
  animation-delay: 6s;
  animation-duration: 15s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-20px, -60px) rotate(180deg) scale(0.9);
    opacity: 0.4;
  }

  75% {
    transform: translate(40px, -30px) rotate(270deg) scale(1.05);
    opacity: 0.5;
  }
}

/* Floating Background Particles */
.bg-floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(178, 152, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(178, 152, 255, 0.8);
  animation: bgParticleFloat 20s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bg-particle:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.bg-particle:nth-child(3) {
  top: 45%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 20s;
}

.bg-particle:nth-child(4) {
  top: 55%;
  right: 25%;
  animation-delay: 1s;
  animation-duration: 19s;
}

.bg-particle:nth-child(5) {
  top: 70%;
  left: 15%;
  animation-delay: 3s;
  animation-duration: 21s;
}

.bg-particle:nth-child(6) {
  top: 80%;
  right: 20%;
  animation-delay: 5s;
  animation-duration: 23s;
}

.bg-particle:nth-child(7) {
  top: 35%;
  left: 50%;
  animation-delay: 1.5s;
  animation-duration: 17s;
}

.bg-particle:nth-child(8) {
  top: 60%;
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 19s;
}

.bg-particle:nth-child(9) {
  top: 20%;
  left: 70%;
  animation-delay: 3.5s;
  animation-duration: 20s;
}

.bg-particle:nth-child(10) {
  top: 75%;
  right: 30%;
  animation-delay: 4.5s;
  animation-duration: 18s;
}

@keyframes bgParticleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(50px, -80px) scale(1.3);
    opacity: 0.8;
  }

  50% {
    transform: translate(-30px, -120px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    transform: translate(60px, -90px) scale(1.2);
    opacity: 0.9;
  }
}

/* Pulse Rings */
.bg-pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(178, 152, 255, 0.3);
  border-radius: 50%;
  animation: pulseRing 4s ease-out infinite;
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.ring-2 {
  width: 300px;
  height: 300px;
  animation-delay: 1.3s;
  border-color: rgba(106, 77, 221, 0.3);
}

.ring-3 {
  width: 400px;
  height: 400px;
  animation-delay: 2.6s;
  border-color: rgba(178, 152, 255, 0.2);
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Color Waves */
.bg-color-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(178, 152, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(106, 77, 221, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(178, 152, 255, 0.1) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: waveMove 25s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes waveMove {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }

  33% {
    background-position: 100% 0%, 0% 100%, 50% 50%;
  }

  66% {
    background-position: 0% 100%, 100% 0%, 50% 50%;
  }
}

/* Enhanced Background Parallax on Scroll */
.timeline-item.background.visible {
  background-attachment: fixed;
  transition: background-position 0.1s ease-out;
}

/* Hover Effects on Background */
.timeline-item.background.visible:hover .bg-gradient-overlay {
  opacity: 0.9;
  animation-duration: 10s;
}

.timeline-item.background.visible:hover .light-ray {
  opacity: 0.6;
  box-shadow: 0 0 30px rgba(178, 152, 255, 0.8);
}

.timeline-item.background.visible:hover .geometric-shape {
  opacity: 0.6;
  border-color: rgba(178, 152, 255, 0.5);
}

.timeline-item.background.visible:hover .bg-particle {
  box-shadow: 0 0 25px rgba(178, 152, 255, 1);
}

/* ============================================
   FEATURED IMAGE CONTAINER - Modern Animations
   ============================================ */

.timeline-item.left.background.visible {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline-featured-image-container {
  position: relative;
  width: 85%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0;
  transform: translateY(80px) scale(0.85);
  animation: featuredImageFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
    featuredImageFloat 6s ease-in-out infinite 1.5s;
}

@keyframes featuredImageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featuredImageFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

.timeline-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}

.timeline-featured-image-container:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(178, 152, 255, 0.4),
    0 0 120px rgba(178, 152, 255, 0.2);
}

.timeline-featured-image-container:hover .timeline-featured-image {
  transform: scale(1.1);
}

.timeline-featured-image-container:hover .image-glow-effect {
  opacity: 1;
  transform: scale(1.15);
}

.timeline-featured-image-container:hover .image-shine-overlay {
  transform: translateX(100%) translateY(-100%);
}

.image-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(178, 152, 255, 0.3) 0%,
      rgba(106, 77, 221, 0.2) 30%,
      transparent 70%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.image-particle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(178, 152, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(178, 152, 255, 0.6);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 0.5s;
  animation-duration: 7.5s;
}

.particle:nth-child(6) {
  top: 70%;
  left: 10%;
  animation-delay: 2.5s;
  animation-duration: 6s;
}

.particle:nth-child(7) {
  top: 10%;
  left: 60%;
  animation-delay: 1.2s;
  animation-duration: 8s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 90%;
  animation-delay: 0.8s;
  animation-duration: 7s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-15px, -50px) scale(0.8);
    opacity: 0.8;
  }

  75% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.9;
  }
}

.image-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(178, 152, 255, 0.05) 50%,
      transparent 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.timeline-featured-image-container:hover .image-glass-overlay {
  opacity: 0.8;
}

.image-shine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
  animation: shineSweep 4s ease-in-out infinite;
}

@keyframes shineSweep {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

  50% {
    transform: translateX(100%) translateY(100%);
  }

  100% {
    transform: translateX(-100%) translateY(-100%);
  }
}

.timeline-featured-image-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(178, 152, 255, 0.4),
      rgba(106, 77, 221, 0.4),
      rgba(178, 152, 255, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.timeline-featured-image-container:hover::before {
  opacity: 1;
  animation: borderGlowPulse 1.5s ease-in-out infinite;
}

@keyframes borderGlowPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .timeline-featured-image {
    transition: transform 0.1s ease-out;
  }
}

@media (max-width: 768px) {
  .timeline-featured-image-container {
    width: 95%;
    height: 350px;
    max-width: none;
    border-radius: 24px;
  }

  .timeline-item.left.background.visible {
    height: 500px !important;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .particle {
    width: 3px;
    height: 3px;
  }

  .timeline-featured-image-container:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .timeline-featured-image-container {
    width: 90%;
    height: 450px;
  }

  .timeline-item.left.background.visible {
    height: 600px;
  }
}

.timeline-section {
  padding-top: 150px;
  padding-bottom: 0px;
  background: #1a1a2e;
  background-image: url("/images/photo-backgrounds/timeline-background-dark.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  /* Fallback for browsers without smooth scroll */
  color: white;
  font-family: "Poppins", sans-serif;
  position: relative;
  min-height: 100vh;
  /* at least full screen */
  height: auto;
  z-index: 10;
  /* allow shrinking */
}

/* When smooth scroll is active, background-attachment will be overridden by JS */
.smooth-scroll-active .timeline-section {
  background-attachment: scroll;
}

/* VERTICAL LINE */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(178, 152, 255, 0.2);
  opacity: 0.35;
  border-radius: 4px;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item.background {
  padding-top: 140px;
  padding-bottom: 140px;

  background-size: 100% 170%;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.background {
  position: relative;
  overflow: hidden;
  background-image: url("/images/photo-backgrounds/pexels-apasaric-325185.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  height: 500px;
}

.timeline-item.left.background.visible {
  height: 700px;
}

.scroll-anchor {
  height: 80px;
  /* adjust depending on header height */
  margin-top: -80px;
}

/* ITEM WRAPPER */
.timeline-items {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  margin: 0;
}

/* ITEM */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  min-height: 200px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin: 0;
  margin-bottom: 0;

  /* hidden initially */
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  padding-left: 6%;
}

/* LEFT / RIGHT */
.timeline-item.left {
  padding-right: 6%;
  flex-direction: row-reverse;
}

.timeline-item.right {
  flex-direction: row;
}

/* PROGRESS LINE CONTAINER - Bizee.com style, adapted for centered timeline */
.timeline-progress-line-container {
  position: absolute;
  left: 50%;
  width: 5px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* For all items except last, connect from icon center bottom to next icon center top */
.timeline-item:not(:last-child) .timeline-progress-line-container {
  top: calc(50% + 1.25rem);
  /* Start from current icon bottom (icon centered at 50%, icon height 2.5rem, so bottom = 50% + 1.25rem) */
  bottom: calc(-50% + 1.25rem);
  /* Extend to next item's icon top (next icon centered at 50%, icon height 2.5rem, so top = 50% - 1.25rem) */
}

/* For last item, line extends downward from icon center */
.timeline-item:last-child .timeline-progress-line-container {
  top: calc(50% + 1.25rem);
  /* Start from icon bottom */
  bottom: 0;
  /* Extend to item bottom */
}

.timeline-progress-line-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(178, 152, 255, 0.2);
  border-radius: 2px;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #b298ff, #6a4ddd);
  border-radius: 2px;
  transition: height 2.5s linear;
  box-shadow: 0 0 10px rgba(178, 152, 255, 0.5);
}

.timeline-item.complete .timeline-progress-line {
  height: 100%;
}

/* Hide progress line on last item */
.timeline-item:last-child .timeline-progress-line-container {
  display: none;
}

/* CONNECTING LINES FROM ICONS TO CARDS - REMOVED */

/* ICON CONTAINER - Bizee.com style, positioned at vertical center */
.timeline-icon-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  flex-shrink: 0;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(178, 152, 255, 0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(178, 152, 255, 0.3);
}

.timeline-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.timeline-item.complete .timeline-icon {
  background: rgba(106, 77, 221, 0.2);
  color: #b298ff;
  border-color: #b298ff;
  box-shadow: 0 0 15px rgba(178, 152, 255, 0.4);
  transform: scale(1.05);
}

/* DOT - Hide when icon container is present, otherwise show */
.timeline-dot {
  width: 22px;
  height: 22px;
  background: #b298ff;
  border-radius: 50%;
  box-shadow: 0 0 20px #b298ff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Hide dots when icon containers are present (icons replace dots) */
/* This is handled by JavaScript for better browser compatibility */
.timeline-item .timeline-icon-container~.timeline-dot {
  display: none;
}

.timeline-item.complete .timeline-dot {
  background: #6a4ddd;
  box-shadow: 0 0 25px #6a4ddd;
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-item.background>.timeline-dot {
  display: none;
}

/* CARD - Modern Glassmorphism Design */
.timeline-card {
  width: 42%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(178, 152, 255, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  z-index: 1;
  padding: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle gradient overlay for depth */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(178, 152, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.timeline-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(178, 152, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(178, 152, 255, 0.5);
  z-index: 100;
}

.timeline-card:hover::before {
  opacity: 1;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.btn-container {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-container>a {
  min-width: 140px;
}

.timeline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: linear-gradient(135deg, #7e43d1 0%, #6a4ddd 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  box-shadow:
    0 4px 12px rgba(126, 67, 209, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.timeline-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.timeline-btn:hover::before {
  left: 100%;
}

.timeline-btn:hover {
  background: linear-gradient(135deg, #3a76e0 0%, #2d5fc7 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(58, 118, 224, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.container {
  gap: 10px;
  perspective: 500px;
  height: 600px;
  transition: 1.2s ease;
  transform: scale(0.9);
  background-color: black;
  ;
  width: 30%;
  margin: auto;
}

.container img {
  width: 30vw;
  height: 30vh;
  object-fit: cover;
  border-radius: 10px;
}

.backImage {
  width: 100%;
  background-color: black;
  position: relative;
}

.item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.4s ease;
  cursor: pointer;
}

.item-1 {
  z-index: 3;
}

.item-2 {
  transform: translate(-50%, -70%) scale(0.9);
  z-index: 2;
}

.item-3 {
  transform: translate(-50%, -90%) scale(0.8);
  z-index: 1;
}

.container:hover {
  transform: scale(1);
}

.container:hover .item-1 {
  transform: translate(-80%, -50%) scale(1) rotateY(-40deg);
}

.container:hover .item-2 {
  transform: translate(-60%, -50%) scale(0.9) rotateY(-40deg);
}

.container:hover .item-3 {
  transform: translate(-40%, -50%) scale(0.9) rotateY(-40deg);
}

.item:hover {
  margin-top: -50px;
}

.img-date {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.img-date>div {
  flex: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 0;
  /* Allow text to wrap properly */
}

.btn-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-date img {
  width: 160px;
  min-width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(178, 152, 255, 0.2);
  background: rgba(178, 152, 255, 0.1);
}

/* Note: The ::before pseudo-element is now used for gradient overlay above */

/* Expanded image container - Base styles */
.timeline-card::after {
  content: '';
  position: fixed;
  top: 50%;
  width: 0;
  height: 0;
  background-image: var(--hover-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 11;
  pointer-events: none;
  border: 3px solid rgba(178, 152, 255, 0.4);
  backdrop-filter: blur(2px);
}

/* Left timeline items - show image on the LEFT side of center */
.timeline-item.left .timeline-card::after {
  top: 10%;
  right: calc(50% + 400px);
  left: auto;
  transform: translateY(-50%) scale(0.7) rotateY(10deg);
}

.timeline-item.left .timeline-card:hover::after {
  width: min(40vw, 500px);
  height: min(55vh, 450px);
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1) rotateY(0deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(178, 152, 255, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.3);
  border-color: rgba(178, 152, 255, 0.7);
}

/* Right timeline items - show image on the RIGHT side of center */
.timeline-item.right .timeline-card::after {
  top: 10%;
  left: calc(50% + 400px);
  right: auto;
  transform: translateY(-50%) scale(0.7) rotateY(-10deg);
}

.timeline-item.right .timeline-card:hover::after {
  width: min(40vw, 500px);
  height: min(55vh, 450px);
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1) rotateY(0deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(178, 152, 255, 0.6),
    0 0 0 1px rgba(178, 152, 255, 0.3);
  border-color: rgba(178, 152, 255, 0.7);
}

/* Fade out text content on hover (but keep button visible) */
.timeline-card:hover .img-date>div {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Keep button visible and enhance it on hover */
.timeline-card:hover .btn-container {
  opacity: 1 !important;
  transform: none;
  z-index: 13;
  position: relative;
}

/* Enhance button visibility on card hover */
.timeline-card:hover .timeline-btn {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced image hover effect */
.timeline-card:hover .img-date img {
  transform: scale(1.1) translateZ(0);
  box-shadow:
    0 12px 40px rgba(178, 152, 255, 0.5),
    0 0 0 3px rgba(178, 152, 255, 0.4);
  z-index: 12;
  border-radius: 24px;
}

.img-date .timeline-card>img {
  width: 200px;
  height: 200px;
}

.timeline-card h3 {
  color: #e8dfff;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.timeline-card h3 p {
  color: #cdbaff;
  margin-bottom: 10px;
}

.timeline-card p {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0;
}

/* TABLET FIX — keep layout same but scale everything down */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Make cards narrower so whole block looks smaller */
  .timeline-card {
    width: 38% !important;
  }

  .card {
    padding: 24px !important;
    gap: 18px !important;
  }

  /* Make image visibly smaller */
  .img-date {
    gap: 16px !important;
  }

  .img-date img {
    width: 120px !important;
    min-width: 120px !important;
    height: 120px !important;
  }

  /* Slightly reduce text size */
  .timeline-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }

  .timeline-card p {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  /* Ensure icons stay centered on tablet */
  .timeline-icon-container {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Ensure progress lines connect on tablet with centered icons */
  .timeline-item:not(:last-child) .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: calc(-50% + 1.25rem) !important;
    height: auto !important;
  }

  /* Last item progress line on tablet */
  .timeline-item:last-child .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: 0 !important;
  }

  /* Adjust hover image size and positioning for tablet */
  .timeline-item.left .timeline-card:hover::after {
    width: min(35vw, 450px);
    height: min(50vh, 400px);
    right: calc(50% + 40px);
    left: auto;
  }

  .timeline-item.right .timeline-card:hover::after {
    width: min(35vw, 450px);
    height: min(50vh, 400px);
    left: calc(50% + 40px);
    right: auto;
  }

  /* Connecting lines removed */
}

/* MOBILE */
@media (max-width: 768px) {

  /* Background adjustments for mobile */
  .timeline-section {
    background-attachment: scroll !important;
    background-position: center !important;
    background-size: cover !important;
  }

  /* Fix background attachment for timeline items with backgrounds */
  .timeline-item.background {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Fix background attachment for .background class */
  .background {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Hide only dots, keep icons and lines visible for connection */
  .timeline-dot {
    display: none !important;
  }

  /* Ensure timeline line is visible and spans correctly on mobile */
  .timeline-line {
    display: block !important;
    height: 100% !important;
  }

  /* Ensure icons stay centered on mobile */
  .timeline-icon-container {
    display: block !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Ensure progress lines connect on mobile with centered icons */
  .timeline-item:not(:last-child) .timeline-progress-line-container {
    display: block !important;
    top: calc(50% + 1.25rem) !important;
    bottom: calc(-50% + 1.25rem) !important;
    height: auto !important;
  }

  /* Last item progress line on mobile */
  .timeline-item:last-child .timeline-progress-line-container {
    top: calc(50% + 1.25rem) !important;
    bottom: 0 !important;
  }

  /* Ensure progress line animation works on mobile */
  .timeline-item.complete .timeline-progress-line {
    height: 100%;
    opacity: 1;
  }

  @media (max-width: 768px) {

    /* Make the whole card layout centered on mobile */
    .card {
      display: flex;
      flex-direction: column;
      align-items: center !important;
      justify-content: center !important;
      gap: 14px;
      width: 100%;
    }

    /* Center button container */
    .btn-container {
      width: 100%;
      display: flex;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Make the button centered */
    .btn-container>button {
      margin: 0 auto !important;
      display: block;
      padding: 0;
    }
  }

  /* Column layout */
  .timeline-item {
    flex-direction: column !important;
    align-items: center !important;
    /* center the whole item */
    text-align: center !important;
    gap: 20px;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* Card smaller + centered */
  .timeline-card {
    width: 90% !important;
    /* slightly wider for better mobile UX */
    margin: 0 auto !important;
    /* centered */
  }

  .card {
    padding: 24px !important;
    gap: 18px !important;
  }

  /* Image stacked on top */
  .img-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* center image + text */
    gap: 16px !important;
  }

  .img-date img {
    float: none !important;
    width: 140px !important;
    min-width: 140px !important;
    height: 140px !important;
    margin: 0 !important;
  }

  /* Text below image */
  .img-date div {
    width: 100%;
    text-align: center !important;
  }

  /* Font adjustments */
  .timeline-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  .timeline-card p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Reduce spacing between items */
  .timeline-items {
    gap: 100px !important;
  }

  /* Background block also centered */
  .timeline-item.background {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  /* Disable all hover effects on mobile - hide pseudo-elements */
  .timeline-card::before,
  .timeline-card::after {
    display: none !important;
  }

  /* Disable card hover transform on mobile */
  .timeline-card:hover {
    transform: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    z-index: 1 !important;
  }

  /* Keep text visible on mobile (no hover effects) */
  .timeline-card:hover .img-date>div,
  .timeline-card:hover .btn-container {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable image hover effect on mobile */
  .timeline-card:hover .img-date img {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Hide connecting lines on mobile - cards are centered and stacked */
  .timeline-item::before {
    display: none !important;
  }
}

@media (min-width: 320px) and (max-width: 768px) {
  .container img {
    width: 250px;
  }
}

/* Tablet and smaller screens - adjust background attachment */
@media (max-width: 1280px) {
  .timeline-section {
    background-attachment: scroll;
  }
}

/* ============================================
   BACKGROUND ANIMATION LAYERS - Modern Effects
   ============================================ */

.timeline-item.left.background.visible {
  position: relative;
  overflow: hidden;
}

.background-animation-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated Gradient Overlay */
.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.7) 0%,
      rgba(106, 77, 221, 0.3) 25%,
      rgba(178, 152, 255, 0.2) 50%,
      rgba(106, 77, 221, 0.3) 75%,
      rgba(26, 26, 46, 0.7) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.8;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Light Rays Effect */
.bg-light-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.light-ray {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(178, 152, 255, 0.6) 20%,
      rgba(178, 152, 255, 0.8) 50%,
      rgba(178, 152, 255, 0.6) 80%,
      transparent 100%);
  transform-origin: center;
  animation: rayRotate 20s linear infinite;
  box-shadow: 0 0 20px rgba(178, 152, 255, 0.5);
}

.ray-1 {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.ray-2 {
  left: 50%;
  animation-delay: -6s;
  animation-duration: 22s;
  width: 3px;
}

.ray-3 {
  left: 80%;
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes rayRotate {
  0% {
    transform: rotate(0deg) translateY(0);
    opacity: 0.3;
  }

  25% {
    opacity: 0.6;
  }

  50% {
    transform: rotate(180deg) translateY(-20px);
    opacity: 0.4;
  }

  75% {
    opacity: 0.6;
  }

  100% {
    transform: rotate(360deg) translateY(0);
    opacity: 0.3;
  }
}

/* Geometric Shapes */
.bg-geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.geometric-shape {
  position: absolute;
  border: 2px solid rgba(178, 152, 255, 0.3);
  border-radius: 8px;
  opacity: 0.4;
  animation: shapeFloat 12s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 152, 255, 0.2), transparent);
  animation-delay: 0s;
  animation-duration: 14s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(106, 77, 221, 0.2), transparent);
  animation-delay: 2s;
  animation-duration: 16s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 20%;
  border-radius: 20px;
  background: linear-gradient(45deg, rgba(178, 152, 255, 0.15), transparent);
  animation-delay: 4s;
  animation-duration: 18s;
}

.shape-4 {
  width: 70px;
  height: 70px;
  top: 30%;
  right: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 221, 0.25), transparent);
  animation-delay: 6s;
  animation-duration: 15s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-20px, -60px) rotate(180deg) scale(0.9);
    opacity: 0.4;
  }

  75% {
    transform: translate(40px, -30px) rotate(270deg) scale(1.05);
    opacity: 0.5;
  }
}

/* Floating Background Particles */
.bg-floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(178, 152, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(178, 152, 255, 0.8);
  animation: bgParticleFloat 20s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bg-particle:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.bg-particle:nth-child(3) {
  top: 45%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 20s;
}

.bg-particle:nth-child(4) {
  top: 55%;
  right: 25%;
  animation-delay: 1s;
  animation-duration: 19s;
}

.bg-particle:nth-child(5) {
  top: 70%;
  left: 15%;
  animation-delay: 3s;
  animation-duration: 21s;
}

.bg-particle:nth-child(6) {
  top: 80%;
  right: 20%;
  animation-delay: 5s;
  animation-duration: 23s;
}

.bg-particle:nth-child(7) {
  top: 35%;
  left: 50%;
  animation-delay: 1.5s;
  animation-duration: 17s;
}

.bg-particle:nth-child(8) {
  top: 60%;
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 19s;
}

.bg-particle:nth-child(9) {
  top: 20%;
  left: 70%;
  animation-delay: 3.5s;
  animation-duration: 20s;
}

.bg-particle:nth-child(10) {
  top: 75%;
  right: 30%;
  animation-delay: 4.5s;
  animation-duration: 18s;
}

@keyframes bgParticleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(50px, -80px) scale(1.3);
    opacity: 0.8;
  }

  50% {
    transform: translate(-30px, -120px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    transform: translate(60px, -90px) scale(1.2);
    opacity: 0.9;
  }
}

/* Pulse Rings */
.bg-pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(178, 152, 255, 0.3);
  border-radius: 50%;
  animation: pulseRing 4s ease-out infinite;
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.ring-2 {
  width: 300px;
  height: 300px;
  animation-delay: 1.3s;
  border-color: rgba(106, 77, 221, 0.3);
}

.ring-3 {
  width: 400px;
  height: 400px;
  animation-delay: 2.6s;
  border-color: rgba(178, 152, 255, 0.2);
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Color Waves */
.bg-color-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(178, 152, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(106, 77, 221, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(178, 152, 255, 0.1) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: waveMove 25s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes waveMove {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }

  33% {
    background-position: 100% 0%, 0% 100%, 50% 50%;
  }

  66% {
    background-position: 0% 100%, 100% 0%, 50% 50%;
  }
}

/* Enhanced Background Parallax on Scroll */
.timeline-item.background.visible {
  background-attachment: fixed;
  transition: background-position 0.1s ease-out;
}

/* Hover Effects on Background */
.timeline-item.background.visible:hover .bg-gradient-overlay {
  opacity: 0.9;
  animation-duration: 10s;
}

.timeline-item.background.visible:hover .light-ray {
  opacity: 0.6;
  box-shadow: 0 0 30px rgba(178, 152, 255, 0.8);
}

.timeline-item.background.visible:hover .geometric-shape {
  opacity: 0.6;
  border-color: rgba(178, 152, 255, 0.5);
}

.timeline-item.background.visible:hover .bg-particle {
  box-shadow: 0 0 25px rgba(178, 152, 255, 1);
}

/* ============================================
   FEATURED IMAGE CONTAINER - Modern Animations
   ============================================ */

.timeline-item.left.background.visible {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timeline-featured-image-container {
  position: relative;
  width: 85%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0;
  transform: translateY(80px) scale(0.85);
  animation: featuredImageFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
    featuredImageFloat 6s ease-in-out infinite 1.5s;
}

@keyframes featuredImageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featuredImageFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

.timeline-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}

.timeline-featured-image-container:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(178, 152, 255, 0.4),
    0 0 120px rgba(178, 152, 255, 0.2);
}

.timeline-featured-image-container:hover .timeline-featured-image {
  transform: scale(1.1);
}

.timeline-featured-image-container:hover .image-glow-effect {
  opacity: 1;
  transform: scale(1.15);
}

.timeline-featured-image-container:hover .image-shine-overlay {
  transform: translateX(100%) translateY(-100%);
}

.image-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(178, 152, 255, 0.3) 0%,
      rgba(106, 77, 221, 0.2) 30%,
      transparent 70%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.image-particle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(178, 152, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(178, 152, 255, 0.6);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 0.5s;
  animation-duration: 7.5s;
}

.particle:nth-child(6) {
  top: 70%;
  left: 10%;
  animation-delay: 2.5s;
  animation-duration: 6s;
}

.particle:nth-child(7) {
  top: 10%;
  left: 60%;
  animation-delay: 1.2s;
  animation-duration: 8s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 90%;
  animation-delay: 0.8s;
  animation-duration: 7s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-15px, -50px) scale(0.8);
    opacity: 0.8;
  }

  75% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.9;
  }
}

.image-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(178, 152, 255, 0.05) 50%,
      transparent 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.timeline-featured-image-container:hover .image-glass-overlay {
  opacity: 0.8;
}

.image-shine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
  animation: shineSweep 4s ease-in-out infinite;
}

@keyframes shineSweep {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

  50% {
    transform: translateX(100%) translateY(100%);
  }

  100% {
    transform: translateX(-100%) translateY(-100%);
  }
}

.timeline-featured-image-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(178, 152, 255, 0.4),
      rgba(106, 77, 221, 0.4),
      rgba(178, 152, 255, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.timeline-featured-image-container:hover::before {
  opacity: 1;
  animation: borderGlowPulse 1.5s ease-in-out infinite;
}

@keyframes borderGlowPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .timeline-featured-image {
    transition: transform 0.1s ease-out;
  }
}

@media (max-width: 768px) {
  .timeline-featured-image-container {
    width: 95%;
    height: 350px;
    max-width: none;
    border-radius: 24px;
  }

  .timeline-item.left.background.visible {
    height: 500px !important;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .particle {
    width: 3px;
    height: 3px;
  }

  .timeline-featured-image-container:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .timeline-featured-image-container {
    width: 90%;
    height: 450px;
  }

  .timeline-item.left.background.visible {
    height: 600px;
  }
}

/* ============================================
   WIREFRAME UI LAYOUT - Pixel Perfect Design
   ============================================ */

/* Override for wireframe layout */
.timeline-item.left.background.visible {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 700px;
}

/* Wireframe UI Container */
.wireframe-ui-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 10;
  opacity: 0;
  animation: wireframeFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes wireframeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Header/Title Bar */
.wireframe-header {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(178, 152, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 2;
  text-align: center;
}

.wireframe-header-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Main Layout Container */
.wireframe-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 30px;
  align-items: start;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 500px;
}

/* Show text block and logo when hovering over the image wrapper */
body:has(.main-content-image-wrapper:hover) .wireframe-text-block,
.wireframe-layout:has(.main-content-image-wrapper:hover) .wireframe-text-block {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

body:has(.main-content-image-wrapper:hover) .wireframe-logo-placeholder,
.wireframe-layout:has(.main-content-image-wrapper:hover) .wireframe-logo-placeholder {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    visibility 0s linear 0s;
  pointer-events: auto;
}

/* Fallback for browsers without :has() support - use class-based hover */
body.image-hovered .wireframe-text-block,
body.image-hovered .wireframe-text-block,
.wireframe-layout.image-hovered .wireframe-text-block {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

body.image-hovered .wireframe-logo-placeholder,
.wireframe-layout.image-hovered .wireframe-logo-placeholder {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    visibility 0s linear 0s;
  pointer-events: auto;
}

/* Left Text Block */
.wireframe-text-block {
  position: fixed;
  top: 50%;
  /* Center between screen left (0%) and image left edge (50% - 450px) */
  /* Center point: (0% + (50% - 450px)) / 2 = 25% - 225px */
  /* To center 300px block: (25% - 225px) - 150px = 25% - 375px */
  left: calc(25% - 475px);
  transform: translateY(-50%) translateX(-40px) scale(0.9);
  width: 300px;
  height: 400px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(178, 152, 255, 0.25);
  border-radius: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
  clip-path: polygon(0% 2%,
      3% 0%,
      92% 0%,
      97% 4%,
      100% 12%,
      98% 92%,
      95% 98%,
      5% 100%,
      2% 96%,
      0% 88%);
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.3s;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.text-block-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 4px;
}

/* Custom scrollbar for text block */
.text-block-content::-webkit-scrollbar {
  width: 4px;
}

.text-block-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.text-block-content::-webkit-scrollbar-thumb {
  background: rgba(178, 152, 255, 0.4);
  border-radius: 2px;
}

.text-block-content::-webkit-scrollbar-thumb:hover {
  background: rgba(178, 152, 255, 0.6);
}

.text-block-content p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.text-block-content p:last-child {
  margin-bottom: 0;
}

.text-block-connector {
  position: absolute;
  bottom: 20%;
  right: -15px;
  width: 30px;
  height: 3px;
  background: rgba(178, 152, 255, 0.4);
  border-radius: 2px;
  z-index: 2;
}

.text-block-connector::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid rgba(178, 152, 255, 0.4);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Main Content Image Area */
.wireframe-main-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  pointer-events: none;
}

.wireframe-main-content .main-content-image-wrapper {
  pointer-events: auto;
}

.main-content-image-wrapper {
  position: relative;
  width: 900px;
  height: 400px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(178, 152, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(80px) scale(0.85);
  animation: featuredImageFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
    featuredImageFloat 6s ease-in-out infinite 1.5s;
}

@keyframes featuredImageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featuredImageFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

.main-content-image-wrapper:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(178, 152, 255, 0.4),
    0 0 120px rgba(178, 152, 255, 0.2);
  border-color: rgba(178, 152, 255, 0.5);
}

.wireframe-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}

.main-content-image-wrapper:hover .wireframe-featured-image {
  transform: scale(1.1);
}

/* Image Glow Effect */
.image-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(178, 152, 255, 0.3) 0%,
      rgba(106, 77, 221, 0.2) 30%,
      transparent 70%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.main-content-image-wrapper:hover .image-glow-effect {
  opacity: 1;
  transform: scale(1.15);
}

/* Image Particle Overlay */
.image-particle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(178, 152, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(178, 152, 255, 0.6);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 0.5s;
  animation-duration: 7.5s;
}

.particle:nth-child(6) {
  top: 70%;
  left: 10%;
  animation-delay: 2.5s;
  animation-duration: 6s;
}

.particle:nth-child(7) {
  top: 10%;
  left: 60%;
  animation-delay: 1.2s;
  animation-duration: 8s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 90%;
  animation-delay: 0.8s;
  animation-duration: 7s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-15px, -50px) scale(0.8);
    opacity: 0.8;
  }

  75% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.9;
  }
}

/* Image Glass Overlay */
.image-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(178, 152, 255, 0.05) 50%,
      transparent 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.main-content-image-wrapper:hover .image-glass-overlay {
  opacity: 0.8;
}

/* Image Shine Overlay */
.image-shine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
  animation: shineSweep 4s ease-in-out infinite;
}

@keyframes shineSweep {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

  50% {
    transform: translateX(100%) translateY(100%);
  }

  100% {
    transform: translateX(-100%) translateY(-100%);
  }
}

.main-content-image-wrapper:hover .image-shine-overlay {
  transform: translateX(100%) translateY(100%);
}

/* Border Glow Effect */
.main-content-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(178, 152, 255, 0.4),
      rgba(106, 77, 221, 0.4),
      rgba(178, 152, 255, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.main-content-image-wrapper:hover::before {
  opacity: 1;
  animation: borderGlowPulse 1.5s ease-in-out infinite;
}

@keyframes borderGlowPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* Right Logo/Illustration Placeholder */
.wireframe-logo-placeholder {
  position: fixed;
  top: 50%;
  /* Center between image right edge (50% + 450px) and screen right (100%) */
  /* Center point: ((50% + 450px) + 100%) / 2 = 75% + 225px */
  /* To center 220px logo: (75% + 225px) - 110px = 75% + 115px */
  left: calc(75% + 165px);
  transform: translateY(-50%) translateX(40px) scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
    visibility 0s linear 0.45s;
  pointer-events: none;
}

.logo-circle {
  position: relative;
  width: 300px;
  height: 300px;
  border: 3px solid rgba(178, 152, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-circle:hover {
  transform: scale(1.05);
  border-color: rgba(178, 152, 255, 0.6);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(178, 152, 255, 0.3);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(178, 152, 255, 0.6),
      transparent);
  transform: rotate(-45deg);
  margin: 8px 0;
}

.logo-illustr {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: lowercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Wireframe UI Responsive Design */
@media (max-width: 1400px) {

  /* Maintain centered positioning - image still 900px */
  .wireframe-text-block {
    left: calc(25% - 375px);
  }

  .wireframe-logo-placeholder {
    left: calc(75% + 115px);
  }
}

@media (max-width: 1200px) {
  .wireframe-layout {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
  }

  /* If image scales down, adjust positioning proportionally */
  /* Assuming image might be ~800px: left edge at 50% - 400px */
  .wireframe-text-block {
    left: calc(25% - 350px);
    /* Adjusted for smaller image */
  }

  .wireframe-logo-placeholder {
    left: calc(75% + 90px);
    /* Adjusted for smaller image */
  }

  .logo-circle {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 1024px) {
  .wireframe-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 700px;
  }

  .wireframe-logo-placeholder {
    position: relative;
    top: 65px;
    left: auto;
    transform: none;
    order: 1;
    align-self: center;
    margin-bottom: 20px;
  }

  .wireframe-main-content {
    order: 2;
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .wireframe-text-block {
    position: relative;
    top: 100px;
    left: auto;
    transform: none;
    order: 3;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 150px;
    /* aspect-ratio: 300 / 400; */
    margin-top: auto;
    align-self: center;
  }

  .text-block-connector {
    display: none;
  }

  .main-content-image-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 900 / 400;
    height: auto;
  }

  .timeline-item.left.background.visible {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .wireframe-ui-container {
    padding: 0 20px;
  }

  .wireframe-header {
    max-width: 100%;
    padding: 12px 24px;
    margin-bottom: 30px;
  }

  .wireframe-header-text {
    font-size: 1.25rem;
  }

  .wireframe-layout {
    gap: 24px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wireframe-logo-placeholder {
    position: relative;
    top: 65px;
    left: auto;
    transform: none;
    order: 1;
    align-self: center;
    margin-bottom: 20px;
  }

  .wireframe-main-content {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .main-content-image-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 900 / 400;
    height: auto;
  }

  .main-content-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
  }

  .particle {
    width: 3px;
    height: 3px;
  }

  .wireframe-text-block {
    position: relative;
    top: 100px;
    left: auto;
    transform: none;
    order: 3;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 150px;
    /* aspect-ratio: 300 / 400; */
    padding: 20px;
    margin-top: auto;
    align-self: center;
  }

  .text-block-content p {
    font-size: 0.875rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-circle {
    width: 100px;
    height: 100px;
  }

  .timeline-icon-container {
    display: none;
  }

  .timeline-icon {
    display: none;
  }

  .timeline-item.left.background.visible {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Background Animation Responsive Styles */
@media (max-width: 768px) {
  .geometric-shape {
    width: 40px !important;
    height: 40px !important;
    opacity: 0.3;
  }

  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4 {
    width: 40px !important;
    height: 40px !important;
  }

  .bg-particle {
    width: 4px;
    height: 4px;
  }

  .light-ray {
    width: 1px;
    opacity: 0.3;
  }

  .pulse-ring {
    width: 150px !important;
    height: 150px !important;
  }

  .ring-2 {
    width: 200px !important;
    height: 200px !important;
  }

  .ring-3 {
    width: 250px !important;
    height: 250px !important;
  }

  .bg-gradient-overlay {
    opacity: 0.7;
  }

  .bg-color-waves {
    opacity: 0.4;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .geometric-shape {
    width: 60px;
    height: 60px;
  }

  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4 {
    width: 60px;
    height: 60px;
  }

  .pulse-ring {
    width: 250px;
    height: 250px;
  }

  .ring-2 {
    width: 350px;
    height: 350px;
  }

  .ring-3 {
    width: 450px;
    height: 450px;
  }
}