/* About Section Container */
.about-section {
  width: 100vw;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
  background: transparent;
}

/* Title Wrapper for SVG */
.about-title-wrapper {
  width: 100vw;
  max-width: 1000px;
  height: 220px;
  margin: 50vh auto 0 auto; /* back to original so SVG stays in the darkness */
  position: relative;
}

/* SVG Title Styling */
.about-title-svg {
  width: 72vw;
  max-width: 1000px;
  height: 220px;
  opacity: 0.78;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.about-title-svg text {
  fill: none !important;
  paint-order: stroke;
}

.about-intro {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 36px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #43e97b 0%, #a17fe0 65%, #5d26c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(93,38,193,0.10));
  text-align: center;
  pointer-events: none;
  margin: 0;
  width: max-content;
}

.about-desc {
  margin: 48px auto 0 auto;
  max-width: 700px;
  font-size: 1.22rem;
  line-height: 1.7;
  color: #808080; /* match navbar grey */
  background: rgba(21,24,34,0.82);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(161,127,224,0.13); /* purple glow, softer */
  padding: 32px 32px 28px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
  border: 1.5px solid rgba(161,127,224,0.07); /* very soft, almost invisible border */
  transition: box-shadow 0.2s cubic-bezier(.4,.2,.2,1), border-color 0.2s cubic-bezier(.4,.2,.2,1);
}

.about-desc:hover, .about-desc:focus {
  box-shadow: 0 8px 48px 0 rgba(161,127,224,0.22); /* stronger purple glow on hover */
  background: rgba(21,24,34,0.92);
  border-color: rgba(161,127,224,0.13); /* slightly more visible on hover */
}

.about-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 100px auto 0 auto;
  max-width: 900px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.about-stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2vw;
  min-width: 0;
}

.gradient-stat {
  position: relative;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #43e97b 0%, #7f9cf5 40%, #a17fe0 65%, #5d26c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(161,127,224,0.22)) drop-shadow(0 2px 12px rgba(67,233,123,0.12));
  margin-bottom: 8px;
  margin-top: 0;
  text-align: center;
  z-index: 1;
}
.gradient-stat::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 120%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(90deg, #a17fe0 0%, #43e97b 60%, #5d26c1 100%);
  opacity: 0.32;
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.stat-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.5px;
}

.stat-text {
  font-size: 1rem;
  color: #808080;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.5;
}

.about-stat-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a17fe0;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 0 1vw;
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(161,127,224,0.13));
}

/* Responsive: hide SVG title on small screens if needed */
@media (max-width: 720px) {
  .about-title-svg {
    height: 120px;
    width: 92vw;
    max-width: 900px;
  }
  .about-title-wrapper {
    height: 120px;
    margin-top: 48px; /* also increase margin for mobile */
  }
  .about-desc {
    padding: 24px 12vw 20px 12vw; /* more horizontal space */
    font-size: 1rem; /* slightly smaller for mobile */
    margin-top: 32px;
  }
}

/* Hide intro on devices smaller than 1024px */
@media (max-width: 1023px) {
  .about-intro {
    display: none !important;
  }
  .about-section {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 24px;
    box-sizing: border-box;
  }
  .about-title-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 32px auto 0 auto;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .about-title-svg {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .about-desc {
    max-width: 700px;
    width: 100%;
    margin: 24px auto 0 auto;
    text-align: center;
    display: block;
    padding: 20px 16px 16px 16px; /* use px, not vw */
    box-sizing: border-box;
  }
  .about-stats {
    max-width: 700px;
    width: 100%;
    margin: 32px auto 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: flex;
    box-sizing: border-box;
  }
  .about-stat {
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .about-stat-sep {
    display: none;
  }
}

/* Responsive: stack stats vertically on mobile */
@media (max-width: 900px) {
  .about-stats {
    flex-direction: column;
    gap: 32px;
    max-width: 98vw;
    align-items: stretch;
  }
  .about-stat-sep {
    display: none;
  }
  .about-stat {
    padding: 0 0 0 0;
    margin-bottom: 0;
  }
  .about-section {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 24px;
  }
  .about-title-wrapper {
    margin-top: 32px;
    margin-bottom: 0;
    height: auto;
    text-align: center;
  }
  .about-desc {
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: block;
  }
  .about-stats {
    margin-top: 32px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: flex;
  }
  .about-stat {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
