/* About section base styles and layout */
.about {
  padding: 65px 0 15px 0;
  background-color: #faf8ff;
  color: #333;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

/* Decorative background elements */
.about::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  border: 2px solid rgba(64, 76, 186, 0.1);
  background: linear-gradient(135deg, rgba(64, 76, 186, 0.08), rgba(123, 31, 162, 0.05));
  border-radius: 32px;
  transform: rotate(-12deg);
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
  box-shadow: 0 15px 35px rgba(64, 76, 186, 0.08);
}

.about::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  width: 320px;
  height: 320px;
  border: 2px solid rgba(123, 31, 162, 0.08);
  background: linear-gradient(135deg, rgba(123, 31, 162, 0.06), rgba(64, 76, 186, 0.04));
  border-radius: 32px;
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
  box-shadow: 0 15px 35px rgba(123, 31, 162, 0.06);
}

/* Content containers */
.about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  position: relative;
  max-width: 1200px;
  justify-content: center;
  align-items: stretch;
  z-index: 1;
}



/* Profile section */
.about-profile {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 30px;
}

/* Profile card with details */
.profile-details {
  text-align: center;
  max-width: 350px;
  padding: 28px 32px 24px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s forwards;
}

/* Profile name styles */
.profile-name {
  font-weight: 800;
  margin-bottom: 3px;
  color: #333;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
}

.profile-name span {
  font-weight: 500;
  opacity: 0.7;
  font-size: 1.2rem;
  display: inline;
  margin-top: 0;
  margin-left: 0.2rem;
  letter-spacing: -0.02em;
}

/* Professional title with underline */
.profile-title {
  font-size: 1.1rem;
  color: #bd28ba;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.profile-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px; 
  background: linear-gradient(90deg, #bd28ba, #404cba);
  bottom: -13px; 
  left: 50%;
  transform: translateX(-50%);
}

/* Skills badges */
.profile-skills {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  width: 100%;
}

.profile-skills li {
  padding: 6px 12px;
  background: rgba(123, 31, 162, 0.1);
  border-radius: 30px;
  font-size: 0.8rem;
  color: #404cba;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

/* Animation delays for skills */
.profile-skills li:nth-child(1) { animation-delay: 0.4s; }
.profile-skills li:nth-child(2) { animation-delay: 0.6s; }
.profile-skills li:nth-child(3) { animation-delay: 0.8s; }
.profile-skills li:nth-child(4) { animation-delay: 1s; }

/* Skills hover effect */
.profile-skills li:hover {
  background: rgba(123, 31, 162, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(123, 31, 162, 0.1);
}

/* Profile image and frame */
.profile-image-container {
  position: relative;
  width: 220px;
  margin: 20px auto 30px auto;
  position: relative;
  left: 30%;
  transform: translateX(-50%);
}

.profile-image-placeholder {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  width: 220px;
  height: 260px;
  background: linear-gradient(135deg, #bd28ba 0%, #404cba 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(123, 31, 162, 0.2);
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 2;
  outline: 3px solid rgba(123, 31, 162, 0.3);
  outline-offset: 3px;
}

/* Frame hover effects */
.photo-frame:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(123, 31, 162, 0.3);
  outline: 3px solid rgba(123, 31, 162, 0.6);
}

/* Profile photo styling */
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.photo-frame:hover .profile-photo {
  transform: scale(1.05);
}

/* Decorative elements */
.decoration-dot {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #bd28ba, #404cba);
  box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
  z-index: 1;
  animation: floatAnimation 6s ease-in-out infinite;
}

.dot1 {
  width: 40px;
  height: 40px;
  top: 13px;
  right: -14px;
  animation-delay: 0.5s;
}

/* Story section */
.about-story {
  flex: 2;
  min-width: 350px;
  max-width: 700px;
  position: relative;
  bottom: 20px;
}

/* Story content card */
.story-content {
  padding: 30px 30px 10px 30px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.5s forwards;
  width: 100%;
  z-index: 1;
}

/* Story title styling */
.story-title {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 25px;
  color: #333;
  position: relative;
}

.story-title span {
  position: relative;
  display: inline-block;
}

.story-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 33%;
  height: 4px;
  background: linear-gradient(90deg, #bd28ba, #404cba);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 1;
}

.story-title span:hover::after {
  width: 100%;
}

/* Story paragraph styles */
.story-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.story-content .story-paragraph:last-child {
  margin-bottom: 0;
}

/* Staggered animation timing */
.story-paragraph:nth-of-type(1) { animation-delay: 0.8s; }
.story-paragraph:nth-of-type(2) { animation-delay: 1s; }
.story-paragraph:nth-of-type(3) { animation-delay: 1.2s; }

/* Text highlights */
.brand-highlight, .highlight-text {
  color: #4c2fa3;
  font-weight: 700;
  position: relative;
}

/* Quote styling */
.story-quote {
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(90deg, rgba(189,40,186,0.08) 0%, rgba(64,76,186,0.07) 100%);
  border-radius: 10px;
  border-left: 3px solid #673ab7;
  overflow: visible;
  text-align: center;
  max-width: 100%;
}

.story-quote blockquote {
  font-style: italic;
  font-size: 1.12rem;
  color: #673ab7;
  font-weight: 500;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0 15px;
  z-index: 1;
  width: 100%;
  display: block;
}

/* Quote marks */
.story-quote blockquote::before,
.story-quote blockquote::after {
  content: '"';
  font-size: 1.5rem;
  color: #673ab7;
  opacity: 0.7;
  position: absolute;
  font-family: 'Montserrat', Arial, sans-serif;
  z-index: 0;
  line-height: 1;
}

.story-quote blockquote::before {
  left: -5px;
  top: -12px;
}

.story-quote blockquote::after {
  right: -5px;
  bottom: -12px;
}

/* Call to action button */
.cta-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #404cba, #bd28ba);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(189, 40, 186, 0.2);
  border: none;
  cursor: pointer;
  z-index: 1;
}

/* Button shine effect */
.cta-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: skewX(-25deg);
  transition: all 0.6s;
}

/* Button hover effects */
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(189, 40, 186, 0.3);
  color: #fff;
}

