/* =========================
   CRM SECTION
========================= */

.crm-section{
  position: relative;

  padding: 130px 20px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #f6fbff
    );

  overflow: hidden;
}

/* BLUR */

.crm-blur{
  position: absolute;

  border-radius: 50%;

  filter: blur(90px);

  animation:
    crmBlur 8s ease-in-out infinite;
}

.crm-blur-1{
  width: 320px;
  height: 320px;

  background:
    rgba(0,110,255,0.10);

  top: -100px;
  left: -100px;
}

.crm-blur-2{
  width: 260px;
  height: 260px;

  background:
    rgba(0,255,180,0.10);

  bottom: -80px;
  right: -100px;
}

/* TOP */

.crm-top{
  position: relative;
  z-index: 2;

  max-width: 950px;

  margin:
    0 auto 80px;

  text-align: center;

  animation:
    fadeUp 1s ease-in-out;
}

.crm-badge{
  display: inline-block;

  padding: 12px 24px;

  border-radius: 100px;

  background:
    rgba(0,110,255,0.08);

  color:
    #006eff;

  border:
    1px solid rgba(0,110,255,0.10);

  font-size: 14px;
  font-weight: 600;

  margin-bottom: 24px;
}

.crm-top h2{
  font-size:
    clamp(42px,6vw,74px);

  line-height: 1.1;

  color:
    #111;

  margin-bottom: 24px;

  font-weight: 800;
}

.crm-top h2 span{
  background:
    linear-gradient(
      90deg,
      #006eff,
      #00b4ff
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crm-top p{
  color:
    #666;

  font-size: 18px;
  line-height: 1.9;
}

/* GRID */

.crm-grid{
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    1.1fr 1fr;

  gap: 35px;

  margin-bottom: 90px;
}

/* DASHBOARD */

.crm-dashboard{
  position: relative;

  min-height: 700px;

  border-radius: 40px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #07111f,
      #0d2038
    );

  box-shadow:
    0 30px 70px rgba(0,0,0,0.08);
}

/* HEADER */

.crm-header{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 30px;

  border-bottom:
    1px solid rgba(255,255,255,0.08);
}

.crm-dots{
  display: flex;
  gap: 8px;
}

.crm-dots span{
  width: 12px;
  height: 12px;

  border-radius: 50%;
}

.crm-dots span:nth-child(1){
  background: #ff5f57;
}

.crm-dots span:nth-child(2){
  background: #febc2e;
}

.crm-dots span:nth-child(3){
  background: #28c840;
}

.crm-title{
  color: white;

  font-weight: 600;
}

/* BODY */

.crm-body{
  padding: 30px;
}

/* CUSTOMER */

.crm-customer-card{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px;

  border-radius: 24px;

  background:
    rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  margin-bottom: 40px;

  animation:
    popupFloat 4s ease-in-out infinite;
}

.crm-customer-card img{
  width: 70px;
  height: 70px;
}

.crm-customer-card h4{
  color: white;

  font-size: 20px;

  margin-bottom: 6px;
}

.crm-customer-card p{
  color:
    rgba(255,255,255,0.70);
}

.crm-status{
  padding: 10px 16px;

  border-radius: 100px;

  background:
    rgba(0,255,140,0.18);

  color:
    #00ff99;

  font-size: 14px;
  font-weight: 600;
}

/* FLOW */

.crm-flow{
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;

  margin-bottom: 40px;
}

.flow-box{
  padding: 16px 20px;

  border-radius: 18px;

  background:
    rgba(255,255,255,0.10);

  color: white;

  font-size: 14px;
  font-weight: 600;

  animation:
    popupFloat 4s ease-in-out infinite;
}

.flow-arrow{
  color:
    #00b4ff;

  font-size: 26px;

  animation:
    arrowMove 2s ease-in-out infinite;
}

/* STATS */

.crm-stats{
  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 18px;
}

.crm-stat-card{
  padding: 26px 20px;

  border-radius: 24px;

  background:
    rgba(255,255,255,0.08);

  text-align: center;

  animation:
    popupFloat 4s ease-in-out infinite;
}

.crm-stat-card h3{
  color:
    #00b4ff;

  font-size: 34px;

  margin-bottom: 10px;
}

.crm-stat-card p{
  color:
    rgba(255,255,255,0.70);
}

/* POPUP */

.crm-popup{
  position: absolute;

  padding: 14px 18px;

  border-radius: 18px;

  background:
    rgba(255,255,255,0.10);

  backdrop-filter: blur(12px);

  color: white;

  border:
    1px solid rgba(255,255,255,0.08);

  font-size: 14px;
  font-weight: 600;

  animation:
    popupFloat 4s ease-in-out infinite;
}

.popup-crm-1{
  top: 120px;
  right: 30px;
}

.popup-crm-2{
  top: 300px;
  left: 30px;
}

.popup-crm-3{
  bottom: 120px;
  right: 40px;
}

/* SERVICES */

.crm-services{
  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 24px;
}

/* CARD */

.crm-card{
  padding: 34px 28px;

  border-radius: 30px;

  background:
    rgba(255,255,255,0.92);

  border:
    1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.05);

  transition:
    all 0.5s ease-in-out;
}

