@import url("https://fonts.googleapis.com/css2?family=Urbanist&display=swap");

:root {
    --handi-purple: #5047B4;
    --inactive: #8D8D8D;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: "Urbanist";
}

body>* {
    max-width: 80%;
    margin: 0px auto;
}

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

button{
    transition: 300ms;
}

button:hover{
    cursor: pointer;
    background-color: #373360;
}

.flexed {
    display: flex;
}

/* Nav bar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px auto 75px;
    padding: 0px 10px;
    background-color: #3F388B1A;
}

.logo-div {
    width: 21%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo-img{
    height: auto;
    width: 50px;
}

.nav-links {
    width: 45%;
    display: flex;
    justify-content: space-between;
}

.nav-link:hover{
    color: var(--handi-purple);
}

.nav-link {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.link {
    color: var(--handi-purple);
    font-weight: 600;
    font-size: 16px;
}

.menu {
    display: none;
}

@media(max-width: 800px) {
    .logo {
        font-size: 30px;
    }

    .nav-links,
    .link {
        display: none;
    }

    .menu-items {
        margin-top: 10px;
        padding: 5px 5px 10px;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: #fff;
        position: absolute;
        top: -50px;
        right: 1px;
        z-index: 1;
        box-shadow: 0px 0px 17.0153px rgba(0, 0, 0, 0.12);
        width: 80px;
        text-align: center;
    }

    .menu-item {
        font-size: 16px;
        padding-bottom: 20px;
        border-bottom: 4px solid;
    }

    .menu {
        display: block;
    }
}

@media(max-width: 500px) {
    .logo {
        font-size: 26px;
    }
}

/* Hero section */

.hero {
    display: flex;
    gap: 61px;
    margin-bottom: 98px;
}

.hero-textbox {
    max-width: 30%;
}

.hero-title {
    font-size: 75px;
    font-weight: 400;
    margin-top: 0px;
    color: var(--handi-purple);
}

.hero-subtitle {
    color: #ABABAB;
    font-size: 32px;
    font-weight: 400;
}

.img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.hero-imgDiv {
    position: relative;
    max-width: 800px;
}

.arrow {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    top: 45%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    cursor: pointer;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.arrow-left {
    left: 0px;
}

.arrow-right {
    right: 0px;
}

@media(max-width: 800px) {
    .hero {
        flex-direction: column;
        gap: 0px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 46px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        margin-top: 0px;
        font-size: 32px;
    }

    .hero-textbox {
        max-width: 100%;
    }
}

@media(max-width: 500px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 26px;
    }
}

/* Services section */

.services {
    margin-bottom: 300px;
}

.services-tab {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 600px;
    flex-wrap: wrap;
    row-gap: 60px;
}

.tab {
    border-left: 5px solid #FFCCD5;
    padding: 5px 0px 5px 27px;
    max-width: 400px;
}

.middle-tab {
    margin-top: 20%;
}

.services .flexed {
    justify-content: space-between;
}

.tab-title {
    color: var(--handi-purple);
    font-weight: 400;
    font-size: 36.66px;
}

.tab-text {
    color: #6D6D6D;
    font-size: 27.5px;
}

.services-text {
    color: var(--handi-purple);
    width: 350px;
    align-self: center;
}

.services-text h1 {
    font-size: 60px;
    font-weight: 400;
    line-height: 89px;
}

.services-title {
    color: var(--handi-purple);
    font-size: 56px;
    font-weight: 400;
}

.services-cards {
    margin-top: 75px;
}

.services-card {
    background-color: #3F388B1A;
    min-height: 350px;
    width: 300px;
    border: 1px solid #3F2536;
    border-radius: 23px;
    padding: 40px 28px 0px;
}

.services-card:hover{
    box-shadow: 0px 4px 60px 8px rgba(0, 0, 0, 0.25);
}

.services-cards span {
    align-items: center;
    display: flex;
    gap: 25px;
    height: 50px;
}

