/* Content Sections */

.content-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* overflow: hidden; */
    margin-bottom: 30px;
}

.chat-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-right: 1.5rem;
}
/* 
.content-section::before {
    content: '';
    position: absolute;
    width: 80rem;
    height: 38rem;
    background: #F1F3F5;
    border-radius: 30px;
    top: 200px;
    z-index: 1;
}

.tasks-content.content-section::before {
    content: '';
    position: absolute;
    / * width: 80rem; * /
    height: 42rem;
    background: #F1F3F5;
    border-radius: 30px;
    top: 160px;
    z-index: 1;
}
 */

h2 {
    margin: 0 0 0 0;
}

#Tasks, #More {
    margin-top: 100px;
}

#Notes {
    margin-top: 100px;
}

#Closing {
    margin-top: 100px;
}

.section-title {
    font-size: 5em;
    color: #333;
    font-weight: 700;
    /* text-decoration: underline; */
    text-decoration-thickness: 4px;
    text-underline-offset: 10px;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.section-title.download {
    margin-top: 5rem;
}

.section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1250px;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.phone-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-container img {
    width: 80%;
}

.section-iphone {
    width: 315px;
    height: auto;
}

.features-section-iphone {
    width: 310px;
    height: auto;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    margin-right: 2rem;
    margin-left: 2rem;
}

.section-logo {
    /* margin-bottom: 20rem; */
    margin-right: 2rem;
    width: 9rem;
    height: auto;
}

.task-logo {
    margin-top: -20rem;
}

.notes-logo {
    margin-top: -15rem;
}

.more-logo {
    margin-top: -12rem;
}

.closing-logo {
    margin-top: -25rem;
}

/* .message-container {
    flex: 1;
    display: flex;
} */

.speech-bubble {
    background: #B8D4F0;
    color: #333;
    padding: 25px 30px;
    border-radius: 20px;
    position: relative;
    width: 30rem;
    text-align: left;
    transform-origin: bottom left;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.6s ease;
    margin-bottom: 2rem;
}

/* More Section - Narrower Speech Bubble */
#More .speech-bubble {
    width: 28rem;
}


.speech-bubble.animate-in {
    transform: scale(1);
    opacity: 1;
}

.speech-bubble::before {
    content: '';
    left: -19px;
    width: 30px;
    background-color: #B8D4F0;
    border-bottom-right-radius: 16px 14px;
    position: absolute;
    bottom: 0;
    height: 25px;
}

.speech-bubble:after {
    left: -26px;
    width: 26px;
    /* background-color: #F1F3F5; */
    background-color: #FFFFFF;
    border-bottom-right-radius: 20px;
    content: "";
    position: absolute;
    bottom: 0;
    height: 25px;
}

.speech-bubble p {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    color: #333;
    line-height: 0.8;
}

.message-content p {
    margin: 0;
    font-size: 2.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    margin-top: 5rem;
    line-height: 0.8;
}

.message-content h3 {
    margin-left: -10rem;
    margin-bottom: 0;
    margin-top: 3rem;
    padding: 0;
    text-decoration: underline;
    font-size: 2.3em;
    line-height: 0.8;
    font-weight: 600;
    color: #333;
}

 .message-content li {
       margin: 0;
       font-size: 2.2em;
       line-height: 1.2;
       font-weight: 400;
       color: #333;
 }

 .message-content ul{
       width: 110%;
       margin-left: -8rem;
       margin-top: 5rem;
 }

/* Medium Screen Responsive Styles (9.5 inches and under) */
@media (max-width: 1300px) {
    /* Section widths decrease slightly */
    .content-section::before {
        width: 100%;
        height: 33rem;
    }

    .task-content.content-section::before {
        width: 100%;
        height: 33rem;
    }

    h2 {
        margin-top: 80px;
        margin-bottom: 40px;
    }

    .section-container {
        width: 78%;
        max-width: 900px;
    }

    /* Speech bubbles and text decrease slightly */
    .speech-bubble {
        width: 16rem;
        padding: 22px 26px;
    }

    /* More Section - Narrower Speech Bubble */
    #More .speech-bubble {
        width: 23rem;
    }

    .speech-bubble p {
        font-size: 1.2em;
    }

    .message-content {
        width: 120%;
        margin-left: 1rem;
    }

    .message-content p {
        font-size: 1em;
    }

    .message-content h3 {
        font-size: 1.6em;
    }

    .message-content li {
        font-size: 2em;
    }

    .phone-container img {
        width: 70%;
    }

    .message-content ul {
        width: 100%;
        margin-left: -7rem;
        margin-top: 2rem;
    }

    /* Hide bot images and speech bubbles */
    .section-logo {
        display: none;
    }

    .speech-bubble {
        display: none;
    }

    /* Adjust logo container since logo is hidden */
    .logo-container {
        display: none;
    }

    /* iPhone images slight adjustment */
    .section-iphone {
        width: 220px;
    }

    .more-section-iphone img {
        width: 320px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Content Sections Mobile */
    .content-section {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-section::before {
        width: 100%;
        height: auto;
        min-height: 820px;
        top: 80px;
        left: 0;
        transform: none;
    }

    .section-title {
        font-size: 2.5em;
        text-align: center;
        margin-bottom: 2rem;
        margin-top: 2rem;
        width: 100%;
    }

    .section-container {
        flex-direction: column;
        width: 100%;
        max-width: none;
        /* gap: 30px; */
        align-items: center;
        justify-content: center;
    }

    /* Stack elements vertically with text first */
    .phone-container {
        flex: none;
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 0 0 0;
        order: 1;
        text-align: left;
    }

    .section-iphone {
        width: 360px;
        max-width: 80vw;
        margin: 0 auto;
        display: block;
    }

    .features-section-iphone {
        width: 280px;
        max-width: 85vw;
        margin: 0 auto;
        display: block;
    }

    .logo-container {
        margin: 0;
        display: none;
    }

    .section-logo {
        display: none;
    }

    /* Remove speech bubble styling but keep text */
    .message-container {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto !important;
    }

    .message-content {
        width: 100%;
        max-width: 350px;
        padding: 0 10px;
        margin-left: 0;
    }

    .message-content ul {
        width: 100%;
        margin-left: 0;
    }

    .message-content ul li {
        text-align: left;
    }

    .message-content h3 {
        text-align: center;
        font-size: 2.2em;
    }

    .message-content li {
        font-size: 1.8em;
    }

    .message-content p {
        font-size: 1.8em;
    }

    .speech-bubble {
        background: none;
        border: none;
        border-radius: 0;
        padding: 20px 0;
        width: 100%;
        max-width: none;
        position: relative;
        transform: none;
        opacity: 1;
        transition: none;
        text-align: center;
        margin: 0 auto;
    }

    .speech-bubble::before {
        display: none;
    }

    .speech-bubble p {
        display: none;
    }

    .features-reverse .chat-container {
        margin-left: 0;
    }

    /* Hide decorative elements on mobile for cleaner look */
    .decoration {
        display: none;
    }
}