/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #ffffff;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 200px;
  background: #00000050;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
}
.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}
.nav {
  justify-content: space-between;
  
}
.navcol a {
  text-decoration: none;
  color: #ffffff;

  transition: color 0.3s ease-in-out;
}

.navcol a:hover {
  color: #ffc107;
  text-decoration: none;
}

.nav .logo {
  background: rgba(51, 51, 51, 0.473);
  padding: 1px;
  padding-left: 5px;
  padding-right: 5px;
  font-family: 'Dancing Script', cursive;
  font-size: 23px;
  font-style: italic;
  font-weight: bold;
  color: #ffc107;
  text-decoration: none;
  border: 1px solid #ffc1072d;
  border-radius: 0%;

}
.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}
.nav .nav-links a {
  transition: all 0.2s linear;
}
.nav.openSearch .nav-links a {
  opacity: 0;
  pointer-events: none;


}
.nav .search-icon {
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.nav .profile-icon {
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding-left: 10px;
  
}

.nav .search-box {
  position: absolute;
  right: 250px;
  height: 45px;
  max-width: 555px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s linear;
}
.nav.openSearch .search-box {
  opacity: 1;
  pointer-events: auto;
}
.search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  left: 15px;
  color: #ffffff;
  transform: translateY(-50%);
}
.search-box input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 6px;
  background-color: rgb(202, 202, 202);
  padding: 0 15px 0 45px;
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

/* Profile Dropdown */
.profile-dropdown-btn i {
  margin-left: 5px;
}

.profile-dropdown-list {
  position: absolute;
  top: 80px;
  width: 220px;
  right: 0;
  background: #000000c2;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  margin-right: 10px;
}

.profile-dropdown-list.active {
  max-height: 500px;
  opacity: 1;
}

.profile-dropdown-list hr {
  border: 0;
  height: 1px;
  width: 100%;
  background: rgba(204, 204, 204, 0.23);
}

.profile-dropdown-list-item {
  padding: 0.5rem 0rem 0.5rem 1rem;
  transition: background-color 0.2s ease-in, padding-left 0.2s;
}

.profile-dropdown-list-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(255, 255, 255);
}

.profile-dropdown-list-item a i {
  margin-right: 0.8rem;
  font-size: 1.1rem;
  width: 2.3rem;
  height: 2.3rem;
  background-color: #ffc107;
  color: var(--white);
  line-height: 2.3rem;
  text-align: center;
  margin-right: 1rem;
  border-radius: 50%;
  transition: margin-right 0.3s;
}

.profile-dropdown-list-item:hover {
  padding-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) { /* Tablets & Small Laptops */
  .profile-dropdown-list {
    width: 180px;
    right: 10px;
    margin-right: 20px;
  }
}

@media (max-width: 768px) { /* Tablets & Large Phones */
  .profile-dropdown-list {
    width: 180px;
    right: 5px;
    margin-right: 10px;
  }
}

@media (max-width: 480px) { /* Smartphones */
  .profile-dropdown-list {
    width: 180px;
    top: 60px;
    right: 5px;
    margin-right: 5px;
  }

  .profile-dropdown-list-item a {
    font-size: 0.8rem;
  }

  .profile-dropdown-list-item a i {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    line-height: 2rem;
  }
}


/* responsive */
@media screen and (max-width: 1160px) {
  .nav {
    padding: 15px 30px;
  }
  .nav .search-box {
    right: 150px;
  }
}
@media screen and (max-width: 950px) {
  .nav {
    padding: 15px 50px;
  }
  .nav .search-box {
    right: 100px;
    max-width: 400px;
  }
}
@media screen and (max-width: 768px) {
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: block;
  }
  .nav {
    padding: 15px 20px;
  }
  .nav .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    max-width: 280px;
    width: 100%;
    padding-top: 100px;
    row-gap: 30px;
    flex-direction: column;
    background-color: #000000c2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 100;
  }
  .nav.openNav .nav-links {
    left: 0;
  }
  .nav .navOpenBtn {
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .search-box {
    top: calc(100% + 10px);
    max-width: calc(100% - 20px);
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}
