/* ==================================================
   about.css — секція “Про нас”
   PROD build 26-04-2025 — відкореговано відступи
   ================================================== */

/* ---------- палітра / змінні --------------------- */
:root {
  --about-bg-dark: #0b0b0f;
  --about-bg-light: #ffffff;
  --txt-main-dark: #cfcfcf;
  --txt-main-light: #555555;
  --txt-accent-dark: #ffffff;
  --txt-accent-light: #222222;
  --card-bg-dark: rgba(255,255,255,.06);
  --card-bg-light: rgba(255,255,255,.92);
  --card-bd-dark: rgba(255,255,255,.08);
  --card-bd-light: rgba(0,0,0,.08);
  --grad-1: #3b82f6;
  --grad-2: #9333ea;
  --cta-ripple: rgba(255,255,255,.3);
}

/* ---------- wrapper -------------------------------- */
.about {
  padding-block: clamp(40px, 12vh, 80px);
  padding-inline: clamp(16px, 4vw, 24px);
  background: var(--about-bg-dark) url('../images/parallax-bg.svg') center/cover fixed;
  color: var(--txt-main-dark);
  text-align: center;
  overflow: hidden;
}
body.light-theme .about {
  background: var(--about-bg-light);
  color: var(--txt-main-light);
  background-attachment: scroll;
}

/* ---------- контейнер усередині секції ----- */
.about .container {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 0;
}

/* ---------- header -------------------------------- */
.about-header {
  max-width: 720px;
  margin: 0 auto 32px;
  position: relative;
}
.about-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--txt-accent-dark);
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp .6s .2s forwards;
  word-break: keep-all;
}
body.light-theme .about-title {
  color: var(--txt-accent-light);
}
.gradient-text {
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-separator {
  width: 50px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2));
  opacity: 0;
  transform: scaleX(0);
  animation: lineIn .5s .3s forwards;
}
.about-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin: 8px auto 20px;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp .6s .3s forwards;
}

/* ---------- CTA-button ----------------------------- */
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: filter .3s, transform .2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .6s .4s forwards;
}
.about-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.about-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--cta-ripple);
  width: 0;
  height: 0;
  opacity: 0;
  transition: width .4s, height .4s, opacity .8s;
}
.about-cta:active::after {
  left: 50%; top: 50%;
  width: 150px; height: 150px;
  margin: -75px 0 0 -75px;
  opacity: .4;
  transition: 0s;
}

/* ---------- grids --------------------------------- */
.features-grid,
.metrics-grid {
  --gap: 20px;
  display: grid;
  gap: var(--gap);
  width: 100%;
  margin: 0 auto 32px;
}
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
  max-width: 800px;
}

/* ---------- cards --------------------------------- */
.feature-box,
.metric-box {
  --delay: .12s;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-bd-dark);
  border-radius: 14px;
  padding: 24px 16px;
  backdrop-filter: blur(12px);
  transition: transform .3s, box-shadow .3s;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp .6s var(--delay) forwards;
}
body.light-theme .feature-box,
body.light-theme .metric-box {
  background: var(--card-bg-light);
  border-color: var(--card-bd-light);
}
.feature-box:hover,
.metric-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* icon wrapper + bounce */
.icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
body.light-theme .icon-wrapper {
  background: rgba(0,0,0,.05);
}
.metric-box .icon-wrapper {
  transition: transform .3s;
}
.metric-box:hover .icon-wrapper {
  animation: bounce .6s;
}
.icon {
  font-size: 1.8rem;
}
.gradient-blue   { background-color: rgba(59,130,246,.2); }
.gradient-purple { background-color: rgba(147,51,234,.2); }
.gradient-green  { background-color: rgba(34,197,94,.2); }
.gradient-gold   { background-color: rgba(234,179,8,.2); }

/* ---------- metrics text -------------------------- */
.value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--txt-accent-dark);
  margin-bottom: 6px;
}
.value-infinite {
  font-size: 2.4rem;
}
body.light-theme .value,
body.light-theme .value-infinite {
  color: var(--txt-accent-light);
}
.metric-box p {
  font-size: .85rem;
  color: var(--txt-main-dark);
  margin: 0;
}
body.light-theme .metric-box p {
  color: var(--txt-main-light);
}

/* ---------- keyframes ----------------------------- */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes lineIn { to { opacity: 1; transform: scaleX(1); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- prefers-reduced-motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0s !important; }
}

/* ---------- responsive ---------------------------- */
/* ≤1024px */
@media (max-width: 1024px) {
  .about-header { margin-bottom: 28px; }
  .about-cta { font-size: .9rem; padding: 10px 20px; margin-bottom: 28px; }
  .features-grid, .metrics-grid { gap: 16px; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
}
/* ≤640px */
@media (max-width: 640px) {
  .about {
    padding-block: clamp(20px, 10vh, 48px);
    padding-inline: 16px;
  }
  .about-header { margin-bottom: 16px; }
  .about-title { font-size: 1.8rem; line-height: 1.3; margin-bottom: 6px; }
  .about-separator { margin-bottom: 12px; }
  .about-subtitle { font-size: .95rem; margin-bottom: 16px; }
  .about-cta { width: 100%; padding: 8px 16px; margin-bottom: 20px; }
  .features-grid, .metrics-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-box, .metric-box { padding: 20px 12px; }
  .icon-wrapper { width: 40px; height: 40px; margin-bottom: 8px; }
  .icon { font-size: 1.6rem; }
  .value { font-size: 1.8rem; margin-bottom: 4px; }
  .value-infinite { font-size: 2.2rem; }
  .metric-box p { font-size: .8rem; }
  .about-cta {
    width: 100%; /* Кнопка займає всю ширину */
    padding: 14px 20px; /* Збільшені відступи для зручності */
    font-size: 1rem; /* Трохи більший текст */
    border-radius: 12px; /* Більш м'які краї */
    margin-bottom: 24px; /* Достатній відступ знизу */
  }
  .about-cta:hover {
    transform: none; /* Прибираємо зміщення при наведенні для стабільності */
  }
  .about-cta:active {
    transform: scale(0.98); /* Легкий ефект натискання */
  }
}
