@font-face {
  font-family: 'Quicksand';
  src: url('../Media/Fonts/Quicksand.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    position: relative;
}

.logo img {
    height: 60px;
    /* z-index: 1; */
}

.pill-nav {
    display: flex;
    padding: 6px 12px;
    background: white;
    gap: 40px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.pill-nav li {
    list-style: none;
    position: relative;
}

.pill-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    border-radius: 30px;
    transition: background 0.3s;
    overflow: hidden;
}

.pill-nav a:hover {
    background: #2ecc71;
}

.pill-nav a img {
    width: 40px;
    transition: transform 0.3s ease;
    transform-origin: center;

}

.pill-nav a:hover img {
    transform: scale(1.2);
}

.pill-nav .nav-text {
    position: absolute;
    top: 140%;
    background: #2ecc71;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.pill-nav a:hover .nav-text {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger toggle */
.toggle_btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #e37413;
}
/*.action_btn_up {*/
/*    position: absolute;*/
/*  top: 1rem;*/
/*  right: 1rem;*/
/*  display: flex;*/
/*  z-index: 1001;*/
/*}*/

/* Dropdown menu */
.dropdown_menu {
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 80px;
    right: 30px;
    width: 220px;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-40px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.dropdown_menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown_menu li {
    list-style: none;
    margin-bottom: 10px;
}

.dropdown_menu a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon transition */
.toggle_btn i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.toggle_btn i.fa-xmark {
    transform: rotate(180deg); /* Rotate the X mark when active */
}

/* Responsive */
@media (max-width: 768px) {
    .pill-nav {
        display: none;
    }

    .toggle_btn {
        display: block;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .pill-nav {
        gap: 15px;
        padding: 10px;
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .pill-nav {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .logo img {
        height: 40px;
    }
}