section.hero-section.flex-container.flex-center > div > p {
    font-size: 120%;
}

main {
    padding: 0em clamp(2em, 15vw, 30em);
}

.text-wrapper > h1 > span {
    color: var(--pink);
    background-image: url('assets/swiggly.svg'); 
    background-repeat: no-repeat;
    background-position: bottom center; 
    background-size: 100% 20px; 
}

.text-wrapper > h1 {
    font-size: 500%;
    margin-bottom: 0;
}

.text-wrapper > h2 {
    margin-top: 0;
}

.chat-bubble {
    position: relative;
    z-index: 2;
    width: 200px;
}

.text-wrapper {
    margin-left: 2em;
    width: 50%;
}

.stepper-item {
    
}

.steppers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 20em;
}

.stepper-card {
    position: relative;
    background: #FFFBFB;
    box-shadow: 0px 4px 20px 8px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 2em;
    width: 25vw;
}

.stepper-card h2 {
    margin-top: 0em;
    max-width: 15ch;
    word-wrap: break-word;
    line-height: 1.3;
}

section.steppers > div.stepper-item p {  
    font-size: 120%;
}

section.steppers > div.stepper-item.shift-left > div > p {    
    max-width: 40ch;
}

section.steppers > div:nth-child(2) > div > h2 {
    max-width: 20ch;
}

section.steppers > div:nth-child(4) > div > p {
    max-width: 30ch;
}

section.steppers > div:nth-child(5) > div > p {
    max-width: 45ch;
}

section.steppers > div.stepper-item.shift-right-more > div > p {
    max-width: 30ch;
}

.stepper-item:nth-child(1) {
    margin-bottom: 6em;
}

section.steppers > div:nth-child(4) > div {
    background: rgb(227,222,238);
}

section.steppers > div.stepper-item.shift-right-more > div {
    background: rgb(207,230,238);
    
}

.stepper-item:nth-child(n+2):nth-child(-n + 3) {
    margin-bottom: 4em;
}

.stepper-item:nth-child(4) {
    margin-bottom: 6em;
}

.stepper-item:nth-child(5) {
    margin-bottom: 4em;
}

.shift-right {
    transform: translateX(5vw); 
}

.shift-right-none {
    transform: translateX(0); 
}

.shift-right-more {
    transform: translateX(10vw); 
}

.shift-left {
    transform: translateX(-5vw); 
}

.stepper-card > h2 > span {
    color: var(--pink);
    background-image: url('assets/swiggly.svg'); 
    background-repeat: no-repeat;
    background-position: bottom center; 
    background-size: 100% 20px; 
    padding-bottom: 5px; 
}

.stepper-card > h2  {
    margin-top: 0em;
}

.stepper-count {
    position: absolute;
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 50%;
    width: 3em; 
    height: 3em; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2; 
    top: -1em; 
}

.stepper-count-left {    
    left: -1em; 
}

.stepper-count-right {
    right: -.5em; 
}

.stepper-1-mascot {
    position: absolute;
    right: -10em;
    top: -5em;
    scale: 70%;
}

.stepper-1-left-tree {
    position: absolute;
    left: -10em;
    bottom: -3em;
    scale: 70%;
}

.stepper-1-left-circle {
    position: absolute;
    left: -15em;
    top: -8em;
    scale: 70%;
    z-index: -1;
}


.stepper-2-right {
    position: absolute;
    right: -18em;
    top: -13em;
    scale: 70%;
    z-index: -1;
}

.stepper-2-left {
    position: absolute;
    left: -23em;
    bottom: -10em;
    scale: 70%;
    z-index: -1;
}

.stepper-1-left {
    position: absolute;
    right: -18em;
    top: -13em;
    scale: 70%;
    z-index: -1;
}


.stepper-voice-assist {
    position: absolute;
    left: -20em;
    bottom: -5em;
    scale: 70%;
    z-index: -1;
}

.stepper-lang {
    position: absolute;
    right: 1.5em;
    bottom: 2em;
    scale: 90%;
}

.stepper-voice-assist-right {
    position: absolute;
    right: 0em;
    bottom: 1.5em;
    scale: 80%;
}

