/*--------------------------------------------------
 # About Section Styles
--------------------------------------------------*/

/*--------------------------------------------------
 # About Section Container & Layout
--------------------------------------------------*/
.about {
  padding: 65px 0 15px 0; /* Slightly raises the My Journey block */
  background-color: #faf8ff; /* Uniform and solid background */
  color: #333;
  position: relative;
  overflow: hidden;
  perspective: 1000px; /* Adds perspective for 3D effects */
}

/* Decorative square at the bottom left */
.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);
}

/* Second decorative square in the middle right */
.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);
}

/* Container for centering content and setting max-width */
.about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Flexible layout container for profile and story sections */
.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; /* Ensure content stays above the background */
}



/* ====== Profile Section ====== */
/* Container for the person's profile card and photo */
.about-profile {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 30px;
}

/* Card containing name, title and skills - with slide-up animation */
.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;
}

/* Name styling (Anthony) - large, bold primary text */
.profile-name {
  font-weight: 800;
  margin-bottom: 3px;
  color: #333;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
}

/* Secondary name text (Développeur) - smaller, lighter style */
.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 (Expert en Automatisation Web) - accent color */
.profile-title {
  font-size: 1.1rem;
  color: #bd28ba;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

/* Decorative gradient underline beneath the title */
.profile-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px; 
  background: linear-gradient(90deg, #bd28ba, #404cba);
  bottom: -13px; 
  left: 50%;
  transform: translateX(-50%);
}

/* Container for skill badges displayed in a row */
.profile-skills {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  width: 100%;
}

/* Individual skill badge with animation and hover effects */
.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;
}

/* Sequential animation delays for staggered appearance */
.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; }

/* Hover effect lifting skills badges slightly with shadow */
.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 ====== */
/* Container for the profile photo with decorative elements */
.profile-image-container {
  position: relative;
  width: 220px; /* Same width as the photo */
  margin: 20px auto 30px auto;
  position: relative;
  left: 30%; /* Positions the left edge at center */
  transform: translateX(-50%); /* Perfectly centers it */
}

/* Centered positioning container for the photo frame */
.profile-image-placeholder {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stylized frame with gradient background and outer glow */
.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;
}

/* Hover effect - frame rises up with enhanced shadow */
.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 image styling with object-fit for proper cropping */
.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);
}

/* Zoom effect on image when frame is hovered */
.photo-frame:hover .profile-photo {
  transform: scale(1.05);
}

/* ====== Decorative Elements ====== */
/* Animated floating dots for visual interest */
.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;
}

/* Top right decorative dot - larger size */
.dot1 {
  width: 40px;
  height: 40px;
  top: 13px;
  right: -14px;
  animation-delay: 0.5s;
}

/* Styles pour le point décoratif conservé uniquement */


/* ====== Story Section ====== */
/* Container for the biography/story content */
/* Container for the biography/story content */
.about-story {
  flex: 2;
  min-width: 350px;
  max-width: 700px; /* Increase this value for even more width */
  position: relative;
  bottom: 20px;
}

/* White card for story with slide-in animation from right */
.story-content {
  padding: 30px 30px 10px 30px; /* Réduction du padding en bas pour compacter le bloc */
  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;
}

/* Style for story title with proper underline animation */
.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 text with slide-up animation */
.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;
}

/* Sequential animation delays for staggered paragraph appearance */
.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; }

/* Highlighted text within paragraphs in brand color */
.brand-highlight, .highlight-text {
  color: #4c2fa3;
  font-weight: 700;
  position: relative;
}

/* Styled quote container with gradient background and left border */
.story-quote {
  margin: 30px 0;
  padding: 20px 20px;
  background: linear-gradient(90deg, rgba(189,40,186,0.08) 0%, rgba(64,76,186,0.07) 100%);
  border-radius: 10px;
  position: relative;
  border-left: 3px solid #673ab7;
  overflow: visible;
  text-align: center;
  max-width: 100%;
}

/* Quote style matching the image 2 */
.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;
  max-width: 100%;
  width: 100%;
  display: block;
}

/* Quote marks matching the image 2 */
.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;
}

/* Opening quote position (left) */
.story-quote blockquote::before {
  left: -5px;
  top: -12px;
}

/* Closing quote position (right) */
.story-quote blockquote::after {
  right: -5px;
  bottom: -12px;
}

/* ====== CTA Button ====== */
.cta-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem; /* Réduction de l'espace sous le bouton */
}

.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;
}

.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;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(189, 40, 186, 0.3);
  color: #fff; /* Forcer le texte à rester blanc au hover */
}

.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) {
  .about-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .about .container {
    padding: 0 8px;
  }
}

@media (max-width: 700px) {
  .about-container {
    flex-direction: column;
    gap: 18px;
    padding: 0 4px;
  }
  
  .photo-frame {
    width: 180px;
    height: 220px;
  }
  
  .profile-image-placeholder {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .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 ====== */

/* Éléments qui apparaissent depuis le bas avec léger effet 3D */
.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);
}

/* Éléments qui apparaissent depuis la gauche */
.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);
}

/* Éléments qui apparaissent depuis la droite */
.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);
}

/* Animation avec effet de zoom */
.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);
}

/* Timing séquentiels pour les éléments dans un conteneur */
.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; }

/* Animation pour la boule décorative */
.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);
  }
}
