nav {
  font-size: 1.4rem;
  font-weight: 400;
  font-family: var(--font-nav-normal);
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  align-content: space-between;
  text-align: center;
  width: 100vw;
  height: auto;
  margin: auto;
  max-height: 300px;
  justify-items: center;
  padding-block-end: 0.3rem;
  box-shadow: var(--box-shadow);
  transform: translateY(-100%);
  transition: transform 0.5s ease-in-out;
  display: grid;
  grid-template-columns: 100vw;
  grid-template-rows: auto auto;
  grid-template-areas:
    "nav-links"
    "nav-logo";
  z-index: 2000;
  transition: max-height 0.3s ease-in-out, transform 0.5s ease-in-out;
}

.nav-logo, .nav-logo-second {
  margin-top: 0.5rem;
  justify-self: center;
  grid-area: nav-logo;
  height: 0px;
  transition: height 0.5s ease-in-out; /* Smooth transition for showing nav-logo */
  z-index: 1100;
}
.nav-logo-hamburger,
.nav-logo-hamburger img{
  display: none;
}
.nav-logo.slide-down, .nav-logo-second.slide-down {
  height: 70px;
}
.nav-logo img {
  opacity: 0;
  height: 60px;
  transform: translateY(-200%);
  transition: transform 0.6s ease-in-out, opacity 1s ease-in-out;
}
.nav-logo-second img {
  opacity: 0;
  height: 0px;
  transform: translateY(-200%);
  transition: transform 0.6s ease-in-out, opacity 1s ease-in-out;
}
.nav-logo-second.slide-down{
  height: 4rem;
}
.nav-logo-second.slide-down img {
  opacity: 1;
  height: 4rem;
  transform: translateY(0);
}
.nav-logo.slide-down img {
  opacity: 1;
  height: 60px;
  transform: translateY(0);
}
.nav-logo-dropdown {
  position: absolute;
  width: 24vw;
  bottom: 5%; /* Adjust based on where you want the logo in the dropdown */
  right: 5%; /* Adjust based on where you want the logo in the dropdown */
  z-index: 2;
  opacity: 0;
  transition: opacity 0.1s ease-in 0.2s;
}

.li-triangle:hover .nav-logo-dropdown,
.li-triangle.active .nav-logo-dropdown {
  opacity: 1;
}

.nav-links {
  grid-area: nav-links;
  display: flex;
  justify-content: center;
  align-items: center;
  
  z-index: 2200;
}

.nav-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  max-height: 60px;
  width: 100%;
  height: 100%;
  background-color: var(--color-blue-dark);
  z-index: -1;
}

.li-triangle > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #4de4ff; /* Change color as per your design */
  margin-left: 10px;
  transform: rotate(90deg);
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

/* Rotate the triangle to point downwards on hover */
.li-triangle:hover > a::after {
  transform: rotate(0deg);
}

/* Rotate the triangle to point downwards on hover */
.dropdown:hover a::after {
  transform: rotate(180deg);
}
.big-dropdown {
  display: block;
  max-height: 0;
  overflow: hidden;
  width: 100vw;
  position: absolute;
  left: 0;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: max-height 0.3s ease-in-out; /* This will create the slide down effect */
}

li:hover .big-dropdown {
  max-height: 300px; /* Adjust this value to fit your content */
}

.big-dropdown div a {
  display: block; /* Makes the links block elements */
  padding: 9px;
  margin: auto;
  width: auto;
  text-decoration: none;
}

.big-dropdown div {
  position: relative;
  background-image: linear-gradient(
    to top,
    var(--color-blue-dark),
    var(--color-blue-dusk)
  );
  margin: auto;
  background-color: var(--color-blue-dark);
  width: 100vw; /* Creates two columns */
  padding-block-end: 1rem;
  padding-inline-start: 20px;
  height: 100%; /* Ensures each column takes the full height */
  border-top: 2px solid var(--color-blue-light-border);
  border-bottom: 2px solid var(--color-blue-light-border);
  display: grid;
  height: auto;
  text-align: center;
  grid-auto-flow: row;
  grid-template-columns: 30rem;
  grid-template-rows: repeat(3, 50px); /* Creates three rows per column */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
}
.big-dropdown.technology div a {
  text-align: start;
  margin-inline-start: calc(64vw + 1rem);
}
.big-dropdown.technology div a:last-child {
  margin-block-end: 5rem;
}
.big-dropdown.about div a {
  text-align: start;
  margin-inline-start: calc(10vw + 1rem);
}
.big-dropdown.services div a {
  text-align: start;
  margin-inline-start: calc(37vw + 1rem);

}
.nav-links li:hover .big-dropdown {
  display: block; /* Shows the dropdown on hover */
}