.crm-card:hover{
  transform:
    translateY(-10px)
    scale(1.02);

  box-shadow:
    0 30px 60px rgba(0,110,255,0.12);
}

.crm-icon{
  width: 78px;
  height: 78px;

  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #006eff,
      #00b4ff
    );

  color: white;

  font-size: 32px;

  margin-bottom: 24px;

  transition:
    all 0.45s ease-in-out;
}

.crm-card:hover .crm-icon{
  transform:
    rotate(8deg)
    scale(1.08);
}

.crm-card h3{
  font-size: 28px;

  line-height: 1.3;

  color:
    #111;

  margin-bottom: 14px;
}

.crm-card p{
  color:
    #666;

  line-height: 1.8;
}

/* CTA */

.crm-cta{
  position: relative;

  padding: 80px 40px;

  border-radius: 42px;

  overflow: hidden;

  text-align: center;

  color: white;

  background:
    linear-gradient(
      135deg,
      #006eff,
      #0047ab
    );

  box-shadow:
    0 25px 70px rgba(0,110,255,0.18);
}

.crm-cta-glow{
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.18),
      transparent 70%
    );

  top: -140px;
  right: -120px;
}

.crm-cta h3{
  position: relative;
  z-index: 2;

  font-size:
    clamp(36px,5vw,58px);

  line-height: 1.2;

  margin-bottom: 20px;
}

.crm-cta p{
  position: relative;
  z-index: 2;

  max-width: 700px;

  margin:
    0 auto 35px;

  color:
    rgba(255,255,255,0.82);

  line-height: 1.8;

  font-size: 17px;
}

/* BUTTON */

.crm-btn{
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 18px 38px;

  border-radius: 100px;

  background:
    white;

  color:
    #006eff;

  text-decoration: none;

  font-size: 17px;
  font-weight: 700;

  transition:
    all 0.45s ease-in-out;
}

.crm-btn:hover{
  transform:
    translateY(-6px)
    scale(1.04);
}

/* ANIMATION */

@keyframes fadeUp{

  from{
    opacity: 0;
    transform: translateY(40px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }

}

@keyframes popupFloat{

  0%{
    transform: translateY(0);
  }

  50%{
    transform: translateY(-10px);
  }

  100%{
    transform: translateY(0);
  }

}

@keyframes arrowMove{

  0%{
    transform: translateX(0);
  }

  50%{
    transform: translateX(6px);
  }

  100%{
    transform: translateX(0);
  }

}

@keyframes crmBlur{

  0%{
    transform: translateY(0);
  }

  50%{
    transform: translateY(20px);
  }

  100%{
    transform: translateY(0);
  }

}

/* RESPONSIVE */

@media(max-width:1100px){

  .crm-grid{
    grid-template-columns: 1fr;
  }

}

@media(max-width:768px){

  .crm-section{
    padding: 90px 18px;
  }

  .crm-top h2{
    font-size: 42px;
  }

  .crm-services{
    grid-template-columns: 1fr;
  }

  .crm-dashboard{
    min-height: auto;
  }

  .crm-flow{
    flex-direction: column;
  }

  .flow-arrow{
    transform: rotate(90deg);
  }

  .crm-stats{
    grid-template-columns: 1fr;
  }

  .crm-cta{
    padding: 60px 24px;
  }

}

@media(max-width:480px){

  .crm-popup{
    display: none;
  }

  .crm-btn{
    width: 100%;
  }

}