:root {
    --primary-color: #0078d4;
    --primary-dark: #106ebe;
    --secondary-color: #00ff00;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly buttons */
.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

a {
    -webkit-tap-highlight-color: rgba(0, 120, 212, 0.2);
}

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

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.section-description a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.feature-link:hover {
    text-decoration: underline;
}

.cta-section {
    text-align: center;
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quick-start-content {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.quick-start-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.model-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.model-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.model-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.model-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.model-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.model-link:hover {
    text-decoration: underline;
}

/* Community Section */
.community {
    background: var(--bg-light);
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.community-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.community-icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: #2d2d2d;
    color: #ccc;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Ensure proper contrast for sections with light backgrounds */
.content-section[style*="background"] {
    color: var(--text-primary);
}

.content-section[style*="background"] p,
.content-section[style*="background"] li,
.content-section[style*="background"] ul,
.content-section[style*="background"] ol {
    color: var(--text-primary);
}

/* Force dark text on all content sections regardless of background */
.content-section {
    color: var(--text-primary) !important;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
    color: var(--text-primary) !important;
}

.content-section p {
    color: var(--text-primary) !important;
}

.content-section ul,
.content-section ol {
    color: var(--text-primary) !important;
}

.content-section li {
    color: var(--text-primary) !important;
}

.content-section strong {
    color: var(--text-primary) !important;
}

.content-section td,
.content-section th {
    color: var(--text-primary) !important;
}

.content-section table td,
.content-section table th {
    color: var(--text-primary) !important;
}

.content-section code:not(.code-block code) {
    color: var(--text-primary) !important;
    background: var(--bg-light) !important;
}

/* Make sure list items with strong tags are visible */
.content-section li strong {
    color: var(--text-primary) !important;
}

.content-section p strong {
    color: var(--text-primary) !important;
}

.content-section a {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
    color: var(--primary-dark) !important;
}

/* Ensure links are visible even in sections with backgrounds */
.content-section[style*="background"] a {
    color: var(--primary-color) !important;
}

/* Content sections with light background - ensure dark text */
.content-section[style*="background"] {
    color: var(--text-primary) !important;
}

.content-section[style*="background"] h1,
.content-section[style*="background"] h2,
.content-section[style*="background"] h3,
.content-section[style*="background"] h4,
.content-section[style*="background"] h5,
.content-section[style*="background"] h6,
.content-section[style*="background"] p,
.content-section[style*="background"] ul,
.content-section[style*="background"] ol,
.content-section[style*="background"] li,
.content-section[style*="background"] strong,
.content-section[style*="background"] td,
.content-section[style*="background"] th,
.content-section[style*="background"] code:not(.code-block code) {
    color: var(--text-primary) !important;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

td {
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-light);
}

tr:hover td {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

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

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .content-section h4 {
        font-size: 1.1rem;
    }

    .content-section ul,
    .content-section ol {
        margin-left: 1.5rem;
    }

    .code-block {
        margin: 1rem 0;
        overflow-x: auto;
    }

    .code-block pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .community-links {
        flex-direction: column;
        gap: 1rem;
    }

    .community-link {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-start-links {
        flex-direction: column;
        align-items: center;
    }

    .quick-start-links .btn {
        width: 100%;
        max-width: 300px;
    }

    .container {
        padding: 0 15px;
    }

    .code-block {
        border-radius: 6px;
    }

    .code-block pre {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-card,
    .model-card {
        padding: 1.5rem;
    }

    .footer-content {
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .code-block pre {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }

    .content-section ul,
    .content-section ol {
        margin-left: 1.25rem;
    }

    .container {
        padding: 0 10px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}