header {
    position: fixed;
    width: 100%;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    z-index: 3;
}

.header-line {
    position: relative; /* Make it the positioning context */
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    border-bottom: 6px solid #ff9900;
}

.CyberHiveLogo img {
    width: 310px;
    height: auto;
    margin-top: 2px;
}

.cart-icon img {
    width: 170px;
    height: auto;
}

.lowestAsk {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: "CyberDyne", Arial, sans-serif;
    color: #ff9900;
    font-size: 32px;
    white-space: nowrap;
    margin: 0;
    padding: 0 20px;
}

.language-selector {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 150px; /* Adjust as needed */
    transform: none; /* Remove the old transform */
}

.nav {
    position: absolute; /* Add position absolute */
    width: 75%;
    background-color: black;
    display: flex;
    justify-content: center;
    padding: 5px 0;
    font-family: "CyberDyne", Arial, sans-serif;
    z-index: 5;
    align-self: flex-end; /* Align to the bottom */
    left: 320px; /* Move to the left */
    top: 100px;
}

.nav-links {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-family: "CyberDyne", Arial, sans-serif;
    justify-content: space-around;
    width: 100%;
}

.nav-links li {
    margin: 0 0px;
}

.nav-links a {
    text-decoration: none;
    color: #ff9900;
    font-size: 22px;
    font-family: "CyberDyne", Arial, sans-serif;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.hamburger-menu span {
    width: 35px;
    height: 5px;
    background-color: #ff9900;
    margin: 4px 0;
    transition: 0.4s;
}

/* Animation for Hamburger Menu when clicked */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.language-selector select {
    padding: 5px;
    font-size: 14px;
    background-color: transparent;
    color: #ff9900;
    border: 1px solid #ff9900;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
}

/* Optional: Custom arrow for the dropdown */
.language-selector select::after {
    content: '\25BC';
    color: #ff9900;
    padding-left: 10px;
}

/* Styling for the dropdown options */
.language-selector select option {
    background-color: black;
    color: #ff9900;
}

@media (max-width: 340px) {
    header {
        height: 82px !important;
    }

    .header-line {
        height: 95% !important;
        border-bottom: 3px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 130px;
        margin-top: 4px;
    }

    .lowestAsk {
        font-size: 10px;
        top: 6px;
        padding: 0 10px;
    }

    .cart-icon img {
        width: 80px;
        margin-top: 4px;
    }

    .language-selector {
        top: 4px;
        left: 50px;
    }

    .language-selector select {
        font-size: 10px !important;
        padding: 3px 6px;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 70px;
        left: 15px;
    }

    .hamburger-menu span {
        width: 28px;
        height: 4px;
        margin: 3px 0;
    }

    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 70px !important;
        left: 10% !important;
        width: 80% !important;
        background-color: black !important;
        border: 2px solid #ff9900;
        z-index: 1000 !important;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a {
        padding: 8px;
        font-size: 18px;
    }
}

@media (max-width: 425px) {
    header {
        height: 81px;
    }

    .header-line {
        height: 100%;
        border-bottom: 4px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 170px;
        margin-top: 3%;
    }

    .lowestAsk {
        font-size: 10px;
        margin-left: 0px;
        margin-right: 50px;
    }

    .cart-icon img {
        width: 100px;
        margin-top: 5px;
        margin-left: -40px;
    }

    .language-selector {
        top: 5px;
        left: 70px;
    }

    .language-selector select {
        font-size: 11px;
    }

    .nav {
        display: none;
        width: 30%;
        top: 120px;
        left: 0px;
    }

    .nav-links a {
        font-size: 19px;
    }

    .hamburger-menu {
        display: flex;
        transform: none;
        position: absolute;
        top: 95px;
        left: 20px;
    }

    /* Styles for the nav popup when active */
    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: 20% !important;
        width: 60% !important;
        height: auto !important;
        background-color: black !important;
        z-index: 1000 !important;
        overflow: visible !important;
        border: 2px solid #ff9900;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 10px;
        font-size: 22px;
    }
}

