/* Reduce page header padding for SaaS products page */
.saas-products-page #subheader {
  padding: 120px 0 60px;
}

/* Reduced section padding for TabbedSaaSProducts */
.tabbed-saas.compact {
  padding-top: 2rem !important;
  padding-bottom: 2.5rem !important;
}

/* Use wider container for SaaS products */
.tabbed-saas .container {
  max-width: 1400px;
}

@media (min-width: 1200px) {
  .tabbed-saas .container {
    max-width: 95%;
  }
}

@media (min-width: 1600px) {
  .tabbed-saas .container {
    max-width: 1500px;
  }
}

/* Small tweaks for Bootstrap tab strip appearance */
.tab-strip {
  scroll-behavior: smooth;
}

/* cards inside the tab strip — control min width so they form horizontally scrolling items */
.tab-card {
  min-width: 260px;
  border-radius: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease;
  cursor: pointer;
}
.tab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.tab-card.tab-active {
  border-width: 2px;
}

/* subtle fade edges on desktop to hint horizontal scroll */
.fade-edge-left, .fade-edge-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 1;
}
.fade-edge-left { left: 0; background: linear-gradient(90deg, rgba(248,249,250,1), rgba(248,249,250,0)); }
.fade-edge-right { right: 0; background: linear-gradient(270deg, rgba(248,249,250,1), rgba(248,249,250,0)); }

/* small responsive adjustments */
@media (max-width: 767.98px) {
  .tab-card { min-width: 220px; }
  .fade-edge-left, .fade-edge-right { display: none; }
}

/* Tabbed SaaS section styling */
.tabbed-saas {
  background-color: #f8f9fa;
}

.tabbed-saas h2 {
  font-weight: 700;
  color: #212529;
}

.tabbed-saas .card {
  border-radius: 0.75rem;
}

/* ===== Content Transition Effects ===== */
.module-content {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.module-content.content-fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.module-content.content-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Module Detail Styles ===== */
.module-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
}

.module-tagline {
  font-size: 1.1rem;
}

.module-overview {
  font-size: 1rem;
  line-height: 1.7;
}

/* Features List */
.module-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.module-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #505050;
  line-height: 1.5;
}

.module-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #6f42c1, #4f46e5);
  border-radius: 50%;
}

/* ===== Media Slide-in Animation ===== */
.module-media-wrap {
  overflow: hidden;
  border-radius: 20px;
}

.module-media {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateX(60px) scale(0.95);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.9, 0.35, 1), opacity 0.7s ease;
  will-change: transform, opacity;
}

.module-media-wrap.in-view .module-media {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* Rounded corners helper */
.rounded-20 {
  border-radius: 20px !important;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
  .module-title {
    font-size: 1.75rem;
  }
  
  .module-media {
    transform: translateY(40px) scale(0.95);
  }
  
  .module-media-wrap.in-view .module-media {
    transform: translateY(0) scale(1);
  }
  
  .module-content .col-lg-6:last-child {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .module-title {
    font-size: 1.5rem;
  }
  
  .module-features li {
    font-size: 0.9rem;
  }
}

/* ===== Additional Polish ===== */
.subtitle-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Smooth button transitions */
.module-content .btn {
  transition: all 0.2s ease;
}

.module-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.module-content .btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* ===== SaaS Product Detail Sections ===== */

/* Hero Banner Section */
.saas-hero {
  min-height: 400px;
  position: relative;
}

.saas-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(22,33,62,0.85) 100%);
}

.saas-hero > .container {
  position: relative;
  z-index: 2;
}

