.about-container {
    max-width: 100vh;
    justify-self: center;
    padding: 20px;
}

.about-container h2 {
    color: #000;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 4rem;
    text-align: left;
    margin-left: -30%;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5% 5% 5% 5%; 
    margin-top: 20px;
    border-radius: 20px;
    background-color: #fff;
    width: 150%;
    align-self: center;
    border: 4px solid #000;
    height: auto;
    align-items: flex-start; /* Changed from center to flex-start for better alignment */
    justify-self: center;
    position: relative; /* Added for positioning */
}

.about-details {
    flex: 1;
    min-width: 200px;
    padding-right: 20px;

}

.about-image {
    position: absolute; /* Changed from flex to absolute */
    right: 15%; /* Position from right */
    top: 5%; /* Align with top of container */
    width: auto;
    max-width: 380px;
    min-width: 200px;
    perspective: 1000px;
}

.about-image .profile-pic {
    max-width: 100%;
    background-color: beige;
    height: auto;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    position: absolute;
}

.about-image .back-pic {
    max-width: 100%;
    height: auto;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    position: absolute;
    opacity: 0;
}

.about-image:hover .profile-pic {
    animation: fadeOut 0.3s ease;
    animation-fill-mode: forwards;
}

.about-image:hover .back-pic {
    animation: fadeIn 0.3s ease 0.3s;
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-content p {
    flex-basis: 100%;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000;
    text-align: justify;
    font-weight: bold;
    margin-top: 20px; /* Add space above paragraph */
}

.about-content strong {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    display: block; /* Make each strong element take full width */
}

hr {
    flex-basis: 100%;
    margin: 20px 0;
}
/* Add this to your about.css */
@media (max-width: 768px) {
    .about-image {
      display: none;
    }
    
    .about-content {
      width: 100%;
      padding: 20px;
    }
    
    .about-container h2 {
      margin-left: 0;
      text-align: center;
    }
  }

/* Email copy functionality */
.email-copyable {
  position: relative;
  cursor: pointer;
}

.email-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}