:root {
    /* Theme Variables - Default (Dark) */
    --bg-color: #000000;
    --bg-light: #0a0a0a;
    --bg-card: #121212;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --nav-bg: rgba(0, 0, 0, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    
    /* Apple-Inspired Premium Palette */
    --blue-primary: #0071e3;
    --blue-light: #409fff;
    --white: #ffffff;
    --black: #000000;
    
    /* Effects */
    --glass: rgba(255, 255, 255, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
}

[data-theme="light"] {
    --bg-color: #f5f5f7;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --nav-bg: rgba(245, 245, 247, 0.8);
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(0, 0, 0, 0.02);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Global Theme Transition */
body, header, footer, section, div, article, h1, h2, h3, h4, p, a, button, input, textarea, .solution-card, .odoo-category-card, .card-feature {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.container {
...
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Typography */
h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
}

@media (min-width: 769px) {
    .header-container .logo {
        position: absolute;
        left: 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.4));
    transition: var(--transition);
}

header .logo-icon {
    width: 106px;
    height: 106px;
}

footer .logo-icon {
    width: 60px;
    height: 60px;
}

.mobile-menu-btn {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    text-decoration: none;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-cta {
    background: var(--blue-primary);
    color: white;
    padding: 0.6rem 1.75rem;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--blue-light);
    transform: scale(1.02);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--glass);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding-top: 18rem;
    padding-bottom: 6rem;
    text-align: center;
}

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

.hero p {
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--blue-primary);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--blue-primary);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    color: var(--blue-light);
}

/* Grid Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.solution-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-primary);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

.learn-more {
    margin-top: auto;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Odoo Section */
.odoo-partner-section {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 6rem 4rem;
    box-shadow: var(--shadow);
}

.odoo-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.odoo-category-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.odoo-category-card:hover {
    background: var(--glass);
    border-color: var(--border);
}

.odoo-category-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.odoo-item-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.odoo-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Trust Bar */
.trust-bar {
    padding: 4rem 0;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 6rem;
    filter: grayscale(1) invert(1);
    opacity: 0.4;
}

[data-theme="light"] .trust-logos {
    filter: grayscale(1);
    opacity: 0.6;
}

/* Footer */
footer {
    background: var(--bg-color);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI Assistant Styles */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.ai-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.ai-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-trigger {
    width: 60px;
    height: 60px;
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ai-trigger:hover {
    background: var(--blue-light);
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.75rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    p { font-size: 1.1rem; }
    section { padding: 5rem 0; }
    .hero { padding-top: 12rem; padding-bottom: 5rem; }
    .hero-subpage { padding-top: 10rem; padding-bottom: 4rem; }
    
    .solutions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-links ul { align-items: center; }
    .trust-logos { gap: 2.5rem; flex-wrap: wrap; }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    .header-main {
        padding: 1.5rem 0;
    }

    header .logo-icon {
        width: 60px;
        height: 60px;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.75rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 1000;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        font-size: 1.1rem;
    }

    .nav-cta {
        width: 100%;
        padding: 1rem;
    }

    /* Top Bar Mobile */
    .top-bar {
        padding: 0.75rem 0;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .top-bar-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Pricing featured card fix */
    .pricing-card.featured {
        transform: scale(1);
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .pricing-card { padding: 2rem 1.5rem; }
    .odoo-partner-section { padding: 3rem 1.5rem; }
}

/* Page Loader */
/* Utility & Migration Classes */
.hero-subpage {
    padding-top: 18rem;
    padding-bottom: 6rem;
}

.section-alt {
    background: var(--bg-light);
}

.card-feature {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.text-gradient {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue-primary);
}

.mockup-container {
    background: var(--black);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="light"] .mockup-container {
    background: #1d1d1f;
    color: #ffffff;
}

.ai-assistant-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Scroll Progress Bar Enhancement */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--blue-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Professional Image Integration */
.card-image-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.hero-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    overflow: hidden;
}

[data-theme="light"] .hero-visual-bg {
    opacity: 0.05;
}

.hero-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) saturate(1.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 70%);
    z-index: -1;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--blue-primary);
    background: var(--bg-light);
    transform: scale(1.05);
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--text-primary);
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    width: 100%;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--blue-primary);
    font-weight: bold;
}

/* Top Utility Bar */
.top-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.top-bar-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--blue-primary);
    transform: translateY(-2px);
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Adjust header padding for top bar */
header {
    padding: 0 !important; /* Remove the 1rem 0 padding I added earlier */
}

.header-main {
    padding: 2rem 0;
}
