/* Global Styles (applied to all screen sizes) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.button {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.button.primary {
    background-color: #007bff;
    color: white;
}

.button.primary:hover {
    background-color: #0056b3;
}

.button.secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.button.secondary:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
}

.filename-display {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
    padding-top: 30px;
    text-align: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto 15px auto;
    max-width: 600px;
}

.form-row>div {
    flex: 1;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.form-row input[type="text"],
.form-row input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

header {
    background-color: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
}

.company-logo {
    display: block;
    margin: 0 auto;
    filter: invert(100%);
    max-width: 100%;
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
}

.hero {
    padding: 40px 20px;
    text-align: center;
}

.hero-content {
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-content .tagline {
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}

.hero p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-services {
    background-color: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
}

.hero-services .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #343a40;
}

.hero-services .hero-content .lead {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 30px;
}

.call-to-action-services {
    text-align: center;
    padding: 60px 20px;
    background-color: #e9ecef;
    margin-top: 60px;
}

.call-to-action-services h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    color: #343a40;
}

.call-to-action-services p {
    font-size: 1.15em;
    color: #495057;
    margin-bottom: 30px;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
}

.top-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.bottom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.8em;
    color: #343a40;
    margin-bottom: 15px;
}

.service-item p {
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.learn-more i {
    margin-left: 5px;
}

.learn-more:hover {
    color: #0056b3;
}

#message {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-container {
    margin-bottom: 15px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.upload-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
}

.upload-input {
    display: none;
}

.upload-container:hover {
    border-color: #007bff;
}

.upload-container.dragover {
    background-color: #f0f8ff;
    border-color: #007bff;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.flash-messages {
    margin: 0 auto 20px auto;
    max-width: 600px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.center-text {
    text-align: center;
}

.left-text {
    text-align: left;
}

/* --- Mobile App Development Page Styles --- */

.hero-services {
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.hero-services h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-services p {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.service-details {
    margin-bottom: 20px;
    text-align: center;
    /* Add this line to center the content */
}

.service-details h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.service-details p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tech-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* center align */
}

.tech-list li {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-right: 10px;
}

.app-section {
    margin-bottom: 20px;
}

.app-section h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.app-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.app-block {
    display: flex;
    flex-direction: column;
    /* Stack items vertically by default */
    align-items: center;
    /* center the items horizontally */
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}

.app-image {
    margin-right: 0;
    /* Remove right margin */
    margin-bottom: 10px;
    /* Add bottom margin */
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* center the image */
}

.app-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.app-info {
    flex: 1;
    max-width: 100%;
    text-align: center;
}

.app-info p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 10px;
}

.feature-list {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 15px;
}

.feature-list li {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.store-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.store-links a {
    margin: 0 10px;
}

.store-links img {
    height: 40px;
    border-radius: 5px;
}

/* Styles for small screens (mobile) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .hero-services h1 {
        font-size: 2em;
    }

    .hero-services p {
        font-size: 1em;
    }

    .app-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-image {
        margin-right: 0;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .app-image img {
        width: 100%;
        height: auto;
    }

    .app-info {
        max-width: 100%;
    }

    .tech-list li {
        font-size: 1em;
        padding: 8px;
    }

    .call-to-action-services h2 {
        font-size: 1.5em;
    }

    .call-to-action-services p {
        font-size: 1em;
    }
}