:root {
    --primary-color: #27ae60;
    --secondary-color: #7251d1;
    --text-color: #ffffff;
    --secondary-text-color: #f5f5f5;
    --bg-color: #333333;
}

body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#hero {
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%; /* Prevent any unwanted horizontal overflow */
}
#hero > * {
    margin: 0;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    font-size: calc(1.5rem + 0.9vw);
}

#hero h2 {
    font-size: calc(3.5rem + 0.9vw);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

#hero h2 .title-part-highlight {
    color: var(--secondary-color);
}

#hero p {
    color: var(--text-color);
    margin: 0 0 2rem 0;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.5;
}

.app-image {
    flex: 1;
    max-width: 400px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.download-links {
    margin: 1rem auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.download-links .app-store img {
    width: 350px;
    height: auto;
}

/* Responsive Layouts */
@media (max-width: 1078px) {
    #hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 1; /* Ensure hero text appears first */
        padding: 1rem 0;
    }

    .app-image {
        order: 1; /* Ensure the image comes after the text */
        max-width: 50%;
        max-height: 400px;
        margin: 1rem auto;
    }

    .download-links {
        order: 3; /* Ensure download links come last */
        margin-top: 1rem; /* Add spacing from the image */
        gap: 1rem; /* Keep spacing consistent */
    }
}

@media (max-width: 768px) {
    .app-image {
        display: none;
    }
}