.card-label {
    font-size: 37px;
}

.card-bar {
    width: 46px;
    border: 3px solid #3F2536;
    border-radius: 5px;
}

.card-title {
    font-size: 28px;
    color: var(--handi-purple);
}

.card-text {
    font-size: 23px;
    line-height: 35px;
}

@media(max-width: 800px) {
    .services {
        margin-bottom: 10px;
    }

    .flexed {
        display: block;
    }

    .services-tab {
        display: block;
        width: 100%;
        height: auto;
    }

    .middle-tab {
        margin-top: 0px;
    }

    .tab {
        margin-top: 30px;
    }

    .services-text {
        font-size: 50px;
        width: 100%;
    }

    .services-title {
        display: none;
    }

    .services-card {
        min-height: 450px;
        margin-bottom: 20px;
        padding: 5px 50px 0px;
        width: auto;
    }

    .services-card>span {
        height: 80px;
    }
}

/* About section */
#about {
    background-image: url("./images/main-background.png");
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: cover;
    padding: 80px 20px 0px;
}

.about {
    display: flex;
    gap: 50px;
    margin-top: 60px;
}

.about-textbox {
    width: 60%;
}

.section-title {
    color: var(--handi-purple);
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 40px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-line {
    width: 180px;
    height: 8px;
    background-color: var(--handi-purple);
}

.about-header {
    font-size: 40px;
    font-weight: 400;
}

.about-text {
    color: #858181;
    font-size: 23px;
    line-height: 35px;
}

.about-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 80px;
}

.grid-item {
    display: flex;
    gap: 20px;
    max-width: 400px;
}

.grid-item img {
    align-self: flex-start;
}

.item-title {
    margin: 0px;
    font-size: 21px;
}

.item-text {
    margin-top: 10px;
    line-height: 18px;
}

.about-imgDiv {
    position: relative;
}

.img-no-show {
    display: none;
}

@media(max-width: 800px) {
    .main-img {
        display: none;
    }

    .img-no-show {
        display: block;
        margin: 50px 0px 0px;
    }

    .about {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .about-title {
        font-size: 50px;
        font-weight: 700;
    }

    .about-textbox {
        width: 100%;
    }

    .about-text {
        font-size: 19px;
    }

    .about-grid {
        grid-template-columns: auto;
        row-gap: 2rem;
        margin-top: 5rem;
    }

    .grid-item {
        max-width: 100%;
    }

    .about-imgDiv {
        width: 100%;
    }

    .about-imgDiv img {
        max-width: 100%;
        height: auto;
    }
}

/* Products Section */
.products {
    background-image: url("./images/product-background.png");
    background-position: 10%;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10px 60px 170px;
}

.products-title {
    font-size: 38px;
    font-weight: 600;
}

.products-main {
    display: flex;
    gap: 144px;
    color: #858181;
    align-items: center;
}

.products-main+.products-main {
    margin-top: 48px;
}

.products-main>* {
    width: 100%;
}

.middle-product {
    flex-direction: row-reverse;
}

.product-img {
    max-width: 461px;
}

.product-img img {
    max-width: 100%;
    height: auto;
    box-shadow: 0px 4px 60px 8px rgba(0, 0, 0, 0.25);
}

.products-text {
    margin-top: 10px;
    line-height: 30px;
}

@media(max-width: 800px) {
    .products-main {
        flex-direction: column;
        gap: 20px;
    }
}


/* Contact section */

.contact-header{
    margin-top: 5rem;
}

.contact {
    margin: 3rem auto 15vh;
    display: flex;
    gap: 50px;
    box-shadow: 0px 0px 72.9229px 36.4615px rgba(0, 0, 0, 0.03);
    padding: 10px 15px 10rem 15px;
}

.contact-card {
    background-color: var(--handi-purple);
    color: white;
    padding-left: 50px;
    width: 500px;
    border-radius: 12px;
}

.card-subtitle {
    font-weight: 400;
    margin-bottom: 67px;
}

.contact-details {
    display: flex;
    gap: 30px;
}

.contact-details+.contact-details {
    margin-top: 60px;
}

form {
    width: 90%;
    padding: 50px 0px;
}

fieldset {
    border: none;
}

.client-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    color: #3F2536;
}

