#about {
  position: relative;
  /* allow pseudo-element overlay */
  background: #111;
  color: #fff;
  font-family: "Neue Machina", sans-serif;
  margin: 0;
  overflow: hidden;
  /* clip pseudo-element */
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: radial-gradient(circle, #fff 2px, transparent 2px),
    radial-gradient(circle, #fff 2px, transparent 2px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;

  opacity: 0.15;
  /* make it subtle */
  pointer-events: none;
  /* don’t block clicks */
  z-index: 0;
}

#about .about-container {
  position: relative;
  /* stay above pseudo-element */
  z-index: 1;
  padding: 120px 50px 100px;
  /* top padding = navbar height */
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  gap: 50px;
  flex-wrap: wrap;
  border-top: 2px solid #ccc;
}

#about .about-text,
#about .about-image {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

#about .about-text.show,
#about .about-image.show {
  opacity: 1;
  transform: translateY(0);
}

#about .about-text {
  font-family: Sora, "Inter", sans-serif;
  flex: 1 1 400px;
  font-size: 1.5rem;
  line-height: 2.2rem;
}

#about .about-text h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 4rem;
  margin-bottom: 50px;
}

/* ---------- 3D Card (replacement for about-image) ---------- */
#about .card-wrap {
  --card-w: 520px;
  --card-h: 360px;
  width: var(--card-w);
  height: var(--card-h);
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  flex: 1 1 400px;
}

#about .card-shadow,
#about .card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 0.12s ease-out;
  will-change: transform;
  overflow: hidden;
}

#about .card {
  z-index: 2;
  background: #000 url("/RIGNITC/assets/images/about-image.webp") center center no-repeat;
  background-size: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
}

#about .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  text-align: left;
}

#about .card-overlay h2 {
  font-size: 3.4rem;
  margin: 0;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

#about .card-overlay p {
  margin: 8px 0 0;
  font-size: 2.1rem;
  font-weight: bold;
  color: #ddd;
}

#about .card-shadow {
  z-index: 1;
  transform: translateY(18px) scale(0.88);
  filter: blur(18px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.35)
  );
  opacity: 0.7;
  border-radius: 20px;
}

/* Button styling */
#about .about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: bold;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 20px;
}

#about .about-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.2)
  );
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

#about .about-link:hover::before {
  left: 200%;
}

#about .about-link:hover {
  color: #000;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

#about .about-link span {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

#about .about-link:hover span {
  transform: translateX(6px);
}

/* Stats Counter Styling */
#about .stats {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

#about .stat {
  flex: 1 1 200px;
  text-align: center;
}

#about .stat-number {
  font-family: "Neue Machina", sans-serif !important;
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
}

#about .stat-label {
  font-size: 1.4rem;
  color: #ddd;
  margin-top: 10px;
}

@media (max-width: 900px) {
  #about .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  #about .about-text {
    font-size: 1.3rem;
  }

  #about .card-wrap {
    width: 340px;
    height: 240px;
  }

  #about .card-overlay h2 {
    font-size: 1.8rem;
  }

  #about .card-overlay p {
    font-size: 0.95rem;
  }

  #about .stats {
    flex-direction: column;
    align-items: center;
  }
}

#about p {
  font-size: 1rem;
  /* smaller than default */
  line-height: 1.5;
  /* keeps it readable */
}

@media (max-width: 900px) {
  #about .about-container {
    padding: 100px 20px 60px;
  }

  #about .about-text {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  #about .about-text h1 {
    font-size: 2.2rem;
  }

  /* Smaller image card on mobile */
  #about .card-wrap {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    /* ✅ square on phones */
  }
}
