nav {
    position: relative;
    z-index: 99;
    width: 100%;
    background: white;
}

nav .wrapper {
    position: relative;
    padding: 0px 30px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrapper .logo a {
    color: #f2f2f2;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
}

.wrapper .nav-links {
    display: inline-flex;
}

.nav-links {
    margin-bottom: 0 !important;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background: var(--primary);
}

.nav-links .mobile-item {
    display: none;
}

.nav-links .drop-menu {
    position: absolute;
    background: white;
    width: 180px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.mega-box {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 30px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
    z-index: -22;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box {
    top: 70px;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: all;
}
.nav-links li:focus .drop-menu,
.nav-links li:focus .mega-box {
    top: 70px;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: all;
}

.drop-menu li a {
    width: 100%;
    display: block;
    padding: 8px;
    font-weight: 400;
    border-radius: 0px;
}

.drop-menu {
    padding-left: 0 !important;
    border-radius: 6px !important;
}


.mega-box .content {
    background: var(--dark2);
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 6px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.mega-box .content .row_ {
    width: 25%;
    padding: 16px;
    border-radius: 6px;
    position: relative;
}

.content .row_ .imgContainer {
    background-color: #f1f3f6;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 300px;
}

.content .row_ .imgContainer img {
    object-fit: cover;
    transition: all 1s ease-in-out;
}

.mega-box.one .content .row_ .imgContainer::before {
    content: attr(data-name);
    position: absolute;
    width: fit-content;
    padding: 6px 20px;
    height: fit-content;
    bottom: 0;
    z-index: 10;
    font-size: 14px;
    text-transform: uppercase;
    font-family: var(--montserrat);
    left: 50%;
    background-color: var(--primary);
    border-radius: 6px 6px 0px 0px;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
}

.mega-box.two .content .row_ .imgContainer::before {
    content: 'DT-3000';
    position: absolute;
    width: fit-content;
    padding: 6px 20px;
    height: fit-content;
    bottom: 0;
    z-index: 10;
    font-size: 14px;
    text-transform: uppercase;
    font-family: var(--montserrat);
    left: 50%;
    background-color: var(--primary);
    border-radius: 6px 6px 0px 0px;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
}

.content .row_ .imgContainer:hover::after {
    content: 'View Details';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #27272765;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 9;
}

.content .row_ .imgContainer:hover img {
    transform: scale(1.2);
}

.content .row header {
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
}

.content .row .mega-links {
    margin-left: -40px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.row .mega-links li {
    padding: 0 20px;
}

.row .mega-links li a {
    padding: 0px;
    padding: 0 20px;
    color: #d9d9d9;
    font-size: 17px;
    display: block;
}

.row .mega-links li a:hover {
    color: #f2f2f2;
}

.wrapper .btn {
    /* color: #fff; */
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.wrapper .btn.close-btn {
    position: absolute;
    right: 30px;
    top: 10px;
}

@media screen and (max-width: 970px) {
    .wrapper .btn {
        display: block;
    }

    .wrapper .nav-links {
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        top: 0;
        left: -100%;
        background: #fff;
        display: block;
        padding: 50px 10px;
        line-height: 50px;
        overflow-y: auto;
        box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
        transition: all 0.3s ease;
    }

    /* custom scroll bar */
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #242526;
    }

    ::-webkit-scrollbar-thumb {
        background: #3A3B3C;
    }

    #menu-btn:checked~.nav-links {
        left: 0%;
    }

    #menu-btn:checked~.btn.menu-btn {
        display: none;
    }

    #close-btn:checked~.btn.menu-btn {
        display: block;
    }

    .nav-links li {
        margin: 15px 10px;
    }

    .nav-links li a {
        padding: 0 20px;
        display: block;
        font-size: 20px;
    }

    .nav-links .drop-menu {
        position: static;
        opacity: 1;
        top: 65px;
        visibility: visible;
        padding-left: 20px;
        width: 100%;
        max-height: 0px;
        overflow: hidden;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    #showDrop:checked~.drop-menu,
    #showMega:checked~.mega-box.one {
        max-height: 100%;
    }

    #showDrop:checked~.drop-menu,
    #showMegaTwo:checked~.mega-box.two {
        max-height: 100%;
    }
    #showDrop:checked~.drop-menu,
    #showMegaThree:checked~.mega-box.three {
        max-height: 100%;
    }

    .nav-links .desktop-item {
        display: none;
    }

    .nav-links .mobile-item {
        display: block;
        color: #f2f2f2;
        font-size: 20px;
        font-weight: 500;
        padding-left: 20px;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links .mobile-item:hover {
        background: var(--primary);
    }

    .drop-menu li {
        margin: 0;
    }

    .drop-menu li a {
        border-radius: 5px;
        font-size: 18px;
    }

    .mega-box {
        position: static;
        top: 65px;
        opacity: 1;
        visibility: visible;
        padding: 0;
        max-height: 0px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mega-box .content {
        box-shadow: none;
        flex-direction: column;
        padding: 0;
    }

    .mega-box .content .row_ {
        width: 100%;
        margin-bottom: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mega-box .content .row_:nth-child(1),
    .mega-box .content .row_:nth-child(2),
    .mega-box .content .row_:nth-child(3) {
        border-top: 0px;
    }

    .content .row_ .mega-links {
        border-left: 0px;
        padding-left: 15px;
    }

    .row .mega-links li {
        margin: 0;
    }

    .content .row header {
        font-size: 19px;
    }
}

nav input {
    display: none;
}

.body-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 0 30px;
}

.body-text div {
    font-size: 45px;
    font-weight: 600;
}

.link {
    text-transform: uppercase !important;
    font-family: var(--montserrat);
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--dark2) !important;
}
