/* 
* About Us Page Specific Styles
* Features decorative elements and animations for About page sections 
*/

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 120px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Elements for About Page */
.page-banner::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 7%;
    width: 200px;
    height: 200px;
    border-radius: 63% 37% 54% 46% / 55% 52% 48% 45%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: morph-slow 20s ease-in-out infinite alternate;
    z-index: 1;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 10%;
    width: 250px;
    height: 250px;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: morph-slow 15s ease-in-out infinite alternate-reverse;
    z-index: 1;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: white;
    position: relative;
    z-index: 2;
}

.page-banner p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Our Story Section */
.our-story {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.our-story::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
    animation: pulse 12s ease-in-out infinite;
}

.our-story::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 3%;
    width: 150px;
    height: 150px;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite reverse;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.about-content:hover h2::after {
    width: 100px;
}

.about-content p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image svg {
    max-width: 100%;
    filter: drop-shadow(0 10px 15px rgba(59, 130, 246, 0.2));
    transition: all var(--transition-elastic);
}

.about-image:hover svg {
    transform: scale(1.05) rotate(3deg);
}

/* Our Mission */
.our-mission {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-alt);
    position: relative;
    overflow: hidden;
}

.our-mission::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 7%;
    width: 100px;
    height: 100px;
    background-color: rgba(59, 130, 246, 0.05);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    animation: spin 30s linear infinite;
}

.our-mission::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 140px;
    height: 140px;
    border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
    background-color: rgba(59, 130, 246, 0.03);
    animation: morph-slow 18s ease-in-out infinite alternate;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.mission-content h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.mission-content:hover h2::after {
    width: 100px;
}

.mission-content > p {
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-elastic);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--color-primary-lightest);
    transition: all var(--transition-normal);
    z-index: -1;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.value-card:hover::before {
    height: 100%;
}

.value-icon {
    margin: 0 auto var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-normal);
}

.value-icon svg {
    max-width: 100%;
    height: auto;
    transition: all var(--transition-elastic);
    filter: drop-shadow(0 5px 10px rgba(59, 130, 246, 0.2));
}

.value-card:hover .value-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.value-card:hover .value-icon {
    transform: translateY(-5px);
}

.value-card h3 {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    transition: all var(--transition-normal);
}

.value-card h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.value-card:hover h3 {
    color: var(--color-primary);
}

.value-card:hover h3::after {
    width: 100%;
}

.value-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.value-card:hover p {
    color: var(--color-text);
}

/* Our Team */
.our-team {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.our-team::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 7%;
    width: 180px;
    height: 180px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    animation: slow-spin 30s linear infinite;
}

.our-team::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 5%;
    width: 120px;
    height: 120px;
    background-color: rgba(59, 130, 246, 0.03);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float 15s ease-in-out infinite;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
    gap: var(--spacing-xl);
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-elastic);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.member-image {
    height: 400px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-lightest), #DBEAFE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-primary-light);
    transition: all var(--transition-normal);
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-elastic);
    position: relative;
    overflow: hidden;
}

.profile-photo-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
}

.team-member:hover .profile-photo-placeholder::before {
    transform: translateX(100%);
}

.profile-photo-placeholder .initials {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all var(--transition-elastic);
}

.team-member:hover .profile-photo-placeholder {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.team-member:hover .profile-photo-placeholder .initials {
    transform: scale(1.1);
}

.team-photo,
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: all var(--transition-elastic);
}

.team-member:hover .team-photo,
.team-member:hover .profile-photo {
    transform: scale(1.05);
}

.team-member:hover .image-placeholder {
    transform: scale(1.05);
    background: linear-gradient(135deg, #DBEAFE, var(--color-primary-lightest));
}

.member-info {
    padding: var(--spacing-lg);
}

.member-info h3 {
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-normal);
}

.team-member:hover .member-info h3 {
    color: var(--color-primary);
}

.member-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.member-bio {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-alt);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 5%;
    width: 80px;
    height: 80px;
    background-color: rgba(59, 130, 246, 0.05);
    transform: rotate(45deg);
    animation: pulse 10s ease-in-out infinite;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-item {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-elastic);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.stat-item p {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 10%;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    animation: morph-slow 15s ease-in-out infinite;
}

/* Decorative Animation Keyframes */
@keyframes morph-slow {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.container {
    position: relative;
    z-index: 2;
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .page-banner p {
        font-size: 1.1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner::before,
    .page-banner::after,
    .our-story::before,
    .our-story::after,
    .our-mission::before,
    .our-mission::after,
    .our-team::before,
    .our-team::after,
    .stats-section::before,
    .stats-section::after,
    .cta-section::before,
    .cta-section::after {
        display: none;
    }
} 