nav.open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.9; /*---added opacity ---*/
  z-index: -1;
}

nav.open {  backdrop-filter: blur(3px);
  transform: translateY(0);
}
nav ul {
  list-style-type: none;
  margin: auto;
  margin: 0;
  padding: 0;
}
a.space {
  width: 14vw;
}
nav ul li a{
  display: block;
  margin: auto;
  text-shadow: var(--box-shadow);
  color: #f2f2f2;
 
  text-align: center;
  width: 100%;
  padding: 0.8rem;
  padding-inline: 0rem;
  text-decoration: none;
  transition: all 0.1s ease-in;
}

nav ul li a:hover {
  border-radius: 2px;
  text-shadow: var(--text-glow);
  background-color: var(--color-blue-midnight);
  font-weight: 400;
}
/*---Hamburger-----*/
.hamburger-menu {
  display: none;
  position: relative;
  background-color: var(--color-blue);
  grid-area: hamburger;
  background-image: linear-gradient(
    to top,
    var(--color-blue-dark),
    var(--color-blue-dusk)
  );
}

.menu-button {
  color:black;
  background-color: white;
  cursor: pointer;
  font-size: 4rem;
}

.menu {
  font-family: var(--font-nav-title) ;
  font-size: 1.6rem;
  text-align: center;
  display: none;
  list-style-type: none;
  padding: 0;
  justify-content: center;
  box-shadow: var(--box-shadow);

  border-top: 2px solid var(--color-blue-light-border);
  border-bottom: 2px solid var(--color-blue-light-border);
}
.menu a {
  text-align: start;
  margin: auto;
  display: inline- block;
  text-decoration: none;
  color: var(--text-color-light);
}




.menu a:hover {
  text-decoration: underline;
}

.menu > li {
  margin: auto;
  font-weight: bold;
  text-shadow: var(--text-shadow);
  width: 40vw;
  padding: .2rem;
  position: relative; /* So that the submenu positions itself relative to the parent li */
  
}



.submenu {
  display: none;
  list-style-type: none;
  width: 50vw; /* Or whatever width you prefer */
 

}

.submenu > li {

  width: 40vw;
  padding: 5px 10px;
}
 li .submenu  a {
  color: var(--color-blue-light);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-footer-link);
 
}



/* The "hamburger" icon */

@media screen and (max-width: 1000px) {
  nav {
    width: 100vw;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "nav-logo" "hamburger";
  }

  .nav-logo-dropdown {
    display: none;
  }

  .nav-links::before {
    display: none;
  }
  .nav-logo img {
    display: none;
  }
  .hamburger-menu {
    display: block;
    grid-area: hamburger;
    margin: auto;
   font-size: 3rem;
    width: 100vw;

    z-index: 1100;
  }
  .nav-logo-hamburger {
    display: block;
    margin: auto;
    margin-top: 0.5rem;
    justify-self: center;
    grid-area: nav-logo;
    height: auto;
    width: 100vw;
    transition: height 0.5s ease-in-out; /* Smooth transition for showing nav-logo */
    z-index: 1100;
  }
  .nav-logo-hamburger img {
    display: block;
    height: 7vh;
    width: auto;
    margin: auto;
  }
  .nav-title.slide-down {
    opacity: 0;
    height: 0px;
  }

  .nav-logo {
    margin-top: 0px;
    transform: none;
    opacity: 1;
  }
  .nav-links {
    display: none;
  }

  .big-dropdown {
    position: relative;
    widows: auto;
    max-width: 50vw;
  }
  a.space {
    width: 10rem;
  }
  .menu-button{
    font-size: 3rem;
  }
  .big-dropdown div {
    position: relative;
    width: auto;
    padding-block-end: 0rem;
    padding-inline-start: 0px;
    height: 100%; /* Ensures each column takes the full height */
    border-top: 2px solid var(--color-blue-light-border);
    border-bottom: 2px solid var(--color-blue-light-border);
    display: grid;
    height: auto;
    text-align: start;
    grid-auto-flow: row;
    grid-template-columns: 30rem;

    display: grid;
    justify-content: center;
    align-items: center;
  }
}
/*----Cell Phone----*/
@media screen and (max-width: 700px) {
  .menu-button{
    font-size: 3vh;
  }
}