/* About Section Styles */
.about {
    padding: 20px 0 60px;
    position: relative;
}

/* About content wrappers */
.about-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
    padding-left: 8%;
    padding-right: 8%;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.section-title-about {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.section-title-about h2 {
    font-size: clamp(45px, 2.5vw + 1px, 70px);
    font-weight:500;
    color:rgb(56, 56, 56);
    text-align: center;
    letter-spacing: -0.8px;
}

#about-sec-head {
    padding-bottom: 80px;
}

.intro-content {
    flex: 0 1 60%;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    max-width: clamp(300px, 40vw + 100px, 1000px);
}

.intro-content h3 {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    line-height: 45px;
    margin-bottom: 24px;
    color: #000000;
}

.intro-content p {
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    line-height: 25px;
    color: #000000;
}

.intro-image {
    flex: 0 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    padding: 0px;
    height: auto;
    border-radius: 50%;
}

/* Middle section */
.about-expertise {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
    flex-direction: row-reverse;
    padding-left: 8%;
    padding-right: 8%;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.expertise-content {
    flex: 0 1 60%;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    max-width: clamp(300px, 40vw + 100px, 1000px);
}

.expertise-content h3 {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    line-height: 45px;
    margin-bottom: 24px;
    color: #000000;
}

.expertise-content p {
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    line-height: 25px;
    color: #000000;
}

.expertise-image {
    flex: 0 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expertise-image img {
    max-width: 100%;
    height: auto;
}

/* Core values section - styled like solutions */
.values-section {
    padding: 60px 0 100px;
    padding-bottom: 50px;
}

.values-title {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

.values-title h3 {
    font-size: clamp(45px, 2.5vw + 1px, 70px);
    font-weight:400;
    color:rgb(59, 59, 59);
    text-align: center;
    letter-spacing: -0.8px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 2rem;
}

.value-card {
    background-color: rgb(0, 0, 0);
    border-radius: 30px;
    padding: 25px 25px;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.value-card:nth-child(1) {
    background-color: #000000; /* agentic-card color */
}

.value-card:nth-child(2) {
    background-color: #000000; /* behavioral-card color */
}

.value-card:nth-child(3) {
    background-color: #000000; /* personas-card color */
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    margin-bottom: 30px;
    min-height: 230px;
    width: 100%; /* expands to parent width */
    max-width: 100%; /* prevent overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
}

#val-icon-1 {
    background-color: #daf28c; /* agentic-card color */
}

#val-icon-2 {
    background-color: #d8aaf3; /* behavioral-card color */
}

#val-icon-3 {
    background-color: #80d4ee; /* personas-card color */
}
  
.value-icon img {
    width: 100%;           /* makes it grow with the container */
    height: auto;          /* keeps aspect ratio */
    object-fit: cover;     /* optional: makes it fill the container nicely */
    max-width: 100%;
}

.value-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.value-title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.value-description {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Improved Responsive styles */
@media (max-width: 1400px) {
    .intro-content h3 {
        font-size: 30px;
        font-weight: 500;
        text-align: center;
        line-height: 40px;
        margin-bottom: 24px;
        color: #000000;
    }
    
    .intro-content p {
        font-size: 18px;
        font-weight: 300;
        text-align: center;
        line-height: 25px;
        color: #000000;
    }

    .expertise-content h3 {
        font-size: 30px;
        font-weight: 500;
        text-align: center;
        line-height: 40px;
        margin-bottom: 24px;
        color: #000000;
    }
    
    .expertise-content p {
        font-size:18px;
        font-weight: 300;
        text-align: center;
        line-height: 25px;
        color: #000000;
    }
    
}

@media (max-width: 1200px) {
    .intro-content h3 {
        font-size: 25px;
        font-weight: 600;
        text-align: center;
        line-height: 32px;
        margin-bottom: 20px;
        color: #000000;
    }
    
    .intro-content p {
        font-size: 16px;
        font-weight: 300;
        text-align: center;
        line-height: 22px;
        color: #000000;
    }

    .expertise-content h3 {
        font-size: 25px;
        font-weight: 600;
        text-align: center;
        line-height: 32px;
        margin-bottom: 20px;
        color: #000000;
    }
    
    .expertise-content p {
        font-size:16px;
        font-weight: 300;
        text-align: center;
        line-height: 22px;
        color: #000000;
    }
    
    .values-grid {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .about-intro {
        display: flex;
        flex-direction: column-reverse;
    }

    .intro-content {
        max-width: 700px;
    }

    .intro-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60%;
    }
    
    .intro-image img {
        width: 100%;
    }

    .intro-content h3 {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        line-height: 30px;
        margin-bottom: 20px;
        color: #6a1f1f;

    }
    
    .intro-content p {
        font-size: 18px;
        font-weight: 300;
        text-align: center;
        line-height: 22px;
        color: #000000;
    }

    .expertise-content {
        max-width: 700px;
    }

    .about-expertise {
        display: flex;
        flex-direction: column-reverse;
    }

    .expertise-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60%;
    }
    
    .expertise-image img {
        width: 100%;
    }


    .expertise-content h3 {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        line-height: 30px;
        margin-bottom: 20px;
        color: #6a1f1f;
    }
    
    .expertise-content p {
        font-size: 18px;
        font-weight: 300;
        text-align: center;
        line-height: 22px;
        color: #000000;
    }
    
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 3rem;
    }
    
    .values-title {
        margin-bottom: 40px;
    }
    
    .values-title h3 {
        font-size: 30px;
    }
    
    .value-icon {
        min-height: 200px;
    }
}

@media (max-width: 768px) {

    .intro-content h3 {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        line-height: 32px;
        margin-bottom: 20px;
        color: #000000;

    }
    
    .intro-content p {
        font-size: 16px;
        font-weight: 300;
        text-align: center;
        line-height: 24px;
        color: #000000;
    }

    .expertise-content h3 {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        line-height: 32px;
        margin-bottom: 20px;
        color: #000000;
    }
    
    .expertise-content p {
        font-size:16px;
        font-weight: 300;
        text-align: center;
        line-height: 24px;
        color: #000000;
    }
    
    .values-section {
        padding: 40px 0 60px;
    }
    
    .values-title h3 {
        font-size: 26px;
    }
    
    .values-grid {
        padding: 0 5%;
    }
    
    .value-icon {
        min-height: 180px;
        margin-bottom: 20px;
    }
    
    .value-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .value-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 6%;
    }
    
    .value-card {
        padding: 20px;
    }
    
    .value-icon {
        min-height: 160px;
        margin-bottom: 15px;
    }
    
    .value-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .value-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    
    .values-title h3 {
        font-size: 26px;
    }
    
    .values-grid {
        gap: 15px;
    }
}

