html {
  scroll-behavior: auto !important;
}

/* Parkrunner Info Stat Bar */
.parkrunner-info {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem auto 2rem auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.parkrunner-info h3 {
  margin: 0 0 1.5rem 0;
  color: var(--black-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.parkrunner-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.parkrunner-info .info-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.parkrunner-info .info-label {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parkrunner-info .info-value {
  font-size: 1.2rem;
  color: var(--black-color);
  font-weight: 700;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero-section {
    padding: 1rem 2rem 0.5rem 2rem;
  }
  
.hero-text {
  font-size: 3rem;
  line-height: 3rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 4;
}
  
  .parkrunner-info {
    margin: 0.5rem auto 1rem auto;
    padding: 1rem;
  }
  
  .parkrunner-info .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .parkrunner-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}

.hero-section {
  width: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.15)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");
  background-repeat: repeat;
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 1;
  z-index: 3;
  padding: 7rem 4rem 1rem 4rem;
  position: relative;
  min-height: auto;
}

.hero-section::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  opacity: 1;
  z-index: 2;
}

  
.hero-text {
  font-size: 5rem;
  line-height: 5rem;
  font-family: "Montserrat", sans-serif;
  color: var(--black-color);
  font-weight: 600;
  text-align: center;
  width: 100%;
  z-index: 3;
  position: relative;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
  
.hero-subtext {
  font-size: 1.1rem;
  font-family: "Montserrat", sans-serif;
  color: var(--black-color);
  font-weight: 400;
  text-align: center;
  width: 100%;
  z-index: 4;
  position: relative;
  margin-top: 2rem;
}

.giant-search-wrapper {
  width: 100%;
  display: flex;
  padding: 3rem;
  z-index: 3;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.giant-search {
  width: 100%;
  max-width: 500px;
  border-radius: 50px;
  height: 6rem;
  background: #fff;
  outline: none;
  border: 3px solid #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  position: relative;
  transition: .3s;
  display: flex;
  align-content: center;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2px;
  gap: 2px;
}

.giant-search input {
  text-align: center;
  letter-spacing: 1rem;
  font-size: 2.5rem;
  font-weight: 500;
  color: #000;
  height: 100%;
  border-radius: 25px 0 0 25px;
  width: 100%;
  border: 0px;
  outline: none;
  text-transform: uppercase;
}

.giant-search-button {
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--color) !important;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.3rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: .3s;
  position: relative;
}

.giant-search-button:hover {
  font-weight: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  font-size: 1.6rem;
}

.giant-search:hover input{
  color: var(--color);
  font-weight: 600;
}

.giant-search input:focus{
  color: var(--color);
}

.giant-search:focus-within {
  color: var(--color);
  font-weight: 600;
  outline: 2px solid var(--color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@-moz-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-webkit-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.arrow {
  width: 40px;
  height: 40px;
  color: var(--black-color);
  font-size: 3rem;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

.recent-searches-wrapper {
  width: 100%;
  display: flex
;
  /* padding: 2rem; */
  position: relative;
  z-index: 4;
  flex-direction: column;
  gap: 0.5rem;
  /* margin-top: 2rem; */
  align-items: center;
}

.recent-searches-title {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--black-color);
  font-weight: 600;
}

.recent-searches-badges {
  width: 100%;
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
}

.recent-searches-badge {
  display: flex;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  gap: 0.5rem;
  line-height: 1rem;
  border-radius: 25px;
  background-color: var(--black-color);
  color: var(--white-color);
  cursor: pointer;
  transition: .3s;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.recent-searches-badge:hover {
  transform: scale(1.05);
}

.active-badge {
  background-color: var(--color);
  color: var(--black-color);
  transform: scale(1) !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  justify-content: center;
  align-items: start;
  position: relative;
  z-index: 9;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  /* Remove any forcing width if necessary */
  /* max-width: 100%; */ 
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Force consolidated grid to always have two columns */
.consolidated-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: center;
  align-items: center;
}
  
.product-text {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-title {
  width: 100%;
  text-align: left;
  color: var(--black-color);
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 900;
}

.product-subtitle {
  font-size: 1rem;
  line-height: 1rem;
  color: var(--black-color);
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.product-button {
  width: 100%;
  background-color: var(--color);
  text-align: center;
  color: var(--black-color);
  font-weight: 700;
  padding: 1rem;
  border-radius: 50px;
  cursor: pointer;
  border: 4px solid rgba(0, 0, 0, 0);
  transition: .3s;
  position: relative;
  overflow: hidden;
}

.product-button:hover {
  border: 4px solid rgba(0, 0, 0, 0.05);
  transform: scale(1.025);
}

.product-button:active {
  border: 4px solid rgba(0, 0, 0, 0.05);
  transform: scale(0.95);
}

.skeleton-card {
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  animation: pulseskel 2s infinite;
}

.skeleton-box {
  background: #ddd;
  height: 169px;
  width: 100%;
}

.skeleton-line {
  height: 20px;
  margin: 10px 0;
  background: #ddd;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 50%;
}

.skeleton-button {
  height: 40px;
  background: #ccc;
  border-radius: 50px;
  margin-top: 1rem;
}

@keyframes pulseskel {
  0% {
    background-color: #f0f0f0;
  }

  50% {
    background-color: #e0e0e0;
  }

  100% {
    background-color: #f0f0f0;
  }
}



.remove-badge {
  font-size: 1rem;
  cursor: pointer;
  font-weight: 900;
  color: var(--white-color);
  transition: 0.1s;
}

.active-badge .remove-badge {
  color: var(--black-color);
}

.remove-badge:hover {
  font-weight: 900;
}

.first-time-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  font-size: 1.5rem;
  color: var(--black-color);
  font-weight: 800;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 99;
}

.parkrunner-details {
  width: 100%;
  max-width: 100%;
  display: flex;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  padding-bottom: 0;
  flex-direction: column;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}

.parkrunner-name {
  width: 100%;
  font-size: 3rem;
  font-weight: 800;
  line-height: 3rem;
  color: var(--black-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  align-content: center;
  gap: 0rem;
  margin-bottom: 0.5rem;
  flex-direction: column;
  justify-content: center;
}

.runner-flag {
  height: 3rem;
  border: 8px;
  box-shadow: 0 0 10 rgba(0,0,0,0.1);
}

.parkrunner-stats {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black-color);
  text-transform: uppercase;
}

/* Award Product Cards - Horizontal Scrolling Carousel */
.awards-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  padding: 0;
  overflow: hidden;
}

.awards-carousel {
  padding: 2rem 3rem;
  overflow: visible;
}

.awards-container {
  display: flex;
  width: 100%;
  height: auto;
}

/* Ensure product cards in awards container use vertical layout */
.awards-container .swiper-slide {
  height: auto;
  display: flex;
}

/* Scroll animation initial state for carousel cards */
.carousel-card-animate {
  opacity: 0;
  transform: translateY(50px);
}

.awards-container .product-card {
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
}

.awards-container .product-card-image {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  margin-left: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.awards-container .product-card-image img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.awards-container .product-card-content {
  width: 100%;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
  min-width: 0;
}

/* Award Chips */
.awards-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem;
}

.award-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--black-color);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.award-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.award-chip i {
  font-size: 1rem;
  color: var(--white-color);
}

.milestone-chip {
  background-color: var(--black-color);
  color: var(--white-color);
}

.milestone-chip i {
  color: var(--white-color);
}

.challenge-chip {
  background-color: var(--color);
  color: var(--black-color);
}

.challenge-chip i {
  color: var(--black-color);
}

.legend-chip {
  background-color: var(--color);
  color: var(--black-color);
}

.legend-chip i {
  color: var(--black-color);
}

/* Custom shine effect for award chips with animation delay support */
.award-chip.shine:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 40px;
  height: 100%;
  opacity: 1;
  background: rgba(255, 255, 255, 0);
  filter: blur(10px);
  transform: skewX(-30deg);
  animation-name: chipShine;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-delay: var(--shine-delay, 0s);
  animation-iteration-count: infinite;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.13) 77%,
      rgba(255, 255, 255, 0.5) 92%,
      rgba(255, 255, 255, 0.0) 100%);
}

@keyframes chipShine {
  0% {
    left: -100px;
    top: 0;
  }
  30% {
    left: 100%;
    top: 0;
  }
  100% {
    left: 100%;
    top: 0;
  }
}

/* Awards carousel navigation buttons */
.awards-carousel .swiper-button-prev.awards-prev,
.awards-carousel .swiper-button-next.awards-next {
  background: var(--color) !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  color: white !important;
  margin-top: -20px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute;
  flex-shrink: 0;
  top: 50%;
  z-index: 10;
}

.awards-carousel .swiper-button-prev.awards-prev {
  left: 10px;
}

.awards-carousel .swiper-button-next.awards-next {
  right: 10px;
}

.awards-carousel .swiper-button-prev.awards-prev::after,
.awards-carousel .swiper-button-next.awards-next::after {
  display: none !important;
  content: none !important;
  font-size: 0 !important;
}

.awards-carousel .swiper-button-prev.awards-prev i,
.awards-carousel .swiper-button-next.awards-next i {
  font-size: 20px;
  color: white;
  display: block;
  line-height: 1;
  margin: 0;
}

.awards-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1.5rem;
  text-align: center;
}

.awards-pagination .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  margin: 0 4px;
}

