.about-ceo-section {
  min-height: 100vh;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 3rem);
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--neutral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-ceo-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(58, 1, 92, 0.03) 30deg,
    transparent 60deg
  );
  animation: rotate 60s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.about-ceo-wrapper {
  max-width: 80rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: clamp(1rem, 3vw, 2.5rem);
  box-shadow: 
    0 2rem 6rem rgba(0, 0, 0, 0.6),
    inset 0 0.1rem 0 rgba(139, 92, 246, 0.3),
    0 0 0 0.1rem rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);
}

.about-ceo-wrapper::before {
  content: '';
  position: absolute;
  top: -0.1rem;
  left: -0.1rem;
  right: -0.1rem;
  bottom: -0.1rem;
  background: linear-gradient(45deg, 
    rgba(139, 92, 246, 0.3) 0%,
    transparent 20%,
    transparent 80%,
    rgba(139, 92, 246, 0.3) 100%
  );
  border-radius: inherit;
  z-index: -1;
}

.about-ceo-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.about-ceo-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-ceo-info h1::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: clamp(3rem, 8vw, 5rem);
  height: 0.375rem;
  background: var(--accent-gradient);
  border-radius: 0.1875rem;
  box-shadow: 0 0 1rem rgba(58, 1, 92, 0.6);
  animation: expandLine 1.2s ease-out 0.3s both;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: clamp(3rem, 8vw, 5rem); opacity: 1; }
}

.about-ceo-info p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: justify;
  position: relative;
}

.about-ceo-info p strong {
  color: var(--primary);
  font-weight: var(--fw-bold);
  font-size: 1.05em;
  text-shadow: 0 0 0.5rem rgba(58, 1, 92, 0.5);
}

.about-ceo-img {
  flex: 0 0 clamp(18rem, 25vw, 22rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-ceo-img::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  bottom: -1rem;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0deg,
    #8b5cf6 120deg,
    var(--primary) 240deg,
    #8b5cf6 360deg
  );
  border-radius: 2rem;
  opacity: 0.7;
  z-index: -1;
  animation: rotateBorder 12s linear infinite;
  -webkit-animation: rotateBorder 12s linear infinite;
}

@keyframes rotateBorder {
  to { 
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes rotateBorder {
  to { 
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

.about-ceo-img::after {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  background: var(--neutral-dark);
  border-radius: 1.75rem;
  z-index: 0;
}

.about-ceo-img img {
  width: 100%;
  height: auto;
  max-width: clamp(16rem, 20vw, 20rem);
  border-radius: 1.5rem;
  box-shadow: 
    0 2rem 4rem rgba(0, 0, 0, 0.8),
    0 0 2rem rgba(58, 1, 92, 0.6),
    inset 0 0 0 0.25rem rgba(139, 92, 246, 0.3);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  filter: contrast(1.1) saturate(1.1);
}

.about-ceo-img:hover img {
  transform: translateY(-0.5rem) scale(1.03);
  box-shadow: 
    0 3rem 6rem rgba(0, 0, 0, 0.9),
    0 0 3rem rgba(58, 1, 92, 0.8),
    inset 0 0 0 0.25rem rgba(139, 92, 246, 0.5);
}

@media (max-width: 1024px) {
  .about-ceo-wrapper {
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .about-ceo-img {
    flex: 0 0 clamp(16rem, 22vw, 18rem);
  }
}

@media (max-width: 820px) {
  .about-ceo-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
    min-height: auto;
  }

  .about-ceo-wrapper {
    flex-direction: column;
    text-align: center;
    gap: clamp(2rem, 5vw, 3rem);
  }

  .about-ceo-info h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-ceo-info p {
    text-align: left;
    max-width: none;
  }

  .about-ceo-img {
    order: -1;
    flex: none;
    align-self: center;
  }

  .about-ceo-img::before {
    animation: rotateBorder 12s linear infinite;
  }
}

@media (max-width: 600px) {
  .about-ceo-section {
    padding: clamp(2rem, 5vw, 4rem) 1rem;
  }

  .about-ceo-wrapper {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .about-ceo-img img {
    max-width: clamp(12rem, 40vw, 16rem);
  }
}

@media (max-width: 400px) {
  .about-ceo-wrapper {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .about-ceo-img img {
    max-width: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-ceo-section::before {
    animation: none;
  }

  .about-ceo-info h1::after {
    animation: none;
    width: clamp(3rem, 8vw, 5rem);
    opacity: 1;
  }
  
  /* Keep the CEO image border animation even with reduced motion preference */
  .about-ceo-img::before {
    animation: rotateBorder 20s linear infinite;
    -webkit-animation: rotateBorder 20s linear infinite;
  }
}