@media (max-width: 375px) {
    
    #about-sec-head {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .intro-image,
    .expertise-image {
    width: 300px;
    }

    .intro-content p {
        font-size: 18px;
    }

    .expertise-content p {
        font-size: 18px;
    }
}

/* Enhanced animation effects for About section images */

/* Base styles for image containers */
.intro-image,
.expertise-image {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: visible;
  z-index: 10;
}

/* Wrapper without transform animation; JS handles all motion */
.intro-image .float-wrapper,
.expertise-image .float-wrapper {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .intro-image .float-wrapper,
  .expertise-image .float-wrapper {
    animation: none !important;
  }
}

/* Image default styles */
.intro-image img,
.expertise-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  transform-origin: center center;
  z-index: 10;
}

/* Shadow pulsing removed to prevent conflict with JS-controlled shadow */
@keyframes shadow-pulse {
  0% {
    box-shadow: none;
  }
  50% {
    box-shadow: none;
  }
  100% {
    box-shadow: none;
  }
}

/* Soft shadow gradient beneath image */
.intro-image::after,
.expertise-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 90%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 70%) 0%, rgba(0, 0, 0, 0) 50%);
  z-index: 1;
  opacity: 0.7;
  filter: blur(5px);
  transition: all 0.4s ease;
}

.intro-image:hover::after,
.expertise-image:hover::after {
  opacity: 0.9;
  filter: blur(10px);
  width: 100%;
  height: 25px;
  transform: translateX(-50%) translateY(25px);
}