:root {
    --mainColor: #BA55D3;
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.main-container {
    padding-inline: 15px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .main-container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .main-container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .main-container {
        width: 1170px;
    }
}

@media (min-width: 1400px) {
    .main-container {
        width: 1270px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #FFF;
}

::-webkit-scrollbar-thumb {
    background-color: var(--mainColor);
}

header {
    padding-block: 15px;

    .main-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .logo {
            width: 80px;

            img {
                width: 100%;
            }
        }

        nav {
            display: flex;
            align-items: center;
            gap: 30px;

            a {
                font-size: 18px;
                color: #000;
            }

            .close {
                display: none;
            }
        }

        .menu-icon {
            display: none;
        }
    }
}

section.telecom {
    margin-top: 20px;

    .main-container {
        min-height: 550px;
        
        background-image: url("../images/bg2-2.jpg");

        display: flex;
        align-items: center;
        border-radius: 45px;

        .content {
            width: 50%;
            color: #FFF;
            padding: 30px;

            h1 {
                font-size: 50px;
                margin-bottom: 25px;

                span {
                    color: var(--mainColor);
                }
            }

            p {
                font-size: 17px;
            }
        }

        .slider {
            width: 50%;

            .slider-one {
                .slick-slide img {
                    margin-inline: auto;
                }

                .slick-dots li button:before {
                    content: "";
                    background-color: var(--mainColor);
                    width: 15px;
                    height: 6px;
                    border-radius: 8px;
                }

                .slick-dots li.slick-active button:before {
                    color: var(--mainColor);
                }
            }
        }
    }
}

section.categories {
    margin-block: 80px;

    .main-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;

        div {
            img {
                display: block;
                width: 100%;
                border-radius: 50%;
            }

            p {
                text-align: center;
                width: 200px;
                box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
                padding: 20px;
                margin-inline: auto;
                border-radius: 35px;
                font-size: 17px;
                font-weight: bold;
                color: var(--mainColor);
                transform: translateY(-20px);
                background-color: #FFF;
                transition: all .5s;
            }

            p:hover {
                background-color: var(--mainColor);
                color: #FFF;
                transform: translateY(-30px);
            }
        }
    }
}

