/* Global Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --success-color: #26b050;
    --error-color: #e50000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1:focus {
    outline: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-section h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e3f2fd;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-description strong {
    color: #fff;
    font-weight: 600;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* Problem Section */
.problem-section {
    background-color: var(--light-bg);
}

.problem-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.problem-list li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.problem-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.problem-summary {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-left: 4px solid var(--accent-color);
}

/* Solution Section */
.solution-section {
    background-color: white;
}

.section-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-card {
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Audience Section */
.audience-section {
    background-color: var(--light-bg);
}

.benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Expertise Section */
.expertise-section {
    background-color: white;
}

.credentials {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.credentials h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.credentials ul {
    list-style: none;
    padding-left: 0;
}

.credentials li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
}

.credentials li::before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.expertise-summary {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

/* Unique Section */
.unique-section {
    background-color: var(--light-bg);
}

.unique-summary {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Approach Section */
.approach-section {
    background-color: white;
}

.approach-benefits {
    list-style: none;
    padding-left: 0;
}

.approach-benefits li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.approach-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Example Section */
.example-section {
    background-color: var(--light-bg);
}

.example-steps {
    background-color: white;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.example-steps li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.example-result {
    background-color: #d4edda;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.example-summary {
    font-style: italic;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
}

.cta-section h2,
.cta-section h3 {
    color: white;
    border-bottom-color: var(--primary-color);
}

.cta-box {
    background-color: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.cta-box ul {
    list-style: none;
    padding-left: 0;
}

.cta-box li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
}

.cta-box li::before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.final-message {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.page-footer {
    background-color: var(--secondary-color);
    color: #bbb;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}

.page-footer p {
    margin: 0;
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--error-color);
}

.validation-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,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MiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Project Detail Pages */
.project-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
    color: white;
    border-radius: 12px;
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.project-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.project-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    color: #444;
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-card {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 1rem;
    color: #555;
}

.implementation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    font-size: 1rem;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    font-size: 1.1rem;
    color: #444;
}

.use-cases li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

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

/* Projects Index Page */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.projects-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-intro h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.projects-intro p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

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

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.project-card h3 a:hover {
    text-decoration: underline;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* Mobile/Desktop Content Toggle */
.mobile-hero {
    display: none;
}

.desktop-hero {
    display: block;
}

.mobile-content {
    display: none;
}

.desktop-content {
    display: block;
}

.cta-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button-secondary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.cta-button-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
}

.cta-button-ai:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile versions, hide desktop versions */
    .mobile-hero {
        display: block;
    }

    .desktop-hero {
        display: none;
    }

    .mobile-content {
        display: block;
    }

    .desktop-content {
        display: none;
    }

    .cta-buttons-container {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons-container .cta-button {
        width: 100%;
        display: block;
        text-align: center;
    }
    body {
        font-size: 16px;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

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

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

    section {
        padding: 2rem 1rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-intro h1 {
        font-size: 1.75rem;
    }

    .project-header h1 {
        font-size: 1.6rem;
    }

    .project-header {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .secondary-button {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .contact-container {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .problem-list li,
    .benefits-list li,
    .approach-benefits li {
        font-size: 0.95rem;
        padding-left: 2rem;
    }

    .example-steps {
        padding: 1rem 1rem 1rem 2rem;
    }

    .example-steps li {
        font-size: 0.95rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

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

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .solution-card,
    .project-card {
        padding: 1.5rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}