*, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.bg-tablet {
    position: absolute;
    right: -7rem;
    top: -11rem;
    z-index: -1;
}


/* HAMBURGER */

/* off-screen-menu */
.off-screen-menu {
    background-color:  rgb(34, 37, 49);
    width: 100%;
    max-width: 600px;
    position: fixed;
    top: 0;
    right: -600px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    font-size: 1.7rem;
    transition: .3s ease;
    height: 100vh;
}

.off-screen-menu.active {
    right: 0;
}

.hamburger {
    display: none;
}

.nav-bar {
    padding: 1rem;
    display: flex;
}



/* ham menu */
.ham-menu {
    height: 40px;
    width: 30px;
    margin-left: auto;
    position: relative;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: rgb(255, 116, 52);
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ham-menu-ul li > a {
    color: orange;
    text-transform: capitalize;

}

/* HEADER */

header {
    position: relative;
}

.header-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}


nav {
    font-family: "Gabarito", sans-serif;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

a {
    color: rgb(16, 16, 79);
    text-decoration: none;
}

button {
    padding: 15px 20px;
    border: transparent;
    border-radius: 2rem;
    background: rgb(255, 116, 52);
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
    width: 10rem;
    box-shadow: 0px 5px 20px rgb(226, 86, 21);;
}


/* HERO */

.hero {
    display: flex;
    margin-bottom: 8rem;
}

.hero-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding-bottom: 2.5rem;
    
}

.hero-right {
    width: 50%;
}

h2 {
    font-family: "Gabarito", sans-serif;
    font-weight: 600;
    color: rgb(18, 18, 91);
}

.hero-h2 {
    width: 80%;
    font-size: 3.7rem; 
}

p {
    font-size: 17px;
    font-family: "Space Grotesk", sans-serif;
    color: rgb(146, 143, 143);
    line-height: 1.5;
}

.hero-p {
    width: 60%;
}

/* MIDDLE */

.middle {
    display: flex;
    margin-bottom: 3rem;
}

.middle-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.middle-left {
    width: 50%;
}

span {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.middle-h2 {
    width: 80%;
    font-size: 2.7rem;
    margin-bottom: 2rem;
}

.middle-p {
    width: 60%;
}

.middle-number {
    background: rgb(226, 86, 21);
    padding: 5px 20px;
    color: white;
    border-radius: 15px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
}

h3 {
    font-family: "Gabarito", sans-serif;
    font-weight: 600;
    color: rgb(18, 18, 91);
    margin-bottom: 1rem;
}

.box-p {
    margin-left: 5rem;
    width: 77%;
}

/* BOTTOM */

.bottom {
    margin-top: 6rem;
    margin-bottom: 6rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bottom-h2 {
    text-align: center;
    font-size: 2.7rem;
    margin-bottom: 4rem;
}

.bottom-box {
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    background: rgb(230, 226, 226);
    width: 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 8px;
    user-select: none;
    flex-shrink: 0;
}

h4 {
    margin-top: 3rem;
    margin-bottom: 1.3rem;
    font-family: "Space Grotesk", sans-serif;
}

.bottom-img {
    width: 4rem;
    position: absolute;
    top: -2.5rem;
}

.bottom-p {
    width: 80%;
    text-align: center;
    color: gray;
    margin-bottom: 2.7rem;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.carousel {
    display: flex;
    gap: 30px;
    padding: 10px;
}

.bottom-image {
    position: absolute;
    z-index: -1;
    right: 60rem;
    top: -21rem;
}

/* BOTTOM-BOTTOM */

.bottom-bottom {
    background: rgb(255, 100, 28);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-bottom-h2 {
    color: white;
    font-size: 2.4rem;
}

.bottom-button {
    background: white;
    color: rgb(255, 100, 28);
    cursor: pointer;
    
}

.bottom-bottom-img {
    position: absolute;
}

/* FOOTER */

footer {
    background: rgb(1, 3, 12);
    padding-bottom: 2rem;
}

.footer-wrapper {
    padding-top: 2.5rem;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

li {
    color: white;
    list-style: none;
    font-family: "Space Grotesk", sans-serif;
}

ul {
    line-height: 2;
}

input {
    padding: 7px 20px;
    border: 2px solid rgb(255, 100, 28);
    border-radius: 10px;
}

.submit {
    width: 3rem;
    padding: 10px 0;
    border-radius: 10px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.social {
    display: flex;
    gap: 10px; 
}

.off-sceen-menu {
    background-color: rgb(255, 100, 28);
    height: 80vh;
    width: 100%;
    max-width: 70%;
    position: fixed;
    right: -100%;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    font-size: 3rem;
}

.off-sceen-menu.active {
    right: 0;
}

.footer-ul {
    display: flex;
    gap: 7rem;
    margin: 3rem 0;
}

.footer-ul li a {
    color: white;
    list-style: none;
    font-family: "Space Grotesk", sans-serif;
}

.footer-ul li a:hover {
    color: rgb(255, 100, 28);
}





@media (max-width: 768px) {
    

    .header-wrapper {
        padding-left: 2rem;
        padding-right: 1rem;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        margin: 0;
    }

    nav, .header-wrapper a button {
        display: none; 
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-p {
        width: 57%;
    }


    .hero-right {
        display: flex;
        justify-content: center;
    }

    .hero-right img {
        width: 100%;
    }

    .hero-h2 {
        font-size: 2.5rem;
        width: 90%;
    }

    .hero-p {
        width: 90%;
    }

    .middle {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .middle-left, .middle-right {
        width: 100%;
        justify-content: center;
        align-items: center
    }

    .middle-left {
        display: flex;
        flex-direction: column;
        width: 85%;
        margin-bottom: 2rem;
    }

    .middle-p {
        text-align: center;
    }

    .middle-right h3 {
        background-color: hsl(12, 88%, 59%);
        padding: 10px 20px;
        border-radius: 5px;
    }

    .middle-number {
        display: none;
    }

    .middle-h2 {
        text-align: center;
    }

    .middle-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    

    .middle-h2, .middle-p {
        width: 90%;
    }

    .box-p {
        margin-left: 0;
        width: 70%;
        text-align: center;
    }

    .carousel {
        flex-direction: column;
        align-items: center;
    }

    .bottom-box {
        width: 90%;
    }

    .bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .bottom-bottom-h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }


    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }

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

    ul {
        padding: 0;
    }

    .footer-form {
        width: 100%;
    }

    .bg-tablet {
        display: none;
    }


    .hamburger {
        display: block;
    }


}



