/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-links a:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Legacy Navigation Support */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header nav ul li {
    position: relative;
}

header nav a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
}

header nav a:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

header nav a.active {
    color: white;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: inline-block;
}

.hero .btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section:last-child {
    padding-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #5856d6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 1rem;
    color: #86868b;
    line-height: 1.5;
    margin: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007aff, #34c759);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #007aff;
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.timeline-content p {
    color: #86868b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Content Grid and Cards */
.content-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 20px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #34c759, #ff9500);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.service-card p {
    color: #86868b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #515154;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: 600;
}

.service-features li:last-child {
    border-bottom: none;
}

/* AI Features */
.ai-features {
    margin-top: 40px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 60px 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ai-feature.reverse {
    flex-direction: row-reverse;
}

.ai-feature-content {
    flex: 1;
}

.ai-feature-content h3 {
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.ai-feature-content p {
    color: #86868b;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.ai-feature-visual {
    font-size: 80px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Value Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
}

.value-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007aff, #34c759);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    line-height: 60px;
    margin-bottom: 20px;
}

.value-item h3 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.value-item p {
    color: #86868b;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Whitepaper Styles */
.whitepaper-intro {
    margin-bottom: 60px;
}

.intro-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.lead-text {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

.key-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.arch-layer {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arch-layer:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.layer-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.layer-badge {
    background: #007AFF;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tech-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: background-color 0.3s ease;
}

.tech-item:hover {
    background: #e3f2fd;
    color: #007AFF;
}

/* Tech Showcase */
.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tech-feature {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.tech-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    text-align: center;
}

.tech-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-tag {
    background: #f0f8ff;
    color: #007AFF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

/* Roadmap */
.roadmap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, #007AFF, #34C759);
    z-index: 1;
}

.roadmap-phase {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.phase-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007AFF, #34C759);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.phase-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phase-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.phase-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.phase-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.phase-timeline {
    background: #f0f8ff;
    color: #007AFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #e3f2fd;
}

/* Download CTA */
.download-cta {
    background: linear-gradient(135deg, #007AFF, #34C759);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.download-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.download-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #007AFF;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    /* Mobile Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 1rem;
        text-align: center;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    
    /* Legacy Navigation Mobile */
    header {
        padding: 1rem;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav ul li {
        display: block;
        margin: 0;
    }
    
    header nav a {
        padding: 1rem;
        text-align: center;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    
    /* Timeline Responsive */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .ai-feature {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }
    
    .ai-feature-visual {
        font-size: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .key-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-showcase {
        grid-template-columns: 1fr;
    }
    
    .roadmap::before {
        left: 20px;
    }
    
    .phase-marker {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .roadmap-phase {
        gap: 20px;
    }
    
    .layer-content {
         grid-template-columns: 1fr;
     }
 }

/* Open Source Styles */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.vision-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.vision-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.vision-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.vision-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Projects Showcase */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card.featured {
    border: 2px solid #007AFF;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 32px;
}

.project-meta h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 5px 0;
}

.project-status {
    background: #34C759;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.project-card.featured .project-status {
    background: #007AFF;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: #f0f8ff;
    color: #007AFF;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.community-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.community-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.community-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.community-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.community-stat {
    background: #f0f8ff;
    color: #007AFF;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
    text-align: center;
}

/* Contribution Flow */
.contribution-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.flow-step {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007AFF, #34C759);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Open Source CTA */
.opensource-cta {
    background: linear-gradient(135deg, #007AFF, #34C759);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.opensource-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.opensource-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.cta-button.primary {
    background: white;
    color: #007AFF;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #007AFF;
    transform: translateY(-2px);
}

/* Responsive Design for Open Source */
@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .community-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contribution-flow {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .project-stats {
         flex-direction: column;
         gap: 10px;
     }
 }

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.contact-detail {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Contact Form Styles */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    margin-bottom: 60px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #007AFF, #34C759);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Office Hours Styles */
.office-hours {
    text-align: center;
    margin-bottom: 60px;
}

.office-hours h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.hours-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hours-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hours-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.day {
    font-weight: 600;
    color: #333;
}

.time {
    font-weight: 500;
    color: #007AFF;
}

.availability {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f0f0;
    color: #666;
}

.availability.active {
    background: #34C759;
    color: white;
}

/* Map Section Styles */
.map-section {
    margin-bottom: 60px;
}

.map-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.map-placeholder {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8fbff, #f0f8ff);
    border-radius: 16px;
    border: 2px dashed #007AFF;
}

.map-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.map-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.map-placeholder p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.map-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-btn {
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: #007AFF;
    color: white;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.map-btn.secondary {
    background: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.map-btn.secondary:hover {
    background: #007AFF;
    color: white;
}

.location-info h4 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 25px;
}

.transport-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transport-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.transport-item:hover {
    background: #f0f8ff;
}

.transport-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.transport-details strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.transport-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contact Page Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .time-slot {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Footer */
footer {
    background: #1d1d1f;
    color: #f5f5f7;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Content adjustments for other pages */
main.content {
    padding: 40px;
    max-width: 960px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content h1, .content h2, .content h3 {
    color: #0056b3;
}

.content h1 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content p {
    text-align: left;
}

/* Contact Form */
.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form button {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #0056b3;
}