/* =================FEATURES PAGE START=============== */

/* WELCOME SECTION */
.bsfw-section {
  padding: 60px 20px;
  background: #f7ebf5;
  font-family: 'Inter', sans-serif;
}

.bsfw-container {
  max-width: 1200px;
  margin: 0 auto;
}

.bsfw-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.bsfw-image-col {
  flex: 1 1 45%;
  position: relative;
}

.bsfw-image {
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Small box below image */
.bsfw-simplicity-box {
  margin-top: 16px;
  display: inline-flex;
  flex-direction: column;     /* stack icon above text */
  align-items: center;        /* center horizontally */
  background: #ea47ab;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  padding: 12px 20px;         /* a bit more vertical padding */
  box-shadow: 0 4px 10px rgba(106, 13, 173, 0.4);
  width: fit-content;         /* shrink to content width */
  font-family: 'Poppins', sans-serif;
  margin-top: -70px;
}

/* reveal part */
/* Initial state: hidden and slightly below */
.bsfw-simplicity-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state: visible and in place */
.bsfw-simplicity-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.bsfw-simplicity-icon {
  margin-right: 0;            /* remove right margin */
  margin-bottom: 6px;         /* add bottom margin to separate from text */
  font-size: 3rem;          /* slightly bigger icon */
}

.bsfw-simplicity-box i {
  font-size: 3rem;
}

/* Content column */
.bsfw-content-col {
  flex: 1 1 50%;
  color: #3a3a59;
}

.bsfw-subheader {
  text-transform: uppercase;
  color: #ea47ab;
  font-weight: 500;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.bsfw-header {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #504d6d;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.9px;
  line-height: 1.2;
}

.bsfw-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 550px;
  color: #6d6d7b;
  font-family: 'Inter', sans-serif;
}

.bsfw-advantages-list {
  list-style: none; /* removes default bullets */
  padding-left: 0;  /* removes left padding */
  font-size: 0.88rem;
  color: #5f5f6d;
  max-width: 600px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  margin-top: -10px;
  font-weight: 300;
}

.bsfw-advantages-list li {
  margin-bottom: 9px;
}

.bsfw-advantages-list li i {
  color: #e743ab; /* pink accent */
  min-width: 20px;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .bsfw-grid {
    flex-direction: column;
  }
  
  .bsfw-image-col,
  .bsfw-content-col {
    flex: 1 1 100%;
  }

  .bsfw-subheader {
    font-size: 0.9rem;
  }
  
  .bsfw-header {
    font-size: 1.6rem;
  }

  .bsfw-advantages-list {
    font-size: 0.84rem;
  }

  .bsfw-advantages-list li {
    margin-bottom: 9px;
  }

  .bsfw-advantages-list li i {
    font-size: 1rem;
  }

  .bsfw-description {
    font-size: 0.85rem;
  }

.bsfw-simplicity-box {
  font-size: 0.8rem;
}

.bsfw-simplicity-box i {
  font-size: 2rem;
}


.bsfw-image {
  width: 100%;
}


}


/* MODULE FULL FEATURES - FIXED MOBILE & COMPACT DESKTOP */
.bert-modules-section {
  background-color: #251d38;
  padding: 90px 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.bert-modules-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(98, 0, 234, 0.15), rgba(37, 29, 56, 0.95));
  z-index: 0;
  pointer-events: none;
}

/* Bubble 1 - Top Left */
.bert-modules-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -120px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(224, 44, 191, 0.12), rgba(98, 0, 234, 0.04));
  box-shadow: 0 0 30px rgba(224, 44, 191, 0.08);
  border: 1px solid rgba(224, 44, 191, 0.08);
  z-index: 0;
  pointer-events: none;
  animation: floatBubble1 30s ease-in-out infinite;
}

/* Bubble 2 - Bottom Right */
.bert-bubble {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -130px;
  right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 65%, rgba(224, 44, 191, 0.12), rgba(98, 0, 234, 0.04));
  box-shadow: 0 0 30px rgba(224, 44, 191, 0.08);
  border: 1px solid rgba(224, 44, 191, 0.08);
  z-index: 0;
  pointer-events: none;
  animation: floatBubble2 35s ease-in-out infinite;
}

@keyframes floatBubble1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, 20px); }
}

@keyframes floatBubble2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -15px); }
}

@keyframes bertParticleMove {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

/* main container */
.bert-modules-container {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 12px;
  box-sizing: border-box;
}

/* headings */
.bert-modules-subheader {
  color: #e02cbf;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1.2px;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.bert-modules-subheader::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #e02cbf, #6200ea);
  transition: width .25s ease;
}

.bert-modules-header {
  font-size: 1.7rem;
  margin-top: 6px;
  margin-bottom: 24px;
  color: #d6d5f3;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.7px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}

/* grid - FIXED for mobile (no overflow, proper sizing) */
.bert-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 36px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* module card - MORE COMPACT on desktop, consistent height */
.bert-module-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(224, 44, 191, 0.12); /* faint premium pink */
  border-radius: 10px;
  padding: 20px 20px 18px 20px;
  text-align: left;

  transition: all 0.25s ease;

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* clean hover = soft glow + lift */
.bert-module-box:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 44, 191, 0.28);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28),
              0 0 0 1px rgba(98, 0, 234, 0.08);
  background: rgba(255,255,255,0.05);
}

