

/* Main container */
.cosmotrendinterface{
  margin-bottom: 80px;
  position: relative;
}
@media screen and (max-width: 992px) {
  .cosmotrendinterface{
    margin-bottom: 60px;
  }
  
}
.cosmotrend-cards__logo{
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%,-50%);
  display: block;
 
}
.cosmotrendinterface.show .cosmotrend-cards__logo{
  z-index: -1;
  display: none;
}
.cosmotrendinterface .cosmotrend-cards {
    display: flex;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    
    
}


.cosmotrendinterface.show .cosmotrend-cards  {
    transform: scale(1);
    transition: transform 1s cubic-bezier(.47,1.64,.41,.8);
}

/* Card styles */
.cosmotrend-card {
  background-color: #333;
  color: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 450px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-repeat: no-repeat;
 
}
.cosmotrend-card:first-child {
  background-image: url("icon-card-left.svg");
  background-position-y: bottom;
  background-position-x: left;
}
.cosmotrend-card:last-child {
  background-image: url("icon-card-right.svg");
  background-position-y: bottom;
  background-position-x: right;
} 
/* Center card styles */
.cosmotrend-card.center {
  justify-content: end;
  background: linear-gradient(
      180deg,
      rgba(64, 64, 65, 0) 27.37%,
      #404041 89.41%
    ),
    -401.793px 0px / 340.36% 100%;
  position: relative;
  height: 550px;
  overflow: hidden;
} 
.cosmotrend-card .logo img{
  width: 100%;
  height: 100%;
}
/* Background image for center card */
.cosmotrend-card.center::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("bg-card.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
} 

/* Icon styles */
.cosmotrendinterface .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cosmotrendinterface .icon svg{
  width: 50px;
  height: 50px;
  
}

/* Heading styles */
.cosmotrendinterface h2 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  color: white;
}

/* Description text */
.cosmotrendinterface .description {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.4;
}

/* Button styles */
.cosmotrendinterface .button {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.cosmotrendinterface .button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cosmotrendinterface .button-icon {
  margin-right: 8px;
}

/* Logo styles */
.cosmotrendinterface .logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.cosmotrendinterface .logo span {
  color: #aaa;
}

/* Team avatar container */
.cosmotrendinterface .team-container {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Avatar styles */
.cosmotrendinterface .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid #fff;
  margin: 0 -10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.cosmotrendinterface .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cosmotrendinterface .avatar:first-child {
  margin-left: 0;
  z-index: 1;
}

.cosmotrendinterface .avatar:last-child {
  margin-right: 0;
  z-index: 1;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .cosmotrendinterface .cosmotrend-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .cosmotrendinterface .cosmotrend-card {
    width: 100%;
    max-width: 100%;    
    height: 100%;
    padding-block: 40px;
    padding-inline: 10px;
    justify-content: space-between;
  }
  .cosmotrend-card.center {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .cosmotrendinterface .description{
    font-size: 12px;
    flex-grow:1;
  }
}
