*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    list-style: none;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 62.5%;
}

html::-webkit-scrollbar {
    background-color:#e1e1e1;
    width: 1rem;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color-);
    border-radius: 2rem;
}


body {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .1rem;
    width: 100%;
    min-height: 100vh;
}

section {
    width: 100vw;
    min-height: 100vh;
}

img {
    width: 100%;
    object-fit: cover;
}

/* REUSABLE CLASS  & ELEMENTS */
.container {
    padding: var(--padding--);
}

.paragraph {
    font-size: 1.8rem;
}

.btn {
    font-size: 1.4rem;
    text-transform: uppercase;
    padding: 1.2rem 5rem;
    border-radius: 5rem;
    color: var(--white-color-);
    box-shadow: 0 .8rem  1rem rgba(0, 0, 0, 0.323);
}

.marked {
    color: var(--primary-color-);
}

h2 {
    font-size: var(--section-title--) ;
    text-align: center;
    margin-block-start: 8rem;
}

h3 {
    font-size: 2.2rem;
    color: var(--white-color-);
}

/* CLASS FOR JAVASCRIPT*/
.navbar.scrollingNav {
    background: var(--white-color-);
    box-shadow: 0 .8rem  1rem rgba(227, 227, 227, 0.478);
}

/* COLOR VALIABLE */
:root {
    --primary-color- : #EE3B1D;
    --secondary-color-: #0d0e0e;
    --white-color- : #FFFFFF;
    --padding-- : 0 8rem;
    --transition--: all 0.6s ease-in-out;
    --head-title-- : 4.4rem;
    --section-title-- : 3.4rem;
}

/* HEADER*/

.logo-box {
    width: 18rem;
}

.header {
    width: 100%;
    height: 100vh;
}


/* Navigation */

.header .navbar {
    width: 100%;
    height: 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding--) ;
    z-index: 200000;

    position: fixed;
    top: 0;
    left: 0;
}


.navbar .nav-items {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.menu-link {
    font-size: 1.8rem;
    color: var(--secondary-color-);
    font-weight: 600;
    transition: var(--transition--);
}

.close-menu {
    display: none;
}

.menu-link:is(:hover, :focus-visible) {
    color: var(--primary-color-);
}

.orange-link {
    color: var(--primary-color-);
}

/* Header Content */

.header-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40rem, 1fr));
    align-items: center;
    justify-content: center;
    margin-block-start: 12rem;
    gap: 2rem;
}

.banner {
    width: 43vw;
}

.head-title {
    font-size: var(--head-title--);
}

.head-text {
    width: 40vw;
}

.black-btn {
    display: inline-block;
    background: var(--secondary-color-);
    margin-right: 1rem;
}

.orange-btn {
    background:  var(--primary-color-);
}

.btn-box {
    margin-block-start: 2rem;
}

.menu-btn {
    display: none;
    width: 5rem;
    cursor: pointer;
}

/* SERVICES */

.services {
    margin-block-start: -32rem;
    padding-block-start: 18rem;
    padding-block-end: 10rem;
    background: url(/asset/image/background.png) no-repeat;
    background-size: cover;
}

.services-title {
    color: var(--white-color-);
    text-align: center;
    font-size: var(--section-title--);
}

.service-para {
    color: var(--white-color-);
    text-align: center;
    margin: 2rem auto;
    width: 55vw;
    counter-reset: none;
}

.card-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    padding-block-start: 5rem;
}

.card {
    position: relative;
    width: 40rem;
    background: var(--white-color-);
    padding: 4rem 1.8rem 2.8rem 1.8rem;
    border-radius: 2rem;
    box-shadow: 0 .8rem  1rem rgba(227, 227, 227, 0.146);
}

.card:nth-child(1):after {
    width: 8rem;
    height: 8rem;
    content: "";
    position: absolute;
    top: -4rem;
    left: -2.8rem;
    background: url(/asset/image/star_one.png) no-repeat;
    background-size: cover;
}

.card:nth-child(2):after {
    width: 8rem;
    height: 8rem;
    content: "";
    position: absolute;
    top: -4rem;
    right: -2.8rem;
    background: url(/asset/image/star_two.png) no-repeat;
    background-size: cover;
}

.card-title {
    text-align: center;
    font-size: 1.8rem;
}

.card-para {
    margin: 3rem 0;
    width: 98%;
    font-size: 1.4rem;
}

.para-center {
    text-align: center;
}

.service-list li {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

.service-list li img {
    width: 3rem;
}

.card-btn {
    display: block;
    font-size: 1.6rem;
    text-align: center;
    color: var(--white-color-);
    background: var(--primary-color-);
    margin-block-start: 3rem;
    padding: 1.2rem 3rem;
    border-radius: 5rem;
}

/* WHY WORKING WITH US */

.work-card-wrapper {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38rem, 1fr));
    justify-content: center;
    gap: 3rem;
}

.work-para {
    width: 60%;
    text-align: center;
    margin: 2rem auto;
}