/* icon container - slightly smaller for compactness */
.bert-module-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border: 2px dotted #e02cbf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e460cc;
  font-size: 1.6rem;
  transition: transform 0.6s ease, color 0.3s ease, border-color 0.3s ease;
  user-select: none;
  cursor: default;
}

.bert-module-box:hover .bert-module-icon {
  transform: rotate(360deg) scale(1.08);
  color: #e7d6ff;
  border-color: #6200ea;
}

/* title compact */
.bert-module-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #d6d5f3;
  margin-bottom: 6px;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

/* description slightly reduced line-height for compactness */
.bert-module-description {
  font-size: 0.85rem;
  color: #b3b8cc;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

/* points list - tighter spacing */
.bert-module-points {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #b1b0ca;
}

.bert-module-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
  transition: background .22s ease, transform .22s ease, color .22s ease;
  position: relative;
  font-size: 0.79rem;
}

.bert-module-points li:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(4px);
  color: #d6d5f3;
}

.bert-module-points li i {
  color: #e02cbf;
  min-width: 16px;
  font-size: 0.85rem;
  transition: transform .22s ease;
}

.bert-module-points li:hover i {
  transform: scale(1.1);
}


@media (max-width: 768px) {
  .bert-modules-section {
    padding: 48px 16px;
    overflow-x: hidden;
  }

  .bert-modules-container {
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
  }

  /* grid full width without overflow */
  .bert-modules-grid {
    grid-template-columns: 1fr;  /* single column on mobile - clean, no cutoff */
    gap: 18px;
    margin-top: 24px;
    width: 100%;
  }

  .bert-modules-header {
    font-size: 1.4rem;
    margin-bottom: 18px;
    word-break: break-word;
  }

  .bert-modules-subheader {
    font-size: 0.8rem;
  }

  .bert-module-box {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .bert-module-title {
    font-size: 1rem;
  }

  .bert-module-description {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }

  .bert-module-points {
    font-size: 0.8rem;
  }

  .bert-module-points li {
    margin-bottom: 5px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .bert-module-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
}

/* Small tablets / landscape phones (481px - 768px) - better than 1fr but ensures no cutoff */
@media (min-width: 481px) and (max-width: 768px) {
  .bert-modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
}

/* Medium devices (769px - 1024px) - keep compact and clean */
@media (min-width: 769px) and (max-width: 1024px) {
  .bert-modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .bert-module-box {
    padding: 18px;
  }
  
  .bert-module-title {
    font-size: 1rem;
  }
  
  .bert-module-description {
    font-size: 0.83rem;
  }
}

/* Large desktop - keep cards compact, reduce vertical spacing */
@media (min-width: 1280px) {
  .bert-modules-grid {
    gap: 18px;
  }
  
  .bert-module-box {
    padding: 18px 20px 16px 20px;
  }
  
  .bert-module-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  
  .bert-module-title {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .bert-module-description {
    font-size: 0.82rem;
    margin-bottom: 8px;
    line-height: 1.35;
  }
  
  .bert-module-points li {
    padding: 3px 6px;
    margin-bottom: 4px;
    font-size: 0.77rem;
  }
}


.bert-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.wave-svg-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* subtle wave animation for gentle movement - no lag, GPU accelerated */
.wave-svg-layer path {
  animation: gentleWave 12s ease-in-out infinite;
  transform-origin: center;
}

.wave-svg-layer:nth-child(2) path {
  animation-duration: 18s;
  animation-delay: -3s;
}

.wave-svg-layer:nth-child(3) path {
  animation-duration: 24s;
  animation-delay: -6s;
  opacity: 0.5;
}

@keyframes gentleWave {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-1.2%) translateY(2%);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* reduce wave opacity & height on mobile for performance */
@media (max-width: 768px) {
  .bert-waves {
    height: 100px;
    opacity: 0.18;
  }
  @keyframes gentleWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-1%); }
  }
}

/* additional fix for any hidden overflow on extreme small devices */
@media (max-width: 380px) {
  .bert-modules-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bert-module-box {
    padding: 14px;
  }
  .bert-module-points li {
    gap: 8px;
    word-break: break-word;
  }
  .bert-module-title {
    word-break: break-word;
  }
}



/* PDF GENERATION SECTION */

/* INSTANT PDF GENERATION SECTION */

