@import 'design-system.css';

/* #region About Page */

.about-page {
    padding: var(--spacing-xl) var(--spacing-sm);
    background-color: var(--color-background);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
  }
  
  .about-page-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 var(--spacing-md);
}
  
  /* Typography */
  .about-page-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  
  /* Content Layout */
  .about-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
  }
  
  /* Profile Image */
  .about-page-header {
    position: relative;
    width: 200px;
    height: 200px;
    animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  }
  
  .about-page-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: -4px 4px 0 rgba(0, 0, 0, 0.5);
  }
  
  /* Text Content */
  .about-page-text {
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  opacity: 0; /* Initial state */
  padding: 0 var(--spacing-md);
  max-width: var(--container-width);
  margin: 0 auto;
}
  
  .about-page-text p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
  }
  
  /* CTA Button */
  .about-page-cta {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: var(--spacing-md);
  }
  
  .about-page-cta:hover {
    transform: translateY(-2px);
    box-shadow: -4px 4px 0 rgba(0, 0, 0, 1);
  }
  
  /* Skills Section */
  .skills-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
  }
  
  .skills-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
  
  .skills-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-white);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .skills-grid {
    display: grid;
    margin: 0 1rem;
    gap: var(--spacing-lg);
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1400px;
  }
  
  /* Skill Items */
  .skill-item {
    background: transparent;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: -4px 4px 0 rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
  }
  
  .skill-header {
    display: flex;
    align-items: center;
    justify-content: center;  /* This is the only new line */
    gap: var(--spacing-md);
    padding: 6rem 0;
    margin-bottom: 0 ;
    width: auto;
  }
  
  .skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-off-white);
    transition: transform 0.3s ease;
  }
  
  .skill-icon i {
    font-size: 2.4rem;
  }
  
  .skill-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-white);
  }
  
  /* Improved staggered animations for skill items */
  .skills-grid .skill-item:nth-child(1) { animation-delay: 0.1s; }
  .skills-grid .skill-item:nth-child(2) { animation-delay: 0.15s; }
  .skills-grid .skill-item:nth-child(3) { animation-delay: 0.2s; }
  .skills-grid .skill-item:nth-child(4) { animation-delay: 0.25s; }
  .skills-grid .skill-item:nth-child(5) { animation-delay: 0.3s; }
  .skills-grid .skill-item:nth-child(6) { animation-delay: 0.35s; }
  .skills-grid .skill-item:nth-child(7) { animation-delay: 0.4s; }
  .skills-grid .skill-item:nth-child(8) { animation-delay: 0.45s; }
  .skills-grid .skill-item:nth-child(9) { animation-delay: 0.5s; }
  .skills-grid .skill-item:nth-child(10) { animation-delay: 0.55s; }
  .skills-grid .skill-item:nth-child(11) { animation-delay: 0.6s; }
  .skills-grid .skill-item:nth-child(12) { animation-delay: 0.65s; }
  
  /* Enhanced skill bar animation */
  .skill-bar {
    width: 100%;
    height: 4px;
    background: var(--color-deep-teal);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .skill-item:hover {
    transform: translateY(-2px);
    box-shadow: -8px 8px 0 rgba(255, 255, 255, 0.7);
  }
  
  .skill-item:hover .skill-bar {
    transform: scaleX(1);
  }
  
  .skill-item:hover .skill-icon {
    transform: scale(1.1);
  }
  
  /* Consultation Section */
  .consultation-section {
    background-color: var(--color-primary);
    padding: var(--spacing-2xl) var(--spacing-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--color-off-white);
    border-bottom: 3px solid var(--color-off-white);
    background-image: url(/images/hero-pattern.jpg);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
  }
  
  .consultation-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}
  
  .consultation-subtitle {
    color: var(--color-white);
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.1rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  }
  
  .consultation-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  }
  
  .consultation-cta {
    display: inline-block;
    background-color: var(--color-soft-teal);
    color: var(--color-black);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    font-size: var(--text-xl);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  }
  
  .consultation-cta:hover {
    background-color: var(--color-deep-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Responsive Design */
  @media (min-width: 768px) {
    .about-page {
      padding: var(--spacing-2xl) var(--spacing-md);
    }
  
    .about-page-title {
      font-size: var(--text-4xl);
    }
  
    .about-page-header {
      width: 250px;
      height: 250px;
    }
  
    .about-page-text {
      max-width: 80%;
    }
  
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--spacing-xl);
      padding: 0 var(--spacing-xl);
    }
  
    .skills-title {
      font-size: var(--text-3xl);
    }
  
    .consultation-section {
      padding: var(--spacing-3xl) var(--spacing-md);
    }
  
    .consultation-title {
      font-size: var(--text-5xl);
    }
  }
  
  @media (min-width: 1024px) {
    .about-page {
      padding: var(--spacing-3xl) var(--spacing-lg);
    }
  
    .about-page-title {
      font-size: var(--text-5xl);
    }
  
    .about-page-content {
      flex-direction: row;
      align-items: flex-start;
      gap: var(--spacing-2xl);
    }
  
    .about-page-header {
      width: 300px;
      height: 300px;
      flex-shrink: 0;
    }
  
    .about-page-text {
      text-align: left;
      flex-grow: 1;
    }
  
    .about-page-text p {
      font-size: var(--text-xl);
    }
  
    .skills-section {
      padding: var(--spacing-3xl) var(--spacing-3xl);
     }
  
    .skills-title {
      font-size: var(--text-4xl);
    }
  
    .skills-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 var(--spacing-md);
  }
  
    .skills-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: var(--spacing-lg);
      padding: 0;
      justify-content: center;
    }
  
    .skill-header {
      flex-direction: column;
      gap: var(--spacing-lg);
      padding: 3rem 0;  /* Reduced padding since it's now vertical */
    }
  
    .skill-icon i {
      font-size: 2.5rem;  /* Made icon slightly larger for desktop */
    }
  
    .skill-name {
      font-size: 1.3rem;
    }
  
    .consultation-section {
      padding: var(--spacing-xl) var(--spacing-lg);
    }
  
    .consultation-subtitle {
      font-size: var(--text-xl);
    }
  
    .consultation-title {
      font-size: var(--text-6xl);
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }
  
    .consultation-cta {
      padding: var(--spacing-md) var(--spacing-3xl);
      font-size: var(--text-xl);
    }
  }
  
  /* Animation Keyframes */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    .consultation-section,
    .consultation-subtitle,
    .consultation-title,
    .consultation-cta,
    .skill-item,
    .about-page-title,
    .about-page-header,
    .about-page-text {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
  
  /* #endregion About Page */

/* #region About Page Dark Mode */
body.dark-mode .about-page {
  background-color: var(--color-background);
}

body.dark-mode .about-page-title {
  color: var(--color-primary);
}

body.dark-mode .about-page-text p {
  color: var(--color-text-light);
}

body.dark-mode .about-page-cta {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: -4px 4px 0 rgba(255,255,255,0.1);
}
body.dark-mode .about-page-cta:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: -4px 4px 0 rgba(255,255,255,0.2);
}

