/* About Page Styles */

/* Enhanced Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}

.nav-brand i {
    color: #6366f1;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link.active {
    color: #6366f1;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6366f1;
    border-radius: 1px;
}

.nav-link.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link.btn-outline {
    color: #6366f1;
    border-color: #6366f1;
    background: transparent;
}

.nav-link.btn-outline:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link.btn-primary {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.nav-link.btn-primary:hover {
    background: #5b5af1;
    border-color: #5b5af1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #4b5563;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 9999;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        text-align: center;
        width: 100%;
        display: block;
    }
    .nav-link:hover {
        background: #f3f4f6;
    }
    .nav-link.btn {
        margin-top: 0.5rem;
    }
    .nav-brand {
        font-size: 1.3rem;
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* New expanded layout styles */
.mission-content-expanded {
    display: block;
    width: 100%;
}

.mission-text-full-width {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-text-full-width h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.mission-text-full-width > p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-values-horizontal {
    max-width: 1200px;
    margin: 0 auto;
}

.values-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.values-bottom-row {
    display: flex;
    justify-content: center;
}

.values-bottom-row .value-item {
    max-width: 500px;
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.mission-text > p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.mission-values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.value-item p {
    color: #6b7280;
    line-height: 1.6;
    max-width: 400px;
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.stat-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

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

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

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

/* Story Section */
.story-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.story-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.story-text p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-timeline {
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    height: fit-content;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

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

.team-member {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-links a {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-links a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* Technology Section */
.technology-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.technology-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.tech-description {
    text-align: center;
    margin-bottom: 3rem;
}

.tech-description p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.tech-category h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #f0f0ff;
    transform: translateX(5px);
}

.tech-item i {
    font-size: 1.5rem;
    color: #6366f1;
    min-width: 24px;
}

.tech-item span {
    font-weight: 500;
    color: #374151;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: white;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-top-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        max-width: none;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-hero-content p {
        font-size: 1.1rem;
    }
    
    .mission-text h2,
    .story-section h2,
    .team-section h2,
    .technology-section h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline-item {
        gap: 1rem;
    }
    
    .story-timeline::before {
        left: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 100px 0 60px;
    }
    
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .mission-section,
    .story-section,
    .team-section,
    .technology-section {
        padding: 3rem 0;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .timeline-year {
        min-width: 50px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

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

.about-hero-content,
.mission-content,
.story-content,
.team-member,
.tech-category {
    animation: fadeInUp 0.6s ease-out;
}