.cta-button:hover:before {
  transform: translateX(200%);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseLight {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

/* Responsive styles */
@media (max-width: 1100px) {
  .about-container {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  /* Stack content vertically on tablets */
  .about-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .about .container {
    padding: 0 8px;
  }
}

@media (max-width: 700px) {
  /* Further adjustments for smaller devices */
  .about-container {
    flex-direction: column;
    gap: 18px;
    padding: 0 4px;
  }
  
  /* Reduce photo size on mobile */
  .photo-frame {
    width: 180px;
    height: 220px;
  }
  
  .profile-image-placeholder {
    height: 250px;
  }
}

@media (max-width: 480px) {
  /* Small mobile adaptations */
  .profile-skills {
    flex-wrap: wrap;
  }
  
  .story-content {
    padding: 20px 15px;
  }
  
  .story-content h3 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
  }
}

/* Scroll reveal animations */

/* Bottom reveal with 3D effect */
.about .scroll-reveal-bottom {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about .scroll-reveal-bottom.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Left slide reveal */
.about .scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about .scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Right slide reveal */
.about .scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about .scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom reveal */
.about .scroll-reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about .scroll-reveal-zoom.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Sequential timing for elements */
.about .scroll-sequence > *:nth-child(1) { transition-delay: 0.1s; }
.about .scroll-sequence > *:nth-child(2) { transition-delay: 0.25s; }
.about .scroll-sequence > *:nth-child(3) { transition-delay: 0.4s; }
.about .scroll-sequence > *:nth-child(4) { transition-delay: 0.55s; }
.about .scroll-sequence > *:nth-child(5) { transition-delay: 0.7s; }

/* Decorative dot animation */
.about .dot1.revealed {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(123, 31, 162, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.5);
    transform: scale(1.1);
  }
}