body.dark-mode .skills-section {
  background-color: var(--color-dark-surface);
  color: var(--color-white);
}
body.dark-mode .skills-title {
  color: var(--color-primary);
}
body.dark-mode .skill-item {
  background: var(--color-dark-surface);
  border: 2px solid var(--color-primary);
  box-shadow: -4px 4px 0 rgba(255,255,255,0.1);
}
body.dark-mode .skill-item:hover {
  box-shadow: -8px 8px 0 rgba(255,255,255,0.15);
}
body.dark-mode .skill-header {
  color: var(--color-primary);
}
body.dark-mode .skill-name {
  color: var(--color-primary);
}
body.dark-mode .skill-bar {
  background: var(--color-accent);
}
/* #endregion About Page Dark Mode */

/* Personal Story Section */
.personal-story-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--color-off-white);
  position: relative;
}

.personal-story-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse; /* Image first on mobile */
  gap: var(--spacing-xl);
  padding: 0 var(--spacing-md);
}

.personal-story-content {
  flex: 1;
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards; /* Changed to fadeInRight since text comes after now */
  opacity: 0;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: 500px; /* Match carousel height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.personal-story-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: var(--spacing-md) 0;
  position: relative;
  display: inline-block;
}

.personal-story-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
}

.personal-story-text p {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.personal-story-text p:first-of-type {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.personal-story-text p:first-of-type::first-letter {
  font-size: 3em;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--color-text);
  font-family: var(--font-heading);
}

/* Creative Journey Carousel Styles */
.creative-journey-carousel-container {
  flex: 1;
  height: 100%;
  min-height: 500px; /* Increased for mobile */
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards; /* Changed to fadeInLeft since it comes first now */
  opacity: 0;
  position: relative;
  display: flex;
  align-items: stretch;
}

.creative-journey-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-primary);
  box-shadow: -8px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius: 8px;
}

.creative-journey-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.creative-journey-slide {
  flex: 0 0 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.creative-journey-slide.active {
  opacity: 1;
}

.creative-journey-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px; /* Match container */
}

.creative-journey-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creative-journey-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.creative-journey-slide:hover .creative-journey-overlay {
  transform: translateY(0);
}

