/* Top announcement banner */
.announcement-banner {
  color: white;
  width: 100%;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e9e9e9e1;
  background-color: var(--bg-header);
}

.announcement-banner.hidden {
  transform: translateY(-100%);
}


.banner-container p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.banner-container p a {
  color: var(--text-header);
  text-decoration: none;
  text-align: center;
}


.banner-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.banner-close svg {
  width: 25px;
  height: 25px;
  fill: white;
  transition: all 0.2s ease;
}

/* Main header - centered with max-width */
.main-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 90%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
  margin: 0 auto;
  background-color: var(--robot-background);
}

.main-header-wrapper.with-banner {
  top: 0px;
}

.main-header {
  backdrop-filter: blur(10px);
  max-width: 1400px;
  margin: 0 auto;
  /* This centers the header */
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 0px;
  border-radius: 5px;
}

.header-container {
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  background-color: inherit;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 30px;
  width: auto;
}

.logo-text {
  font-size: 32px;
  font-weight: 600;
  color: #4d8cf6;
}

/* CTA Button styling */
.contact-button {
  background-color: white;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  transform: scale(1);
  display: inline-block;
}

.contact-button:hover {
  background-color: #000000;
  color: white;
}

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

  .banner-container p {
    font-size: 12px;
  }

  .header-container {
    padding: 12px 15px;
  }

  .logo-image {
    height: 24px;
  }

  .logo-text {
    font-size: 18px;
  }

  .contact-button {
    padding: 6px 18px;
    font-size: 14px;
  }
}

/* Desktop styles - split screen layout */
@media screen and (min-width: 1024px),
screen and (min-width: 768px) and (max-width: 1023px) {

  html,
  body {
    background-color: var(--bg-primary-desktop);
    background-image: var(--background-image) !important;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
  }


  .banner-container {
    width: 1400px;
    margin: 0 auto;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hero {
    display: none;
  }

  .robot-section {
    height: 80vh;
    /* Full viewport height */
    position: relative;
    left: 50%;
    /* Position from center */
    right: auto;
    transform: translateX(-50%);
    /* Center the section */
    width: 95vw;
    /* Full viewport width */
    max-width: 100vw;
    overflow: visible;
    padding: 0px;
    /* Allow the transform to work properly */
    background-image: url(../images/noise-texture.png) !important;
    background-color: transparent;
    box-sizing: border-box;
  }

  #canvas3d {
    top: -50px
  }

  /* Scroll Indicator Styles */
  .scroll-indicator {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
  }

  .scroll-indicator:hover {
    cursor: pointer;
  }

  .scroll-indicator .arrow-down {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
  }

  .scroll-indicator .arrow-down svg {
    width: 32px;
    height: 32px;
    color: rgba(234, 234, 234, 0.641);
  }

  .scroll-indicator span {
    color: rgba(234, 234, 234, 0.431);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: none;
    opacity: 0.9;
  }

  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  @keyframes bounce {

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

    40% {
      transform: translateY(10px);
    }

    60% {
      transform: translateY(5px);
    }
  }

  .scroll-indicator.hidden {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
  }

  .robot-desktop-container {
    display: flex;
    width: 100%;
    height: 100%;

  }

  .robot-interaction {
    position: relative;
    width: 50%;
    max-height: 100%;
    overflow: hidden;
    max-height: 100%;
    border: 1px solid white !important;
  }

  .robot-placeholder {
    width: 50%;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid white !important;

  }

  .robot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
  }

  .community-banner {
    display: none;
  }

  .hero-text-important {
    text-decoration: underline;
  }

  .text-hero {
    display: none;
  }

  .hero-content-desktop {
    display: flex;
    position: relative;
    width: 50%;
    height: 100%;
    padding: 0;
    border: 1px solid white;
  }

  .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid white !important;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content-desktop-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
    /* Ensures text appears above the video */
    color: white;
    /* Makes text visible against video background */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }

  /* Adjust text styling as needed */
  .hero-content-desktop-text h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: bold;
    text-align: center;
  }

  .hero-content-desktop-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(208, 207, 207, 0.876);
  }



}


