/* ============================================
   COMPACT HEADER
   ============================================ */
.tech-services-showcase-ss2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}
.tech-services-wrapper-ss2 {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-top: -24px;
  margin-bottom: -26px;
}
.tech-services-hero-header-ss2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 25px;
}
.tech-hero-badge-ss2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: 
    linear-gradient(135deg, 
      rgba(255, 107, 53, 0.1) 0%, 
      rgba(29, 154, 146, 0.1) 100%
    );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
  animation: heroBadge-ss2-float 3s ease-in-out infinite;
}

@keyframes heroBadge-ss2-float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-6px); 
    }
}

.badge-dot-ss2 {
  width: 8px;
  height: 8px;
  background: #FF6B35;
  border-radius: 50%;
  animation: badge-dot-ss2-pulse 2s ease-in-out infinite;
}

@keyframes badge-dot-ss2-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
  }
}

.tech-hero-badge-ss2 i {
  font-size: 1rem;
}

.tech-hero-title-ss2 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.tech-gradient-text-ss2 {
  background: linear-gradient(135deg, 
    #FF6B35 0%, 
    #FF8F6B 30%,
    #1D9A92 70%,
    #157A74 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-ss2-shift 5s ease infinite;
}

@keyframes gradient-ss2-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.tech-hero-subtitle-ss2 {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* =========================
   Services Carousel Layout
========================= */

.services-carousel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Each card takes 1/3 width */
.service-card {
  flex: 0 0 calc(25% - 16px);
  flex-shrink: 0;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(58, 192, 212);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-blue);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: var(--accent-teal);
  color: white;
}

.left-arrow {
  left: 8px;
  display: none; /* hidden by default */
}

.right-arrow {
  right: 8px;
}
.services-track-viewport {
  overflow: hidden;
  width: 100%;
}


/* ============================================
   STACK SECTION CONTAINER STYLE
   ============================================ */
.stack-section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px;
  background-color: #f4f5f7;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 4px;
}
/* ============================================
   Stack Section Header Style
   ============================================ */
.stack-section-header {
  text-align: center;
  margin-bottom: -8px;
}

.stack-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.stack-section-header p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 600px;
}


/* ============================================
   STACK TABS - PROFESSIONAL BUTTON STYLE
   ============================================ */
.stack-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 25px auto;
  max-width: 750px;
  margin-right: 196px;
}

.stack-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 13px;
  background-color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  
}

.stack-tab:hover {
  background-color: #f3f4f6;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.stack-tab.active {
  background-color: #1d9a92;
  color: white;
  border-color: #1d9a92;
  box-shadow: 0 6px 24px rgba(29, 154, 146, 0.3);
}

