/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/

:root {
    --header-height: 3.5rem;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(0, 0%, 100%);
    --first-color-lighten: hsl(218, 100%, 87%);
    --title-color: hsl(0, 0%, 100%);
    --text-color: hsl(0, 0%, 100%);
    --body-color: hsl(0, 0%, 0%);
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Poppins", sans-serif;
    --normal-font-size: .738rem;
    --small-font-size: .613rem;
    --smaller-font-size: .55rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
     :root {
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}


/*=============== BASE ===============*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--body-font);
    background-color: #000000;
    /* overflow-x: hidden; */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}


/*=============== REUSABLE CSS CLASSES ===============*/

.container {
    padding: 0 5%;
}


/*=============== HEADER ===============*/

.header {
    width: 100%;
    box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
    background-color: rgb(0, 0, 0);
    z-index: var(--z-fixed);
    border-bottom: 3px double rgba(255, 255, 255, 0.116);
    position: absolute;
}


/*=============== NAV ===============*/

.nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav__logo {
    display:flex;
    align-items: center;
    column-gap: 0.25rem;
    color: white;
    font-weight: var(--font-semi-bold);
    transition: color 0.3s;
    justify-content: center;
    font-size: 1.2rem;
}

.nav__logo img {
    width:60%;
    padding: 10px;
}

.nav__logo:hover {
    color: var(--first-color);
}

.nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav__toggle-menu,
.nav__toggle-close {
    font-size: 1.25rem;
    color: white;
    position: absolute;
    display: grid;
    place-items: center;
    inset: 0;
    cursor: pointer;
    transition: opacity 0.1s, transform 0.4s;
}

.nav__toggle-close {
    opacity: 0;
}

.nav__link {
    color: white;
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.nav_buttons{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav_buttons li {
     padding: 10px 20px;
     list-style: none;
}

.nav_buttons li a{
    color: rgb(0, 0, 0);
    background: linear-gradient(90deg, #ff90e8, #9e75f0);
    padding: 10px 20px;
    border: 1px solid pink;
    font-weight: 600;
}

.nav_buttons li a:hover{
    color: #fff;
    background: linear-gradient(90deg, #9e75f0, #ff90e8);
    box-shadow: 0 0 10px rgba(255, 144, 232, 0.8);
}





@media screen and (max-width: 1118px) {
    .nav__menu , .nav_buttons{
        background-color: #000000;
        position: absolute;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        padding-block: 1.5rem 4rem;
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;
        z-index: 999999999;
    }
    .nav__menu::-webkit-scrollbar {
        width: 0.5rem;
    }
    .nav__menu::-webkit-scrollbar-thumb {
        background-color: hsl(220, 12%, 70%);
    }
    .nav__link {
        color: #ffffff;
        font-weight: var(--font-semi-bold);
        padding: 1.25rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.3s;
        border-bottom: 1px solid #3333331a;
    }
}


/* Show menu */

.show-menu {
    opacity: 1;
    top: 3rem;
    pointer-events: initial;
}


/* Show icon */

.show-icon .nav__toggle-menu {
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
    opacity: 1;
    transform: rotate(90deg);
}


/*=============== DROPDOWN ===============*/

.dropdown__button {
    cursor: pointer;
}

.dropdown__arrow {
    font-size: 1.5rem;
    font-weight: initial;
    transition: transform 0.4s;
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
    display: grid;
}

.dropdown__container {
    background-color: hsla(0, 0%, 0%, 0.247);
    height: 0;
    overflow: hidden;
    transition: height 0.4s;
}

.dropdown__content {
    row-gap: 1.75rem;
}

.dropdown__group {
    padding-left: 2.5rem;
    row-gap: 0.5rem;
}

.dropdown__group:first-child {
    margin-top: 1.25rem;
}

.dropdown__group:last-child {
    margin-bottom: 1.25rem;
}

.dropdown__icon i {
    font-size: 1.25rem;
    color: rgb(0, 0, 0);
}

.dropdown__title {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color:rgb(255, 255, 255);
}

.dropdown__list {
    row-gap: 0.25rem;
}

.dropdown__link {
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    color: rgb(255, 255, 255);
    transition: color 0.3s;
    padding: 10px 20px;
    border: 1px solid pink;
}

.dropdown__link:hover {
    color: #fff;
    background: linear-gradient(90deg, #9e75f0, #ff90e8);
    box-shadow: 0 0 10px rgba(255, 144, 232, 0.8);
    
}


/* Rotate dropdown icon */

.show-dropdown .dropdown__arrow {
    transform: rotate(180deg);
}


/*=============== BREAKPOINTS ===============*/

@media screen and (max-width: 300px) {
    .dropdown__group {
        padding-left: 1.5rem;
    }
}

@media screen and (min-width: 1118px) {
    /* Nav */
    .nav {
        height: calc(var(--header-height) + 2rem);
        display: flex;
        justify-content: space-between;
    }
    .nav__toggle {
        display: none;
    }
    .nav__list {
        display: flex;
        column-gap: 3rem;
        height: 100%;
    }
    .nav li {
        display: flex;
    }
    .nav__link {
        padding: 0;
    }
    .nav__link:hover {
        background-color: initial;
    }
    .dropdown__button {
        column-gap: 0.25rem;
        pointer-events: none;
    }
    .dropdown__container {
        height: max-content;
        position: absolute;
        left: 0;
        right: 0;
        top: 6.5rem;
        border-bottom: 4px double rgba(255, 255, 255, 0.075);
        background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.7), 
            rgba(0, 0, 0, 0.7)
        ),
        url("images/bg.png");
        box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;
    }
    .dropdown__content {
        grid-template-columns: repeat(4, max-content);
        column-gap: 6rem;
        max-width: 1120px;
        margin-inline: auto;
    }
    .dropdown__group {
        padding: 4rem 0;
        align-content: baseline;
        row-gap: 1.25rem;
    }
    .dropdown__group:first-child,
    .dropdown__group:last-child {
        margin: 0;
    }
    .dropdown__list {
        row-gap: 0.75rem;
    }
    .dropdown__icon {
        width: 60px;
        height: 60px;
        color: #fff;
        background: linear-gradient(90deg, #9e75f0, #ff90e8);
        box-shadow: 0 0 10px rgba(255, 144, 232, 0.8);
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin-bottom: 1rem;
    }
    .dropdown__icon i {
        font-size: 2rem;
    }
    .dropdown__title {
        font-size: var(--normal-font-size);
    }
    .dropdown__link {
        font-size: var(--small-font-size);
    }
    .dropdown__link:hover {
        color: var(--first-color);
    }
    .dropdown__item {
        cursor: pointer;
    }
    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
    }
    .dropdown__item:hover>.dropdown__container {
        top: 5.5rem;
        opacity: 1;
        pointer-events: initial;
        cursor: initial;
    }
}

@media screen and (min-width: 1152px) {
    .container {
        margin-inline: auto;
    }
}


