/* 
    Matra Sparsh - Modern About Page Design Enhancements 
    Primary Orange: #f47c20
*/

:root {
    --ms-orange: #f47c20;
    --ms-orange-light: #fff5ed;
    --ms-grey-light: #f8f9fa;
    --ms-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --ms-shadow-hover: 0 20px 40px rgba(244, 124, 32, 0.15);
    --ms-radius: 20px;
}

/* --- KEYFRAMES --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatSlow {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(244, 124, 32, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(244, 124, 32, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(244, 124, 32, 0.2);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* --- GLOBAL ANIMATION CLASSES --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- BACKGROUND ELEMENTS --- */
.ms-bg-shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.blob-1 {
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--ms-orange) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: floatSlow 15s infinite ease-in-out;
}

.blob-2 {
    bottom: 5%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #e67e22 0%, transparent 70%);
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    animation: floatSlow 20s infinite reverse ease-in-out;
}

/* --- DIVIDERS --- */
.section-divider {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
    /* Prevents tiny pixel gaps */
    position: relative;
    z-index: 5;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    /* Limits height of the wave */
}


/* --- IMPROVED SECTIONS --- */

/* About Intro */
.matra-about-section {
    padding: 80px 0 0px 0;
    /* Reduced top, zero bottom padding as divider follows */
    position: relative;
    background: #fff;
}


.matra-about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.matra-about-image-wrapper {
    flex: 1;
    position: relative;
    padding-bottom: 50px;
}

.matra-about-content {
    flex: 1.2;
}

.matra-main-img {
    width: 100%;
    border-radius: var(--ms-radius);
    transition: all 0.5s ease;
    box-shadow: var(--ms-shadow);
    position: relative;
    z-index: 1;
}

.matra-about-image-wrapper:hover .matra-main-img {
    transform: scale(1.03);
    box-shadow: var(--ms-shadow-hover);
}

.matra-overlap-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    z-index: 2;
    animation: float 6s infinite ease-in-out;
    border: 8px solid #fff;
    border-radius: 15px;
    box-shadow: var(--ms-shadow);
}

.matra-about-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ms-orange);
    position: relative;
    display: block;
    margin-bottom: 40px;
    font-family: 'Urbanist', sans-serif;
}

.matra-about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--ms-orange);
    border-radius: 10px;
}

.matra-about-desc p {
    font-size: 18px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 30px;
}

.matra-action-area {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

/* Button & Micro-Interactions */
.matra-contact-btn {
    background: var(--ms-orange);
    color: #fff;
    padding: 16px 35px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(244, 124, 32, 0.2);
}

.matra-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(244, 124, 32, 0.4);
    color: #fff;
}

.matra-call-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.matra-call-icon {
    width: 50px;
    height: 50px;
    background: #ffa45e;
    /* Lighter shade for icon bg as in screenshot */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.4s ease;
}

.matra-call-info {
    display: flex;
    flex-direction: column;
}

.matra-call-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 0;
}

.matra-call-number {
    font-size: 19px;
    font-weight: 800;
    color: var(--ms-orange);
    text-decoration: none;
    line-height: 1.2;
}

.matra-call-box:hover .matra-call-icon {
    transform: scale(1.1);
    background: var(--ms-orange);
}


/* Legacy Section */
.mother-legacy-section {
    padding: 20px 0 0px 0;
    /* Tightened top padding, zero bottom as divider follow */
    background: var(--ms-orange-light);
    position: relative;
}


.mother-legacy-container {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--ms-shadow);
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.mother-legacy-slider-wrapper {
    flex: 1;
    position: relative;
    /* Prevents slider from breaking flex */
    min-width: 0;
    max-width: 100%;
}

/* --- SLIDER ARROWS --- */
.ms-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--ms-orange);
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.ms-slider-arrow:hover {
    background: var(--ms-orange);
    color: #fff;
    box-shadow: 0 5px 15px rgba(244, 124, 32, 0.4);
}

.ms-prev {
    left: 15px;
}

.ms-next {
    right: 15px;
}

.mother-legacy-content {
    flex: 1.2;
}

.legacy-slider-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Vision & Mission Cards */
.vmission-section {
    padding: 40px 0 100px 0;
    /* Reduced top gap after divider */
    background: #fff;
    position: relative;
}


.vn-card {
    background: #fff;
    border-radius: var(--ms-radius);
    padding: 40px;
    box-shadow: var(--ms-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(244, 124, 32, 0.05);
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.vn-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--ms-shadow-hover);
    border-color: rgba(244, 124, 32, 0.2);
}

.vn-card.reverse {
    flex-direction: row-reverse;
}

.vn-img-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
}

.vn-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}


.vn-card:hover .vn-img-wrapper img {
    transform: scale(1.1);
}

.vn-text-side {
    flex: 1.2;
}

/* RESPONSIVE FIXES */
@media (max-width: 991px) {

    .vn-card,
    .vn-card.reverse,
    .mother-legacy-container {
        flex-direction: column;
        padding: 30px;
    }

    .vn-img-wrapper {
        width: 100%;
        max-height: 300px;
    }
}