@media (min-width: 426px) and (max-width: 600px) {
    header {
        height: 71px;
    }

    .header-line {
        height: 100%;
        border-bottom: 4px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 160px;
    }

    .lowestAsk {
        font-size: 14px;
        margin-left: 0px;
        margin-right: 50px;
    }

    .cart-icon img {
        width: 95px;
        margin-top: 5px;
        margin-left: -35px;
    }

    .language-selector {
        top: 5px;
        left: 70px;
    }

    .language-selector select {
        font-size: 8px;
    }

    .nav {
        display: none;
        width: 30%;
        top: 120px;
        left: 0px;
    }

    .nav-links a {
        font-size: 19px;
    }

    .hamburger-menu {
        display: flex;
        transform: none;
        position: absolute;
        top: 95px;
        left: 40px;
    }

    /* Styles for the nav popup when active */
    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: 20% !important;
        width: 60% !important;
        height: auto !important;
        background-color: black !important;
        z-index: 1000 !important;
        overflow: visible !important;
        border: 2px solid #ff9900;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 10px;
        font-size: 22px;
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    header {
        height: 100px;
    }

    .header-line {
        height: 100%;
        border-bottom: 4px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 210px;
    }

    .lowestAsk {
        font-size: 14px;
        margin-left: 0px;
        margin-right: 50px;
    }

    .cart-icon img {
        width: 130px;
        margin-top: 5px;
        margin-left: -35px;
    }

    .language-selector {
        top: 5px;
        left: 90px;
    }

    .language-selector select {
        font-size: 8px;
    }

    .nav {
        display: none;
        width: 30%;
        top: 150px;
        left: 0px;
    }

    .nav-links a {
        font-size: 19px;
    }

    .hamburger-menu {
        display: flex;
        transform: none;
        position: absolute;
        top: 120px;
        left: 40px;
    }

    /* Styles for the nav popup when active */
    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: 20% !important;
        width: 60% !important;
        height: auto !important;
        background-color: black !important;
        z-index: 1000 !important;
        overflow: visible !important;
        border: 2px solid #ff9900;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 10px;
        font-size: 22px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    header {
        height: 100px;
    }

    .header-line {
        height: 100%;
        border-bottom: 4px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 220px;
    }

    .lowestAsk {
        font-size: 24px;
        margin-left: 0px;
        margin-right: 50px;
    }

    .cart-icon img {
        width: 130px;
    }

    .language-selector {
        top: 5px;
        left: 100px;
    }

    .language-selector select {
        font-size: 12px;
    }

    .nav {
        display: none;
        width: 30%;
        top: 120px;
        left: 0px;
    }

    .nav-links a {
        font-size: 19px;
    }

    .hamburger-menu {
        display: flex;
        transform: none;
        position: absolute;
        top: 120px;
        left: 20px;
    }

    /* Styles for the nav popup when active */
    .nav.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: 20% !important;
        width: 60% !important;
        height: auto !important;
        background-color: black !important;
        z-index: 1000 !important;
        overflow: visible !important;
        border: 2px solid #ff9900;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        font-size: 22px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .header-line {
        height: 79%;
    }

    .CyberHiveLogo img {
        width: 240px;
        margin-top: 2%;
    }

    .lowestAsk {
        font-size: 28px;
    }

    .cart-icon img {
        width: 150px;
    }

    .language-selector {
        top: 10px;
        left: 110px;
    }

    .language-selector select {
        font-size: 14px;
    }

    .nav {
        width: 100%;
        top: 115px;
        left: 0px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 17px;
    }
}

@media only screen and (min-width: 1440px) and (max-width: 1918px) {
    .header-line {
        height: 92%;
    }

    .CyberHiveLogo img {
        width: 280px;
    }

    .lowestAsk {
        font-size: 32px;
    }

    .cart-icon img {
        width: 180px;
    }

    .language-selector {
        top: 10px;
        left: 130px;
    }

    .language-selector select {
        font-size: 14px;
    }

    .nav {
        width: 100%;
        top: 135px;
        left: 0px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 24px;
    }
}