.creative-journey-year {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.creative-journey-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.creative-journey-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Controls */
.creative-journey-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}

.creative-journey-control {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  pointer-events: auto;
  font-size: 1.2rem;
}

.creative-journey-control:hover {
  background: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Indicators */
.creative-journey-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.creative-journey-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.creative-journey-indicator.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.creative-journey-indicator:hover {
  transform: scale(1.2);
}

/* Fallback for original image container */
.personal-story-image-container {
  flex: 1;
  height: 100%;
  min-height: 500px; /* Match other elements */
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards; /* Changed to match new order */
  opacity: 0;
  border: 4px solid var(--color-primary);
  box-shadow: -8px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.personal-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--spacing-3xl) var(--spacing-xs);
  background-color: var(--color-background);
  position: relative;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.testimonials-carousel-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 1400px; /* Made wider for better consistency */
  perspective: 1000px;
  padding: var(--spacing-md);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--spacing-xl);
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 var(--spacing-sm); /* Reduced from var(--spacing-lg) */
  perspective: 1200px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: var(--spacing-lg); /* Reduced from var(--spacing-xl) */
  border-radius: 4px;
  box-shadow: -6px 6px 0 rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  margin: var(--spacing-sm); /* Reduced from var(--spacing-md) */
}

.testimonial-content {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.testimonial-content p {
  font-size: var(--text-xl);
  line-height: 1.6;
  font-style: italic;
  color: var(--color-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author-info h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.testimonial-author-info p {
  font-size: var(--text-md);
  color: var(--color-text-light);
}

/* Hide Carousel Controls */
.carousel-controls {
  display: none; /* Hide on all screen sizes */
}

.carousel-control {
  display: none; /* Hide on all screen sizes */
}

.carousel-progress {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-top: var(--spacing-xl); /* Increased from var(--spacing-lg) */
  position: relative;
  border-radius: 3px;
}

/* Client Logos Section */
.client-logos-section {
  padding: var(--spacing-2xl) var(--spacing-xs) var(--spacing-3xl);
  background-color: var(--color-off-white);
  position: relative;
  overflow: hidden;
}

.client-logos-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 var(--spacing-md);
}

.client-logos-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.client-logos-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 15%,
    black 50%,
    rgba(0, 0, 0, 0.4) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 15%,
    black 50%,
    rgba(0, 0, 0, 0.4) 85%,
    transparent 100%
  );
}

.client-logos-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.client-logos-track {
  display: flex;
  /* gap: var(--spacing-lg); */ /* Replaced with margin for seamless loop */
  align-items: center;
  animation: scrollLogos var(--scroll-duration, 25s) linear infinite;
  width: max-content;
}

.client-logos-track:hover {
  animation-play-state: paused; /* Pause animation on hover for better UX */
}

.client-logo {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs); /* Reduced padding */
  margin-right: var(--spacing-2xl); /* Increased for even more gap */
  background-color: transparent; /* Changed from var(--color-white) */
  border-radius: 4px;
  box-shadow: none; /* Removed shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  height: 100px;
  position: relative;
}

/* Dynamic blur effect is handled by JavaScript */

.client-logo:hover {
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: none; /* Removed shadow on hover */
  filter: blur(0) !important;
  opacity: 1 !important;
  z-index: 10;
}

.client-logo img {
  max-width: 100%; /* Increased from 80% */
  max-height: 100px; /* Increased from 80px */
  filter: none; /* Removed grayscale */
  opacity: 0.8; /* Slightly increased opacity */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover img {
  filter: none; /* Removed grayscale on hover */
  opacity: 1;
}

/* Enhanced fade edges */
.client-logos-section::before,
.client-logos-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}

.client-logos-section::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--color-off-white) 0%,
    rgba(248, 249, 250, 0.8) 40%,
    transparent 100%
  );
}

.client-logos-section::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--color-off-white) 0%,
    rgba(248, 249, 250, 0.8) 40%,
    transparent 100%
  );
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .personal-story-container {
    flex-direction: row;
    align-items: stretch;
    min-height: 450px;
  }

  .personal-story-content {
    padding: var(--spacing-2xl);
    padding-right: var(--spacing-xl);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .personal-story-title {
    font-size: var(--text-3xl);
    padding: var(--spacing-lg) 0;
  }

  .personal-story-image-container {
    height: 450px;
    max-width: 45%;
    min-height: 450px;
  }

  .creative-journey-carousel-container {
    height: 450px;
    max-width: 45%;
    min-height: 450px;
  }

  .creative-journey-image-wrapper {
    min-height: 450px;
  }

  .testimonial-slide {
    padding: 0 var(--spacing-lg);
  }

  .testimonial-content p {
    font-size: var(--text-xl);
  }

  .client-logo {
    flex: 0 0 220px;
    height: 120px;
  }
}