.instant-pdf-wrapper {
  /* Premium Mesh Gradient Background */
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 100% 0%, hsla(210, 100%, 96%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(315, 100%, 94%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(220, 100%, 96%, 1) 0px, transparent 50%);
  padding: 80px 20px;
  font-family: 'Inter', sans-serif;
  color: #2c2c2c;
  position: relative;
  overflow: hidden;
}

.instant-pdf-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.instant-pdf-row {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Text Column */
.instant-pdf-text-box {
  flex: 1 1 350px;
  max-width: 600px;
  text-align: left;
}

/* Subheader Pill */
.instant-pdf-tag {
  color: #ff46bb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  background: rgba(255, 70, 187, 0.08);
  border-radius: 50px;
  display: inline-block;
}

/* Header */
.instant-pdf-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #4c4e66;
  letter-spacing: -0.4px;
}

/* List Items */
.instant-pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instant-pdf-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.instant-pdf-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.instant-pdf-item i {
  background: linear-gradient(135deg, #2563eb, #e02cbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
  min-width: 35px;
  margin-right: 15px;
  margin-top: 5px;
}

.instant-pdf-item-content strong {
  display: block;
  font-size: 1.1rem;
  color: #513a5e;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.instant-pdf-desc {
  font-size: 0.9rem;
  color: #7a7a7a;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* Image Column */
.instant-pdf-visual {
  flex: 1 1 450px;
  max-width: 500px; 
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pdfFloat 5s ease-in-out infinite;
}

@keyframes pdfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.instant-pdf-visual img {
  width: 95%; 
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .instant-pdf-wrapper {
    padding: 20px 10px;
  }

  .instant-pdf-container {
    padding: 20px 15px;
    background: #ffffff;
  }


  .instant-pdf-row {
    flex-direction: column;
    gap: 30px;
  }

  .instant-pdf-visual {
    max-width: 100% !important; 
    width: 100%;
    order: 1; 
    margin: 0 auto 10px auto;
  }

  .instant-pdf-visual img {
    width: 100% !important; 
    max-width: 100% !important;
  }

  .instant-pdf-text-box {
    order: 2;
  }

  .instant-pdf-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .instant-pdf-tag {
    display: table;
    margin: 0 auto 15px auto;
  }
}


/* RESPONSIVE */
@media (max-width: 468px) {
  .instant-pdf-wrapper {
    padding: 20px 10px;
  }

  .instant-pdf-container {
    padding: 20px 15px;
    background: #ffffff;
  }


  .instant-pdf-tag {
    margin-top: -100px !important;
  }


  .instant-pdf-desc {
  font-size: 0.87rem;
  }

}




/*  INSTALLATION SECTION */
.bert-installation-section {
  /* Spiced up with a premium mesh gradient - no size changes */
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, hsla(315, 100%, 96%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(220, 100%, 94%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(285, 100%, 96%, 1) 0px, transparent 50%);
  padding: 80px 20px;
  font-family: 'Inter', sans-serif;
  color: #2c2c2c;
  position: relative;
  overflow: hidden;
}

.bert-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* Two column layout */
.bert-installation-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Left image column - Added subtle floating animation */
.bert-installation-image {
  flex: 1 1 450px;
  max-width: 500px; 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: transform 0.4s ease;
  animation: bertSaaSFloat 5s ease-in-out infinite;
}

@keyframes bertSaaSFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.bert-installation-image img {
  width: 95%; 
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  /* Multi-layered shadow for depth */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(224, 44, 191, 0.1);
}

.bert-installation-image:hover {
  transform: scale(1.02);
}

/* Right text column */
.bert-installation-content {
  flex: 1 1 350px;
  max-width: 600px;
  text-align: left;
  color: #2c2c2c;
}

/* Subheader - SaaS Pill Style */
.bert-installation-subheader {
  color: #ff46bb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  position: relative;
  padding: 4px 12px;
  background: rgba(255, 70, 187, 0.08);
  border-radius: 50px;
  display: inline-block;
}

/* Header */
.bert-installation-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #4c4e66;
  letter-spacing: -0.6px;
}

/* Points list */
.bert-installation-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #555555;
}

.bert-installation-points li {
  position: relative;
  margin-bottom: 24px;
  padding-left: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bert-installation-points li.visible {
  opacity: 1;
  transform: translateY(0);
}

.bert-installation-points li i {
  /* Gradient text for icons */
  background: linear-gradient(135deg, #e02cbf, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
  min-width: 24px;
  margin-right: 12px;
  vertical-align: middle;
}

/* Explanation text styling */
.bert-installation-explanation {
  margin: 6px 0 0 52px; 
  font-size: 0.9rem;
  color: #7a7a7a;
  line-height: 1.5;
  font-weight: 300;
}

/* RESPONSIVE - MOBILE ENHANCEMENTS */
@media (max-width: 768px) {
  .bert-installation-section {
    padding: 20px 10px;
  }

  .bert-container {
    padding: 20px 15px;
    background: #ffffff; /* Solid white for better mobile readability */
  }

  .bert-installation-columns {
    flex-direction: column;
    gap: 30px;
  }

  .bert-installation-image {
    max-width: 100% !important; 
    width: 100%;
    flex: none;
    order: 1; 
    margin: 0 auto 10px auto;
  }

  .bert-installation-image img {
    width: 100% !important; 
    max-width: 100% !important;
    border-radius: 8px;
  }

  .bert-installation-content {
    max-width: 100%;
    flex: none;
    order: 2;
    text-align: left;
  }

  .bert-installation-header {
    font-size: 1.5rem;
  }

  .bert-installation-explanation {
    margin-left: 42px;
    font-size: 0.85rem;
  }
}