/* Add this at the top of your CSS file */
html {
    scroll-padding-top: 0;
    scroll-behavior: smooth;
}

body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    align-content: center;
    padding-top: 0;
    position: relative;
}

#section-1{
    overflow: hidden;
    position: relative;
}
.hero-container-column {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-around;
    gap: 2rem;
}


.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    transition: opacity 0.1s ease-out, filter 0.1s ease-out;
    overflow: visible;
}

.hero-title {
    margin-top: 4rem;
    font-size: 7.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
    line-height: 1.1;
    will-change: opacity, filter;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    will-change: opacity, filter;
}

.hero-image {
    margin-top: -3rem;
    max-height: 100vh;
    max-width: 100vw;
    width: 100%;
    height: auto;
    object-fit: contain;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: relative;
    z-index: 2;
    display: block;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

/* Section 2 */

#section-2 .page-section{
    max-height: 100vh;
    overflow: visible;
}


#section-2 .section-column.left {
    max-width: 35%;
    overflow:visible;
}

#section-2 .section-column.right {
    padding-top: 0rem;
    max-width: 35%;
    justify-content: center;
}


#phone2-image {
    margin-top: -55px;
    max-height: 100vh;
}

#phone2-image img {
    max-width: 100%;
    height: auto;
}

/* Section 3 */
#section-3 {
    min-height: fit-content;
}

#section-3 .section-column.left {
    padding-top: var(--overlap-padding, 2rem);
    max-width: 35%;
}

#section-3 .section-column.right {
    max-width: 35%;
}

/* Section 4 */
#section-4 {
    min-height: fit-content;
    padding-bottom: 5rem;
}

#section-4 .section-column.left {
    max-width: 35%;
}

#section-4 .section-column.right {
    max-width: 35%;
}

/* Section 5 */
#section-5 {
    min-height: fit-content;
}

#section-5-background {
    background-image: url('/resources/images/en/section5-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#section-5 .section-column.left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section-5 .section-column.right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section5-titles {
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    text-align: center;
    display: inline-block;
}

/* Section 6 */
#section-6 {
    min-height: fit-content;
}

#section-6 .section-column.left {
    max-width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section-6 .section-column.right {
    max-width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* Section 7 */
#section-7 {
    min-height: fit-content;
}

#section-7-background {
    background-image: url('/resources/images/en/section7-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#section-7 .section-column.left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section-7 .section-column.right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section7-titles {
    font-size: clamp(4rem, 6vw, 7rem);
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    text-align: center;
    display: inline-block;
}

#section7-blurb {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Section 8 */
#section-8 {
    min-height: fit-content;
}

#section-8 .section-column.left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 5%;
}

#section-8 .section-column.right {
    width: 45%;
}

#section8-titles {
    font-size: 7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Section 9 */
#section-9 {
    min-height: fit-content;
}

#section-9-background {
    background-image: url('/resources/images/en/section9-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#section-9 .section-column.left {
    max-width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 5%;
}

#section-9 .section-column.right {
    max-width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#section9-titles {
    font-size: 6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* ==========================================================================
   Demo Components
   ========================================================================== */

/* Image Container */
.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 65vh;
    padding-bottom: 20px;
    overflow: hidden;
    max-width: 100vw;
}

/* Demo 1 */
#demo1-image {
    max-height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

#demo1-overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 55%;
    width: auto;
    z-index: 2;
    transition: 0.4s ease;
}

#demo1-overlay-image:hover {
    transition: 0.4s ease;
    max-height: 60%;
}

/* Demo 2 */
#demo2-image {
    max-height: 100%;
    width: auto;
    display: block;
}

#demo2-overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 55%;
    width: auto;
    z-index: 2;
    transition: 0.4s ease;
}

#demo2-overlay-image:hover {
    transition: 0.4s ease;
    max-height: 60%;
}

/* Demo 3 */
#demo3-container {
    background-color: #222F41;
    border-radius: 30px;
    padding: 3rem;
}

#demo3-object {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#demo3-logo-image {
    height: 50px;
}

#demo3-left {
    width: 70%;
    display: flex;
    flex-direction: column;
}

#demo3-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: nowrap;
}

#demo3-left-element {
    display: flex;
    flex-direction: column;
    border-left: 5px solid #fff;
    gap: 30px;
    padding: 20px;
    position: relative;
}

#demo3-left-element > * {
    position: relative;
    padding-bottom: 30px;
}

#demo3-left-element > *::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: calc(100% + 20px);
    height: 2px;
    background-color: #fff;
}

#demo3-right {
    width: 40%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Demo 4 */
#demo4-image {
    max-height: 100%;
    width: auto;
    display: block;
}

#demo4-overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 55%;
    width: auto;
    z-index: 2;
    transition: 0.4s ease;
}

#demo4-overlay-image:hover {
    transition: 0.4s ease;
    max-height: 60%;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-overlay {
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 5%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    padding: 1.5rem 2rem;
    display: inline-block;
    position: relative;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Large Screens */
@media screen and (max-width: 1440px) {

    .hero-container-row {
        width: 70%;
    }

    .hero-title{
        margin-bottom: 0rem;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .section-blurb {
        font-size: 1rem;
    }

    #section5-titles {
        font-size: 9rem;
    }

    #section7-titles {
        font-size: 4rem;
    }

    #section7-blurb {
        font-size: 1.5rem;
    }

    #section8-titles {
        font-size: 3rem;
    }
    
    #section-8.div.section-column.right {
        width: 45%;
    }

    #section9-titles {
        font-size: 3rem;
    }
    
}