.stack-tab-icon {
  margin-right: 10px;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.stack-tab.active .stack-tab-icon {
  transform: scale(1.15);
}

/* Add focus for accessibility */
.stack-tab:focus {
  outline: none;
  border: 2px solid #25bfb7;
}


/* ============================================
   STACK CONTENT VISIBILITY
   ============================================ */
.stack-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.stack-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SERVICE CARDS - COMPACT DESIGN
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 6px;
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.service-card:nth-child(1) {
    border: 2px solid rgba(102, 126, 234, 0.3);
}
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(29, 154, 146, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    min-height: 250px;
    display: flex;
    flex-direction: column;
}
/* Combined Aurora + Popular Badge Style */
.service-card:nth-child(1):hover {
    border-color: rgba(102, 126, 234, 0.6);
}
/* Card 2 - Teal Border */
.service-card:nth-child(2) {
    border: 2px solid rgba(29, 154, 146, 0.3);
}
.service-card:nth-child(2):hover {
    border-color: rgba(29, 154, 146, 0.6);
}
/* Card 3 - Orange Border */
.service-card:nth-child(3) {
    border: 2px solid rgba(255, 107, 53, 0.3);
}
.service-card:nth-child(3):hover {
    border-color: rgba(255, 107, 53, 0.6);
}
/* Card 4 - Blue Border */
.service-card:nth-child(4) {
    border: 2px solid rgba(79, 70, 229, 0.3);
}
.service-card:nth-child(4):hover {
    border-color: rgba(79, 70, 229, 0.6);
}
.service-card:nth-child(5):hover {
     border-color: rgba(29, 154, 146, 0.6);
}

.service-card:nth-child(6):hover {
     border-color: rgba(79, 70, 229, 0.6);
}
/* Simple hover effect - no animations */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(29, 154, 146, 0.2);
    border-color: rgba(29, 154, 146, 0.4);
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

 /* Icon Styling */
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.4s ease;
    border: none;
}
/* Card 1 - Purple/Violet */
.service-card:nth-child(1) .icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}
.service-card:nth-child(1):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 2 - Teal/Cyan */
.service-card:nth-child(2) .icon-wrapper {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    box-shadow: 0 4px 20px rgba(29, 154, 146, 0.4);
}
.service-card:nth-child(2):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(29, 154, 146, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 3 - Orange/Coral */
.service-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}
.service-card:nth-child(3):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 4 - Blue/Indigo */
.service-card:nth-child(4) .icon-wrapper {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}
.service-card:nth-child(4):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 5 - Blue/Indigo */
.service-card:nth-child(5) .icon-wrapper {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    box-shadow: 0 4px 20px rgba(29, 154, 146, 0.4);
}
.service-card:nth-child(5):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(29, 154, 146, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 6 - Blue/Indigo */
.service-card:nth-child(6) .icon-wrapper {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}
.service-card:nth-child(6):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.6);
    transform: rotate(5deg) scale(1.15);
}
/* Card 7 - Blue/Indigo */
.service-card:nth-child(7) .icon-wrapper {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    box-shadow: 0 4px 20px rgba(29, 154, 146, 0.4);
}
.service-card:nth-child(7):hover .icon-wrapper {
    box-shadow: 0 6px 30px rgba(29, 154, 146, 0.6);
    transform: rotate(5deg) scale(1.15);
}
.icon-wrapper i {
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.service-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

/* ============================================
   COMPACT FEATURE LIST
   ============================================ */
.features-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  flex: 1;
  list-style: none;
  padding: 0;
}
/* Features List - 2 Column Grid */
.features-list li {
    padding: 4px 0;
    font-size: 15px;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.features-list li:hover {
    transform: translateX(4px);
    color: #1F2937;
}
.features-list i {
    color: #1D9A92;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.features-list li:hover i {
    transform: scale(1.2);
    color: #FF6B35;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  width: 150px;
}

/* Card 1 - Purple Button */
.service-card:nth-child(1) .cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.service-card:nth-child(1) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}
/* Card 2 - Teal Button */
.service-card:nth-child(2) .cta-button {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 154, 146, 0.3);
}
.service-card:nth-child(2) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(29, 154, 146, 0.5);
    transform: translateY(-2px);
}
/* Card 3 - Orange Button */
.service-card:nth-child(3) .cta-button {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.service-card:nth-child(3) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}
/* Card 4 - Blue Button */
.service-card:nth-child(4) .cta-button {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.service-card:nth-child(4) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
}
/* Card 5 - Teal Button */
.service-card:nth-child(5) .cta-button {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 154, 146, 0.3);
}
.service-card:nth-child(5) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(29, 154, 146, 0.5);
    transform: translateY(-2px);
}
/* Card 6 - Orange Button */
.service-card:nth-child(6) .cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.service-card:nth-child(6) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}
/* Card 7 - Teal Button */
.service-card:nth-child(7) .cta-button {
    background: linear-gradient(135deg, #1D9A92 0%, #25BFB7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 154, 146, 0.3);
}
.service-card:nth-child(7) .cta-button:hover {
    box-shadow: 0 6px 25px rgba(29, 154, 146, 0.5);
    transform: translateY(-2px);
}
/* Shine effect on hover */
.cta-button::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;
}
.cta-button:hover::before {
    left: 100%;
}
.cta-button:hover i {
    transform: translateX(4px);
}
/* Active state */
.cta-button:active {
    transform: translateY(0);
}

