:root {
    --main-bg-color: #d81515;
}
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 1rem;
}

.logo img {
    object-fit: fill;
    height: 62px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navlinks {
    display: flex;
    gap: 1rem;
}

.nav a {
    font-weight: 500;
    color: white;
    text-decoration: none;
    margin: 10px;
}
.buttons {
    display: flex;
    gap: 1rem;
}

.type1 {
    cursor: pointer;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    font-weight: 500;
    font-size: 14px;
}

.type2 {
    cursor: pointer;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: 2px solid white;
    color: white;
    font-weight: 500;
    font-size: 14px;
    background-color: #d81515;
}

.hero {
    text-align: center;
    padding: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #d81515 0% 70%, white 70% 100%);
}

.hero_section_1 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: white;
    font-size: 60px;
    font-weight: bold;
    letter-spacing: -3px;
}
.hero h2 {
    color: white;
    font-weight: 400;
}

.app-buttons {
    padding: 4rem 0rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.app-buttons img {
    object-fit: contain;
}

.phone-mockups {
    display: flex;
    justify-content: space-around;
    align-items: top;
    gap: 4rem;
}

.phone-down {
    padding-top: 4rem;
}

.about {
    padding: 6rem;
    display: flex;
    gap: 2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-img {
    object-fit: contain;
    max-width: 500px;
    width: 100%;
}

.about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: start;
    gap: 2rem;
}

.about-text {
    font-size: 19px;
    font-weight: normal;
    color: #576487;
}

.steps {
    padding: 6rem 0rem;
    display: flex;
    justify-content: space-between;
    align-items: top;
}

.cards {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cards .title {
    padding-bottom: 2rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.title h4 {
    color: #d81515;
    font-weight: bolder;
    text-align: center;
}
.title h2 {
    color: #170b35;
    font-size: 54px;
    font-weight: bold;
    line-height: 60px;
    text-align: center;
}

.title p {
    color: #576487;
    font-size: 19px;
    text-align: center;
}

.step-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 600px;
}

.step-icon {
    margin-right: 1.5rem;
}

.step-text {
    text-align: center;
    width: 100%;
}
.step-text h3 {
    color: #061945;
    font-weight: 500px;
    font-size: 30px;
}

.CTA {
    display: flex;
    padding: 2rem 6rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.functions {
    padding: 6rem;
    padding-bottom: 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.functions .title {
    text-align: center;
}

.functions-content {
    display: flex;
    padding-top: 6rem;
    width: 100%;
}

.functions-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-lay {
    object-fit: contain;
    width: 100%;
}

.functions-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.functions-card {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;

    text-align: center;
}

.functions-card h3 {
    text-wrap: pretty;
    color: #061945;
    font-weight: bold;
    font-size: 28px;
}

.functions-card p {
    color: #576487;
    font-size: 16px;
}

.icon {
    display: none;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 1rem;
}
.social {
    display: flex;
    justify-content: center;
}

.floating-bar {
    position: fixed;
    top: 75%;
    right: 0;
    transform: translateY(-50%);
    background-color: #333;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    z-index: 1000;
}
.floating-bar a {
    display: block;
    margin: 10px 0;
}
.floating-bar img {
    width: 30px;
    height: 30px;
}

.contact-body {
    padding: 6rem;
    height: auto;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: row;
    gap: 2rem;
}

.form-container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.1);
}

.form-container form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 20px;
}
.form-group-half {
    gap: 0.25rem;
    width: 100%;
    display: flex;
}

.w-full {
    width: 100%;
}

.form-group label {
    font-weight: bold;
    font-family: "DM Sans";
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
}
textarea {
    height: 17vh;
    resize: vertical;
}
.submit-btn {
    background-color: #d81515;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.submit-btn:hover {
    background-color: #c62b38;
}

.newsletter {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.newsletter .title {
    width: 100%;
}
.newsletter-form {
    padding: 3rem 0rem;
    width: 75%;
    gap: 1rem;
    display: flex;
    align-items: center;
    text-align: center;
}

.newsletter-form .email {
    width: 100%;
    border: 1px rgb(169, 167, 167) solid;
    border-radius: 10px;
    font-weight: 500;
    font-size: 18px;
}

.newsletter-form .button {
    width: 25%;
    cursor: pointer;
    border: none;
    font-weight: 500;
    font-size: 18px;
    background: #d81515;
    color: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
}

.newsletter-form .button:hover {
    background-color: #c62b38;
}

.categories {
    padding-left: 40px;
}
.categories li {
    list-style-type: square;
}
.categories li::marker {
    list-style-type: square;
    color: green;
}
.categories li:nth-child(2n)::marker {
    color: #d81515;
}

@media only screen and (max-width: 1226px) {
    .nav {
        display: none;
        flex-direction: column;
        align-items: start;
        padding-left: 1.2rem;
    }

    .navlinks {
        flex-direction: column;
        align-items: start;
    }

    footer .nav {
        display: flex;
    }

    .header {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: start;
        justify-content: left;
        background-color: var(--main-bg-color);
        padding: 1rem;
    }

    .topnav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .side-image-small {
        display: block;
    }
    .side-image {
        display: none;
    }
    .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 70px;
        width: 70px;
        cursor: pointer;
    }

    .header button {
        padding: 0.75rem 2rem;
        font-size: 14px;
    }
    .hero {
        flex-direction: row;
        text-align: start;
        padding: 3rem;
        justify-content: space-around;
        gap: 1rem;
        background: linear-gradient(to bottom, #d81515 0% 80%, white 80% 100%);
    }

    .about {
        padding: 3rem;
        flex-direction: column;
    }

    .steps {
        padding: 3rem;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero_section_1 {
        text-align: left;
        height: fit-content;
    }

    .phone-mockups .phone-down {
        display: none;
    }

    .CTA {
        flex-direction: column;
        gap: 1rem;
    }

    .functions {
        padding: 3rem;
    }
    .contact-body {
        padding: 3rem;
    }
    .newsletter {
        padding: 3rem;
    }

    .functions-content {
        flex-direction: column;
        align-items: center;
    }
    .phone-lay {
        max-width: 650px;
    }

    .functions-image,
    .functions-cards {
        width: 100%;
    }
}

@media only screen and (max-width: 1049px) {
    .hero {
        flex-direction: row;
        background: linear-gradient(to bottom, #d81515 0% 90%, white 90% 100%);
    }
    .hero_section_1 {
        text-align: left;
        height: fit-content;
    }

    .phone-mockups {
        display: none;
    }

    .contact-body {
        flex-direction: column;
    }

    .newsletter {
        flex-direction: column;
    }
    .newsletter-form {
        width: 100%;
    }
    .newsletter-form .button {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .hero {
        padding: 3rem 1rem;
        background: #d81515;
    }
    .hero h1 {
        font-size: 40px;
    }

    .about-img {
        max-width: 250px;
    }

    .steps {
        padding: 3rem 1rem;
    }

    .steps h2 {
        font-size: 40px;
    }
    .step-text h3 {
        font-size: 22px;
    }

    .functions {
        padding: 3rem 2rem;
    }
    .about {
        padding: 3rem 1rem;
    }
    .functions-card {
        padding: 2rem 1rem;
    }
    .contact-body {
        padding: 3rem 1rem;
    }
    .newsletter {
        padding: 3rem 1rem;
    }

    .CTA {
        padding: 3rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .app-buttons {
        display: flex;
        gap: 2rem;
        flex-direction: column;
        align-self: center;
    }
    .title h2 {
        font-size: 40px;
    }
    .about-text {
        font-size: 19px;
    }
    .floating-bar {
        display: none;
    }
    .form-group-half {
        gap: 0rem;
        flex-direction: column;
    }
    footer {
        flex-direction: column;
        gap: 2rem;
    }
    footer .nav {
        display: flex;
    }
}