/* Desktop Services Navigation - Two-Line Text */
@media screen and (min-width: 1024px),
screen and (min-width: 768px) and (max-width: 1023px) {
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 4px;
    color: var(--texr-primary);
    font-weight: 600;
    line-height: 1.2;
  }

  .other-api-title {
    color: white !important;
  }

  /* Services section positioning */
  .services-section {
    position: relative;
    width: 100vw;
    margin: 0 auto;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0px;
    padding: 0px;
  }

  /* Services navigation container */
  .services-quick-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    border: none;
  }

  /* Hide any title in the quick links */
  .services-quick-links h3 {
    display: none;
  }

  /* Services list - horizontal navigation style */
  .services-list {
    list-style: none;
    padding: 0px;
    margin: 0;
    display: none;
    flex-direction: row;
    gap: 3px;
    align-items: stretch;
    justify-content: start;
    border-radius: 4px;
  }

  .services-list-desktop {
    display: flex;
  }

  .services-list li {
    margin: 0;
    padding: 0;
    width: auto;
    flex: 1;
    position: relative;
    /* IMPORTANT: Add this for the ::before to work */
    overflow: hidden;
    /* IMPORTANT: Add this to contain the filling background */
  }

  /* Progressive background fill for LI */
  .services-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #c8c8c8 !important;
    transition: width 0.5s ease;
    z-index: 0;
    color: black !important;
  }

  /* Add this to your CSS */
  .cards-container.loading {
    position: relative;
  }

  /* Active state - fill the LI background progressively */
  .services-list li.active::before {
    width: 100%;
    transition: width 0.5s ease;
  }

  /* Service navigation links */
  .services-list a {
    position: relative;
    /* Add this to stack above the ::before background */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Add some padding */
    color: rgb(255, 255, 255);
    text-decoration: none;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
    height: 100%;
    background-color: #3f3f3fdc;
    z-index: 1;
    /* Stack above the filling background */
  }

  .services-list li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px;
  }

  /* Split text into two lines */
  .services-list a::after {
    content: attr(data-text);
    display: block;
    white-space: pre-line;
  }

  /* Active state for links */
  .services-list a.active {
    background-color: transparent;
    /* Make transparent to show the blue background */
    color: rgb(25, 24, 24);
    font-weight: 500;
  }

  /* Active state for LI - text color when background is filled */
  .services-list li.active a {
    color: rgb(0, 0, 0);
    font-weight: bold;
  }

  /* Hover effect */
  .services-list li:not(.active):hover a {
    background-color: #545557;
  }

  /* Remove any icons */
  .services-list a svg {
    display: none;
  }
}


