/*
 * About Us Page Stylesheet (World-Class Final Version)
 * Filename: about.css
*/

/* General page styling */
body {
    background-color: #fdfdff;
}

.eyebrow-text {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(45deg, var(--secondary), #ffab00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 1. About Hero Section (Completely Redesigned) */
.about-hero-section {
    padding: 160px 0 100px;
}

.about-hero-content h1 {
    color: var(--primary);
    font-weight: 800;
}

.stats-container {
    display: flex;
    gap: 2rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item p {
    margin: 0;
    font-weight: 500;
}

/* The Multi-Layered Image Composition */
.image-composition {
    position: relative;
    min-height: 500px;
    transition: transform 0.4s ease;
}

.image-composition-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 90%;
    border-radius: 1rem;
    z-index: 1;
}

.image-composition .image-1 {
    position: absolute;
    top: 50px;
    left: 40px;
    width: 70%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(10, 31, 68, 0.3);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-composition .image-2 {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 60%;
    border-radius: 1rem;
    border: 6px;
    box-shadow: 0 25px 50px -12px rgba(10, 31, 68, 0.3);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effect for the entire composition */
.image-composition:hover .image-1 {
    transform: translate(-10px, -10px) scale(1.02);
}

.image-composition:hover .image-2 {
    transform: translate(10px, 10px) scale(1.02);
}

/* 2. Mission & Vision Section (Unchanged, already strong) */
.mission-vision-section {
    padding: 70px 0;
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.9);
}

.mv-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.mv-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.mission-vision-section h2 {
    color: #fff;
}

.mission-vision-section p {
    color: rgba(255, 255, 255, 0.7);
}

/* 3. Core Values Section - Premium Redesign */
.values-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.values-section .section-title {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Flowing Grid Layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Connecting Lines Background */
.values-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--secondary) 0%,
            #4a90e2 50%,
            var(--secondary) 100%);
    z-index: 0;
    opacity: 0.2;
}

.value-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1.5rem;
    background: #fff;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    border: 2px solid transparent;
}

.value-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(10, 31, 68, 0.15);
    border-color: var(--secondary);
}

.value-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--secondary), #4a90e2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-item:hover::before {
    opacity: 1;
}

.icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #4a90e2);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.value-item:hover .icon-wrapper {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #ffab00);
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: #fff;
}

.value-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.value-item:hover .value-title {
    color: #4a90e2;
}

.value-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Decorative Elements */
.value-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-item:hover::after {
    opacity: 1;
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.value-item:nth-child(1) {
    animation-delay: 0.1s;
}

.value-item:nth-child(2) {
    animation-delay: 0.2s;
}

.value-item:nth-child(3) {
    animation-delay: 0.3s;
}

.value-item:nth-child(4) {
    animation-delay: 0.4s;
}

.value-item:nth-child(5) {
    animation-delay: 0.5s;
}

.value-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .about-hero-section {
        text-align: center;
    }

    .stats-container {
        justify-content: center;
    }

    .image-composition {
        margin-top: 4rem;
        min-height: 400px;
    }

    .image-composition .image-1 {
        top: 20px;
        left: 10px;
    }

    .image-composition .image-2 {
        bottom: -20px;
        right: 10px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }

    .values-grid::before {
        display: none;
    }

    .values-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-section .section-title {
        font-size: 1.75rem;
    }

    .value-item {
        padding: 2rem 1.5rem;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .icon-wrapper i {
        font-size: 2rem;
    }

    .value-title {
        font-size: 1.25rem;
    }
}