/* ════════════════════════════════════════════════════════════════
   ABOUT.CSS - SOBRE MÍ SECTION, PORTRAIT & RADIAL MASK BLEND
   ════════════════════════════════════════════════════════════════ */

.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #050505;
  font-family: 'Poppins', sans-serif;
  padding: calc(140 * var(--u)) calc(75 * var(--u)) calc(120 * var(--u));
  z-index: 10;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  box-shadow: none;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: calc(1200 * var(--u));
  height: calc(320 * var(--u));
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.about-container {
  position: relative;
  max-width: calc(1337 * var(--u));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--u));
  z-index: 3;
}

.about-header {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  align-items: flex-start;
}

.about-tag {
  font-family: 'Poppins', sans-serif;
  font-size: calc(12.5 * var(--u));
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-tag-line {
  width: calc(36 * var(--u));
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Balanced Grid Columns */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: calc(52 * var(--u));
  align-items: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--u));
  padding-right: calc(12 * var(--u));
  z-index: 2;
}

/* Title - Larger & Highly Legible */
.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: calc(36 * var(--h));
  line-height: calc(48 * var(--h));
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.018em;
  margin: 0;
  min-height: calc(96 * var(--h));
  opacity: 0; /* Hidden initially until typewriter starts */
}

.about-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
}

/* Paragraphs - Expanded Font Size & High Legibility */
.about-text {
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u));
  font-family: 'Poppins', sans-serif;
  font-size: calc(17 * var(--h));
  line-height: calc(28.5 * var(--h));
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}

.about-text p {
  margin: 0;
  opacity: 0; /* Hidden initially until typewriter starts */
}

.about-text strong {
  color: #ffffff;
  font-weight: 500;
}

/* Typewriter Cursor Indicator */
.typewriter-cursor {
  display: inline-block;
  color: #ffffff;
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.75s infinite ease-in-out;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Personal Handwritten Signature Container */
.about-signature-wrap {
  margin-top: calc(14 * var(--u));
  opacity: 0;
  transform: translateY(calc(16 * var(--u)));
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-signature-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-signature-img {
  height: calc(85 * var(--h));
  width: auto;
  max-width: calc(340 * var(--u));
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.15);
  margin-left: calc(-12 * var(--u));
}

/* Right Column Portrait Frame - Full Top Alignment (No Head Crop) */
.about-right {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-image-frame {
  position: relative;
  width: 100%;
  max-width: calc(480 * var(--u));
  display: block;
  border-radius: calc(28 * var(--u)); /* Modern Rounded Corners */
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.94);
  will-change: opacity, filter, transform;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Top-Center object position guarantees head is 100% complete and uncut */
.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(28 * var(--u));
  mask-image: none;
  -webkit-mask-image: none;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.about-image-frame:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.22);
}

.about-image-frame:hover .about-portrait-img {
  transform: scale(1.025);
  filter: contrast(1.08) brightness(1.05);
}

.about-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Mobile About Section Overrides */
@media (max-aspect-ratio: 11/10) {
  .about-section {
    padding: calc(60 * var(--u)) calc(24 * var(--u)) calc(80 * var(--u));
  }

  .about-section::before {
    top: 0;
    height: calc(200 * var(--u));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: calc(44 * var(--u));
  }

  .about-left {
    padding-right: 0;
    gap: calc(20 * var(--u));
  }

  .about-title {
    font-size: calc(26 * var(--h));
    line-height: calc(36 * var(--h));
    min-height: auto;
  }

  .about-text {
    font-size: calc(15.5 * var(--h));
    line-height: calc(25 * var(--h));
  }

  .about-image-frame {
    max-width: 100%;
    border-radius: calc(20 * var(--u));
  }

  .about-portrait-img {
    border-radius: calc(20 * var(--u));
  }

  .about-signature-img {
    height: calc(70 * var(--h));
  }
}

@media (min-width: 600px) and (max-aspect-ratio: 11/10) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
