/* Text Shimmer Animation Keyframes */
@keyframes textShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Site-wide Text Shimmer Effect */
.button--text-link:hover .button__label,
.button--text_link:hover .button__label,
.button--text:hover .button__label,
.footer-social-links__items .button--text-link:hover {
  /* Default (Light Mode) */
  --shimmer-base: currentColor;
  --shimmer-shine: var(--theme-primary, #1a73e8);
  /* Brand blue for light mode contrast */

  background: linear-gradient(90deg,
      var(--shimmer-base) 0%,
      var(--shimmer-base) 40%,
      var(--shimmer-shine) 50%,
      var(--shimmer-base) 60%,
      var(--shimmer-base) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--shimmer-base);
  animation: textShimmer 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

/* Dark Mode Overrides */
.deepai--dark .button--text-link:hover .button__label,
.deepai--dark .button--text_link:hover .button__label,
.deepai--dark .button--text:hover .button__label,
.deepai--dark .footer-social-links__items .button--text-link:hover {
  /* Dark Mode: Text dim, shine bright white */
  --shimmer-base: rgba(255, 255, 255, 0.6);
  --shimmer-shine: #ffffff;
}

/* Hero Slide Typography - Smaller variant for slides 2-4 */
.cover__text--title--small {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cover__text--description--hero {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem) !important;
  line-height: 1.5 !important;
  opacity: 1;
  font-weight: 400;
}

/* Light Mode Hero Text */
.deepai--light .cover__text--title--small,
.deepai--light .cover__text--description--hero,
.deepai--light .cover__text--description {
  color: #1a1a1a !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Dark Mode Hero Text */
.deepai--dark .cover__text--title--small,
.deepai--dark .cover__text--description--hero,
.deepai--dark .cover__text--description {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Button Visibility on Gradients */
.cover__buttons.deepai--dark .button--outlined {
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.2);
}

.cover__buttons.deepai--dark .button--outlined:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff !important;
}

.cover__buttons.deepai--dark .button--text {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cover__buttons.deepai--dark .button--text .button__label {
  color: #ffffff !important;
}

.cover__buttons.deepai--dark .button--text .icon-md-outlined {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ========================================
   Infinite Auto-Scroll Carousel
   ======================================== */

/* Carousel wrapper - masks overflow */
.services-infinite-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* The track that holds slides - JS controls all scrolling */
.services-carousel-track {
  display: flex;
  gap: var(--services-carousel-gap, 1.5rem);
  /* Animation removed - JS handles all transform/scrolling via services-carousel.js */
  will-change: transform;
}



/* Individual slide container */
.services-carousel-slide {
  flex: 0 0 auto;
  width: var(--services-slide-width, 320px);
  /* Ensure "New" tags don't clip */
  overflow: visible;
}

/* Ensure card inner content respects overflow for "New" badges */
.services-carousel-slide .card--model {
  overflow: visible;
}

.services-carousel-slide .card__inner {
  overflow: visible;
}

.services-carousel-slide .block-contained {
  overflow: visible;
}





/* Responsive slide widths */
@media (max-width: 600px) {
  .services-infinite-carousel {
    --services-slide-width: 280px;
    --services-carousel-gap: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .services-infinite-carousel {
    --services-slide-width: 300px;
    --services-carousel-gap: 1.25rem;
  }
}

@media (min-width: 1025px) {
  .services-infinite-carousel {
    --services-slide-width: 340px;
    --services-carousel-gap: 1.5rem;
  }
}

/* Navigation controls overlay */
.services-carousel-nav {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.services-carousel-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--theme-surface-container, rgba(255, 255, 255, 0.9));
  color: var(--theme-surface-on-surface, #1a1a1a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.services-carousel-nav button:hover {
  background-color: var(--theme-primary, #1a73e8);
  color: #ffffff;
  transform: scale(1.05);
}

.services-carousel-nav button:active {
  transform: scale(0.95);
}

.services-carousel-nav button:focus-visible {
  outline: 2px solid var(--theme-primary, #1a73e8);
  outline-offset: 2px;
}

/* Dark mode nav button styles */
.deepai--dark .services-carousel-nav button {
  background-color: var(--theme-surface-container, rgba(30, 30, 30, 0.9));
  color: var(--theme-surface-on-surface, #ffffff);
}

.deepai--dark .services-carousel-nav button:hover {
  background-color: var(--theme-primary, #8ab4f8);
  color: #1a1a1a;
}

/* Hero Gradient Backgrounds - Slides 2-4 */
.hero-gradient-bg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Slide 2 - Voice: Pink to Yellow gradient */
.hero-gradient-2 {
  background: radial-gradient(circle at 20% 80%, rgb(255, 82, 108) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgb(253, 239, 134) 0%, transparent 50%),
              radial-gradient(circle at 20% 20%, rgb(244, 168, 245) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgb(164, 248, 203) 0%, transparent 50%),
              linear-gradient(135deg, rgb(244, 168, 245) 0%, rgb(164, 248, 203) 100%);
}

/* Slide 3 - Chat: Blue to Purple gradient */
.hero-gradient-3 {
  background: radial-gradient(circle at 20% 80%, rgb(0, 83, 232) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgb(16, 108, 177) 0%, transparent 50%),
              radial-gradient(circle at 20% 20%, rgb(253, 158, 255) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgb(254, 255, 179) 0%, transparent 50%),
              linear-gradient(135deg, rgb(0, 83, 232) 0%, rgb(253, 158, 255) 100%);
}

/* Slide 4 - Automation: Soft pastel gradient */
.hero-gradient-4 {
  background: radial-gradient(circle at 20% 80%, rgb(209, 246, 255) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgb(181, 242, 255) 0%, transparent 50%),
              radial-gradient(circle at 20% 20%, rgb(255, 189, 253) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgb(222, 222, 255) 0%, transparent 50%),
              linear-gradient(135deg, rgb(209, 246, 255) 0%, rgb(255, 189, 253) 100%);
}

/* Footer spacing adjustments */
.gweb-footer-main_links {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Logo visibility for light/dark modes */
.site-switcher__home img,
.footer-google-links__brand img {
  transition: filter 0.2s ease;
}

.deepai--dark .site-switcher__home img,
.deepai--dark .footer-google-links__brand img {
  filter: brightness(0) invert(1) !important;
}

.deepai--light .site-switcher__home img,
.deepai--light .footer-google-links__brand img {
  filter: brightness(0) !important;
}

/* Services Infinite Carousel */
.services-infinite-carousel {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 20px 0;
}

.services-carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.services-carousel-slide {
  flex: 0 0 auto;
  width: 320px;
  min-width: 320px;
}

.services-carousel-slide .card {
  height: 100%;
  overflow: visible;
}

.services-carousel-slide .media-icon--contained {
  overflow: visible;
  position: relative;
}

.services-carousel-slide .media-icon--contained__label {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
  overflow: visible;
}

.services-carousel-nav.carousel__pagination {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  margin-left: -70px;
}

.services-carousel-nav .combo-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--theme-surface-container, rgba(18, 19, 23, 0.85));
  border: 1px solid var(--theme-outline-variant, rgba(255,255,255,0.15));
  border-radius: 28px;
  padding: 6px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.services-carousel-nav-prev,
.services-carousel-nav-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--theme-surface-on-surface, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.services-carousel-nav-prev:hover,
.services-carousel-nav-next:hover {
  background: var(--theme-surface-container-high, rgba(255, 255, 255, 0.1));
}

.services-carousel-nav-prev:active,
.services-carousel-nav-next:active {
  transform: scale(0.92);
}

.services-carousel-nav-prev:focus-visible,
.services-carousel-nav-next:focus-visible {
  outline: 2px solid var(--theme-primary, #4285f4);
  outline-offset: 2px;
}

.services-carousel-nav .icon-md-outlined {
  font-size: 24px;
}

.section--carousel .section-container {
  padding-left: 80px;
}

@media (max-width: 768px) {
  .services-carousel-nav.carousel__pagination {
    position: static;
    transform: none;
    margin: 24px auto 0;
  }
  
  .services-carousel-nav .combo-button-group {
    flex-direction: row;
  }
  
  .section--carousel .section-container {
    padding-left: 24px;
  }
  
  .services-carousel-slide {
    width: 280px;
    min-width: 280px;
  }
}