@media only screen and (min-width: 1919px) and (max-width: 1920px) {
    .header-line {
        height: 100%;
    }

    .CyberHiveLogo img {
        width: 300px;
        margin-top: 1.5%;
    }

    .lowestAsk {
        font-size: 34px;
    }

    .cart-icon img {
        margin-left: 2%;
        width: 170px;
    }

    .language-selector {
        top: 5px;
        left: 137px;
    }

    .language-selector select {
        font-size: 14px;
    }

    .nav {
        width: 72%;
        top: 105px;
        left: 340px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 24px;
    }
}

@media only screen and (min-width: 1921px) and (max-width: 2300px) {
    .header-line {
        height: 105%;
    }

    .CyberHiveLogo img {
        width: 320px;
        margin-top: 1%;
    }

    .lowestAsk {
        font-size: 42px;
    }

    .cart-icon img {
        width: 200px;
        margin-left: 3%;
    }

    .language-selector {
        top: 10px;
        left: 200px;
    }

    .language-selector select {
        font-size: 18px;
    }

    .nav {
        width: 75%;
        top: 110px;
        left: 320px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 27px;
    }
}

@media only screen and (min-width: 2301px) and (max-width: 2559px) {
    .header-line {
        height: 140%;
    }

    .CyberHiveLogo img {
        width: 430px;
        margin-top: 1%;
    }

    .lowestAsk {
        font-size: 46px;
    }

    .cart-icon img {
        width: 250px;
    }

    .language-selector {
        top: 10px;
        left: 200px;
    }

    .language-selector select {
        font-size: 24px;
    }

    .nav {
        width: 70%;
        top: 140px;
        left: 450px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 28px;
    }
}

@media only screen and (min-width: 2560px) {
    .header-line {
        height: 142%;
    }

    .CyberHiveLogo img {
        width: 435px;
        margin-top: 1%;
    }

    .lowestAsk {
        font-size: 46px;
    }

    .cart-icon img {
        width: 250px;
    }

    .language-selector {
        top: 10px;
        left: 200px;
    }

    .language-selector select {
        font-size: 24px;
    }

    .nav {
        width: 70%;
        top: 140px;
        left: 470px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 32px;
    }
}

/* === FORCE FIX FOR 425px EXACT (WITH HAMBURGER) === */
@media (max-width: 425.98px) and (min-width: 425px) {
    header {
        height: 64px;
    }

    .header-line {
        height: 100%;
        border-bottom: 3px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 145px;
    }

    .lowestAsk {
        font-size: 14px;
        margin-left: 0;
        margin-right: 40px;
    }

    .cart-icon img {
        width: 85px;
        margin-top: 4px;
        margin-left: -30px;
    }

    .language-selector {
        top: 4px;
        left: 60px;
    }

    .language-selector select {
        font-size: 7px;
        padding: 4px;
    }

    /* ✅ HAMBURGER MUST BE ACTIVE */
    .nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 85px;
        left: 30px;
        z-index: 10;
    }

    .hamburger-menu span {
        width: 30px;
        height: 4px;
        margin: 3px 0;
    }

    /* ✅ NAV POPUP WHEN HAMBURGER ACTIVE */
    .nav.active {
        display: flex !important;
        position: fixed;
        top: 75px;
        left: 15%;
        width: 70%;
        background-color: black;
        border: 2px solid #ff9900;
        z-index: 1000;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a {
        padding: 8px;
        font-size: 20px;
    }
}

/* === FORCE FIX FOR 1023px EXACT === */
@media (min-width: 1023px) and (max-width: 1023.98px) {

    /* Same behavior as 769–1023 */
    .nav {
        display: flex;
    }

    .hamburger-menu {
        display: none;
    }

    header {
        height: 60px;
    }

    .header-line {
        border-bottom: 4px solid #ff9900;
    }

    .CyberHiveLogo img {
        width: 200px;
    }

    .lowestAsk {
        font-size: 16px;
    }

    .cart-icon img {
        width: 115px;
    }

    .language-selector select {
        font-size: 10px;
    }

    .nav {
        width: 100%;
        top: 110px;
        left: 0px;
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 17px;
    }
}