html, body {
    margin:0;
    padding:0;
    overflow:hidden;
    height:100%;
    background: linear-gradient(172deg, #F3E04B, #EB9649, #D33570);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.header-image {
    width: 200px;
    margin: 10px 0px 0px 10px;
}

/* Container that acts like a viewport for the sections */
.sections-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 60px; /* Space below the fixed header if you want */
}

/* Each section takes the full viewport and is absolutely positioned */
section {
    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.7s ease;
    /* No need for display:flex at this level if it causes layout shifts. 
       We'll position arrows absolutely and content as needed. */
}

/* A .content container inside each section to hold section content without affecting arrows */
section .content {
    position: relative;
    width: 100%;
    height: 100%;
    /* You can use flex or any layout method here without moving the arrows */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero-specific styling */
.hero .content {
    /* If you want the hero elements centered, keep them here */
    height: 77vh; /* If you want, you can remove this line to make full height */
    /* But consider making all sections consistent: full height is recommended */
    /* If you must keep 77vh, the arrows will still remain in place because they're absolutely positioned. */
}

/* Images inside hero */
.smoke {
    position: absolute;
    width: 730px;
    z-index: 1;
    filter: drop-shadow(2px 3px 3px black);
}

.phone,
.phonebackground,
.gr {
    position: absolute;
    width: 240px;
    z-index: 2;
}

.gr {
    filter: drop-shadow(2px 4px 6px black);
}

/* Up and down arrows - always positioned absolute inside the section */
.up, .down {
    position: absolute;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.up {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.down {
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
}

/* So arrows do not move with content changes. They are fixed relative to the section edges. */
.two-col{
        display: flex;
    flex-direction: row;
}
.iphone-composite {
    width: 350px;
}

@keyframes flick {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-20deg);
    }
}

.down-arrow,
.up-arrow {
    animation: flick 1s cubic-bezier(0.19, -0.45, 0, 1.03) infinite;
    transition: transform 0.3s ease-out;
    cursor: pointer;
    width: 55px;
}

/* For small tablets and large phones */
@media screen and (max-width: 768px) {
    .header-image {
        width: 120px; /* Reduce logo size */
        margin: 10px 0 0 10px;
    }

    .hero {
        height: 85vh; /* Slightly reduced height */
    }

    .smoke {
        width: 100%;
        max-width: 350px;
    }

    .phone,
    .phonebackground,
    .gr {
        width: 180px;
    }

    .down-arrow {
        width: 45px;
    }
}

/* For mid-sized devices (500px–600px range) */
@media screen and (max-width: 600px) {
    .header-image {
        width: 100px; /* Scale logo down */
        margin: 8px 0 0 8px;
    }

    .hero {
        height: 80vh; /* Adjust hero height */
    }

    .smoke {
        width: 90%; /* Slightly smaller smoke */
        max-width: 300px;
    }

    .phone,
    .phonebackground,
    .gr {
        width: 160px; /* Scale down phone and graphics */
    }

    .down-arrow {
        width: 40px; /* Keep navigation subtle */
        margin-top: 10px;
    }
}

/* For small phones (480px and below) */
@media screen and (max-width: 480px) {
    .header-image {
        width: 90px; /* Compact logo size */
        margin: 5px 0 0 5px;
    }

    .hero {
        height: 75vh; /* More compact hero section */
    }

    .smoke {
        width: 85%;
        max-width: 280px;
    }

    .phone,
    .phonebackground,
    .gr {
        width: 140px;
    }

    .down-arrow {
        width: 35px; /* Keep arrow visible */
        margin-top: 15px;
    }
}

/* For ultra-small devices (360px and below) */
@media screen and (max-width: 360px) {
    .header-image {
        width: 80px; /* Further compact logo */
        margin: 5px 0 0 5px;
    }

    .hero {
        height: 70vh;
    }

    .smoke {
        width: 80%;
        max-width: 240px;
    }

    .phone,
    .phonebackground,
    .gr {
        width: 120px;
    }

    .down-arrow {
        width: 30px;
    }
}
