section {
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    scroll-snap-type: y mandatory;
}

/* Hero section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

main:not(:has(.hero)) {
    padding: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    align-items: center;
}

.store-button {
    padding: 1rem 1.5rem;
    border: 2px solid #c74168;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.store-button:hover {
    background: #c74168;
    transform: translateY(-2px);
}

.store-button-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.store-name {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Common to all sections section */
.section-heading {
    color: #c74168;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Conversation section */
.conversation {
    padding: 6rem 1rem;
    margin: 2rem auto;
}

@media (min-aspect-ratio: 1) {
    .conversation {
        padding: 2rem 2rem;
    }
}

/* if width is more than 767 then flex, otherwise column*/
.conversation-content {
    display: flex;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}
@media (max-width: 700px) {
    .conversation-content {
        flex-direction: column;
    }
}

.conversation-text {
    flex: 1;
}

.conversation-text h2 {
    margin-bottom: 1.5rem;
}

.conversation-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* planets, aspects & moon */
.screenshots-grid {
    gap: 1rem;
    width: 100%;
    margin: 0;
}

/* Two column layout */
.planets-layout {
    align-items: center;
    min-height: 50vh;
    padding: 2rem 0;
    
}

.planets-text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.planets-images-content {
    flex: 2;
}

/* Adjust phone size for grid view */
.screenshots-grid .phone-container {
    padding: 10px;
}

@media (max-width: 1024px) {
    .section-heading {
        font-size: 2rem;
    }

    .conversation {
        padding: 4rem 2rem;
    }

    .conversation-text p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .planets-layout {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        margin-bottom: 5rem;
    }

    .planets-heading {
        text-align: center;
    }

    .planets-text-content,
    .planets-images-content {
        width: 100%;
        max-width: none;
    }

    .screenshots-grid .phone-frame {
        width: 13rem;
        height: 28rem;
    }

    .screenshots-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .conversation-content {
        display: flex;
    }
    
    .section-heading {
        font-size: 3rem;
    }

    .hero h1 {
        margin-top: 4rem;
    }
    
    .header {
        margin-top: 4rem;
    }

    .planets-layout {
        display: flex;
        gap: 2rem;
    }

    .planets-heading {
        text-align: center;
    }

    .planets-text-content {
        flex: 1;
        min-width: 20vh;
    }

    .screenshots-grid .phone-frame {
        width: 15rem;
        height: 32rem;
    }

    .screenshots-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .screenshots-grid {
        display: block;
    }

    .screenshots-grid .phone-frame {
        width: 18rem;
        height: 40rem;
        margin-bottom: 2rem;
    }
}