/* ==========================================================
   About Me page – web-craftsman.com
   Load AFTER css/main.css:
   <link rel="stylesheet" href="css/about-me.css?v=1">
   ========================================================== */

/* ---------- 1. Photo: corner brackets draw in (photo and its hover effect unchanged) ---------- */
section[data-id="about_me"] .my-photo-block {
  position: relative;
  overflow: visible;
}
section[data-id="about_me"] .my-photo-block::before,
section[data-id="about_me"] .my-photo-block::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  border: 0 solid #222;
  pointer-events: none;
}
section[data-id="about_me"] .my-photo-block::before {
  top: -10px;
  left: -10px;
  border-top-width: 2px;
  border-left-width: 2px;
}
section[data-id="about_me"] .my-photo-block::after {
  bottom: -10px;
  right: -10px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}
/* starts each time the About Me page opens */
section[data-id="about_me"].pt-page-current .my-photo-block::before,
section[data-id="about_me"].pt-page-current .my-photo-block::after {
  animation: am-bracket 1s cubic-bezier(.7, 0, .2, 1) .3s forwards;
}
@keyframes am-bracket {
  0%   { width: 0;    height: 0; }
  50%  { width: 52px; height: 0; }
  100% { width: 52px; height: 52px; }
}

/* ---------- 2. Contact details: label above value ---------- */
section[data-id="about_me"] .info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}
section[data-id="about_me"] .info-list li {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e5e5;
}
section[data-id="about_me"] .info-list .title {
  display: block;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  text-decoration: none;
  font: 400 11px/1.4 Oxygen, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #767676;
}
section[data-id="about_me"] .info-list .title::after { display: none; }
section[data-id="about_me"] .info-list .value {
  display: block;
  font-size: 15px;
  color: #222;
}

/* social icons as outlined squares */
section[data-id="about_me"] .social-links {
  display: flex;
  gap: 10px;
  padding: 0;
}
section[data-id="about_me"] .social-links li { margin: 0; }
section[data-id="about_me"] .social-links .social-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #222;
  border-radius: 0;
  background: transparent;
  color: #222;
  transition: background .2s, color .2s;
}
section[data-id="about_me"] .social-links .social-button:hover,
section[data-id="about_me"] .social-links .social-button:focus-visible {
  background: #222;
  color: #fff;
}
section[data-id="about_me"] .social-links .social-button i { color: inherit; line-height: 1; }


/* ---------- 3. Focus areas: bracket cards ---------- */
/* equal-height cards */
section[data-id="about_me"] .row:has(> div > .service-block) {
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
}
section[data-id="about_me"] .row:has(> div > .service-block)::before,
section[data-id="about_me"] .row:has(> div > .service-block)::after { display: none; }
section[data-id="about_me"] .row:has(> div > .service-block) > div { float: none; }
section[data-id="about_me"] .service-block {
  position: relative;
  height: 100%;
  padding: 26px 20px 18px;
  border: 1px solid #e5e5e5;
  background: #fff;
  transition: transform .25s ease;
}
section[data-id="about_me"] .service-block::before,
section[data-id="about_me"] .service-block::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: width .35s ease, height .35s ease;
}
section[data-id="about_me"] .service-block::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #222;
  border-left: 2px solid #222;
}
section[data-id="about_me"] .service-block::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #222;
  border-right: 2px solid #222;
}
section[data-id="about_me"] .service-block:hover { transform: translateY(-3px); }
section[data-id="about_me"] .service-block:hover::before,
section[data-id="about_me"] .service-block:hover::after {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
section[data-id="about_me"] .service-block .service-icon {
  display: inline-block;
  transition: transform .3s ease;
}
section[data-id="about_me"] .service-block:hover .service-icon { transform: translateY(-5px); }
section[data-id="about_me"] .service-block h4 { font-weight: 700; }


/* ---------- 4. Testimonials: quote cards ---------- */
section[data-id="about_me"] .testimonial-item {
  padding: 0 4px;
}
section[data-id="about_me"] .testimonial-text {
  position: relative;
  z-index: 0;
  padding: 46px 28px 24px;
  background: #fff;
  border: 1px solid #e5e5e5;
}
section[data-id="about_me"] .testimonial-text::after { display: none; }
section[data-id="about_me"] .testimonial-text::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 24px;
  font: 700 72px/1 "PT Sans", Helvetica, sans-serif;
  color: #222;
}
section[data-id="about_me"] .testimonial-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  font-style: normal;
}
section[data-id="about_me"] .testimonial-credits {
  margin-top: 18px;
  padding: 0 28px;
}
section[data-id="about_me"] .testimonial-author-info { text-align: left; }
section[data-id="about_me"] .testimonial-author {
  display: block;
  font: 700 15px/1.3 Oxygen, Helvetica, sans-serif;
  color: #222;
  margin: 0 0 6px;
}
section[data-id="about_me"] .testimonial-firm {
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .06em;
  padding: 4px 8px;
  margin: 0;
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  section[data-id="about_me"] .my-photo-block::before,
  section[data-id="about_me"] .my-photo-block::after { width: 52px; height: 52px; animation: none !important; }
  section[data-id="about_me"] * { transition: none !important; }
}