@media (min-width: 1024px) {
  .personal-story-section {
    padding: var(--spacing-2xl) 0;
  }

  .personal-story-container {
    min-height: 500px;
  }

  .personal-story-content {
    padding: var(--spacing-3xl);
    padding-right: var(--spacing-2xl); /* Reverted to padding-right */
    min-height: 500px;
  }

  .personal-story-title {
    font-size: var(--text-4xl);
    padding: var(--spacing-xs) 0;
  }

  .personal-story-image-container {
    height: 500px;
    min-height: 500px;
  }

  .creative-journey-carousel-container {
    height: 500px;
    min-height: 500px;
  }

  .creative-journey-image-wrapper {
    min-height: 500px;
  }

  .creative-journey-overlay {
    padding: 1.5rem;
  }

  .creative-journey-control {
    width: 45px;
    height: 45px;
  }

  .testimonials-section {
    padding: var(--spacing-3xl) 0;
  }

  .testimonial-card {
    min-height: 350px;
    padding: var(--spacing-2xl);
  }

  .testimonial-content p {
    font-size: var(--text-2xl);
  }

  .client-logo {
    flex: 0 0 250px;
    height: 150px;
  }

  .client-logo img {
    max-height: 80px;
  }
}

/* Dark Mode Styles */
body.dark-mode .personal-story-section {
  background-color: var(--color-dark-bg-alt);
}

body.dark-mode .personal-story-title {
  color: #333333 !important;
}

body.dark-mode .personal-story-text p {
  color: #333333 !important;
}

body.dark-mode .personal-story-text p:first-of-type {
  color: #333333 !important;
}

body.dark-mode .personal-story-text p:first-of-type::first-letter {
  color: #333333 !important;
}

body.dark-mode .personal-story-title::after {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .personal-story-image-container {
  border-color: var(--color-primary);
  box-shadow: -8px 8px 0 rgba(0, 0, 0, 0.4);
}

body.dark-mode .creative-journey-carousel-container {
  opacity: 1;
}

body.dark-mode .creative-journey-carousel {
  border-color: var(--color-primary-light);
  box-shadow: -8px 8px 0 rgba(0, 0, 0, 0.6);
}

body.dark-mode .creative-journey-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

body.dark-mode .creative-journey-year {
  background: var(--color-primary-light);
}

body.dark-mode .creative-journey-control {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--color-primary-light);
}

body.dark-mode .creative-journey-control:hover {
  background: var(--color-primary-light);
}

body.dark-mode .creative-journey-indicator {
  border-color: var(--color-primary-light);
}

body.dark-mode .creative-journey-indicator.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

body.dark-mode .testimonials-section {
  background-color: var(--color-dark-bg);
}

body.dark-mode .testimonials-title,
body.dark-mode .client-logos-title {
  color: var(--color-primary-light);
}

body.dark-mode .testimonial-card {
  background-color: var(--color-dark-card);
  border-color: var(--color-primary-light);
  box-shadow: -6px 6px 0 rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial-content p {
  color: var(--color-off-white);
}

body.dark-mode .testimonial-author-info h4 {
  color: var(--color-primary-light);
}

body.dark-mode .testimonial-author-info p {
  color: var(--color-text-light);
}

body.dark-mode .testimonial-avatar-img {
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .carousel-control {
  background-color: var(--color-primary-light);
}

body.dark-mode .carousel-control:hover {
  background-color: var(--color-primary);
}

body.dark-mode .carousel-progress {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .progress-bar {
  background-color: var(--color-primary-light);
}

body.dark-mode .client-logos-section {
  background-color: var(--color-dark-bg-alt);
}

body.dark-mode .client-logos-section::before {
  background: linear-gradient(
    90deg,
    var(--color-dark-bg-alt) 0%,
    rgba(30, 41, 59, 0.8) 40%,
    transparent 100%
  );
}

body.dark-mode .client-logos-section::after {
  background: linear-gradient(
    270deg,
    var(--color-dark-bg-alt) 0%,
    rgba(30, 41, 59, 0.8) 40%,
    transparent 100%
  );
}

body.dark-mode .client-logo {
  background-color: transparent; /* Changed from var(--color-dark-card) */
  box-shadow: none; /* Removed shadow */
}

body.dark-mode .client-logo img {
  filter: brightness(0) invert(1); /* Makes logos white */
  opacity: 0.8;
}

body.dark-mode .client-logo:hover img {
  filter: brightness(0) invert(1); /* Keeps logos white on hover */
  opacity: 1;
}