.input-box {
    width: 350px;
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.input-box>input {
    width: 95%;
    border: none;
    border-bottom: 1.2px solid var(--inactive);
    padding-bottom: 15px;
    outline: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
}

.input-box>label {
    color: var(--inactive);
    font-weight: 500;
}

.input-box>input[type="number"] {
    appearance: textfield;
}

.input-box>input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

.input-box>input:focus {
    border-bottom: 1.2px solid #3F2536;
}

.client-inquiry {
    margin-top: 30px;
    padding-right: 60px;
}

.inquiry-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--handi-purple);
}

.message-label {
    display: block;
    color: var(--inactive);
    margin: 60px 0px 10px;
}

textarea {
    width: 98%;
    border: none;
    border-bottom: 1.2px solid var(--inactive);
    resize: none;
    padding-bottom: 7px;
    outline: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    color: var(--inactive);
}

textarea:focus {
    color: #3F2536;
}

.flex-d-button {
    margin-top: 20px;
    width: 91%;
    display: flex;
    flex-direction: column;
}

.form-button {
    width: 275px;
    height: 79px;
    background-color: var(--handi-purple);
    color: white;
    font-size: 19px;
    font-family: inherit;
    border: none;
    box-shadow: 0px 0px 17.0153px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    align-self: flex-end;
}

@media(max-width: 800px) {
    .contact {
        flex-direction: column;
        margin-top: 5rem;
        padding-bottom: 20px;
    }

    .contact-card {
        width: auto;
        padding: 2rem;
    }

    .input-box {
        width: 100%;
    }

    .flex-d-button {
        width: 100%;
    }

    .form-button {
        margin: 0px auto;
        align-self: center;
    }
}

@media(max-width: 500px) {
    form {
        width: 100%;
    }

    .form-button {
        width: 90%;
    }
}

/* Footer */
footer {
    background-color: #F3F3F3;
    padding: 30px 30px 15px;
}

footer>.flexed {
    justify-content: space-between;
    margin-bottom: 90px;
}

.footer-content {
    background-color: #F3F1FC;
}

.footer-line {
    width: 41px;
    height: 8px;
    background-color: var(--handi-purple);
    border: none;
    margin-bottom: 50px;
    margin-left: 0px;
}

.logo_box {
    width: 40%;
}

.logo_box-text {
    color: #858181;
    line-height: 30px;
}

.logo-span {
    display: flex;
    gap: 14px;
}

.logo-text {
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    color: var(--handi-purple);
}

.footer-links{
    padding: 10px 20px;
    margin-left: -20px;
}

.footer-link{
    color: var(--handi-purple);
}

.footer-link a{
    text-decoration: underline;
}

.footer-link+.footer-link {
    margin-top: 16px;
}

.footer-note {
    font-size: 16px;
}

.footer-email {
    box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    border: none;
    width: 270px;
    height: 40px;
    position: relative;
    z-index: 0;
    padding-left: 30px;
}

.footer-button {
    background-color: var(--handi-purple);
    width: 87.93px;
    height: 31px;
    border: none;
    border-radius: 20px;
    color: white;
    font-family: inherit;
    float: right;
    margin-top: -36px;
    margin-left: -60px;
    position: relative;
}

@media(max-width: 800px){
    .footer-button{
        margin-left: -100px;
        float: none;
    }

    .logo_box{
        width: 100%;
    }

    footer>.flexed {
        margin-bottom: 5vh;
    }
}

@media(max-width: 400px){
    .footer-email{
        width: 90%;
    }
}

.no-show {
    display: none;
}