/* ══════════════════════════════════════
   About page styles
   ══════════════════════════════════════ */

/* ── profile card ── */
.about-container {
  width: 100%;
  max-width: 860px;
  padding: 0 24px 60px;
  position: relative;
  z-index: 2;
}

.profile-card {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(200, 210, 225, 0.5);
  backdrop-filter: blur(14px);
}

.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, #7eb8e0, #a8d4f0, #c5e4f7);
  position: relative;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #f0f2f8;
  object-fit: cover;
  position: absolute;
  bottom: -60px;
  left: 40px;
  box-shadow: 0 8px 24px rgba(100, 140, 180, 0.2);
}

.profile-body {
  padding: 80px 40px 40px;
}

.profile-body h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #2e3a4e;
  margin-bottom: 4px;
}
.profile-body .tagline {
  font-size: 1rem;
  color: #5b9fd6;
  font-weight: 600;
  margin-bottom: 20px;
}
.profile-body .bio {
  font-size: 1rem;
  color: #6e7590;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── info grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.info-item {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(126, 184, 224, 0.07);
  border: 1px solid rgba(200, 210, 225, 0.4);
}
.info-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8ea0;
  margin-bottom: 6px;
}
.info-item .value {
  font-size: 1rem;
  color: #3a4a60;
  font-weight: 600;
}

/* ── projects card in grid ── */
.info-item.projects-card {
  text-decoration: none;
  background: linear-gradient(135deg, #5aaa96, #4a9e8a);
  border: 2px solid rgba(80, 170, 150, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(90, 170, 150, 0.25);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.info-item.projects-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 80%
  );
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}
.info-item.projects-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(90, 170, 150, 0.35);
}
.info-item.projects-card .label {
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}
.info-item.projects-card .value {
  color: #fff;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* ── skills ── */
.skills-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3a3a50;
  margin-bottom: 14px;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.skill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(126, 184, 224, 0.12);
  color: #5b9fd6;
  border: 1px solid rgba(126, 184, 224, 0.25);
  transition:
    background 0.2s,
    transform 0.2s;
}
.skill:hover {
  background: rgba(126, 184, 224, 0.25);
  transform: translateY(-2px);
}

/* ── fundamentals toggle ── */
.fundamentals-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(126, 184, 224, 0.3);
  border-radius: 50px;
  background: rgba(126, 184, 224, 0.07);
  color: #5b9fd6;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 12px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.fundamentals-toggle:hover {
  background: rgba(126, 184, 224, 0.18);
  transform: translateY(-1px);
}
.toggle-chevron {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.fundamentals-toggle.open .toggle-chevron {
  transform: rotate(180deg);
}
.fundamentals {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin 0.3s ease;
  margin-bottom: 0;
}
.fundamentals.show {
  max-height: 300px;
  opacity: 1;
  margin-bottom: 36px;
}

/* ── social links ── */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.social-link:hover {
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link.github {
  background: rgba(60, 70, 85, 0.08);
  color: #3c4655;
  border: 1px solid rgba(60, 70, 85, 0.15);
}
.social-link.github:hover {
  box-shadow: 0 6px 20px rgba(60, 70, 85, 0.12);
}

.social-link.linkedin {
  background: rgba(91, 159, 214, 0.1);
  color: #5b9fd6;
  border: 1px solid rgba(91, 159, 214, 0.2);
}
.social-link.linkedin:hover {
  box-shadow: 0 6px 20px rgba(91, 159, 214, 0.15);
}

.social-link.email {
  background: rgba(100, 180, 160, 0.1);
  color: #5aaa96;
  border: 1px solid rgba(100, 180, 160, 0.2);
}
.social-link.email:hover {
  box-shadow: 0 6px 20px rgba(100, 180, 160, 0.15);
}

/* ── responsive ── */
@media (max-width: 520px) {
  .avatar {
    left: 50%;
    transform: translateX(-50%);
  }
  .profile-body {
    padding: 80px 24px 28px;
    text-align: center;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .skills,
  .social-links {
    justify-content: center;
  }
}

/* ── fade-in animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-card {
  animation: fadeInUp 0.6s ease both;
}
.info-item {
  animation: fadeInUp 0.5s ease both;
}
.info-item:nth-child(1) {
  animation-delay: 0.15s;
}
.info-item:nth-child(2) {
  animation-delay: 0.25s;
}
.info-item:nth-child(3) {
  animation-delay: 0.35s;
}
.skills-title {
  animation: fadeInUp 0.5s ease 0.4s both;
}
.skills {
  animation: fadeInUp 0.5s ease 0.45s both;
}
.fundamentals-toggle {
  animation: fadeInUp 0.5s ease 0.5s both;
}
.social-links {
  animation: fadeInUp 0.5s ease 0.55s both;
}
