body {
    background-color: #0e2447; /* Dark blue from hero */
    color: #e6e6e6; /* Light gray for default text */
    font-family: "Roboto", sans-serif;
    background: linear-gradient(to bottom, #406a76, #0e2447);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
    color: #e6e6e6; /* White for all headings */
}

p,
.content,
div,
span,
.label {
    color: #c0c8d4; /* Lighter, softer gray for readability */
}

a {
    color: #5a9bd5; /* A vibrant blue for links */
}

a:hover {
    color: #8ac0f2; /* Lighter blue on hover */
}

/* Navbar styles */
.navbar {
    background-color: transparent;
}

.navbar-item,
.navbar-link {
    color: #e6e6e6;
}

.navbar-item:hover,
.navbar-link:hover {
    background-color: #2a3f6c;
}

/* Hero is the source of our theme, keep as is */
.hero {
    background-color: transparent; /* Remove override to use main.css */
}

.hero-inner img {
    max-width: 120px !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.catch {
    font-size: 1.2rem; /* Adjusted font size */
    color: #c0c8d4; /* Lighter, softer gray for readability */
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Update section/card backgrounds */
.cta,
.api-usage,
.postgres-connection,
.faq,
.pricing,
.features {
    background-color: transparent; /* Let body background show through */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.feature-card,
.pricing-card,
.faq-item {
    background-color: #1a2b4c; /* Slightly lighter blue for cards */
    border: 1px solid #2a3f6c; /* Consistent border color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-content pre {
    background-color: #1a2b4c;
    border: 1px solid #2a3f6c;
}

.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-button-img {
    height: 40px !important; /* Set a consistent height */
    width: auto; /* Allow width to adjust to maintain aspect ratio */
    transition: transform 0.2s ease-in-out;
}

.store-button-img:hover {
    transform: scale(1.05);
}

.footer {
    background-color: transparent;
    padding: 3rem 1.5rem;
    text-align: center;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer,
.footer small {
    color: #c0c8d4;
}

.footer a {
    color: #8ac0f2;
}

.footer a:hover {
    color: #e6e6e6;
}

/* App Features Section */
.features {
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: #406a76;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #e6e6e6;
}

.feature-card p {
    color: #c0c8d4;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.pricing-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.pricing-card.recommended {
    border-color: #5a9bd5;
    box-shadow: 0 8px 24px rgba(90, 155, 213, 0.25);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: #c0c8d4;
}

.pricing-card ul {
    text-align: left;
    margin: 1.5rem 0;
    flex-grow: 1;
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove default padding */
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem; /* Space for the custom bullet */
    position: relative;
}

.pricing-card ul li::before {
    content: "•";
    color: #5a9bd5;
    font-weight: normal;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.pricing-card .button {
    margin-top: auto;
    background-color: #5a9bd5;
    color: #e6e6e6;
    border: none;
}

.pricing-card.recommended .button {
    background-color: #8ac0f2;
}

/* API and Postgres section styles */
.api-usage,
.postgres-connection {
    text-align: center;
}

.api-usage h2,
.postgres-connection h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.api-usage p,
.postgres-connection p {
    color: #c0c8d4;
}

.api-usage .tabs ul,
.postgres-connection .tabs ul {
    border-bottom: 1px solid #2a3f6c;
}

.api-usage .tabs a,
.postgres-connection .tabs a {
    color: #c0c8d4;
}

.api-usage .tabs li.is-active a,
.postgres-connection .tabs li.is-active a {
    border-bottom-color: #5a9bd5;
    color: #e6e6e6;
}

.tab-content .content {
    display: none;
}

.tab-content .content.is-active {
    display: block;
}

.tab-content pre {
    color: #c0c8d4; /* Softer color for code */
    text-align: left;
}

.code-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FAQ Section Styles */
.faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #d0d8e4; /* Brighter question color */
    margin: 0;
}

.faq-question:hover {
    background-color: #2a3f6c;
}

.faq-toggle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #d0d8e4;
    border-right: 2px solid #d0d8e4;
    transform: rotate(135deg); /* Points down */
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    padding: 0 1.5rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    color: #c0c8d4;
    line-height: 1.6;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item.is-active .faq-question {
    border-radius: 8px 8px 0 0;
}

.faq-item.is-active .faq-toggle {
    transform: rotate(-45deg); /* Points up */
}

.faq-item.is-active .faq-answer {
    max-height: 40rem; /* Generous height for content */
    padding: 1.5rem;
}

section {
    background-color: transparent;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.copyright-notice {
    display: block;
    font-size: 0.9rem;
    color: #a0acbe; /* Slightly dimmer for de-emphasis */
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Form Styles */
.contact-form {
    background-color: #1a2b4c;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.contact-form .input,
.contact-form .textarea {
    background-color: #0e2447;
    border: 1px solid #2a3f6c;
    color: #e6e6e6;
}

.contact-form .input::placeholder,
.contact-form .textarea::placeholder {
    color: #7a8aa0;
}

.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: #5a9bd5;
    box-shadow: 0 0 0 0.125em rgba(90, 155, 213, 0.25);
}

.contact-form .button.is-primary {
    background-color: #5a9bd5;
    border-color: transparent;
    font-weight: 600;
}

.contact-form .button.is-primary:hover {
    background-color: #8ac0f2;
}

/* About Section Styles */
.about-us-section {
    padding: 4rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.about-us-section h1 {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.about-us-section h2 {
    font-size: 2em;
    font-weight: 600;
    color: #e6e6e6;
    margin-top: 50px;
    margin-bottom: 20px;
}

.about-us-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.about-us-section strong {
    color: #8ac0f2; /* Lighter blue for emphasis */
}

/* Guiding Principles Section */
.principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .principles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.principle {
    background-color: #1a2b4c;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #5a9bd5;
}

.principle h3 {
    font-size: 1.25em;
    margin-top: 0;
    color: #e6e6e6;
}

/* Team Section */
.team-section {
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    background-color: #1a2b4c;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 25px;
    width: 250px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #406a76;
}

.team-member .name {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    color: #e6e6e6;
}

.team-member .title {
    color: #5a9bd5;
    font-weight: 600;
}

/* Final CTA */
.final-cta {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    background-color: #5a9bd5;
    color: #e6e6e6;
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #8ac0f2;
    transform: translateY(-2px);
}

header .navbar {
    background-color: transparent;
    border-bottom: none;
}
