@font-face {
  font-family: 'BegumSans';
  src: url('./images/BegumSans-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  /* Optional but recommended: */
  font-display: swap;
}


:root {
  --primary-color-rgb: 18, 28, 20;
  --text-color: #23b8c0;
  --second-text-color: #3f4740;
  --color1: #608ea4;
  --header-height: 71px;
  --hover-color: #e4c590;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'BegumSans',"Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: rgba(var(--primary-color-rgb));
}

header {
  position: fixed;
  /* replaces sticky */
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 100px;
  height: var(--header-height);

  background-color: #0000005e;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  z-index: 100;

  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}


header li a {
  transition: color 0.1s ease-in-out;
  font-family: "Poppins", Times, serif, Courier, monospace;
  font-weight: 800;
  font-size: 16px;
}

header li:not(:last-child) {
  padding-right: 10px;
}

header a:hover {
  color: var(--hover-color);
}

.logo {
  font-family: 'BegumSans';
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  background-color: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* For mobile Safari/Chrome */
  box-shadow: none;
  letter-spacing:2px;
}

.icon img {
  width: 60px;
  padding-right: 15px;
  padding-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 400;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: 400;
  z-index: 1;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: -15px;
  right: -15px;
  background: transparent;
  z-index: -1;
}


.logo a {
  text-decoration: none;
  color: #fff;
}

.logo a:visited {
  text-decoration: none;
  color: inherit;
}

.btn {
  background-color: var(--text-color);
  color: black;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.hamburger {
  all: unset;
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bar {
  content: "";
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.dropdown-menu {
  position: fixed;
  top: var(--header-height);
  transition: 0.3s ease-in-out;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  background-color: #0000005e;
  display: flex;
  justify-content: center;
  width: 100%;
  left: 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  z-index: 100;
}

.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding-top: 15px;
}

.dropdown-menu ul li {
  position: relative;
  margin-bottom: 1rem;
  padding-right: 0;
}

.dropdown-menu ul :nth-child() {
  margin-bottom: 0;
}

.dropdown-menu ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.1s ease-in-out;
  font-family: "Poppins", Times, serif, Courier, monospace;
  font-weight: 500;
  font-size: 16px;
}

.dropdown-menu ul li a::before {
  content: '';
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: -25px;
  right: -25px;
  background: transparent;
  z-index: 1;
}

.dropdown-menu ul li a:hover {
  /* color: #23b8c0; */
  color: var(--hover-color);
}


@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .element {
    background: rgba(255, 255, 255, 0.6);
    /* Less transparency */
  }
}

@media (min-width:1101px){
  .hamburger.submenu-active {
    display: block;
    z-index: 101;
    position: absolute;
    left: 96%;
  }
  
  .hamburger.submenu-active :nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.submenu-active :nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.submenu-active :nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
}

@media (max-width: 1100px) {
  header {
    padding: 10px 40px;
    margin: 0 auto;
  }

  footer {
    margin-top: -100px;
  }

  nav ul li {
    display: block;
    margin-bottom: 10px;
  }

  .btn {
    font-size: 1rem;
    padding: 8px 16px;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: block;
    z-index: 101;
  }

  .hamburger.active :nth-child(2) {
    opacity: 0;
  }

  .hamburger.active :nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active :nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .dropdown-menu.active {
    display: flex;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 28px;
  }

  .icon img {
    width: 50px;
    padding-right: 15px;
    /*padding-top:10px;*/
  }
}

@media (max-width: 550px) {
  .icon img {
    width: 50px;
    padding-right: 10px;
    /*padding-top: 10px;*/
    margin-left: -5px;
  }
  header {
    padding: 10px 20px;
  }
}