/* About Me Button - fixed left side, vertical */
.about-me-btn {
  position: fixed;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 14px 8px;
  border-radius: 0 8px 8px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 0 12px rgba(124, 58, 237, 0.3);
  transition: padding-left 0.2s ease, box-shadow 0.2s ease;
  writing-mode: vertical-lr;
}

body.dark-mode .about-me-btn {
  background: #a78bfa;
  box-shadow: 3px 0 12px rgba(167, 139, 250, 0.3);
}

.about-me-btn:hover {
  padding-left: 12px;
  box-shadow: 5px 0 18px rgba(124, 58, 237, 0.4);
}

.about-me-btn svg {
  transform: rotate(90deg);
}

/* Overlay */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal */
.about-modal {
  background: #fff;
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.dark-mode .about-modal {
  background: #1e1e32;
  color: #e4e6eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-overlay.open .about-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.about-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-close:hover {
  background: #f0f0f5;
  color: #333;
}

body.dark-mode .about-close {
  color: #777;
}

body.dark-mode .about-close:hover {
  background: #2a2a40;
  color: #e4e6eb;
}

/* Header */
.about-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.about-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7c3aed;
}

body.dark-mode .about-header img {
  border-color: #a78bfa;
}

.about-header h2 {
  font-size: 24px;
  margin: 0;
  color: #1a1c20;
}

body.dark-mode .about-header h2 {
  color: #e4e6eb;
}

.about-header span {
  color: #7c3aed;
  font-size: 14px;
  font-weight: 500;
}

body.dark-mode .about-header span {
  color: #a78bfa;
}

/* Body */
.about-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

body.dark-mode .about-body p {
  color: #a0a3a8;
}

.about-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1c20;
}

body.dark-mode .about-body h3 {
  color: #e4e6eb;
}

.about-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.about-body ul li {
  font-size: 14px;
  color: #555;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

body.dark-mode .about-body ul li {
  color: #a0a3a8;
}

.about-body ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 700;
}

body.dark-mode .about-body ul li::before {
  color: #a78bfa;
}

/* Tags */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.about-tags span {
  background: #f0f0f5;
  color: #555;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
}

body.dark-mode .about-tags span {
  background: #2a2a40;
  color: #a0a3a8;
}

/* Footer */
.about-footer {
  text-align: center;
  margin-top: 10px;
}

.about-footer a {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.dark-mode .about-footer a {
  background: #a78bfa;
}

.about-footer a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
  .about-me-btn {
    font-size: 11px;
    padding: 10px 6px;
  }

  .about-modal {
    padding: 25px 20px;
    max-height: 90vh;
  }

  .about-header img {
    width: 60px;
    height: 60px;
  }

  .about-header h2 {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .about-me-btn {
    font-size: 10px;
    padding: 8px 5px;
    gap: 5px;
  }

  .about-me-btn svg {
    width: 14px;
    height: 14px;
  }
}
