.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Replace with your photo: /images/abu-bakkar-bg.jpg */
  background-image: url('/images/abu-bakkar-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 18, 0.88);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__visual {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.about__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4/5;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animated border glow ring (does not overlay the image itself) */
.about__photo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(124, 58, 237, 0.95),
    rgba(6, 182, 212, 0.95),
    rgba(124, 58, 237, 0.95)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aboutBorderSpin 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.about__photo::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.25), 0 0 26px rgba(6, 182, 212, 0.18);
  pointer-events: none;
  z-index: 1;
}

@keyframes aboutBorderSpin {
  to { transform: rotate(360deg); }
}

.about__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a3e 0%, #111128 100%);
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--text-accent);
}

.about-stat-card {
  position: absolute;
  z-index: 2;
  padding: 12px 18px;
  background: rgba(17, 17, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-stat-card--1 {
  top: 10%;
  right: -20px;
}

.about-stat-card--2 {
  bottom: 35%;
  left: -24px;
}

.about-stat-card--3 {
  bottom: 8%;
  right: 10%;
}

.about__content .section-header {
  text-align: left;
  margin-bottom: 32px;
}

.about__text {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about__text p {
  margin-bottom: 16px;
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.skill-chip:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__content .section-header {
    text-align: center;
  }

  .about__skills {
    justify-content: center;
  }

  .about-stat-card--1 { right: 10px; }
  .about-stat-card--2 { left: 10px; }
}
