/* ==========================================================================
   03. ABOUT SECTION & HERO STAGE
   ========================================================================== */

.about-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding-top: 70px;
}

.slide-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1320px;
  padding: 40px 30px;
  gap: 45px;
}

.avatar-section {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;
  background: transparent;
}

.avatar-section img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  image-rendering: pixelated;
}

.content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}

.bio-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 17.5px;
  line-height: 1.65;
  color: #f0f4f1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.bio-line {
  white-space: nowrap;
}

.boxes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 490px;
}

.pixel-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(4, 22, 10, 0.75);
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  border: 1.5px solid var(--neon-border);
  padding: 10px 18px;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.1), inset 0 0 10px rgba(0, 255, 102, 0.06);
  clip-path: polygon(0px 5px, 5px 5px, 5px 0px,
      calc(100% - 5px) 0px, calc(100% - 5px) 5px, 100% 5px,
      100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
      5px 100%, 5px calc(100% - 5px), 0px calc(100% - 5px));
}

.pixel-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#00d959, #00d959) 0 0 / 5px 5px no-repeat,
    linear-gradient(#00d959, #00d959) 100% 0 / 5px 5px no-repeat,
    linear-gradient(#00d959, #00d959) 0 100% / 5px 5px no-repeat,
    linear-gradient(#00d959, #00d959) 100% 100% / 5px 5px no-repeat;
}

.box-label {
  font-family: 'Silkscreen', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #00e65b;
  width: 95px;
  text-align: left;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.4);
}

.box-separator {
  width: 2px;
  height: 18px;
  background-color: var(--neon-border);
  margin: 0 14px;
  box-shadow: 0 0 5px var(--neon);
  flex-shrink: 0;
}

.box-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: #ffffff;
  text-align: left;
  letter-spacing: 0.3px;
}



/* ==========================================================================
   إصلاح ريسبونسيف وتناسب مشهد الشخصية والحاسوب (About Me Scene) على كل الشاشات
   ========================================================================== */

.avatar-section img:not(.character-layer):not(.laptop-layer) {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.about-section .avatar-section {
  flex: 0 0 380px !important;
  width: 380px !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.about-section .avatar-section .scene-stage {
  position: relative !important;
  width: 360px !important;
  max-width: 100% !important;
  aspect-ratio: 460 / 500 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.about-section .avatar-section img.character-layer {
  position: absolute !important;
  top: 2% !important;
  left: 50% !important;
  width: 80% !important;
  height: 74% !important;
  max-width: none !important;
  object-fit: contain !important;
  z-index: 20 !important;
}

.about-section .avatar-section img.laptop-layer {
  position: absolute !important;
  bottom: 0% !important;
  left: 50% !important;
  width: 78% !important;
  height: 50% !important;
  max-width: none !important;
  object-fit: contain !important;
  z-index: 30 !important;
}



/* ==========================================================================
   تنسيق فقرة About Me والمسافات + تأثير Scroll Reveal + تحسينات نسخة الهاتف
   ========================================================================== */

.bio-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 17.5px;
  line-height: 1.75;
  letter-spacing: 0.3px;
  word-spacing: 1.5px;
  color: #f0f4f1;
  margin-bottom: 28px;
  max-width: 780px;
  text-align: center;
}

.bio-line {
  display: block;
}

