body {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #fff;
    background: var(--dark-purple);
    padding-top: 60px;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--pink);
    text-decoration: none;
}

/* Wrapper to ensure content and footer are positioned correctly */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.container {
    padding: 0 7rem;
    margin: 0 auto;
    overflow: hidden;
}

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

#hero-section .container h1,
#hero-section .container p {
    max-width: 1000px;
}

#hero-section .container p {
    font-weight: 400;
}

.max-width {
    max-width: 1400px;
    margin: auto;
}

.cta-button {
    background: var(--yellow);
    color: #333;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    background: var(--orange);
    transition: 0.3s;
}

header .container {
    text-align: center;
}

header .container h1 {
    margin-bottom: 20px;
}

header .container p {
    font-size: 1.2em;
}

/* Main content should take all available space */
main {
    flex: 1;
}

.features {
    padding: 20px 0;
}

h2 {
    color: var(--light-pink);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#intro-section {
    padding-top: 1rem;
    /* move contents to middle */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* justify-content: center; */
    text-align: center;
}


#hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40vh;
    text-align: center;
    background: linear-gradient(rgba(128, 0, 255, .2), rgba(128, 0, 255, .2)), url('../img/hero.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

#hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(128, 0, 255, 0.7) 20%);
    pointer-events: none;
}

#hero-section h1 {
    font-size: 2.2rem;
    margin: 0.5rem;
    padding-top: 3rem;
    position: relative;
}

#hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    width: 80%;
    margin: auto;
}

.carousel {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px 30px;
    border-radius: 50px;
    position: relative;
    overflow: hidden; /* Ensure the pseudo-element is contained within the testimonial */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-404.jpg') no-repeat center center/cover;
    opacity: 0.5;
    z-index: -1;
}

.logo-carousel-container {
    overflow: hidden;
    width: 80%;
    margin: 40px auto;
}

.logo-carousel {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

/* .logo-carousel.no-transition {
    transition: none !important;
} */

.logo {
    flex-shrink: 0;
    width: auto;
    margin: 0 40px;
}

.logo img {
    height: 3vh;
    filter: brightness(0) invert(1);
}

@media (min-width: 550px) and (max-width: 850px) {
    #hero-section h1 {
        font-size: 1.8rem;
        margin: 0.4rem;
        padding-top: 1rem;
        position: relative;
    }

    #hero-section p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        position: relative;
    }

    #hero-section.container {
        padding-bottom: 0rem;
    }

    .container {
        padding: 0 6rem;
    }

    .logo img {
        height: 2vh;
    }
}

@media (min-width: 400px) and (max-width: 549px) {
    #hero-section h1 {
        font-size: 1.5rem;
        margin: 0rem;
        padding-top: 1rem;
        position: relative;
    }

    #hero-section p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        position: relative;
    }

    .container {
        padding: 0 4rem;
    }

    .logo img {
        height: 1.8vh;
    }
}

@media (max-width: 399px) {
    body {
        font-size: 0.8rem;
    }

    #hero-section h1 {
        font-size: 1.3rem;
        margin: 0rem;
        padding-top: 1rem;
        position: relative;
    }

    #hero-section p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        position: relative;
    }

    .container {
        margin: auto;
        overflow: hidden;
    }

    .container {
        padding: 0 2rem;
    }

    .logo-carousel-container {
        margin: 20px auto;
    }

    .logo {
        margin: 0 10px;
    }

    .logo img {
        height: 1.5vh;
    }
}

footer {
    background: var(--dark-purple);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.cta-button-submit {
    padding: 8px 14px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    cursor: pointer;
}

.cta-button-submit:hover {
    background-color: white;
    color: black;
    /* Change the text color to something visible against the white background */
}