/*=============== ABOUT PAGE - REDESIGNED ===============*/

/* About Hero Section */
.about-hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 247, 218, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}

.about-hero__content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.avatar-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  position: relative;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

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

.about-hero__text {
  max-width: 700px;
}

.about-hero__title {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero__title i {
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
  animation: wave 2s ease-in-out infinite;
  display: inline-block;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.about-hero__subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.about-hero__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-2);
}

.about-hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: var(--mb-2);
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* What I Do */
.what-i-do {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--mb-2);
}

.what-card {
  padding: 2.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(0, 247, 218, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.what-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.what-card:hover::before {
  transform: scaleX(1);
}

.what-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 247, 218, 0.2);
}

.what-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 247, 218, 0.1), rgba(155, 149, 197, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1-5);
}

.what-card__title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
}

.what-card__description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* My Story */
.my-story {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: var(--mb-2);
}

.story-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-1-5);
  font-size: 1.05rem;
}

.story-highlights {
  margin-top: var(--mb-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.highlight-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.story-image {
  position: relative;
}

.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 247, 218, 0.2), rgba(155, 149, 197, 0.2));
  z-index: 1;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Skills */
.skills {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.skills-category {
  margin-bottom: var(--mb-3);
}

.skills-category__title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1-5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skills-category__title i {
  color: var(--primary-color);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.6rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 247, 218, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 247, 218, 0.2);
}

/* Values */
.values {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--mb-2);
}

.value-item {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(0, 247, 218, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.value-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 247, 218, 0.2);
}

.value-item__number {
  font-size: 4rem;
  font-weight: var(--font-bold);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--mb-1);
  opacity: 0.3;
}

.value-item__title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
}

.value-item__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* About CTA */
.about-cta {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content__title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-2);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: var(--mb-2);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 247, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 247, 218, 0.2);
}

/* Responsive */
@media screen and (max-width: 968px) {
  .about-hero {
    padding: 6rem 0 4rem;
  }

  .about-hero__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .what-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-image {
    order: -1;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media screen and (max-width: 576px) {
  .about-hero {
    padding: 6rem 0 3rem; /* 增加頂部 padding,避免被 header 遮住 */
  }

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

  .about-hero__subtitle {
    font-size: 1.1rem;
  }

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

  .avatar-wrapper {
    width: 200px;
    height: 200px;
  }

  .about-hero__stats {
    gap: 1.5rem;
  }

  .stat-item__number {
    font-size: 2rem;
  }

  .stat-item__label {
    font-size: 0.85rem;
  }

  .what-card {
    padding: 2rem 1.5rem;
  }

  .what-card__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .value-item {
    padding: 2rem 1.5rem;
  }

  .value-item__number {
    font-size: 3rem;
  }

  .cta-content__title {
    font-size: 2rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
