.app-section,
.intro,
.glasses-eraser,
.app-final {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

.app-section .media,
.small-video,
video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 0 auto;
}

.app-section .text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

main h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: lighter;
    margin: 0;
}

main p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.hero {
    position: relative;
}

.hero-text {
    position: absolute;
    top: 20%;
    left: 5%;
    z-index: 10;
    color: #FCFBF9;
    max-width: 400px;
}

.hero-text h1 {
    font-size: 2.8rem; 
    line-height: 1.2; 
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6; 
    margin-bottom: 16px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #1050d0;
    color: #FCFBF9;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.hero video{
    border-radius: 0px;
}


@media (max-width: 840px) {
    .hero-text {
        position: static;
        padding: 20px;
        color: black;
        max-width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.0rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-button {
        width: 90%;
        display: block;
        justify-content: center;
        align-items: center;
        max-width: 400px;
        margin: 16px auto 0;
        padding: 14px 0;
        box-sizing: border-box;
    }
}

@media (min-width: 768px) {
    .app-section {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Alternate left/right layout for even sections */
    .app-section:nth-child(even) {
        direction: rtl;
    }
    .app-section:nth-child(even) .text,
    .app-section:nth-child(even) .media {
        direction: ltr;
    }

    .app-section .text {
        padding: 0 24px;
    }
}