/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E5C8A;
    --primary-dark: #1A3A5C;
    --accent-color: #FFD000;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.tagline {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Featured App Section */
.featured-app {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

/* Featured Products Section */
.featured-products {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.featured-products h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card-featured {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-featured .app-icon {
    display: flex;
    justify-content: center;
}

.product-card-featured h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.product-card-featured .app-subtitle {
    margin: 0;
}

.product-card-featured p {
    margin: 0.5rem 0;
}

.app-icon img {
    width: 200px;
    height: 200px;
    display: block;
}

.app-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.app-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.app-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Open Source Section */
.open-source {
    padding: 4rem 0;
}

.open-source h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* App Detail Page Styles */
.app-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.app-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.app-icon-large img {
    width: 256px;
    height: 256px;
    display: block;
}

.app-hero-text h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.app-status {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.use-cases h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.use-case-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.use-case-list li {
    background: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.use-case-list strong {
    color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    list-style: none;
    counter-reset: step-counter;
    max-width: 700px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 4rem;
    position: relative;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.steps strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.steps p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Support Section */
.support-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
    text-align: center;
}

.support-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.support-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.support-section a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 4rem 0;
}

.privacy-policy h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.privacy-policy h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.privacy-policy h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.privacy-policy p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.privacy-policy ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-light);
}

.privacy-policy li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-policy a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Projects Page Styles */
.projects-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.projects-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projects-list {
    padding: 4rem 0;
}

.project-detail-card {
    background: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.github-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.github-link:hover {
    color: var(--primary-dark);
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-detail-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-detail-card ul {
    padding-left: 1.5rem;
    color: var(--text-light);
}

.project-detail-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.github-cta {
    padding: 4rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.github-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.github-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-icon {
        margin: 0 auto;
    }

    .app-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-icon-large {
        margin: 0 auto;
    }

    .app-icon-large img {
        width: 180px;
        height: 180px;
    }

    .app-hero-text h2 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-meta {
        flex-wrap: wrap;
    }
}
