:root {
    --color-primary: #007bff; /* Bright Accent */
    --color-secondary: #0056b3; /* Darker Blue */
    --color-dark: #1f2937; /* Dark Background */
    --color-light: #ecedee; /* Light Background */
    --color-mid-gray: #545353; /* Mid Gray Background */
    --color-text: #848587;
    --color-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
}

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

/* Header & Navigation */
.header {
    background-color: var(--color-mid-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.5;
}

.logo img {
    height: 32px;
    width: 36px;
    margin-right: 12px;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    margin-left: 28px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

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

/* Mobile menu toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-white);
    border-radius: 4px;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cta-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--color-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Sections */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

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

.section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Desktop: Reorder items for alternating layout */
/* 1st feature: Text on left, Image on right */
.features-grid .feature-item:nth-child(1) {
    order: 2; /* Image goes to right */
}

.features-grid .feature-item:nth-child(2) {
    order: 1; /* Text goes to left */
}

/* 2nd feature: Image on left, Text on right (already correct) */
.features-grid .feature-item:nth-child(3) {
    order: 3; /* Image stays on left */
}

.features-grid .feature-item:nth-child(4) {
    order: 4; /* Text stays on right */
}

/* 3rd feature: Text on left, Image on right */
.features-grid .feature-item:nth-child(5) {
    order: 6; /* Image goes to right */
}

.features-grid .feature-item:nth-child(6) {
    order: 5; /* Text goes to left */
}

.feature-item h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1.1rem;
}

.feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-analytics {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Solutions Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    position: relative;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--color-white);
}

.card-content h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 60px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.final-cta h3 {
    color: var(--color-white);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--color-mid-gray);
    color: var(--color-light);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links div {
    margin-right: 40px;
}

.footer-links h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--color-primary);
}

.footer-links a {
    display: block;
    color: var(--color-light);
    text-decoration: none;
    margin-bottom: 5px;
}

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

/* Page Header (for sub-pages) */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Section H2 (for sub-pages) */
.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.value-card h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1rem;
    margin: 0;
}

/* Form Styles */
.contact-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.required label::after {
    content: " *";
    color: #ef4444;
}

.submit-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--color-secondary);
}

.form-success {
    display: none;
    background-color: #10b981;
    color: var(--color-white);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.form-success.show {
    display: block;
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.last-updated {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Solutions grid - 3 columns to 2 columns on tablets */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Navigation - Mobile Menu */
    .nav {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    /* Mobile menu toggle button */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        margin-left: 0;
        padding: 10px 0;
        font-size: 1rem;
    }

    /* Hero Section - Mobile */
    .hero {
        height: 60vh;
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero h2 {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    /* Features Grid - Stack on mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Reset order on mobile - images above text */
    .features-grid .feature-item {
        order: 0;
    }
    
    .features-grid .feature-item:nth-child(1) {
        order: 1; /* Image first */
    }
    
    .features-grid .feature-item:nth-child(2) {
        order: 2; /* Text second */
    }
    
    .features-grid .feature-item:nth-child(3) {
        order: 3; /* Image first */
    }
    
    .features-grid .feature-item:nth-child(4) {
        order: 4; /* Text second */
    }
    
    .features-grid .feature-item:nth-child(5) {
        order: 5; /* Image first */
    }
    
    .features-grid .feature-item:nth-child(6) {
        order: 6; /* Text second */
    }

    /* Solutions Grid - Stack on mobile */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .solution-card {
        min-height: 350px;
    }

    .card-content {
        padding: 25px;
    }

    .card-content h4 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    /* Section Headings - Mobile */
    .section h3 {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Section Padding - Mobile */
    .section {
        padding: 60px 0;
    }

    /* Contact Wrapper - Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer - Mobile */
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 20px;
    }

    .footer-links div {
        margin-right: 30px;
        margin-bottom: 20px;
    }

    /* Page Header - Mobile */
    .page-header {
        padding: 80px 0 50px;
    }

    .page-header h1 {
        font-size: 2.2rem;
        padding: 0 15px;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Feature Items - Mobile */
    .feature-item h4 {
        font-size: 1.3rem;
    }

    .feature-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .section h3 {
        font-size: 1.75rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 28px;
        width: 32px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h4 {
        font-size: 1.3rem;
    }
}

