:root {
    --primary: #F6AE2D;
    --dark: #0e0e0e;
    --gray: #333;
    --light-gray: #555;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    padding: 1.5rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(14, 14, 14, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
}

.logo {
    display: flex;
    text-decoration: none;
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 20px;
    align-items: center;
    font-weight: 800;
    line-height: 1;
    color: #f8f8f9;
}

.logo span {
    display: inline-block;
    line-height: 1;
    transform: translateY(4px);
    font-family: 'Cooper Hewitt', sans-serif;
}

.logo-icon {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.download-btn {
    background-color: #F6AE2D;
    color: #000;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #da971a;
}

/* General Styles */
body {
    margin: 0;
    font-family: 'Inter';
    font-size: 18px;
    background-color: #1C1F21;
    color: white;
    line-height: 1.2;
}

h2 {
    font-family: 'Cooper Hewitt', sans-serif;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.8rem;
}

h4 {
    font-family: 'Cooper Hewitt', sans-serif;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
}

.section2 {
    background: linear-gradient(to bottom, #1C1F21, #1C1F21);
    padding: 0px 0px;
    margin: 0px;
    color: white;
}

.section-heading {
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 2rem;
}

.highlight {
    color: #F6AE2D;
    font-weight: 800;
}

.highlight-h2 {
    color: #F6AE2D;
    font-weight: 800;
    font-size: 2.5rem;
    font-family: 'Cooper Hewitt', sans-serif;
}

/* Mobile version */
@media (max-width: 768px) {
    .highlight-h2 {
        font-size: 2rem;
        /* smaller for mobile */
        line-height: 1.2;
    }
    .h2 {
        font-size: 2rem;
    }
}

.secondary-text {
    color: #eeeded;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0px 20px;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 200px;
    white-space: nowrap;
}

.store-button i,
.store-button img {
    margin-right: 8px;
}

.store-button span {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-button small {
    font-size: 10px;
    color: #ddd;
}

.store-button strong {
    font-size: 16px;
}

.store-button.google-play {
    background: linear-gradient(135deg, #181818 0%, #111111 100%);
    border: 1px solid #f7f7f7;
}

.google-play-icon {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

.store-button.app-store {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.store-button.app-store span small {
    color: #000;
}

.store-button.app-store i.fab.fa-apple {
    color: #000;
    font-size: 24px;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Divider SVG */
.divider-svg {
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin-bottom: -1px;
}

/* Features Section */
.section-noimage {
    display: block;
    margin: 0;
    padding: 0px 0px;
    background: linear-gradient(to bottom, #0C662D, #2A2B2B);
    color: white;
    text-align: center;
}

.features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.features-text {
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 250px;
    padding-top: 15px;
}

.feature-img_left {
    max-width: 180px;
    transform: scaleX(-1);
}

.feature-img {
    max-width: 280px;
}

/* Headlines and Numbers */
.headline {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.number {
    color: #F6AE2D;
    font-size: 4rem;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 900;
}

.plus {
    font-size: 4rem;
    color: white;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 900;
}

.exercises {
    font-size: 2.5rem;
    color: white;
    font-family: 'Cooper Hewitt', sans-serif;
    font-weight: 800;
    padding-top: 0px;
}

.description {
    color: #ecebeb;
    margin-top: 1rem;
    font-size: 1.2rem;
    letter-spacing: 5;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.description-share {
    color: #ecebeb;
    font-size: 1.2rem;
    letter-spacing: 0;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
}

.description strong {
    font-weight: 800;
    color: #CCCCCC;
}

.screenshot {
    display: block;
    margin: 40px auto;
    /* centers the image */
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
}

.screenshot-share {
    display: block;
    margin: 40px auto;
    width: 100%;
    border-radius: 12px;
}

.exercises-categories {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 0 auto;
}

/* Section Routines */
.section-routines {
    margin: 0;
    padding: 0;
    align-self: center;
    align-items: center;
    align-content: center;
    background:
        url('images/bg_routines.png'),
        linear-gradient(to bottom, #0C662D, #2A2B2B);
    color: white;
}

/* Bullets */
.bullets {
    list-style: none;
    padding: 0 20px;
    margin: 0 auto;
    width: fit-content;
    max-width: 400px;
}

.bullets li {
    position: relative;
    padding-left: 32px;
    /* 16px bullet + 16px spacing */
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #D8D8D8;
    text-align: left;
    /* make text align after bullet */
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #9ABBA6;
}


/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
}

/* Section 1 */
.section1 {
    position: relative;
    background:
        url('images/bg_share.png'),
        linear-gradient(to bottom, #0C662D, #2A2B2B);
    padding: 10px 20px;
    text-align: center;
}

.section-share {
    position: relative;
    background:
        url('images/bg_share.png'),
        linear-gradient(to bottom, #0C662D, #2A2B2B);
    padding: 10px 20px;
    text-align: center;
}

.section1 h2,
.section1 p,
.section1 img {
    margin: 0;
    padding: 0;
    display: block;
}

.screenshot-mobile-history {
    width: 300px;
    display: block;
    position: relative;
    object-fit: contain;
    max-height: 600px;
    padding-top: 50px;
    margin: 0 auto;
    /* centers horizontally */
}


/* Media Queries */
@media (max-width: 768px) {
    .store-buttons {
        padding-left: 50px;
        padding-right: 50px;
        flex-direction: column;
        justify-content: center;
    }

    .store-button {
        width: auto;
    }

    .exercises-categories {
        max-height: 250px;
    }

    .features {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .features {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Desktop Footer (existing) */
footer {
    background-color: var(--gray);
    padding: 4rem 2rem;
    margin-top: 0rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--white);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding-top: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile Footer Stacking - Left Aligned */
@media (max-width: 768px) {

    .divider-svg-desktop {
        display: none;
    }

    .divider-svg-desktop-2 {
        display: none;
    }

    .footer-container {
        display: flex;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        /* align left instead of center */
        gap: 1.5rem;
        /* smaller gaps between sections */
        text-align: left;
        /* left-align text */
    }

    .footer-col {
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-col:first-child {
        order: 0;
        /* logo at top */
    }

    .footer-col:nth-child(2) {
        order: 1;
        /* quick links below logo */
    }

    .footer-col:nth-child(3) {
        order: 2;
        /* contact info below quick links */
    }

    .footer-links li {
        margin-bottom: 0.5rem;
        /* smaller spacing for list items */
    }

    footer {
        padding: 2rem 1rem;
        /* reduce padding on mobile */
    }

    .footer-bottom {
        padding-top: 1rem;
        text-align: left;
        /* left-align copyright */
    }

}

.desktop-content {
    display: none;
}

.section-desktop {
    display: none;
}

.desktop-content {
    position: relative;
    width: 100%;
    height: 800px;
    /* adjust as needed */
    overflow: hidden;
}

.desktop-content {
    position: relative;
    width: 100%;
    height: 800px;
    /* adjust as needed */
    overflow: hidden;
}

/* Full-width background image */
.desktop-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.desktop-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    margin-top: 100px;

    /* Set white as the "under" color so the transparent mask shows white */
    background-color: white;

    /* Fade from visible (middle) to white (right) */
}


/* Overlay text on top */
.desktop-text-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 150px 20px;
    /* vertical spacing */
}

.store-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media(max-width: 1324px) {
    .overlap-image-desktop {
        display: none;
    }
}

.divider-svg-desktop-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin-bottom: -2px;
    z-index: 10;
    pointer-events: none;
}

/* Desktop layout */
@media(min-width: 1024px) {

    .desktop-text-overlay {
        display: none;
    }

    .divider-svg-desktop {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        margin-bottom: -2px;
        z-index: 10;
        pointer-events: none;
    }

    .divider-svg {
        display: none;
    }

    .mobile-content {
        display: none;
        /* Hide mobile layout on desktop */
    }

    .desktop-content {
        display: block;
        padding: 0px 0;
    }

    .desktop-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
    }

    .desktop-text {
        max-width: 50%;
    }

    .desktop-image img {
        max-width: 500px;
        width: 100%;
        border-radius: 12px;
    }

    #section1-desktop {
        position: relative;
        display: flex;
        align-items: top;
        justify-content: start;
        max-width: 800px;
        margin: 100px 100px 100px 450px;
    }


    #section2-desktop {
        position: relative;
        display: flex;
        align-items: top;
        justify-content: start;
    }

    .bg-desktop {
        background-color: #1C1F21;
        border: 2px solid #F6AE2D;
        border-radius: 80px;
        padding: 40px 60px;
        display: flex;
        align-items: flex-start;
        gap: 00px;
        flex: 1;
        position: relative;
        z-index: 6;
    }

    .left-image-desktop img {
        height: 200px;
        width: auto;
        padding-top: 15px;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .text-content-desktop {
        position: relative;
        display: flex;
        flex-direction: column;
        font-size: 1.5rem;
        padding: 0px 20px;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        z-index: 3;
    }

    .small-heading-desktop {
        color: #fff;
        font-size: 2rem;
        align-content: start;
        font-style: italic;
        font-family: 'Cooper Hewitt' sans-serif;
        align-items: flex-start;
        font-weight: 300;
    }

    .title-desktop {
        color: #F6AE2D;
        font-size: 2rem;
        line-height: 30px;
        font-family: Arial, Helvetica, sans-serif;
        align-items: flex-start;
        font-weight: bold;
    }

    .subtitle-desktop {
        color: #fff;
        font-size: 1rem;
        font-family: Arial, Helvetica, sans-serif;
        align-items: flex-start;
        line-height: 1.4;
    }

    .spacer-10 {
        height: 0px;
    }

    .spacer-20 {
        height: 20px;
    }

    .overlap-image-desktop {
        position: absolute;
        right: -140px;
        top: 60%;
        transform: translateY(-50%) scaleX(1);
        height: 580px;
        width: auto;
        border-radius: 20px;
        z-index: 0;
        pointer-events: none;
    }

    /* section 2 */

    .section2-container {
        display: flex;
        align-items: flex-start;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    .image-column {
        position: relative;
        flex: 1;
    }

    .main-image {
        width: 400px;
        /* adjust as needed */
        height: auto;
        border-radius: 20px;
    }

    .small-overlay-image {
        position: relative;
        width: 400px;
        margin-top: 20px;
        margin-left: -10px;
        /* adjust size */
        height: auto;
        border-radius: 10px;
        z-index: 5;
    }

    .text-column {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 20px;
        max-width: 600px;
    }

    .title-desktop-section2 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-top: 0px;
        color: #F6AE2D;
        flex: 1;
        font-family: Arial, Helvetica, sans-serif;
    }

    .subtitle-desktop-section2 {
        font-size: 1.2rem;
        color: #ecebeb;
        line-height: 1.5;
        padding-top: 20px;
        flex: 1;
    }

    .highlight {
        color: #F6AE2D;
        font-weight: bold;
    }

    .section-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;

        /* space between text and image */
        margin: 0px 0;
    }

    .section-routines-desktop {
        display: flex;
        align-items: center;
        height: 800px;
        background-color: #0C662D;
        justify-content: space-between;
    }

    .section-design-routines-desktop {
        display: flex;
        align-items: center;
        width: 100%;
        height: 1000px;
        display: flex;
        background-color: #1C1F21;
        justify-content: space-between;
    }

    .fill-green {
        height: 200px;
        width: 100%;
        background-color: #0C662D;
    }

    .content-left,
    .content-right {
        flex: 1;
    }

    .image-left-exercises {
        flex: 1;
        margin-left: 150px;
    }

    .content-right-exercises {
        flex: 1;
        padding-right: 80px;
    }

    .image-left-progression {
        flex: 1;
        margin-bottom: 250px;
        margin-left: 150px;
    }

    .content-right-progression {
        flex: 1;
        margin-bottom: 250px;
        padding-right: 80px;
    }

    .content-left-design-routines {
        flex: 1;
        padding-bottom: 400px;
    }

    .image-right-design-routines {
        flex: 1;
        padding-bottom: 500px;
    }

    .image-left,
    .image-right {
        flex: 1;
    }

    .image-left img,
    .image-right img {
        width: 100%;
        height: auto;
        border-radius: 20px;
    }

    /* Alternate sides for every other section */
    .section-desktop:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* Optional: smaller gap for smaller desktops */
    @media (max-width: 1200px) {
        .section-desktop {
            gap: 20px;
        }
    }

    .secondary-text {
        color: #cccccc;
        font-size: 1.3rem;
        line-height: 1.4;
        padding: 130px 50px;
    }


}