.stepper-medical-right {
    position: absolute;
    right: -25em;
    bottom: 1.5em;
    scale: 80%;
}

.stepper-medical-left {
    position: absolute;
    left: -15em;
    top: -10em;
    scale: 80%;
    z-index: -1;
}

.stepper-prod-right {
    position: absolute;
    right: -15em;
    bottom: -3em;
    scale: 80%;
    z-index: -1;
}

.stepper-prod-left {
    position: absolute;
    left: -20em;
    top: -10em;
    scale: 80%;
}

.stepper-line {
    position: absolute;
    z-index: -3;    
}

.footer-circle {
    display: block;      /* Ensure it behaves like a block element */
    width: 100%;
    max-width: 100vw;    /* Keeps it from overflowing */
    height: auto;
    object-fit: contain;
    position: static;    /* This puts it back into the normal page flow */
    
    /* This shorthand now controls spacing and centering */
    margin: 0 auto 0; 
}

.bg-top {
    top: -30vh;
    width: 100vw;
    position: absolute;
    z-index: -2;
    height: auto; 
    object-fit: cover; 
    object-position: center;
}

@media screen and (min-width: 1920px) {
    .bg-top {
        top: -60vh;
    }
}


@media screen and (max-width: 1024px) {    

    main {
        padding: 0em 5em;
    }
    
    .hidden-on-small {
        display: none; 
    }

    .bg-top {
        top: 0;
    }

    .steppers {
        margin-top: 5em;
        padding: 0 2em;
    }

    .stepper-item {
        width: 95%;
    }

    section.hero-section.flex-container.flex-center > div > p {
        font-size: 120%;    
    }

    section.hero-section.flex-container.flex-center > div > h1 {
        font-size: 300%;
    }

    section.hero-section.flex-container.flex-center > div > h2 {
        font-size: 150%;
    }
    
    .stepper-card {
        width: 90%;
        margin: 0 auto;
    }
    
    .text-wrapper {
        width: 90%;
    }

    .stepper-count {
        width: 2em; 
        height: 2em; 
        font-size: 1.5em;
        top: -.5em;
    }

    .stepper-item:nth-child(n+2):nth-child(-n + 3) {
        margin-bottom: 1.5em;
    }

    .stepper-item:nth-child(-n + 5) {
        margin-bottom: 1.5em;
    }

    
    .footer-circle {
        margin-top: 5em;
    }


    .shift-right {
        transform: none;
    }
    
    .shift-right-none {
        transform: translateX(0); 
    }
    
    .shift-right-more {
        transform: translateX(0); 
    }
    
    .shift-left {
        transform: translateX(0); 
    }
}

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {

    .hidden-on-small {
        display: none; 
    }

    main {
        padding: 0em 0em;
    }

    bg-top {
        width: 100vw;
        height: 100vh; 
        top: -5em; 
        left: 0;
        object-fit: fill;
    }


    .steppers {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        margin-top: 5em;
        padding: 0 0;
    }
    
    .text-wrapper {
        margin-left: 1em;
        width: 70%;
    }
    
    .chat-bubble {
        width: 150px;
    }
    
    .stepper-card {
        width: 100%;
        padding: 1.5em;
        border-radius: 20px;
    }
        
    .shift-right {
        transform: translateX(0); 
    }
    
    .shift-right-none {
        transform: translateX(0); 
    }
    
    .shift-right-more {
        transform: translateX(0); 
    }
    
    .shift-left {
        transform: translateX(0); 
    }
    
    .stepper-item:nth-child(-n + 5) {
        margin-bottom: 1em;
    }

    .footer-circle {
        margin-top: 5em;
        width: 100%;
        max-width: none;
        left: 0;
        transform: none;
    }
}

