/* About Me Section Styles */

.about-me-section {
  position: fixed;
  bottom: -100vh; /* Start hidden below the viewport */
  left: 0;
  width: calc(100% - 450px); /* Adjust width to leave space for chat window */
  height: 90vh;
  background-color: rgba(15, 43, 63, 0.95);
  border-top: 1px solid rgba(59, 193, 199, 0.5);
  z-index: 900;
  overflow-y: auto;
  transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  padding-bottom: 50px;
  /* Add padding to avoid content being too close to the edge */
  padding-left: 20px;
  padding-right: 20px;
}

.about-me-section.active {
  bottom: 0;
}

.about-me-header {
  text-align: left;
  padding: 30px 40px;
  position: sticky;
  top: 0;
  background-color: rgba(15, 43, 63, 0.95);
  z-index: 10;
  border-bottom: 1px solid rgba(59, 193, 199, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-me-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Add underline effect to the header */
.about-me-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 2px;
  background-color: #3bc1c7;
  transition: width 0.3s ease;
}

.about-me-section.active .about-me-header h2::after {
  width: 120px;
}

.about-me-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(59, 193, 199, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.about-me-close:hover {
  opacity: 1;
  color: #3bc1c7;
  border-color: #3bc1c7;
  transform: rotate(90deg);
  background: rgba(59, 193, 199, 0.1);
}

/* About Me Container */
.about-me-container {
  max-width: 900px;
  margin: 40px auto 40px 40px;
  padding: 0 20px;
}

/* Profile Section */
.about-me-profile {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  background-color: rgba(15, 43, 63, 0.85);
  border: 1px solid rgba(59, 193, 199, 0.4);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-me-profile.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(59, 193, 199, 0.2);
  border: 3px solid rgba(59, 193, 199, 0.6);
  background-size: cover;
  background-position: center;
  margin-right: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.profile-title {
  font-size: 1.2rem;
  color: #3bc1c7;
  margin: 0 0 20px 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.profile-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(59, 193, 199, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background-color: rgba(59, 193, 199, 0.2);
  border-color: #3bc1c7;
}

.social-icon {
  margin-right: 5px;
  font-size: 1.1rem;
}

/* Content Sections */
.about-me-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-me-section-block {
  background-color: rgba(15, 43, 63, 0.85);
  border: 1px solid rgba(59, 193, 199, 0.4);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-me-section-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-me-section-block h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  color: #3bc1c7;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.about-me-section-block h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 1px;
  background-color: rgba(59, 193, 199, 0.5);
}

.about-me-section-block p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
}

.about-me-section-block p:last-child {
  margin-bottom: 0;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-category h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 15px 0;
  color: #ffffff;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background-color: rgba(59, 193, 199, 0.25);
  border: 1px solid rgba(59, 193, 199, 0.6);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .about-me-section {
    width: calc(100% - 400px);
  }
  
  .about-me-container {
    max-width: 800px;
    margin: 40px auto 40px 20px;
  }
}

@media (max-width: 992px) {
  .about-me-section {
    width: calc(100% - 350px);
  }
  
  .about-me-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .profile-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-me-section {
    width: 100%;
    padding-bottom: 100px;
  }
  
  .about-me-container {
    margin: 40px auto;
    padding: 0 15px;
  }
  
  .about-me-profile {
    padding: 20px;
  }
  
  .about-me-section-block {
    padding: 20px;
  }
  
  .profile-social {
    flex-wrap: wrap;
  }
  
  /* When both chat and about-me are open on mobile, hide chat */
  .chat-window.active ~ .about-me-section.active {
    z-index: 1100;
  }
}
