/* ==========================================================================
   Building Blocks Section CSS
   ========================================================================== */

/* Building Blocks Section */
.building-blocks {
  padding: 8rem 0 21rem;
  background: #000000;
  position: relative;
}

.building-blocks .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}


.building-blocks-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.building-blocks-section-label {
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.building-blocks-section-title {
  font-size: 2.75rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.blocks-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  position: relative;
  padding: 0 1rem;
  flex-wrap: nowrap;
}

.block-card {
  background: var(--block-color);
  padding: 63px 50px 61px 35px;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  max-height: 310px;
  width:350px;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
  transform-origin: center center;
  flex: 1;
}

/* Expanded state for block cards */
.block-card.expanded {
  flex: 1.3;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-card:not(.expanded) {
  flex: 0.9;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-card.expanded .block-shadow {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.block-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.block-icon {
  margin-bottom: 3rem;
  color: #ffffff;
  opacity: 0.9;
}

.block-icon i {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.block-card h3 {
  font-size: 1.125rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-description {
  font-size: 15px;
  font-weight: 500;
  color:#ffffff;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-card.expanded .block-description {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.block-arrow {
      position: absolute;
      left: 35px;
      bottom: 20px;
      transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                  transform 1s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 1;
  
}

 .fas  {
      font-size: 25px;
      transform: rotate(-45deg);
   
}

.block-card.expanded .block-arrow {
    opacity: 0;
    visibility: hidden;
    transform: translate(5px, -5px);
}