.awards-pagination .swiper-pagination-bullet-active {
  background: var(--color);
  opacity: 1;
}

.award-product-card {
  display: flex;
  flex-direction: column;
  background: var(--background-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  background: #fff;
  animation: cardFadeIn 0.6s ease-out backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.award-product-card:nth-child(1) { animation-delay: 0.1s; }
.award-product-card:nth-child(2) { animation-delay: 0.2s; }
.award-product-card:nth-child(3) { animation-delay: 0.3s; }
.award-product-card:nth-child(4) { animation-delay: 0.4s; }
.award-product-card:nth-child(5) { animation-delay: 0.5s; }
.award-product-card:nth-child(6) { animation-delay: 0.6s; }
.award-product-card:nth-child(n+7) { animation-delay: 0.7s; }

.award-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color);
}

.award-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.award-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.award-product-card:hover .award-card-image-wrapper::after {
  left: 100%;
}

.award-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.award-product-card:hover .award-card-image {
  transform: scale(1.1);
}

.award-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.award-product-card:hover .award-card-overlay {
  opacity: 1;
}

.award-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.award-product-card:hover .award-card-badge {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.award-card-badge i {
  font-size: 1.5rem;
  color: var(--color);
}

.milestone-card .award-card-badge i {
  color: var(--black-color);
}

.challenge-card .award-card-badge {
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.challenge-card .award-card-badge i {
  color: white;
}

.legend-card .award-card-badge {
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
}

.legend-card .award-card-badge i {
  color: white;
}

.award-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.award-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.award-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.award-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.award-card-cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  transition: width 0.3s ease;
}

.award-product-card:hover .award-card-cta::before {
  width: 100%;
}

.award-product-card:hover .award-card-cta {
  color: var(--color-alt);
  transform: translateX(4px);
}

.award-card-cta i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.award-product-card:hover .award-card-cta i {
  transform: translateX(4px);
}

/* Responsive adjustments for awards carousel */
@media (max-width: 768px) {
  .awards-carousel {
    padding: 1.5rem 1rem;
  }
  
  .awards-container .product-card-image {
    height: 180px;
  }
  
  .awards-container .product-card-content {
    padding: 1.25rem;
  }
  
  .awards-container .product-card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .awards-carousel {
    padding: 1rem 0.5rem;
  }
  
  .awards-container .product-card-image {
    height: 200px;
  }
  
  .awards-container .product-card-content {
    padding: 1rem;
  }
}



.rotating-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px var(--background);

    p {
        display: inline-flex;
        margin: 0;
        width: 100%;
        vertical-align: top;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;

    .word {
      position: absolute;
      display: flex;
      opacity: 0;

      .letter {
        transform-origin: center center 25px;

        &.out {
          transform: rotateX(90deg);
          transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
        }
        &.in {
          transition: 0.38s ease;
        }
        &.behind {
          transform: rotateX(-90deg);
        }
      }
    }
  }
}