/* Key Feature Cards */
.key-feature-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.key-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.key-feature-card .feature-number {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.key-feature-card .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-feature-card .feature-icon i {
  font-size: 1.5rem;
  color: #333;
}

.key-feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.key-feature-card:hover .feature-icon i {
  color: #fff;
}

/* Pricing Cards */
.pricing-card {
  border-radius: 16px;
  overflow: hidden;
}

.pricing-card.popular {
  transform: scale(1.05);
}

/* Parallax Section */
.parallax-section {
  position: relative;
  min-height: 400px;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.video-wrapper {
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  display: block;
}

/* Feature Detail Cards */
.feature-detail-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-detail-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-detail-icon i {
  font-size: 1.75rem;
  color: #fff;
}

/* Client Reviews Carousel */
.client-review-carousel {
  position: relative;
  min-height: 300px;
}

.review-slide {
  transition: opacity 0.5s ease-in-out;
}

.review-slide blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
}

/* Content Fade Transitions */
.saas-product-content {
  transition: opacity 0.3s ease;
}

.saas-product-content.content-fade-out {
  opacity: 0;
}

.saas-product-content.content-fade-in {
  opacity: 1;
}

/* Responsive adjustments for new sections */
@media (max-width: 991.98px) {
  .saas-hero {
    min-height: auto;
    padding: 60px 0;
  }
  
  .parallax-section {
    background-attachment: scroll;
    min-height: auto;
    padding: 60px 0;
  }
  
  .key-feature-card .feature-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .saas-hero h1 {
    font-size: 1.75rem;
  }
  
  .review-slide blockquote {
    font-size: 1rem;
  }
  
  .key-feature-card .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-detail-icon {
    width: 60px;
    height: 60px;
  }
}

/* ===== NEW WIREFRAME LAYOUT STYLES ===== */

/* Dark theme for tabs section */
.saas-tabs-section {
  background: #1a1a1a;
}

.tab-strip-dark {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-strip-dark::-webkit-scrollbar {
  display: none;
}

.saas-tab-item {
  background: transparent;
  border: 1px solid #444;
  color: #999;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.saas-tab-item:hover {
  border-color: #666;
  color: #fff;
}

.saas-tab-item.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Title and Description sections */
.saas-title-section,
.saas-desc-section {
  background: #1a1a1a;
}

.title-box,
.total-user-box,
.desc-box,
.ratings-box {
  background: #222;
}

/* Banner section */
.saas-banner-section {
  background: #1a1a1a;
}

.banner-wrapper {
  border: 1px solid #444;
  overflow: hidden;
}

/* Features and Pricing section */
.saas-features-pricing {
  background: #1a1a1a;
}

.key-feature-section,
.pricing-section {
  background: #222;
}

.key-features-list .feature-item {
  transition: transform 0.2s ease;
}

.key-features-list .feature-item:hover {
  transform: translateX(5px);
}

/* Pricing Table */
.pricing-table .table-dark {
  background: #2a2a2a;
}

.pricing-table .table-dark th,
.pricing-table .table-dark td {
  border-color: #444;
}

.pricing-table .table-primary td,
.pricing-table .table-primary th {
  background: rgba(13, 110, 253, 0.15);
}

/* Parallax Section */
.saas-parallax-section {
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Feature Cards section */
.saas-feature-cards {
  background: #1a1a1a;
}

.feature-card-item {
  background: #222;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card-item:hover {
  transform: translateY(-8px);
  border-color: #0d6efd !important;
}

.feature-card-icon i {
  transition: transform 0.3s ease;
}

.feature-card-item:hover .feature-card-icon i {
  transform: scale(1.2);
}

/* Client Review section */
.saas-client-review {
  background: #1a1a1a;
}

.client-review-wrapper {
  background: #222;
}

/* Request Demo section */
.saas-request-demo {
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.saas-request-demo .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.saas-request-demo .btn-outline-light:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for new layout */
@media (max-width: 991.98px) {
  .saas-parallax-section {
    min-height: auto;
    padding: 60px 0;
    background-attachment: scroll;
  }
  
  .saas-tab-item {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .title-box h1 {
    font-size: 1.5rem;
  }
  
  .total-user-box h4 {
    font-size: 1.25rem;
  }
  
  .pricing-table .table {
    font-size: 0.85rem;
  }
  
  .saas-tab-item {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