.work-card {
    background: var(--secondary-color-);
    padding: 2rem;
    border-radius: 3rem;
}

.card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.icon-box {
    width: 8rem;
}

.work-card .paragraph {
    color: var(--white-color-);
    margin-block-start: 2rem;
    font-size: 1.7rem;
}

/* ABOUT */
.about .paragraph {
    width: 50%;
    margin: 3rem auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40rem, 1fr));
    align-items: center;
    justify-content: center;
    margin-block-start: 5rem;
    gap: 2rem;
}


.about-text .paragraph {
    margin: 2rem 0;
    width: auto;
}

.about-list {
    list-style: none;
    font-size: 1.4rem;
}

.about-list li {
    background: #1a1919;
    color: var(--white-color-);
    margin-top: 4rem;
    font-weight: 500;
    padding: .8rem;
    border-radius: 1rem;
}

/* CONTACT */

.form-container {
    width: 40%;
    margin: 6rem auto;
    padding: 2rem;
    border-radius: 2rem;
    background: var(--white-color-);
    box-shadow: .2rem 0 2rem .1rem rgba(0, 0, 0, 0.138);
}

.form-title {
    color: var(--secondary-color-);
    text-align: center;
    text-transform: uppercase;
    margin-block-start: 2rem;
}

label, input {
    display: block;
}

label {
    font-size: 1.6rem;
    margin: 1rem 0;
}

.input {
    font-size: 1.6rem;
    width: 100%;
    padding: 1.2rem 1.4rem;
    border: solid .2rem #D2D3D3;
    border-radius: 1rem;
}

.input:focus, .message:focus {
    border: solid .2rem var(--primary-color-);
}

.message {
    font-size: 1.6rem;
    width: 100%;
    margin-block-start: 3rem;
    height: 8rem;
    resize: none;
    padding: 1.2rem 1.4rem;
    border: solid .2rem #D2D3D3;
    border-radius: 1rem;
}

.submit-btn {
    font-size: 1.4rem;
    display: block;
    font-weight: 600;
    margin: 2rem auto;
    padding: 1.5rem 10rem;
    cursor: pointer;
}

/* FOOTER */
.footer {
    width: 100%;
    min-height: 50vh;
    background: var(--secondary-color-);
}

.footer-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding-block-start: 3rem;
}

.footer-text {
    font-size: 1.2rem;
    color: var(--white-color-);
    width: 30rem;
    margin-block-start: 2rem ;
}

.footer-nav-title {
    margin-block-end: 2rem;
}

.contact-link {
    font-size: 1.4rem;
    color: var(--primary-color-);
}

.footer-menu .footer-link {
    font-size: 1.4rem;
    color: var(--white-color-);
}

.footer-link:hover {
    color: var(--primary-color-);
    transition: var(--transition--);
}

ion-icon {
    font-size: 3.2rem;
    color: var(--white-color-);
}

.copyright {
    width: 100%;
    margin-block-start: 10rem;
    font-size: 1.8rem;
    text-align: center;
    color: var(--white-color-);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

.law-text {
    display: inline-block;
    color: var(--white-color-);
    font-size: 1.4rem;
    margin-left: 1.2rem;
    transition: var(--transition--);
}

.law-text:hover {
    color: var(--primary-color-);
}


/* RESPONSIVE */
@media screen  and (max-width : 1100px) {

    :root {
        --padding-- : 0 3rem;
    }

    .services {
        margin-block-start: -30rem;
    }

    .form-container {
        width: 60%;
    }
}

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

    .services {
        margin-block-start: -90rem;
    }
}

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

    .services {
        margin-block-start: 20rem;
    }

    .nav-items {
        position: fixed;
        top: 0;
        right: 0;
        right: -40rem;
        width: 30rem;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--white-color-);
        padding: 10rem 4rem;
        box-shadow: 0 3rem 3rem rgba(1, 1, 1, 0.083);
        transition: var(--transition--);
    }

    .menu-btn {
        display: block;
    }

    .close-menu {
        display: block;
        width: 2.8rem;
        position: absolute;
        top: 1rem;
        left: 1.2rem;
        cursor: pointer;
    }

    .nav-items.open-menu {
        right: 0;
    }

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

    .head-text {
        width: 70%;
    }

    .banner {
        width: 70vw;
        margin: 4rem auto;
    }

    .card {
        width: 52rem;
        margin-block-end: 3rem;
        
    }

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


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

    :root {
        --padding-- : 0 3rem;
        --head-title-- : 3.2rem;
        --section-title-- : 2.8rem;
    }

    .services {
        margin-block-start: -12rem;
    }


    .head-text, 
    .service-para,
    .work-para {
        width: 100%;
    }

    .form-container {
        width: 80%;
    }
}

@media screen  and (max-width : 450px) {
    .form-container {
        width: 100%;
    }
}

@media screen  and (max-width : 375px) {
    :root {
        --head-title-- : 3rem;
        --section-title-- : 2.2rem;
    }

    .btn {
        padding: 1.2rem 2.5rem;
    }

    
}