.alizarin {
  color: #e74c3c;
}

.wisteria {
  color: #8e44ad;
}

.peter-river {
  color: #3498db;
}

.emerald {
  color: #2ecc71;
}

.sun-flower {
  color: #f1c40f;
}

.split-text {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.center-lock {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.glow-an {
  -webkit-animation: glow 2s infinite;
  animation: glow 2s infinite;
}

@-webkit-keyframes glow {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 166, 49, 0.7);
    box-shadow: 0 0 0 0 rgba(255, 166, 49, 0.7);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 166, 49, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.no-completions {
  max-width: 1000px;
  margin-left: 50%;
  position: relative;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  font-size: 3rem;
  line-height: 4rem;
  color: #000;
  font-weight: 600;
  opacity: 0.6;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.product-image {
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 100%;
  min-height: 376px;
  /* overflow: hidden; */
  animation: pulseskel 1.5s infinite;
}

.product-grid-container {
  position: relative;
}

@keyframes vibe {
  0% {
    opacity: 0.15;
    left: -100%;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.15;
    left: 0;
  }
}

.hero-spice-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  aspect-ratio: 1/1;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-content: center;
}

.hero-enhance {
  width: 100%;
  opacity: 0.05;
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
  /* Initial transform is now handled by animation */
}

.hero-enhance-also {
  width: 100%;
  opacity: 0.1;
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-centerer {
  position: relative;
  width: 50%;
}

/* Apply the constant animation */
.hero-enhance {
  transition: transform 0.1s ease-out;
  will-change: transform;
  animation: rotateScale 100s linear infinite;
}
/* Apply the constant animation */
.hero-enhance-also {
  transition: transform 0.1s ease-out;
  will-change: transform;
  animation: rotateScale 120s linear infinite;
}

/* Keyframes for continuous rotation and scaling */
@keyframes rotateScale {
  0% {
    transform: scale(1.2) rotate(0deg);
  }

  50% {
    transform: scale(1.3) rotate(180deg);
  }

  100% {
    transform: scale(1.2) rotate(360deg);
  }
}

.product-grid-filters {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  position: relative;
  z-index: 9;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
}

.product-grid-filter {
  padding: 0.5rem 2rem;
  display: flex;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--black-color);
  color: var(--white-color);
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  transition: .1s;
}

.product-grid-filter:hover {
  opacity: 0.9;
}

.product-grid-filter-active {
  background-color: var(--color);
  color: var(--black-color);
}

.product-grid-container {
  position: relative;
  z-index: 9;
}

.product-grid-placeholder {
  position: relative;
  z-index: 9;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 2rem;
}

.product-grid-placeholder p {
  font-size: 2rem;
}

.breathing-icon {
  display: inline-block;
  background-color: var(--color);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  font-size: 2rem;
  font-weight: 1000;
  animation: breathing 2s infiniteease-in-out;
  justify-content: center;
  align-items: center;
}

.breathing-icon i {
  color: black;
  font-size: 2rem;
}

/* Keyframes for breathing animation */
@keyframes breathing {

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

  50% {
    transform: scale(1.2);
  }
}

.pulse {
  animation: pulseAnimation 1s ease;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.loading-parkrunner-name-flag-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#flag-container {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.skelton-flag {
  width: 3.4rem;
  height: 2.4rem;
  border-radius: 8px;
}


/* Small devices (phones, less than 600px) */
@media only screen and (max-width: 599px) {
.giant-search-wrapper {
    width: 100%;
    display: flex;
    padding: 0rem;
    z-index: 3;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
.recent-searches-wrapper {
  width: 100%;
  display: flex;
  padding: 0rem;
  position: relative;
  z-index: 4;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

}

/* Medium devices (tablets, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 1023px) {

}

/* Large devices (desktops, 1024px and up) */
@media only screen and (min-width: 1024px) {
  
}

.skele-flag-wrap {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.skele-stat-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}



.logo-page-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/run-anim-white.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 300px;
  z-index: 999;
  display: none;
}

.rotating-text p {
  gap: 1rem;
}

.linear-wipe div {
  text-align: center;
  background: linear-gradient(to right, var(--color-alt) 20%, var(--color) 40%, var(--color) 60%, var(--color-alt) 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: textshiner 3s linear infinite;
  animation: textshiner 3s linear infinite;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

@-webkit-keyframes textshiner {
  to {
    background-position: 200% center;
  }
}

@keyframes textshiner {
  to {
    background-position: 200% center;
  }
}

#animation-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  z-index: 999;
}

.box {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  will-change: transform;
  z-index: 10;
  background-size: contain;
  background-image: url(/assets/images/machine.png);
}

.item,
.rect,
.particle {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.item {
  width: 40px;
  height: 60px;
  background: #000;
  z-index: 9;
  border-radius: 4px;
}

.rect {
  width: 100px;
  height: 125px;
  background: var(--color);
  border-radius: 4px;
  z-index: 9;
  opacity: 0;
  background-image: url(/assets/images/default-image.png);
  background-size: cover;
}

.particle {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  z-index: 15;
}

/* Image Reveal Section */
.image-reveal-section {
  padding: 4rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-reveal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.image-reveal-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  overflow: clip;
}

.image-reveal-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.image-reveal-animation {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-image-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-image {
  position: relative;
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  will-change: clip-path;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Initial state - clipped from right with visible wave edge */
  /* Wave will be animated via JavaScript */
  clip-path: polygon(
    100% 0%, 
    90% 0%, 
    88% 2%, 
    85% 5%, 
    88% 10%, 
    90% 15%, 
    88% 20%, 
    85% 25%, 
    88% 30%, 
    90% 35%, 
    88% 40%, 
    85% 45%, 
    88% 50%, 
    90% 55%, 
    88% 60%, 
    85% 65%, 
    88% 70%, 
    90% 75%, 
    88% 80%, 
    85% 85%, 
    88% 90%, 
    90% 95%, 
    88% 98%, 
    90% 100%, 
    100% 100%
  );
}

.cover-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.image-reveal-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.image-reveal-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.image-reveal-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.image-reveal-description code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--text-color);
}

/* Responsive adjustments for image reveal section */
@media (max-width: 968px) {
  .image-reveal-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-reveal-text {
    text-align: left;
  }

  .image-reveal-heading {
    text-align: left;
  }

  .image-reveal-description {
    text-align: justify;
  }

  .image-reveal-card {
    min-height: auto;
  }
}

@media (min-width: 769px) and (max-width: 968px) {
  .cover-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    min-height: 220px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .image-reveal-section {
    padding: 2rem 0;
  }

  .image-reveal-container {
    padding: 0 1rem;
  }

  .image-reveal-card {
    padding: 2rem 1.5rem;
  }

  .image-reveal-heading {
    font-size: 2rem;
  }

  .image-reveal-description {
    font-size: 1rem;
  }

  .cover-image img {
    width: 100%;
    height: 100px;
    min-height: 20px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
}

/* 3D Product Carousel Section */
.product-3d-carousel-section {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  min-height: 450px;
  overflow: hidden;
  background: transparent;
  margin: 0;
  cursor: default;
  z-index: 0;
  pointer-events: none; /* Always disabled - no interaction needed */
}

@media (max-width: 768px) {
  .product-3d-carousel-section {
    height: 50vh !important;
    opacity: 0.8;
    min-height: 600px;
  }
}

.product-3d-carousel-section.move {
  cursor: grabbing;
}

.viewport-3d {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80vh;
  will-change: transform;
  opacity: 0.6;
}

.wrapper-3d {
  position: relative;
  height: 100%;
  width: 100%;
}

.media-3d {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform;
  opacity: 1;
  transition: opacity 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
  color: inherit;
  text-decoration: none;
}

.media-3d.media-hidden {
  opacity: 0;
}

.media-3d .bg-3d {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  /* overflow: hidden; */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-3d picture,
.media-3d img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: contain;
  /* Use filter drop-shadow for PNG images - respects alpha channel and follows image shape */
  filter: drop-shadow(0 0px 20px rgba(0, 0, 0, 0.1));
}

/* Ensure search wrapper appears above carousel */
.giant-search-wrapper {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .product-3d-carousel-section {
    height: 100vh;
    min-height: 600px;
  }
  
  .viewport-3d {
    height: 80vh;
  }
  
  .media-3d .title-3d {
    font-size: 2.5em;
  }
  
  .media-3d .description-3d {
    font-size: 0.8em;
    right: 1em;
    bottom: 1em;
    padding: 0.4em 0.6em;
  }
}

/* How It Works Section */
.how-it-works-section {
  padding: 2rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 600px; */
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.how-it-works-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  /* overflow: hidden; */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.how-it-works-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.how-it-works-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.how-it-works-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-it-works-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.how-it-works-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.how-it-works-animation {
  position: absolute;
  height: 50vh;
  /* overflow: hidden; */
  clip-path: polygon(-50% -50%, 150% -50%, 150% 100%, -50% 100%);
  margin-inline: auto;
  margin-block-start: -5%;
  width: min(100%, 450px); /* Reduced width for less space between cards */
  bottom: -3rem;
  right: 0;
}

.animated-cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-card {
  position: absolute;
  width: 100%;
  max-width: 280px; /* Increased from 200px */
  height: 320px; /* Increased from 250px */
  background: var(--background-light); /* Solid background */
  border: 2px solid rgba(255, 162, 92, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  /* Start below - will be animated by GSAP */
  transform: translate(0, 50%) rotate(0deg);
  transform-origin: bottom center; /* Rotate around bottom center */
  will-change: transform, opacity;
  pointer-events: auto; /* Ensure cards can be interacted with if needed */
  cursor: pointer; /* Show pointer cursor to indicate interactivity */
  transition: box-shadow 0.3s ease; /* Smooth shadow transition on hover */
}

.animated-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Increased gap for better spacing */
  text-align: center;
  width: 100%;
  padding: 0.5rem; /* Add padding for better text spacing */
}

.card-icon {
  width: 70px; /* Increased from 60px */
  height: 70px; /* Increased from 60px */
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem; /* Increased from 1.75rem */
  box-shadow: 0 4px 12px rgba(255, 162, 92, 0.3);
}

.animated-card h4 {
  font-size: 1.35rem; /* Increased for better readability */
  font-weight: 700; /* Bolder for better contrast */
  color: var(--text-color);
  margin: 0 0 0.5rem 0; /* Add margin below heading */
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Subtle shadow for readability */
}

.animated-card p {
  font-size: 1rem; /* Increased for better readability */
  color: var(--text-color); /* Changed from muted to full color for better contrast */
  margin: 0;
  line-height: 1.6;
  font-weight: 500; /* Slightly bolder */
}

/* Cards are all stacked in the same position and will rotate around bottom center */
.animated-card {
  left: 50%;
  /* GSAP will handle centering with xPercent: -50 */
  /* Cards will all be at the same position and rotate around bottom center */
}

.card-1 { z-index: 1; }
.card-2 { z-index: 2; }
.card-3 { z-index: 4; }
.card-4 { z-index: 2; }

/* Responsive adjustments for how it works section */

/* Mobile Responsive for How It Works */
@media (max-width: 968px) {
  .how-it-works-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Hide cards animation on tablet and mobile */
  .how-it-works-animation {
    display: none;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .how-it-works-container {
    padding: 0 1rem;
  }
  
  .how-it-works-card {
    padding: 2rem 1.5rem;
  }
  
  .how-it-works-heading {
    font-size: 2rem;
  }
  
  .how-it-works-description {
    font-size: 1rem;
  }
  
  /* Hide cards animation on mobile */
  .how-it-works-animation {
    display: none;
  }
  
  .feature-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .feature-text h3 {
    font-size: 1rem;
  }
  
  .feature-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .how-it-works-steps {
    gap: 1rem;
  }
  
  .step-card {
    padding: 1.25rem;
  }
}

/* Product Carousel Section */
.product-carousel-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-light) 90%, var(--background) 100%);
  margin-top: 4rem;
  position: relative;
}

.product-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='25' height='25' fill='none'%3e%3ccircle fill='rgb(0 0 0 / 0.15)' id='pattern-circle' cx='10' cy='10' r='1.6257413380501518'%3e%3c/circle%3e%3c/svg%3e");

  background-repeat: repeat;
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}


.carousel-container {
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

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

/* Infinite Scroll Tags Section */
.infinite-tags-section {
  padding: 4rem 0;
  background: var(--background);
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
}

.infinite-tags-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.infinite-tags-card {
  background: var(--background-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.infinite-tags-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.infinite-tags-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.infinite-tags-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.infinite-tags-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.infinite-tags-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}

.infinite-tags-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-direction: row-reverse;
}

.infinite-tags-features .feature-text {
  text-align: right;
}

.infinite-tags-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  align-self: center;
  margin-top: 1rem;
}

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

.infinite-tags-cta:hover::before {
  left: 100%;
}

.infinite-tags-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.infinite-tags-cta:active {
  transform: translateY(0);
}

.cta-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.infinite-tags-cta:hover .cta-icon {
  transform: translateX(4px);
}

.infinite-tags-animation {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.infinite-tags-animation .fade {
  background: linear-gradient(
    90deg,
    var(--background-light) 0%,
    var(--background-light) 10%,
    transparent 20%,
    transparent 80%,
    var(--background-light) 90%,
    var(--background-light) 100%
  );
}

.tag-list {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 1rem 0;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}

.tag-list::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--background-light) 0%, var(--background-light) 10%, transparent 20%, transparent 80%, var(--background-light) 90%, var(--background-light) 100%);
  z-index: 1;
  pointer-events: none;
}

.loop-slider {
  width: 100%;
}

.loop-slider .inner {
  display: flex;
  width: fit-content;
  animation-name: loop;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: var(--direction);
  animation-duration: var(--duration);
}

.tag {
  display: flex;
  align-items: center;
  gap: 0 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--background-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  margin-right: 1rem; /* Must use margin-right instead of gap for the loop to be smooth */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tag-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.tag span {
  font-size: 1.2rem;
  color: var(--color);
  font-weight: 600;
  opacity: 0.8;
}

.fade {
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--background-light) 0%,
    var(--background-light) 10%,
    transparent 20%,
    transparent 80%,
    var(--background-light) 90%,
    var(--background-light) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 10;
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 968px) {
  .infinite-tags-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .infinite-tags-text {
    text-align: left;
  }

  .infinite-tags-heading {
    text-align: left;
  }

  .infinite-tags-description {
    text-align: justify;
  }

  .infinite-tags-features {
    align-items: flex-start;
  }

  .infinite-tags-features .feature-item {
    flex-direction: row;
  }

  .infinite-tags-features .feature-text {
    text-align: left;
  }

  .infinite-tags-cta {
    align-self: center;
  }

  /* .infinite-tags-animation {
    height: 400px;
  } */

  .infinite-tags-card {
    min-height: 500px;
  }
}

/* Medium screens: show 3 rows, no rotation */
@media (min-width: 768px) and (max-width: 967px) {
  /* Hide all loop-sliders except the first 3 on medium screens */
  .tag-list .loop-slider:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .infinite-tags-section {
    padding: 2rem 0;
  }

  .infinite-tags-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  /* .infinite-tags-animation {
    height: 300px;
  } */

  .infinite-tags-container {
    padding: 0 1rem;
  }

  .infinite-tags-card {
    padding: 2rem 1.5rem;
  }

  .infinite-tags-heading {
    font-size: 2rem;
  }

  .infinite-tags-description {
    font-size: 1rem;
  }

  .infinite-tags-cta {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .tag-list {
    max-width: 95vw;
    gap: 0.75rem 0;
    padding: 1rem 0;
  }

  /* Hide all loop-sliders except the first 2 on mobile */
  .tag-list .loop-slider:nth-child(n+3) {
    display: none;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .tag span {
    font-size: 1rem;
  }
}

.carousel-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* Swiper Carousel Styles */
.carousel-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  z-index: 1;
}

#productCarousel {
  display: flex;
  padding: 3rem;
}

/* Full-width card on small screens */
#productCarousel .swiper-slide {
  width: auto;
}

