/* About section scroll offset fix */
/* Anchor offset for fixed header */
#about-anchor {
  display: block;
  position: relative;
  top: -120px; /* header height + buffer */
  visibility: hidden; /* hide it */
}

/* ================= ABOUT BUTTON ================= */
.about-btn-container {
  text-align: center;   /* this will center inline/inline-flex button inside */
  margin-top: 36px; 
  margin-bottom: 24px;    /* optional spacing from top cards */
}

.btn.about-btn {
  display: inline-flex;       /* keep inline-flex for text + emoji/icon */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering inside button */
  gap: 8px;                   /* spacing between text and icon */
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;

  background-color: #00D1CC; /* teal */
  color: #0b0f1a;
  border: none;
  cursor: pointer;

  transition: transform 0.25s ease, background-color 0.25s ease;

  text-align: center;        /* ensures text is centered inside */
}

/* Hover effect */
.btn.about-btn:hover {
  background-color: #00b3aa;   /* slightly darker teal */
  transform: translateY(-2px);
}

/* Active press */
.btn.about-btn:active {
  transform: translateY(0);
}

/* Dark mode */
body.dark .btn.about-btn {
  background-color: #00D1CC;
  color: #0b0f1a;
}


/* ================= ABOUT PRODUCT ================= */
.about-product {
  width: 100%;
  padding: 70px 0;
  background: transparent;
}

.about-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
.about-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.about-title {
  color: var(--text); 
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= TOP CARDS ================= */
.about-cards-top {
  display: flex;
  gap: 35px; /* smaller gap between cards */
  flex-wrap: wrap;
  justify-content: center; /* center the cards */
  margin-bottom: 50px;
}

.about-card-large {
  background: #ffffff; /* opaque background for light mode */
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  height: 150px; /* card height */
  width: 300px;

  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;
  color: #000;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.05);

  transition: transform 0.3s ease, border-color 0.3s ease;
}

body.dark .about-card-large {
  background: transparent;
  color: #b0bec7;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.about-card-large h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #000;
}

body.dark .about-card-large h3 {
  color: #b0bec7;
}

.about-card-large p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
}

body.dark .about-card-large p {
  color: #b0bec7;
}

.about-card-large:hover {
  transform: translateY(-4px);
  border-color: #00a89f; /* slightly darker teal on hover */
}

/* ================= BOTTOM CARDS ================= */
.about-cards-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 equal columns */
  gap: 18px; /* smaller gap */
  margin-top: 50px;
  justify-items: center;
}

.about-card-small {
  width: 82%;          /* full width of its grid cell */
  height: 75px;
  background: white;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.05);
}


body.dark .about-card-small {
  background: transparent;
  color: #b0bec7;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.about-card-small .stat-number {
  font-size: 1.5 rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #00D1CC;
}


.about-card-small .stat-label {
  font-size: 0.95rem;
  color: #333;
}

body.dark .about-card-small .stat-label {
  color: #b0bec7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .about-cards-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-cards-top,
  .about-cards-bottom {
    grid-template-columns: 1fr;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-card-large {
    height: auto;
  }

  .about-card-small {
    height: auto;
  }

}

#about {
  scroll-margin-top: 40px; /* space ABOVE the section */
}
