/* About Us Page Styles */

/* About Hero Section */
.about-hero {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    background: #3a0ca3; /* Deep purple that matches the gradient */
    display: flex;
    align-items: center;
    width: 100%;
}

.about-hero-content {
    position: relative;
    z-index: 10;
    padding: 120px 0 80px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Our Story Section */
.our-story-section {
    background-color: #fff;
    position: relative;
    padding: 100px 0;
}

.about-image-container {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 10px;
    overflow: hidden;
}

.about-image {
    width: 85%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
    top: 0;
    left: 0;
}

.shape2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(58, 12, 163, 0.2));
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.shape3 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.2), rgba(67, 97, 238, 0.2));
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

.content-card {
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Mission & Vision Section */
.mission-section {
    padding: 80px 0;
}

.mission-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mission-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background-color: #fff;
}

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

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.value-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Approach Section */
.approach-section {
    padding: 100px 0;
}

.approach-steps {
    margin-top: 2rem;
}

.approach-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.approach-image-container {
    position: relative;
    padding: 1.5rem;
    margin-top: 30px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.approach-image {
    width: 90%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.approach-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Partners Section */
.partners-section {
    background-color: var(--light);
    padding: 80px 0;
}

.partners-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.partners-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
}

.partners-graphic {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: white;
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.5);
    animation: partners-pulse 3s infinite, partners-glow 5s infinite alternate;
    transition: all 0.5s ease;
}

.partners-graphic:hover {
    transform: scale(1.1) rotate(10deg);
}

.partners-graphic i {
    animation: partners-shake 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes partners-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes partners-glow {
    0% { box-shadow: 0 10px 25px rgba(76, 201, 240, 0.5); }
    100% { box-shadow: 0 15px 35px rgba(67, 97, 238, 0.7); }
}

@keyframes partners-shake {
    0% { transform: rotate(0); }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(6deg); }
    40% { transform: rotate(-6deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-image-container {
        height: 350px;
    }
}

/* Mobile-specific styles for the text that's getting cut off */
.mobile-visible-text {
    /* Default styles that apply to all screens */
    position: relative;
    z-index: 20;
    hyphens: none; /* avoid mid-word hyphenation */
}

/* Hero container flexbox styles - only apply to mobile */
@media (max-width: 480px) {
    /* Hero section container */
    .about-hero {
        min-height: 35vh;
        height: auto;
        padding: 50px 0 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Hero container and content wrapper */
    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .hero-content-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero content area */
    .about-hero-content {
        padding: 60px 0 30px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Container adjustments */
    .about-hero-content .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Title styling */
    .about-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }
    
    /* Divider styling */
    .about-hero-content .divider {
        width: 50px;
        margin: 0.5rem auto;
        height: 3px;
    }
    
    /* Text styling */
    .mobile-visible-text,
    .about-hero-content .lead {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
        margin: 0.5rem auto !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center;
        /* Break long words if necessary */
        overflow-wrap: break-word !important; /* safer wrapping */
        word-wrap: break-word !important;     /* legacy alias */
        word-break: normal !important;        /* avoid mid-word */
        hyphens: none !important;             /* disable hyphenation */
        /* Ensure text is fully visible */
        position: relative !important;
        z-index: 20 !important;
    }
    
    /* Background image adjustments */
    .hero-bg-img {
        object-fit: cover;
        object-position: center;
    }
}

/* Very small mobile devices - Enhanced responsive layout */
@media (max-width: 360px) {
    /* Further optimize hero section */
    .about-hero {
        padding: 50px 0 30px;
    }
    
    /* Container adjustments */
    .hero-container {
        padding: 0 5px;
    }
    
    /* Content wrapper adjustments */
    .hero-content-wrapper {
        padding: 10px 5px;
    }
    
    /* Title adjustments */
    .about-hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    /* Text adjustments */
    .mobile-visible-text {
        font-size: 0.8rem !important;
        padding: 0 8px !important;
        line-height: 1.2 !important;
        margin: 10px auto 15px !important;
    }
    
    /* Divider adjustments */
    .about-hero-content .divider {
        width: 50px;
        margin: 8px auto;
        height: 3px;
    }
}

@media (max-width: 767px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .approach-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .partners-card {
        padding: 2rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .mission-card {
        margin-bottom: 1.5rem;
    }
    
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Add a subtle background pattern */
.our-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Animation for hover effects */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}