/* Mobile devices (480px and below) */
@media screen and (max-width: 480px) {

    .hidden-on-small {
        display: none; 
    }

    main {
        padding: 0em 1em;
    }

    .shift-right {
        transform: translateX(0); 
    }
    
    .shift-right-none {
        transform: translateX(0); 
    }
    
    .shift-right-more {
        transform: translateX(0); 
    }
    
    .shift-left {
        transform: translateX(0); 
    }
    
    .text-wrapper {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .chat-bubble {
        width: 120px;
        margin: 0 auto;
    }
    
    .steppers {
        align-items: center;
    }
    
    .stepper-card {
        width: 85%;
        padding: 1em;
        border-radius: 15px;
    }
    
    .stepper-item:nth-child(-n + 5) {
        margin-bottom: 1em;
    }

    .bg-top {
        width: 100vw;
        height: 100vh;
        top: -20em;
        left: 0;
        object-fit: cover; 
        scale: 400%;
    }

    .footer-circle {
        margin-top: 5em;
        width: 100%; 
        max-width: 100%; 
        left: 50%;
        transform: translateX(-50%);
        object-fit: contain; 
        object-position: center;
    }

    
}

/* Small mobile devices (320px and below) */
@media screen and (max-width: 320px) {

    .hidden-on-small {
        display: none; 
    }

    .stepper-card {
        max-width: 90%;
        padding: 0.8em;
    }
    
    .bg-top {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        object-fit: cover;
        scale: 400%;
    }
}

.desktop-nav-links {
    display: none;
    align-items: center;
}

.desktop-nav-links>a+a {
    margin-left: 2.5rem;
}

.desktop-nav-links a {
    font-weight: 500;
    color: var(--dark-blue);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.desktop-nav-links a:hover {
    opacity: 0.75;
}

.mobile-menu-button-wrapper {
    display: block;
}

.mobile-menu-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 51;
}

.hamburger-line {
    display: block;
    width: 1.4rem;
    height: 2px;
    background-color: var(--dark-blue);
    transition: opacity 0.3s ease-in-out;
}
.mobile-menu-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-checkbox:checked~.mobile-menu-button::after {
    opacity: 1; /* Show the X icon */
}

/* Hide the hamburger lines when checked */
.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line {
    opacity: 0;
}

@media (min-width: 768px) {
    .desktop-nav-links {
        display: flex;
    }

    .mobile-menu-button-wrapper {
        display: none;
    }

    .mobile-nav-links {
        display: none;
    }
}


/* --- MOBILE MENU STYLES --- */
.mobile-menu-checkbox {
    display: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    padding: 100px 30px 30px;
    z-index: 49;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s;
}

.mobile-nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
    background-color: #f3f4f6;
}

.mobile-menu-checkbox:checked~.mobile-nav-links {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.intro-page-footer {
    position: relative;
    z-index: 10;
    margin-top: -5vw;
    background-color: #bedeb5;
    background-image: url('assets/IntroFooter.svg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding: 200px var(--space-md, 1.5rem) 32px;
    text-align: center;
    color: var(--dark-blue);
}

.footer-headline {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
}

.footer-cta-buttons {
    margin-top: var(--space-lg, 3rem);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm, 1rem);
}

.btn-footer-primary,
.btn-footer-secondary {
    width: auto;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-footer-primary img,
.btn-footer-secondary img {
    width: 24px;
    height: 24px;
}

.btn-footer-primary {
    background-color: var(--white);
    color: #1e40af;
}

.btn-footer-primary:hover {
    background-color: #f3f4f6;
}

.btn-footer-secondary {
    background-color: #15803d;
    color: var(--white);
}

.btn-footer-secondary:hover {
    background-color: #166534;
}

.footer-spacer {
    height: 64px;
}

.footer-credits {
    font-size: 14px;
    line-height: 1.5;
}


/* 2. Responsive Styles for Footer (Copied from styles.css) */
/* -------------------------------------------------------------------- */
@media (max-width: 992px) {
    .footer-headline {
        font-size: 1.875rem; /* 30px */
    }
}


/* 3. Customization for 'How It Works' Page Footer */
/* -------------------------------------------------------------------- */
.how-it-works-footer {
    background-image: none;      /* REMOVE the green SVG background */
    background-color: #7ca5cb; 
    padding-top: 00px;       /* ADD your desired blue color */
}

/* Make text white on the new blue background for contrast */
.how-it-works-footer .footer-headline,
.how-it-works-footer .footer-credits,
.how-it-works-footer .footer-credits b {
    color: white;
}