/* Show controls on all screen sizes */
#productCarousel .swiper-button-prev,
#productCarousel .swiper-button-next {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position pagination dots below the cards */
#productCarousel .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1.5rem;
  text-align: center;
}

/* Custom Swiper button and pagination styling */
#productCarousel .swiper-button-prev,
#productCarousel .swiper-button-next {
  background: var(--color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
}

#productCarousel .swiper-button-prev::after,
#productCarousel .swiper-button-next::after {
  font-size: 18px;
}

#productCarousel .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  margin: 0 4px;
}

#productCarousel .swiper-pagination-bullet-active {
  background: var(--color);
  opacity: 1;
}

.product-card {
  flex: 0 0 100vw;
  width: 100%;
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  z-index: 9;
}

.product-card-image {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  width: 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* Desktop: Make cards smaller with fixed width and vertical layout */
@media (min-width: 768px) {
  .product-card {
    flex: 0 0 300px;
    flex-direction: column;
  }
  
  .product-card-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
  }
  
  .product-card-content {
    width: 100%;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

/* Laptop: Make cards slightly larger */
@media (min-width: 1024px) {
  .product-card {
    flex: 0 0 320px;
  }
  
  .product-card-image {
    height: 220px;
  }
}

/* Desktop: Make cards even larger */
@media (min-width: 1440px) {
  .product-card {
    flex: 0 0 350px;
  }
  
  .product-card-image {
    height: 240px;
  }
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.product-card-image {
  width: 50%;
  height: 100%;
  /* background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Desktop: Center images horizontally with padding */
@media (min-width: 768px) {
  .product-card-image {
    display: flex;
    width: 60%;
    transform: translateX(-50%);
    margin-left: 50%;
    align-items: center;
    justify-content: center;
    /* padding: 0.75rem; */
  }
  
  .product-card-image img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
  
  .product-card-content {
    padding: 1.5rem;
  }
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
}

.product-card-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.product-card-badge.milestone {
  background: var(--color);
  color: white;
}

.product-card-badge.challenge {
  background: var(--color-alt);
  color: white;
}

.product-card-badge.legend {
  background: var(--color);
  color: white;
}

.product-card-badge.inverted {
  background: var(--color);
  color: white;
  border: 2px solid var(--color);
}



.product-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-card-description {
  font-size: 0.85rem;
  color: #8590a6;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-button {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.product-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 162, 92, 0.4);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-carousel-section {
    padding: 2rem 0 0 0;
    margin-top: 2rem;
  }
  
  .carousel-container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .carousel-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
  }
  
  .carousel-wrapper {
    width: 100%;
    padding: 0;
  }
  
  .carousel-track {
    gap: 1rem;
  }
  
  .product-card {
    flex: 0 0 calc(100vw - 2rem);
    min-height: auto;
    border-radius: 20px;
    margin: 0 auto;
    max-width: calc(100vw - 2rem);
  }
  
  .product-card-image {
    height: 250px;
  }
  
  .product-card-content {
    padding: 1.5rem;
  }
  
  .product-card-title {
    font-size: 1.1rem;
  }
  
  .product-card-subtitle {
    font-size: 0.85rem;
  }
  
  .product-card-description {
    font-size: 0.8rem;
  }
  
  .product-card-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .carousel-title {
    font-size: 1.25rem;
    padding: 0 1rem;
  }
  
  .product-card-image {
    height: 200px;
  }
  
  .product-card-content {
    padding: 1rem;
  }
}

/* Carousel Tooltip Styles */

.navbar {
  margin: 2%;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  width: max-content;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0);
  position: sticky;
  top: 2rem;
  z-index: 999;
}

/* Inner Animated Radial Gradient */
.navbar-wrapper {
  left: 2px;
  position: absolute;
  top: 2px;
  width: calc(100% - 4px);
  bottom: 2px;
  right: 2px;
  border-radius: inherit;
  padding: 1px;
  z-index: 2;
  background: var(--navbar);
  background: radial-gradient(circle at var(--gradient-x) var(--gradient-y), var(--bold), transparent 50%);
  opacity: 0.3;
  transition: background-position 0.1s ease-out;
}

.navbar-wrapper::after {
  content: '';
  background: var(--navbar);
  position: relative;
  width: 100%;
  border-radius: inherit;
  opacity: 1;
}


/* Logo Placeholder */
.logo {
  position: relative;
  width: 4rem;
  margin-right: 1rem;
  margin-left: 1rem;
  border: none;
  transition: opacity 0.2s ease;
}

/* Logo Container */
.logo-container {
  position: relative;
  height: 3.5rem;
  width: 3.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  text-decoration: none; /* Remove underline for the link */
  filter: invert(var(--logo-invert)); /* Invert logo colors based on theme */
}

.logo-container:hover {
  transform: scale(0.9);
}

.logo-container::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
}

/* Lottie Logo */
.nav-logo-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none; /* Prevent interaction with the lottie */
}

.navbar-container {
  border-radius: inherit;
  background-color: var(--navbar);
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.navbar-item-wrapper {
  display: flex;
  height: 100%;
}