/* ===================================
   About Page Styles
   Modern Dark Design
   =================================== */

/* Main Container */
.about-container {
  min-height: 100vh;
  padding: 0 20px 80px 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #000000 100%);
  direction: rtl;
  font-family: "Emkan", sans-serif;
}

/* ===================================
   Hero Section
   =================================== */

.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 140px auto 0 auto;
  padding: 60px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
}

.about-hero__image-wrapper {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 50%;
}

/* Shine sweep effect */
.about-hero__image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  z-index: 2;
  transition: left 0.6s ease;
  pointer-events: none;
}

.about-hero__image-wrapper:hover::before {
  left: 150%;
}

/* Sparkle ring effect */
.about-hero__image-wrapper::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: radial-gradient(circle at 15% 15%, #fff 2px, transparent 2px),
    radial-gradient(circle at 85% 20%, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle at 25% 80%, #fff 2px, transparent 2px),
    radial-gradient(circle at 75% 85%, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle at 5% 50%, #fff 1px, transparent 1px),
    radial-gradient(circle at 95% 55%, #fff 1px, transparent 1px),
    radial-gradient(circle at 50% 5%, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle at 55% 95%, #fff 2px, transparent 2px);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.about-hero__image-wrapper:hover::after {
  opacity: 1;
  transform: scale(1);
  animation: sparkleRotate 3s linear infinite;
}

@keyframes sparkleRotate {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}

.about-hero__image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  /* background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
    linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box; */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-hero__image-wrapper:hover .about-hero__image {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.about-hero__image-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  /* background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  ); */
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  transition: all 0.4s ease;
}

.about-hero__image-wrapper:hover .about-hero__image-glow {
  filter: blur(50px);
  transform: scale(1.2);
  /* background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.5),
    rgba(118, 75, 162, 0.5)
  ); */
}

.about-hero__content {
  text-align: right;
}

.about-hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-hero__name {
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.2;
  position: relative;
  display: block;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
    0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.5),
    0 0 80px rgba(118, 75, 162, 0.3);
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 40%,
    #667eea 50%,
    #fff 60%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glowPulse 2.5s ease-in-out infinite, shineText 4s linear infinite;
}

/* Reflection effect */
.about-hero__name::after {
  content: "YEGANE BARBER";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: scaleY(-1);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(102, 126, 234, 0.4) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 70%
  );
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  filter: blur(1px);
  pointer-events: none;
  animation: shineText 4s linear infinite;
  z-index: -1;
}

@keyframes shineText {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
      0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.5),
      0 0 80px rgba(118, 75, 162, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(102, 126, 234, 1),
      0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.6),
      0 0 100px rgba(118, 75, 162, 0.4), 0 0 120px rgba(102, 126, 234, 0.2);
  }
}

.about-hero__tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.about-hero__social {
  display: flex;
  gap: 12px;
}

.about-hero__social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.about-hero__social-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}

.about-hero__social-link svg {
  width: 22px;
  height: 22px;
}

/* ===================================
   Stats Section
   =================================== */

.about-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0 auto;
  padding: 40px 60px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.about-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-stats__number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stats__label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.about-stats__divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* ===================================
   Section Headers
   =================================== */

.about-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.about-section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  margin: 16px auto 0 auto;
}

/* ===================================
   Biography Section
   =================================== */

.about-bio {
  max-width: 900px;
  margin: 80px auto 0 auto;
}

.about-bio__content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
}

.about-bio__content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin: 0 0 20px 0;
}

.about-bio__content p:last-child {
  margin-bottom: 0;
}

/* ===================================
   Skills Section
   =================================== */

.about-skills {
  max-width: 1200px;
  margin: 80px auto 0 auto;
}

.about-skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-skill-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.about-skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-skill-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin: 0 auto 20px auto;
}

.about-skill-card__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.about-skill-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.about-skill-card__description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   Certifications Section
   =================================== */

.about-certs {
  max-width: 1200px;
  margin: 80px auto 0 auto;
}

.about-certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-cert-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.3);
}

.about-cert-card:hover::before {
  opacity: 1;
}

.about-cert-card__year {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-cert-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.about-cert-card__issuer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===================================
   CTA Section
   =================================== */

.about-cta {
  max-width: 800px;
  margin: 80px auto 0 auto;
}

.about-cta__content {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15),
    rgba(118, 75, 162, 0.15)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.about-cta__content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.about-cta__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  position: relative;
}

.about-cta__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px 0;
  line-height: 1.7;
  position: relative;
}

.about-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: "Emkan", sans-serif;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  position: relative;
}

.about-cta__button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.about-cta__button svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.about-cta__button:hover svg {
  transform: rotate(180deg) translateX(-4px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
  .about-skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .about-hero {
    margin-top: 120px;
    padding: 40px;
    gap: 40px;
  }

  .about-hero__image {
    width: 220px;
    height: 220px;
  }

  .about-hero__name {
    font-size: 2.5rem;
  }

  .about-stats {
    gap: 24px;
    padding: 32px 40px;
  }

  .about-stats__number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 0 15px 60px 15px;
  }

  .about-hero {
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .about-hero__content {
    text-align: center;
  }

  .about-hero__image {
    width: 180px;
    height: 180px;
  }

  .about-hero__name {
    font-size: 2rem;
  }

  .about-hero__tagline {
    font-size: 1rem;
  }

  .about-hero__social {
    justify-content: center;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
  }

  .about-stats__divider {
    display: none;
  }

  .about-stats__item {
    width: 40%;
  }

  .about-stats__number {
    font-size: 1.8rem;
  }

  .about-section-title {
    font-size: 1.6rem;
  }

  .about-bio {
    margin-top: 60px;
  }

  .about-bio__content {
    padding: 28px 20px;
  }

  .about-bio__content p {
    font-size: 1rem;
  }

  .about-skills {
    margin-top: 60px;
  }

  .about-skills__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-skill-card {
    padding: 24px;
  }

  .about-certs {
    margin-top: 60px;
  }

  .about-certs__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-cta {
    margin-top: 60px;
  }

  .about-cta__content {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .about-cta__title {
    font-size: 1.5rem;
  }

  .about-cta__description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    margin-top: 90px;
    padding: 24px 16px;
  }

  .about-hero__image {
    width: 150px;
    height: 150px;
  }

  .about-hero__badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .about-hero__name {
    font-size: 1.6rem;
  }

  .about-hero__social-link {
    width: 42px;
    height: 42px;
  }

  .about-stats__item {
    width: 45%;
  }

  .about-stats__number {
    font-size: 1.5rem;
  }

  .about-stats__label {
    font-size: 14px;
  }

  .about-cta__button {
    padding: 14px 32px;
    font-size: 16px;
  }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero {
  animation: fadeInUp 0.8s ease forwards;
}

.about-stats {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.about-bio {
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.about-skill-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.about-skill-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-skill-card:nth-child(2) {
  animation-delay: 0.2s;
}
.about-skill-card:nth-child(3) {
  animation-delay: 0.3s;
}
.about-skill-card:nth-child(4) {
  animation-delay: 0.4s;
}
.about-skill-card:nth-child(5) {
  animation-delay: 0.5s;
}
.about-skill-card:nth-child(6) {
  animation-delay: 0.6s;
}

.about-cert-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.about-cert-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-cert-card:nth-child(2) {
  animation-delay: 0.2s;
}
.about-cert-card:nth-child(3) {
  animation-delay: 0.3s;
}
.about-cert-card:nth-child(4) {
  animation-delay: 0.4s;
}

.about-cta {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}