/* Medium Screens */
@media screen and (max-width: 1030px) {
    .hero-container-row {
        flex-direction: column;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-blurb {
        text-align: center;
    }

    .hero-container-row {
        align-items: center;
    }
    
}

@media screen and (max-width: 1024px) {
    .hero-title{
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-blurb {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    #section-1{
        overflow: hidden;
    }

    #section-2 .section-column.right{
        display: none;
    }

    #section-2 .section-column.left{
        flex-direction: row-reverse;
        max-width: 100vw;
    }

    #phone2-image {
        max-height: 70vh;
    }

    #section-3 .section-column.left{
        max-width:50%;
    }
    #section-3 .section-column.right{
        max-width:50%;
    }

    #section-4 .section-column.left{
        max-width: 50%;
    }

    #section-4 .section-column.right{
        max-width: 50%;
    }

    #section5-titles {
        font-size: 5rem;
    }
    
    #section-6 .section-column.left{
        max-width: 50%;
    }
    #section-6 .section-column.right{
        max-width: 50%;
    }

    #section7-titles {
        font-size: 3rem;
    }

    #section7-blurb {
        font-size: 1rem;
    }

    #section-8 .image-container{
        max-height: 50vh;
    }

    #section8-titles{
        font-size: 2.5rem;
    }

    #section-join .section-column.left{
        max-width: 50%;
    }
    #section-join .section-column.right{
        max-width: 50%;
    }
}

/* Small Screens */
@media screen and (max-width: 768px) {
    .section-blurb{
        font-size: 0.8rem;
    }

    .section-column {
        padding: 1rem;
    }

    .section-content {
        padding: 1rem;
    }

    .hero-container-column{
        margin-top: 2rem;
    }
    .hero-title {
        font-size: 3rem;
        margin: 0rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    #section-2 .section-content{
        padding: 1rem;
    }

    #phone2-image{
        max-height: 60vh;
        margin-top: 0rem;
    }

    #section-4 .image-container{
        max-height: 50vh;
    }

    #demo3-container{
        transform: scale(0.7);
        transform-origin: center;
    }

    #section-8 .page-section {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
    }

    #section8-titles {
        margin-bottom: 1rem;
    }

    #section-8 .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        align-content: center;
        flex-wrap: nowrap;
    }
    #section-8 .section-blurb{
        text-align: center;
    }

    #demo4-image {
        max-height: 50vh;
    }

    #section-join .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #section-join .section-column.right {
        order:0;
    }

    #section-join .section-column.left {
        order:1;
    }

    #section-join-titles{
        font-size: 3rem;
        text-align: center;
    }
    #join-overlay-image {
        padding-bottom: 2rem;
    }

    #join-image {
        max-height: 70vh;
    }
}

/* Mobile Screens */
@media screen and (max-width: 670px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-blurb {
        font-size: 0.8rem;
        text-align: center;
    }

    .hero .hero-container-row .btn {
        font-size: 0.7rem;
    }

    .hero-image {
        max-height: 80vh;
        margin-top: 0;
    }

    #section-2 {
        max-height: fit-content;
    }

    #section-2 .section-column.left {
        flex-direction: column;
    }
    #section-2 .section-blurb {
        text-align: center;
    }

    #phone2-image {
        order: 1;
    }

    #section-2-left {
        order: 0;
    }

    #section-3 .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #section-3 .section-column.right {
        order: 0;
        max-width: 100vw;
    }

    #section-3 .section-column.left {
        order: 1;
        max-width: 100vw;
    }

    #demo1-image {
        max-width: 30vh;
    }

    #section-4{
        padding-bottom: 0rem;
    }

    #section-4 .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #section-4 .section-column.right {
        display: none;
        max-width: 100vw;
    }

    #section-4 .section-column.left {
        order: 0;
        max-width: 100vw;
    }

    #demo2-image {
        max-width: 30vh;
    }

    #section5-titles {
        font-size: 1.6rem;
    }

    #section-5 .page-section{
        min-height: 60lvh;
    }
    #section-6 .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #section-6 .section-column.right {
        max-width: 100vw;
    }

    #section-6 .section-column.left {
        order: 0;
        max-width: 100vw;
    }
    #section-6 .btn{
        font-size: 1rem;
    }

    #section7-titles {
        font-size: 1.6rem;
    }
    #section7-blurb {
        font-size: 0.6rem;
    }

    #section-7 .page-section{
        min-height: 60lvh;
        flex-direction: column-reverse;
    }

    #section-8 .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: fit-content;
    }

    #section-8 .btn{
        font-size: 1rem;
    }

    #section8-titles {
        text-align: center;
    }

    #section-8 .section-column.right {
        display: none;
        max-width: 100vw;
    }

    #section-8 .section-column.left {
        order: 0;
        max-width: 100vw;
    }

    #section-9 .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: fit-content;
    }

    #section9-titles {
        text-align: center;
    }

    #section-9 .section-column.right {
        display: none;
        max-width: 100vw;
    }

    #section-9 .section-column.left {
        order: 0;
        max-width: 100vw;
    }

    #section-join .page-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: fit-content;
    }

    #section-join-titles {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    #section-join .section-column.right {
        order: 0;
        max-width: 100vw;
        padding: 0rem;
    }

    #section-join .section-column.left {
        order: 1;
        max-width: 100vw;
        padding: 0rem;
    }

    #join-image{
        max-width: 30vh;
    }

    #join-overlay-image {
        max-height: 50%;
    }

    #section-join .btn{
        font-size: 1rem;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-row-left {
        flex-direction: column;
    }

    .footer-row {
        flex-direction: column;
    }
}

/* Remove or modify the gradient overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,    /* Changed from 0.3 to 0 */
        rgba(0, 0, 0, 0) 50%,   /* Changed from 0.1 to 0 */
        rgba(0, 0, 0, 0) 100%   /* Already 0 */
    );
    pointer-events: none;
    z-index: 1;
}

.hero .btn {
    will-change: opacity, filter;
}
