/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --primary-color: rgb(0, 123, 255);
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, hsl(211, 100%, 50%) 0%, #0056b3 100%);
}

[data-theme="dark"] {
    /* Dark theme colors */
    --primary-color: rgb(0, 123, 255);
    --secondary-color: #adb5bd;
    --accent-color: #51cf66;
    --background-color: #1a1a1a;
    --surface-color: #2d2d2d;
    --text-color: #ffffff;
    --text-light: #adb5bd;
    --border-color: #404040;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, hsl(211, 100%, 50%) 0%, #0056b3 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
}

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

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

.nav-link:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 180px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: nowwrap;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Trusted Companies */
.trusted-companies {
    padding: 60px 0;
    background-color: var(--surface-color);
    text-align: center;
}

.trusted-companies h3 {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.companies-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100px;
    align-items: center;
    display: flex;
}

.company-logos {
    display: flex;
    gap: 1rem;
    animation: slide 25s linear infinite;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.company-logo img {
    height: 60px;
    width: auto;
    margin: 0 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    object-fit: contain;
    flex-shrink: 0; /* Prevents shrinking */
}

.company-logo:hover img {
    opacity: 1;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Changed from -100% to -50% */
}

/* Sections */
.modules, .features, .pricing, .faq, .contact {
    padding: 80px 0;
}

.modules {
    background-color: var(--background-color);
}

.features {
    background-color: var(--surface-color);
}

.pricing {
    background-color: var(--background-color);
}

.faq {
    background-color: var(--surface-color);
}

.contact {
    background-color: var(--background-color);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.module-card, .feature-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.features .feature-card {
    background-color: var(--surface-color);
}

.modules .module-card {
    background-color: var(--surface-color);
}

.module-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

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

.module-card p, .feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Pricing */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.price {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: left;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background-color);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--border-color);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Contact */
.contact {
    text-align: center;
}

.contact-cta {
    margin: 2rem 0;
}

.contact-info {
    margin-top: 2rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

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

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0px;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        top: 70px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .key-benefits {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: row;
        align-items: center;
    }

    .modules-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .company-logos {
        gap: 2rem;
    }

    .company-logo img {
        height: 30px;
    }

    section h2 {
        font-size: 2rem;
    }

    .pricing-card {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .modules, .features, .pricing, .faq, .contact {
        padding: 60px 0;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .companies-slider .company-logos {
        animation: none;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.theme-toggle:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}