@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* = Base layout scoped to section = */
.animated-testimonial-section {
    position: relative;
    background: #ffffff;
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* = Outer visible glassmorphic wrapper = */
.testimonial-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Light theme shadow */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.35s ease;

    /* Prevent glow from being clipped */
    overflow: visible;
    max-width: 1240px;
    width: 100%;
}

/* Subtle blue glow on hover */
.testimonial-wrapper:hover {
    box-shadow:
        0 15px 50px rgba(0, 178, 255, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
}

.testimonial-heading-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-heading-wrapper h6 {
    color: #3c2fc0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.testimonial-heading-wrapper h2 {
    color: #1a202c;
    font-size: 2.813rem;
    line-height: 3.125rem;
    letter-spacing: -1px;
    margin: 0;
}

/* = Main container = */
.testimonial-container {
    width: 100%;
    padding: 1.125rem;
}

/* = Grid layout = */
.testimonial-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
    }
}

/* = Image styles = */
.image-container {
    position: relative;
    width: 100%;
    height: 24rem;
    perspective: 1000px;
}

.testimonial-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* = Glassmorphic testimonial content = */
.testimonial-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: box-shadow 0.3s ease;

    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.05);
}

/* = Text styles = */
.testimonial-content .name {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.testimonial-content .designation {
    font-size: 0.9rem;
    color: #3c2fc0;
    margin-bottom: 1.5rem;
}

.testimonial-content .quote {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* = Arrow buttons = */
.arrow-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.arrow-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background: rgba(0, 178, 255, 0.15);
    border: 1.5px solid rgba(0, 178, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 5px 15px rgba(0, 178, 255, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.arrow-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #3c2fc0;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.arrow-button:hover {
  background: rgba(0,178,255,0.2);
  transform: scale(1.15);
  box-shadow:
    0 8px 24px rgba(0,178,255,0.4),
    inset 0 0 20px rgba(255,255,255,0.6);
}

.arrow-button:hover svg {
  fill: #1a202c;
}

.prev-button:hover svg {
    transform: rotate(-15deg);
}

.next-button:hover svg {
    transform: rotate(15deg);
}

@media only screen and (max-width: 460px) {
    .testimonial-heading-wrapper h2 {
        font-size: 1.813rem;
        line-height: 2.125rem;
    }

    .testimonial-wrapper {
        padding: 20px;
    }
}

/* ====================== Company Details =============================== */

.company-details--row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}
.company-details--row .company-box {
    width: 33.33%;
    padding: 0px 20px;
}
.company-details--row .company-box:nth-child(2) {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.company-box-inner {
    text-align: center;
}
.company-box-top img {
    max-width: 130px;
    margin: 0px auto;
}
.company-box-bottom {
    margin-top: 10px;
}
.company-box-bottom span {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-transform: capitalize;
}
.company-box-bottom span strong {
    font-weight: 700;
    color: #3c2fc0;
}

@media only screen and (max-width: 768px) {
    .company-details--row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 5px !important;
        padding-top: 20px !important;
        margin-top: 30px !important;
    }
    .company-details--row .company-box {
        width: 33.33% !important;
        flex: 1 1 33.33% !important;
        padding: 0 4px !important;
    }
    .company-details--row .company-box:nth-child(2) {
        border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    .company-box-top img {
        max-width: 85px !important;
        max-height: 28px !important;
        height: auto !important;
    }
    .company-box-bottom {
        margin-top: 4px !important;
    }
    .company-box-bottom span {
        font-size: 10px !important;
        line-height: 1.2 !important;
        display: block !important;
    }
}