body {
    background-color: #0b0c0a;
    color: rgb(240, 235, 225);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: left;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center elements by default (for homepage) */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Special alignment for content pages (privacy policy, terms) */
.container .content {
    text-align: left;
    width: 100%;
    max-width: 800px;
    align-self: flex-start;
}

header {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    align-self: flex-start; /* Keep header left-aligned on all pages */
}

.header-link-container {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.header-link-container .logo {
    margin-right: 0.5rem;
}

.header-title-text {
    font-size: 2rem;
    font-weight: 500;
}

.logo-link {
    margin-right: 1.5rem;
}

.logo {
    width: 44px; /* Smaller logo size for content pages */
    height: auto;
}

.home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.home-header .logo {
    width: 100px; /* Larger logo size for homepage */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px; /* Increased space before image */
    color: rgba(240, 235, 225, 0.8); /* Slightly faded */
}

.apple-badge-container {
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

.apple-badge-container:hover {
    opacity: 0.8;
}

.apple-badge {
    height: 40px;
    width: auto;
}

.main-image-container {
    width: 100%;
    max-width: 500px; /* Reduced size */
    margin: 0 auto 50px auto; /* Center and maintain bottom margin */
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: slightly rounded corners */
     /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); Subtle shadow */
    animation: bounce 4s ease-in-out infinite; /* Add bounce animation */
}

/* Define the bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px); /* Adjust bounce height */
    }
}

.provider-section {
    width: 100%;
    margin-top: 20px; /* Space above the provider section */
    text-align: center; /* Center the "Chat with" heading */
}

.provider-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px; /* Space below the "Connect with" title */
    color: rgba(240, 235, 225, 0.9);
}

.provider-logos {
    /* display: flex; */ /* No longer needed for flex */
    /* flex-direction: column; */ /* No longer needed */
    /* align-items: center; */ /* No longer needed */
    width: 100%;
    /* gap: 40px; */ /* Gap now handled within the track */
    /* flex-wrap: wrap; No longer needed */
}

/* Remove .api-providers and .local-providers specific styles */
/*
.api-providers,
.local-providers {
     flex: 1; 
     min-width: 250px; 
}

.api-providers h3,
.local-providers h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px; 
    color: rgba(240, 235, 225, 0.85);
}
*/

.logos-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Optional: Add a mask effect */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

.logos-track {
    display: flex;
    gap: 40px; /* Space between logos */
    width: fit-content; /* Adjust width based on content */
    animation: scroll 50s linear infinite; /* Increased duration */
}

.logos-carousel-container:hover .logos-track {
    animation-play-state: paused; /* Pause animation on hover */
}

/* Define the scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scroll by the width of the first set of logos + gaps */
        /* This needs adjustment based on number of logos & gaps */
        /* Calculation: (num_logos * (logo_width + gap)) */
        /* E.g. API (5 logos): approx transform: translateX(calc(-5 * (40px + 40px))); */
        /* E.g. Local (7 logos): approx transform: translateX(calc(-7 * (40px + 40px))); */
        /* Using percentage for smoother looping with duplicated content */
        transform: translateX(-50%);
    }
}

.logos-track img { /* Applied to images within the track */
    height: 40px; /* Adjust logo size */
    width: auto;
    opacity: 0.6; /* Slightly more faded */
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logos-track img:hover {
    opacity: 1;
    filter: grayscale(0%); /* Remove grayscale on hover */
}

/* Fix for mobile screens */
@media (max-width: 768px) {
    .container {
        padding: 20px 20px; /* Increase padding on smaller screens */
    }
    
    h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .provider-logos {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .logos-carousel-container {
        width: 100%; /* Ensure full width */
        padding: 0; /* Remove any padding */
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    }

    .logos-track img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px; /* Increase padding on smaller screens */
    }
    
    .logo {
        width: 40px; /* Smaller logo for content pages on mobile */
    }

    .home-header .logo {
        width: 80px; /* Smaller homepage logo on mobile */
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .main-image-container {
        margin-bottom: 40px;
        width: 90%; /* Slightly smaller on very small screens */
    }

    .logos-track img {
        height: 30px;
        gap: 10px;
    }
    
    .provider-section h2 {
        font-size: 1.3rem;
    }
}

.copyright {
    margin-top: 40px;
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 300;
    width: 100%;
    text-align: center; /* Center the copyright text */
} 

/* Link styling */
.copyright a {
    color: rgb(240, 235, 225);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.copyright a:hover {
    opacity: 0.8;
}

/* Privacy Policy Page Styling */
.content {
    margin: 0; /* Add margin */
}

.content h2 {
    margin-top: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
}

.content h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content a {
    color: rgb(240, 235, 225);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.content a:hover {
    opacity: 0.8;
}

.last-updated {
    font-size: 0.9rem;
    color: rgba(240, 235, 225, 0.7);
    margin-bottom: 2rem;
}

.content section {
    margin-bottom: 2rem;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.content th, .content td {
    border: 1px solid rgba(240, 235, 225, 0.3);
    padding: 0.75rem;
    text-align: left;
}

.content th {
    background-color: rgba(240, 235, 225, 0.1);
}

@media (max-width: 768px) {
    .content table {
        font-size: 0.9rem;
    }
    
    .content th, .content td {
        padding: 0.5rem;
    }
}

/* Blog Page Styling */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1rem;
}

.article-list li {
    margin-bottom: 20px;
}

.article-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.article-list a:hover {
    background-color: #333;
}

.blog-header-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px;
    border-radius: 10px;
}

.article-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-list h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.article-list p {
    font-size: 1rem;
    margin: 0;
    color: rgba(240, 235, 225, 0.8);
    line-height: 1.5;
}

/* Changelog Page Styling */
.release {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.release h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.release .release-date {
    font-size: 1rem;
    color: rgba(240, 235, 225, 0.6);
    margin-bottom: 1rem;
}

.release h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.release ul {
    list-style-position: outside;
    padding-left: 20px;
    margin: 0;
}

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