section.about-us {
    .main-container {
        background-image: url("../images/bg2-1.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 650px;
        color: #FFF;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-left: 50px;
        border-radius: 15px;

        h2 {
            font-size: 45px;
            margin-bottom: 20px;
        }

        p {
            width: 50%;
            font-size: 17px;
            line-height: 1.8;
        }
    }
}

section.brands {
    margin-top: 70px;

    .main-container {
        background-image: url("../images/bg4-1.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        padding: 25px;
        border-radius: 15px;
        min-height: 400px;

        h2 {
            color: var(--mainColor);
            text-align: center;
            font-size: 40px;
            margin-bottom: 15px;
        }

        p {
            text-align: center;
            color: #486183;
        }

        .all-brands {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 30px;

            img {
                width: calc(100% / 4);
                height: 200px;
                object-fit: contain;
            }
        }
    }
}

section.products {
    margin-top: 70px;

    .main-container {
        
        background-image: url("../images/bg2-2.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 15px;
        color: #FFF;
        padding: 50px 10px;

        h2 {
            font-size: 35px;
            text-align: center;
            margin-bottom: 20px;
        }

        .all-products {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;

            .product {
                text-align: center;

                img {
                    width: 100%;
                    height: 280px;
                }

                h3 {
                    border-bottom: 3px solid #FFF;
                    width: fit-content;
                    margin-inline: auto;
                    padding-bottom: 10px;
                }
            }
        }
    }
}

section.contact-us {
    margin-top: 70px;

    .main-container {
        background-color: #F7FAFE;
        padding: 30px 50px;
        border-radius: 15px;

        h2 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 30px;
            color: #486183;
        }

        >div {
            display: flex;
            align-items: flex-start;
            gap: 25px;

            form {
                width: 49%;
                display: flex;
                flex-direction: column;

                label {
                    margin-bottom: 10px;
                }

                input,
                textarea {
                    margin-bottom: 25px;
                    border: 1px solid #d8d8d8;
                    background-color: #FFF;
                    font-size: 17px;
                    padding: 13px;
                    border-radius: 25px;
                    outline: none;
                    transition: all .3s;
                }

                input:focus,
                textarea:focus {
                    border: 1px solid var(--mainColor);
                }

                textarea {
                    height: 200px;
                    resize: none;
                }

                button {
                    margin-top: 10px;
                    width: fit-content;
                    padding: 10px 30px;
                    border-radius: 25px;
                    background-color: var(--mainColor);
                    color: #FFF;
                    border: none;
                    font-size: 18px;
                    cursor: pointer;
                }
            }

            .map {
                width: 49%;
                border-radius: 20px;
                overflow: hidden;

                iframe {
                    width: 100%;
                    height: 550px;
                }
            }
        }
    }
}

footer {
    margin-top: 70px;

    .main-container {
        background-color: #F7FAFE;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        padding: 50px 30px;

        .logo {
            img {
                width: 250px;
            }
        }

        .details {
            font-size: 18px;
            color: #4e4e4e;

            span {
                display: block;
                margin-bottom: 10px;
            }

            p:not(p:last-child) {
                margin-bottom: 35px;
            }
        }
    }

    .powered {
        text-align: center;
        padding-block: 18px;
        font-size: 20px;
        background-color: var(--mainColor);
        color: #FFF;
        margin-top: 50px;
    }
}

.to-top {
    position: fixed;
    bottom: 70px;
    right: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 25px;
    width: 35px;
    height: 35px;
    background-color: var(--mainColor);
    color: #FFF;
    font-size: 25px;
    border-radius: 50%;
    cursor: pointer;
    transform: translateX(200%);
    transition: all .3s;
}

.active {
    transform: translateX(0);
}

@media (max-width: 767px) {
    * {
        cursor: auto !important;
    }

    header {
        .main-container {
            nav {
                position: fixed;
                top: 0;
                left: 0;
                background-color: #FFF;
                width: 70%;
                height: 100vh;
                flex-direction: column;
                z-index: 9999;
                justify-content: center;
                background-color: var(--mainColor);
                transform: translateX(-150%);
                transition: all .4s;

                a {
                    color: #FFF;
                }

                .close {
                    display: block;
                    position: absolute;
                    top: 20px;
                    right: 20px;
                    font-size: 30px;
                    font-weight: bold;
                    color: #FFF;
                }
            }

            .active {
                transform: translateY(0);
            }

            .menu-icon {
                display: block;
                width: 40px;
                height: 40px;
                background-color: transparent;
                border: none;
                cursor: pointer;

                img {
                    width: 100%;
                }
            }
        }
    }

    section.telecom {
        width: 95%;
        margin-inline: auto;

        .main-container {
            flex-direction: column;

            .content,
            .slider {
                width: 100%;
                text-align: center;

                h1 {
                    font-size: 25px;
                }

                .slider-one {
                    .slick-slide img {
                        width: 100%;
                    }
                }
            }
        }
    }

    section.categories {
        .main-container {
            div {
                img {
                    width: 70%;
                    margin-inline: auto;
                }
            }
        }
    }

    section.about-us {
        .main-container {
            width: 95%;
            margin-inline: auto;
            background-image: none;
            background-color: #486183;
            padding: 20px 15px;
            text-align: center;
            display: block !important;

            p {
                width: 100%;
                font-size: 15px;
            }
        }
    }

    section.brands {
        .main-container {
            width: 95%;
            margin-inline: auto;

            .all-brands {
                gap: 15px;
                flex-wrap: wrap;

                img {
                    width: 100%;
                    height: 100px;
                }
            }
        }
    }

    section.products {
        .main-container {
            .all-products {
                flex-direction: column;
            }
        }
    }

    section.contact-us {
        .main-container {
            width: 95%;
            margin-inline: auto;
            padding: 25px;

            >div {
                flex-direction: column-reverse;

                form,
                .map {
                    width: 100%;
                }

                .map {
                    height: 300px;
                }
            }
        }
    }

    footer {
        .main-container {
            width: 95%;
            margin-inline: auto;
            flex-direction: column;
            gap: 50px;

            .details {
                text-align: center;
            }
        }
    }

    .to-top {
        right: 20px;
    }
}