/* About Us Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-main) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%235271ff" fill-opacity="0.03" d="M45.5,-53.5C56.6,-42.6,61.8,-26.5,66.2,-9.4C70.6,7.7,74.3,25.9,67.3,38.4C60.3,50.9,42.6,57.5,25.6,61.8C8.5,66,-7.8,67.9,-23.8,64C-39.9,60,-55.6,50.3,-64.6,35.8C-73.5,21.3,-75.6,2,-71.5,-14.9C-67.4,-31.9,-57.1,-46.4,-43.6,-56.7C-30.2,-67,-15.1,-73.1,0.9,-74.1C16.9,-75.2,34.4,-64.4,45.5,-53.5Z" transform="translate(100 100)"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    z-index: 0;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 800;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-story {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 700;
}

.story-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.story-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 60px;
}

.visual-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.element-1 {
    top: 20px;
    right: 30px;
    animation-delay: 0s;
}

.element-2 {
    bottom: 30px;
    left: 20px;
    animation-delay: 1s;
}

.element-3 {
    top: 50%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mission-vision {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mv-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 32px;
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 700;
}

.mv-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.values-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.value-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.team-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member:hover::after {
    content: "Visit website";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
}

.team-member .team-social {
    z-index: 2; /* Ensure social links remain clickable */
    position: relative;
}

.team-member .team-social a {
    position: relative;
    z-index: 3;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i {
    font-size: 32px;
    color: var(--primary-color);
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-main);
    font-weight: 700;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.team-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-default);
    font-size: 14px;
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.stats-section {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.about-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.about-stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    width: 45%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

.cta-buttons .btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-hero h1 {
        font-size: 35px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .about-hero {
        padding: 80px 0 60px;
    }
    
    .about-hero h1 {
        font-size: 28px;
    }
    
    .story-visual {
        width: 150px;
        height: 150px;
        font-size: 40px;
    }
    
    .mv-card,
    .value-card,
    .team-member {
        padding: 20px;
    }
    
    .about-stats-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* Dark mode adjustments */
body.dark-mode .mv-card:hover,
body.dark-mode .value-card:hover,
body.dark-mode .team-member:hover,
body.dark-mode .timeline-content:hover {
    border-color: var(--primary-color);
}
