/* Base styles */
:root {
    --primary-color: #059669;
    --secondary-color: #047857;
    --accent-color: #10b981;
    --text-color: #2d3748;
    --light-text: #718096;
    --light-bg: #f7fafc;
    --dark-bg: #1a202c;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Header styles */
.site-header {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Hero section */
.hero {
    padding: 100px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

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

/* Feature grid */
.key-features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

/* Challenge section */
.challenge {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.challenge h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

table th {
    background-color: var(--primary-color);
    color: white;
}

table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.quote-block {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.quote-block blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* CTA section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 3rem;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cta-option {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer styles */
.site-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-logo p {
    color: var(--light-text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-link-group h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 10px;
}

.footer-link-group a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-group a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--light-text);
}

/* Code blocks */
pre {
    background-color: var(--dark-bg);
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .main-nav {
        display: none; /* Would need to add a mobile menu toggle */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Additional styles for new components */

/* Page hero (for internal pages) */
.page-hero {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Tabs navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* Technical guide navigation */
.tech-guide-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 90;
}

.tech-nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 15px 0;
}

.tech-nav-links li {
    margin-right: 30px;
    white-space: nowrap;
}

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

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

/* Technical content sections */
.technical-content {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.technical-content:last-child {
    border-bottom: none;
}

.tech-section {
    margin-bottom: 40px;
}

.tech-section:last-child {
    margin-bottom: 0;
}

.tech-section h3 {
    margin-bottom: 1.5rem;
}

.tech-explanation {
    margin-top: 1.5rem;
}

.tech-explanation ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

/* Code tabs */
.code-tabs {
    margin: 2rem 0;
}

.code-tabs .tab-headers {
    display: flex;
    background-color: var(--dark-bg);
    border-radius: 5px 5px 0 0;
}

.code-tabs .tab-btn {
    padding: 10px 20px;
    color: #fff;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.code-tabs .tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.code-tabs .tab-content {
    margin-top: 0;
}

.code-tabs .code-block {
    margin-top: 0;
    border-radius: 0 0 5px 5px;
}

/* Capability items */
.capability-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.capability-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.capability-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.capability-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.capability-content ul {
    padding-left: 20px;
}

.capability-content li {
    margin-bottom: 0.5rem;
}

/* Architecture section */
.architecture {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.architecture-diagram {
    margin: 3rem 0;
    text-align: center;
}

.architecture-explanation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Component grid */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.component-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.component-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.component-card ul {
    padding-left: 20px;
}

.component-card li {
    margin-bottom: 1rem;
}

/* Use case cards */
.use-case-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.use-case-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-desc {
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.use-case-benefits h4,
.use-case-example h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-benefits {
    margin-bottom: 1.5rem;
}

.use-case-benefits ul {
    padding-left: 20px;
}

/* Customer stories */
.customer-stories {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.story-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.story-logo {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
    color: white;
    font-weight: 600;
    border-radius: 4px;
}

.story-card blockquote {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.story-card blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.story-author {
    margin-top: 1.5rem;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0 4rem;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
}

/* Contact form */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 800px;
    margin: 3rem auto 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Contact details */
.contact-details {
    padding: 60px 0;
}

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

.details-card {
    text-align: center;
}

.details-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

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

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

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

/* Enhanced responsiveness */
@media (max-width: 992px) {
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .story-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
    }
    
    .main-nav li:last-child {
        margin-bottom: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .feature-grid, 
    .use-case-cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-nav-links {
        padding-bottom: 5px;
    }
    
    .tech-nav-links li {
        margin-right: 20px;
        margin-bottom: 10px;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
    }
}

/* Hero slider styles */
.hero-content-wrapper {
    position: relative;
    margin-bottom: 2rem;
    min-height: 200px; /* Adjust based on your content */
}

.hero-content {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-content.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.hero-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* Hero interest selector */
.hero-interest-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-interest-selector p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--light-text);
}

.interest-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.interest-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.interest-btn:hover:not(.active) {
    background-color: rgba(49, 130, 206, 0.1);
}

/* Hero content styles */
.hero-content-wrapper {
    margin-bottom: 2rem;
    min-height: 200px; /* Adjust based on your content */
}

.hero-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-content.active {
    display: block;
    opacity: 1;
}

/* Updated logo styles - proper side by side alignment */
.logo a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and text */
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0; /* Prevents logo from shrinking */
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap; /* Prevents text wrapping */
}

.logo span {
    color: var(--primary-color);
}

/* Responsive logo adjustments */
@media (max-width: 992px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 26px;
    }
    
    .logo a {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo a {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo a {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo a {
        gap: 6px;
    }
}