@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
:root {
    --ff--montserrat: 'Montserrat', sans-serif;
    --ff--Roboto: 'Roboto', sans-serif;

    --fw--400: 400;
    --fw--500: 500;
    --fw--600: 600;
    --fw--700: 700;
    --fw--800:800;
    --fw--900: 900;

    --cl--yellow: #FF8606;
    --cl--white:#ffffff;
    --cl--black: #000000;
  
}

/*
    1. Use a more-intuitive box-sizing model.
  */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
      2. Remove default margin
    */
* {
    margin: 0;
}

/*
      Typographic tweaks!
      3. Add accessible line-height
      4. Improve text rendering
    */
body {
    line-height: 1.5;

}

/*
      5. Improve media defaults
    */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

/*
      6. Remove built-in form typography styles
    */
input,
button,
textarea,
select {
    font: inherit;
}

/*
      7. Avoid text overflows
    */
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    font-family: var(--ff--montserrat);
    color: var(--cl--yellow);
}

/* p {
    font-family: var(--ff--source-pro);
    color: white;
  } */

/*
      8. Create a root stacking context
    */
#root,
#__next {
    isolation: isolate;
}


.navbar {
    background-color: var(--cl--black);



}

.container-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    background-color: var(--cl--black);
    padding: 15px 0;
    padding-inline: 5%;
  /*   max-width: 1440px;
    margin-inline: auto; */


}

.toggle_btn {
    color: hsl(0, 0%, 100%);
    display: none;
    font-size: 1.7rem;
}

.close_btn {
    font-size: 1.7rem;
    color: hsl(0, 0%, 100%);
}

.list {
    display: flex;
    gap: 2rem;
    padding: 0;
}

li {
    list-style: none;
}

.list a {
    color: hsl(0, 0%, 100%);
    font-family: var(--ff--montserrat);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
}

.list a:hover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4em;
    height: 3px;
    width: 100%;
    background: var(--cl--yellow);
    margin: auto;
    border-radius: 1000px;
    font-family: var(--ff--montserrat);
    font-weight: 600;

}

.navbar .logo {

    overflow: hidden;
    cursor: pointer;
    width: 150px;
}

/* dropdown */
.dropdown_menu {
    display: none;
    inset: 0;
    position: absolute;
    top: 0;
    background-color: hsl(0, 0%, 0%);
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 2rem;
    transition: all 0.5s ease-in-out;
    z-index: 999;

}

.dropdown_menu.open {
    transform: translate(0%, -100%);
}


.dropdown_menu ul {
    display: flex;
    width: fit-content;
    padding: 0;
    margin-top: 6rem;
    flex-direction: column;
    font-size: 2rem;
    gap: 1.5rem;

}

.dropdown_menu ul a {
    font-family: var(--ff--montserrat);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.dropdown_menu .subnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.button-nav {
    background-color:rgba(255, 0, 0, 0);
    border: 2px solid var(--cl--yellow);
    padding: 10px 30px;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    font-size: 1rem;
    color: var(--cl--yellow);
    font-family: var(--ff--Roboto);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.button-nav:hover {
    color: var(--cl--black);
    background-color: var(--cl--yellow);
   

}






.all-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
/* mobile Navbar */

@media(max-width:950px) {
    .list {
        display: none;
    }

    .button-nav {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }

    .all-list {
        display: none;
    }
}