/* ============================================
RESPONSIVE DESIGN - MAINTAIN SCREEN FIT
============================================ */
@media (min-width: 320px) and (max-width: 767px) {
  .services-track {
    gap: 0;
  }
  .service-card {
    flex: 0 0 100%;
  }
  .tech-hero-title-ss2 {
    font-size: 1.625rem;
  }
  .tech-hero-badge-ss2 {
    font-size: 0.75rem;
    padding: 7px 16px;
  }
  .tech-hero-subtitle-ss2 {
    font-size: 0.9375rem !important;
    margin-bottom: -16px !important;
  }
  .tech-services-showcase-ss2 {
    padding: 40px 14px !important;
    margin-top: 18px !important;
  }
  
  /* Stack Tabs Mobile */
  .stack-tabs {
    flex-direction: column;
    gap: 12px;
    margin: 27px auto 30px;
  }
  
  .stack-tab {
    padding: 16px 0px;
  }
  
  .stack-tab-icon {
    width: 20px;
    height: 26px;
    font-size: 18px;
  }
  
  .stack-tab-content h4 {
    font-size: 0.8rem;
  }
  
  .stack-tab-content p {
    font-size: 0.8125rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 21px !important;
  }
  .service-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 18px;
  }
  .service-card .cta-button {
    width: fit-content !important;
  }
  .stack-section-header h2 {
    font-size: 1.7rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
   .service-card {
    flex: 0 0 calc(50% - 12px);
  }
  .tech-hero-title-ss2 {
    font-size: 2.25rem;
  }
  .tech-services-hero-header-ss2 {
    margin-bottom: 22px ;
    margin-top: -30px;
  }
  .stack-section-container {
    padding-bottom: 20px;
    margin-bottom: -25px;
  }
  /* Stack Tabs Tablet */
  .stack-tabs {
    gap: 16px;
    margin: 30px auto;
  }
  
  .stack-tab {
    padding: 12px 5px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-bottom: -30px !important;
    gap: 20px;
  }
  .tech-services-showcase-ss2 {
    min-height: auto !important;
    max-height: none !important;
    padding: 60px 20px !important;
    margin-top: 6px !important;
    margin-bottom: 0px !important;
  }
  .tech-services-wrapper-ss2 {
    margin-top: -32px !important;
    margin-bottom: -22px !important;
    max-width: 48.5rem;
  }
  .service-card {
    padding: 24px 20px;
  }
}

@media only screen 
      and (min-device-width: 1024px) 
      and (max-device-width: 1366px) 
      and (-webkit-min-device-pixel-ratio: 1.5) {
        .services-grid {
          grid-template-columns: repeat(2, 1fr) !important;
        }
        .tech-services-wrapper-ss2 {
          margin-top: -19px !important;
          margin-bottom: -24px !important;
        }
        .stack-tabs {
          margin-right: 65px;
        }
        .service-card {
          flex: 0 0 calc(33.333% - 16px);
        }
      }
      /* ✅ 1250px Compact Desktop */
  @media only screen 
    and (min-width: 1200px) 
    and (max-width: 1280px){
          .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 10px !important;
          }
          .card-content {
            width: 214px !important;
          }

    }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    animation: service-ss2-fadeInUp 0.7s ease forwards;
    opacity: 1;
    transform: translateY(0);
  }
  
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  .service-card:nth-child(6) { animation-delay: 0.6s; }
  .service-card:nth-child(7) { animation-delay: 0.7s; }
  
  @keyframes service-ss2-fadeInUp {
    from {
      opacity: 0;
      transform: translateY(25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.stack-tab:focus-visible,
.service-card:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid #FF6B35;
  outline-offset: 4px;
}