/* Cain Section */
.cain-section {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
   background: var(--background); 
  padding: 140px 40px 200px 40px;
  text-align: center;
}

.cain-title {
  display: flex;
  justify-content: center;
  font-size: clamp(60px, 15vw, 300px);
  font-family: 'GT Super';
  font-weight: 300;
  position: relative;
  z-index: 2; 
}
.cain_center {
margin-left: -10%;
}
.archive-title {
  position: absolute;  
margin-left: -4%;        
          top: 50%;            
  left: 72%;   
  transform: translateX(-30%); 
  font-size: clamp(30px, 6vw, 70px); 
  font-family: 'GT Super';
  font-weight: 300;
  color: var(--fonts);
  z-index: 1; 
  letter-spacing: -0.05em; 
}

.cain-title span {
  display: inline-block;
  position: relative;
  width: 1.18ch;
  height: 1em;
  overflow: hidden;
  cursor: pointer;
}

.cain-title .letter-inner {
  color: var(--fonts);
  transition: color 0.3s ease;
  letter-spacing: -0.02em;
}

.cain-title .letter-inner.active {
  color: var(--accent);
}

.cain-title span:hover .letter-inner {
  color: var(--accent);
}

.archive-title span {
  display: inline-block;
  position: relative;
  width: auto; 
  cursor: pointer;
}

.archive-title .letter-inner {
  transition: color 0.3s ease;
  color: var(--fonts);
  letter-spacing: -0.05em;
}

.archive-title .letter-inner.active {
  color: var(--accent);
}

.archive-title span:hover .letter-inner {
  color: var(--accent);
}



.cain-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(14px, 2.2vw, 20px);
  color: var(--fonts);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 100;
  min-height: 40px;
  margin-top: 100px;
  line-height: 1.4;
  max-width: 650px;
  overflow: hidden;
  position: relative;
}

.cain-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(157, 157, 157, 0.5);
  color: var(--fonts); /* match the other tooltip */
  font-family: "Libre Franklin", sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.cain-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) and (pointer: coarse) {
  .cain-tooltip {
    display: none !important;
  }
}

.desc-title {
  font-weight: 500;
  color: var(--fonts);
    font-size: clamp(16px, 3vw, 24px);
  margin-bottom: 10px;
}

.desc-text {
  font-size: clamp(14px, 2.2vw, 20px);
  color: var(--fonts);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 100;
  line-height: 1.4;
  max-width: 550px;
}

@media (max-width: 1724px) {
      .archive-title {
margin-top: -50px;
      }
}

@media (max-width: 1024px) {
  .cain-title .letter-inner {
    transform: translateY(0); 
  }
    .archive-title {
    font-size: clamp(24px, 5vw, 60px);
    left: 65%;
    transform: translateX(-25%);
    margin-top: -85px;
  }
.cain-description {
  left: 10%;
}
}

@media (max-width: 768px) {
  .cain-section {
    padding: 80px 15px;
  }
  .cain-title .letter-inner {
    transform: translateY(20%);
  }
  .cain-description {
    text-align: center;
    margin-top: 50px;
    left: 5%;
    max-width: 450px;
  }
    .archive-title {
    font-size: clamp(16px, 7vw, 40px);
    position: relative;
    left: 22%;
    margin-top: 5px;
    transform: none;
    justify-content: center;
  }

  .desc-text {
    padding-left: 14px;
    padding-right: 14px;
  }
}

