/* About Page Styles */
:root {
    --section-spacing: 5rem;
}

/* Story Section */
.our-story {
    background-color: var(--background-light);
    padding: var(--section-spacing) 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.story-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-large {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.logo-large:hover {
    transform: scale(1.05);
}

/* Values Section */
.our-values {
    padding: var(--section-spacing) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.value-card:hover .value-icon {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.value-card:hover .value-icon::before {
    transform: none;
    opacity: 0.8;
}

.value-card:hover .value-icon::after {
    transform: none;
    opacity: 0.8;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section */
.our-team {
    background-color: var(--background-light);
    padding: var(--section-spacing) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.team-member:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
    position: relative;
    padding-top: 120%;
    background: var(--background-color);
    overflow: hidden;
}

.member-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(4, 76, 76, 0.8), rgba(4, 76, 76, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.team-member:hover .member-image::before {
    opacity: 1;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.team-member:hover .social-overlay {
    opacity: 1;
    pointer-events: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .social-links {
    transform: translateY(0);
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.member-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--background-color);
    transition: all 0.4s ease;
}

.team-member:hover .member-info {
    background: linear-gradient(to bottom, var(--background-color), rgba(255, 255, 255, 0.9));
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.team-member:hover .member-info h3 {
    color: var(--primary-color);
}

.position {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--background-teal);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-member:hover .tag {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.bio {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.team-member:hover .bio {
    color: var(--text-color);
}

/* Channel Partners Section */
.channel-partners {
    padding: var(--section-spacing) 0;
}

.partner-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.partner-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
}

.partner-info {
    padding: 2rem;
}

.partner-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.partner-description {
    margin: 1.5rem 0;
}

.partner-description p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-light);
    padding: var(--section-spacing) 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 2rem;
}

.testimonial-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    display: none;
}

.testimonial-card:first-child {
    display: block;
}

.quote-mark {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    color: var(--text-color);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Hero Stats Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    padding: var(--section-spacing) 0;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Improved Media Queries for About Page */
@media screen and (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        order: -1;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .partner-card {
        grid-template-columns: 1fr;
    }
    
    .partner-image {
        height: 300px;
        min-height: auto;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }
    
    .story-content {
        margin-top: 1rem;
    }
    
    .story-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .logo-large {
        max-width: 200px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .quote-mark {
        font-size: 1.8rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
    
    .value-icon::before {
        width: 80px;
        height: 80px;
        top: -40px;
        left: -40px;
    }
    
    .value-icon::after {
        width: 50px;
        height: 50px;
        bottom: -25px;
        right: -25px;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 1.8rem;
    }
    
    .cta-card p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-title {
        font-size: 0.85rem;
    }
    
    .member-image {
        height: 250px;
        padding-top: 2rem;
    }
    
    .member-image img {
        position: relative;
        height: 100%;
        padding: 1rem;
    }
    
    .member-info {
        padding: 1.25rem;
    }
    
    .partner-description p {
        font-size: 0.9rem;
    }
    
    .testimonial-controls {
        gap: 1rem;
    }
    
    .prev-btn, .next-btn {
        width: 36px;
        height: 36px;
    }
    
    .partner-image {
        height: 250px;
    }
    
    .partner-image img {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-large {
        max-width: 160px;
    }
    
    .testimonial-text {
        text-align: left;
    }
    
    .testimonial-controls {
        margin-top: 1.5rem;
    }
    
    .rating {
        font-size: 0.9rem;
    }
    
    .team-member {
        margin-bottom: 1rem;
    }
    
    .partner-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    }
    
    .partner-info {
        padding: 1.5rem;
    }
    
    .cta-buttons .btn-light, 
    .cta-buttons .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
    
    .value-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    }
}

/* Add this to ensure smooth transitions */
@media (prefers-reduced-motion: no-preference) {
    .team-member {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .team-member:hover {
        transform: translateY(-10px) translateZ(0);
    }
} 