/* Desktop Service Cards - Centered Carousel with Peek */
@media screen and (min-width: 1024px),
screen and (min-width: 768px) and (max-width: 1023px) {

  /* Hide the cards title on desktop */
  .cards-container-title {
    display: none;
  }

  /* Cards container wrapper */
  .cards-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 75vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 calc((100vw - 90vw) / 2);
    /* Padding to center and show edges */
    gap: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cards-container::-webkit-scrollbar {
    display: none;
  }

  /* Each card */
  .card {
    flex: 0 0 90vw;
    /* Takes 90% of viewport width */
    max-width: 50vw;
    max-height: 100%;
    min-height: 100%;
    scroll-snap-align: center;
    padding: 0 0;
    margin: 0;
    border: none;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    opacity: 1;
    transform: scale(0.95);
    border: 1px solid rgb(255, 255, 255) !important;
    background-color: var(--bg-card-desktop);
  }

  /* Active card (centered) */
  .card:target,
  .card.active {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  /* Left side - Service info */
  .card>div:first-child {
    width: 50%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .card h3 {
    font-size: clamp(1rem, 3vw, 2rem) !important;
    color: #4d8cf6;
    /* margin-bottom: 25px; */
    font-weight: 700;
    max-width: 100%;
  }

  .card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    /* margin-bottom: 35px; */
    max-width: 550px;
  }

  .portfolio-container {
    width: 50%;
    min-height: 100%;
    padding: 5px !important;
    display: flex;
    justify-content: center;
    /* background-color: rgb(88, 88, 88); */
    border-left: 1px solid rgba(159, 159, 159, 0.835);
    will-change: contents;
  }

  /* Right side - Portfolio preview */
  .portfolio-preview {
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 0px !important;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }


  /* Showcase rows */



  .showcase-item:hover {
    transform: scale(1.03);
  }



  .showcase-hidden {
    display: none !important;
  }

  .showcase-row-big {
    width: 95% !important;
    max-width: 95% !important;
    height: 90% !important;
    max-height: 100% !important;
    padding: 0px;
    align-items: center;
  }

  .desktop-box {
    width: 100%;
    min-width: 100%;
    height: 90% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
  }

  .desktop-box-ux,
  .desktop-box-graphic {
    height: 90% !important;
    width: 100%;
  }

  .showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
  }

  .mobile-box {
    height: 100% !important;
    max-height: 100% !important;
    max-width: 38%;
  }

  .showcase-row {
    width: 90%;
    height: 45%;
    max-height: 45%;
    padding: 10px;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-bottom: 0 !important;
  }


  /* Tech stack styling */
  .tech-stack {
    width: 100%;
    padding: 10px 0 0;
    border: none;
    background: transparent !important;
    margin-bottom: 10px;
    margin-top: 0;
  }

  .stack-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    height: 10%;
  }

  .stack-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    background: rgba(84, 84, 84, 0.534);
    border: 1px solid rgb(133, 133, 133);
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .stack-icon:hover {
    transform: scale(1.1);
    background: rgba(223, 223, 223, 0.527);
  }

  .stack-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .card>div {
    padding: 20px;
  }

  /* Navigation arrows */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 30px;
    background: rgba(255, 255, 255, 0.763) !important;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    color: rgb(6, 6, 6);
  }

  /* Only show arrows on active card */
  .card.active .carousel-arrow {
    opacity: 1;
  }

  .carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .carousel-arrow:hover {
    background: rgb(247, 247, 247);
    color: black;
  }

  .carousel-arrow.prev {
    left: 40px;
    margin-left: -25px;
  }

  .carousel-arrow.next {
    right: 40px;
    margin-right: -25px;
  }

  .carousel-arrow svg {
    width: 32px;
    height: 32px;
    fill: white;
  }

  /* Disabled state for arrows */
  .carousel-arrow[disabled],
  .carousel-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
  }

  .carousel-arrow[disabled]:hover,
  .carousel-arrow:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
  }

  .card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  }


  .container::before,
  .container::after {
    display: none;
  }

  .other-services {
    display: flex;
    max-width: 1400px;
    margin: 0px auto;
    padding: 20px;
    height: auto;
    max-height: auto;
    background-color: #2d2d2d !important;
    margin-bottom: 30px;
  }

  .document-files-section {
    background-color: var(--bg-card-desktop);
    padding: 0px !important;
    margin: 0px;
    position: relative;
    min-width: 100%;
    border-radius: 0px;
    box-shadow: none;
  }

  .document-files-section::before {
    display: none;
  }

  .document-files-section::after {
    display: none;
  }

  .document-files {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0px auto;
    height: auto;
    margin-bottom: 30px;
    padding: 0px;
    margin-top: 20px;
  }

  .files-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding: 0px;
    flex-grow: 1;
  }

  .work-method-section {
    margin-top: 30px !important;
    align-items: center;
    justify-content: center;
    display: flex;
    max-width: 1400px;
    margin: 0px auto;
    height: auto;
    background-color: #2d2d2d !important;
  }

  .section-content {
    text-align: center;
    padding: 0;
  }

  .method-container {
    flex-direction: row;
    overflow: auto;

    &::-webkit-scrollbar {
      display: none;
    }

    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .other-services>div {
    flex: 1;
    margin: 0 10px;
  }

  .other-services-left {
    height: auto !important;
  }

  .grid-background {
    height: 85%;

    display: flex;
    justify-content: Center;
  }

  .social-contact-value {
    display: block;
  }


  .chat-footer {
    display: none;
  }

  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
    }

    .footer-left,
    .footer-right {
      width: 100%;
    }

    .footer-right {
      flex-direction: column;
      margin-top: 30px;
    }

    .footer-column {
      width: 100%;
      margin-bottom: 30px;
    }
  }


  .partners-testimonials {
    position: relative;
    margin-top: 30px !important;
    max-width: 1400px;
    margin: 0px auto;
    padding: 20px;
    height: auto;
    background-color: #2d2d2d;
    /* border: 1px solid white; */
    overflow: hidden;
  }

  .partners-title h2 {
    font-size: 48px;
    margin-bottom: 60px;
    font-weight: 600;
    color: #ffffff;
  }

  .testimonials-carousel-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
  }

  .testimonials-carousel {
    display: flex;
    width: fit-content;
    animation: scroll 60s linear infinite;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-240px * 10));
      /* Adjust based on card width + gap */
    }
  }

  .testimonial-card {
    background-color: #f5f5f5;
    border-radius: 15px 0 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    /* Fixed height for uniformity */
    width: 350px;
    /* Fixed width for each card */
    flex: 0 0 auto;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
  }

  .company-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
  }

  .testimonial-content {
    flex-grow: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
  }

  .testimonial-author {
    margin-top: auto;
  }

  .testimonial-author p:first-child {
    font-weight: 700;
    margin-bottom: 5px;
  }

  .testimonial-author p:last-child {
    font-size: 14px;
    color: #666;
  }

  /* Pause animation on hover */
  .testimonials-carousel:hover {
    animation-play-state: paused;
  }

  /* CTA Buttons */
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }

  .cta-button {
    padding: 20px;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    min-width: 350px;
    width: auto;
    transform: scale(1);
  }


  .cta-button:hover,
  .contact-button {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }


  .cta-button:active,
  .contact-button {
    transform: scale(0.98);
  }

  .demo-button {
    background-color: #e8e8e8;
    color: #333;
  }

  .build-button {
    background-color: #1a1a1a;
    color: white;
  }

  .arrow-icon {
    font-size: 28px;
    margin-left: 20px;
  }

  /* For Safari and other browsers that might need help with the animation */
  @supports (-webkit-marquee-repetition: infinite) {
    .testimonials-carousel {
      -webkit-animation: scroll 60s linear infinite;
    }
  }

}