/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.header__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.select {
    position: relative;
    width: 150px;
}

.select__selected {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e0e7ff;
    padding: 0.5rem 0.25rem;;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.select__selected:hover {
    background: rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.select__selected img {
    width: 16px;
    height: 12px;
    object-fit: cover;
}

.select__options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 0.25rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.select__options .select__option {
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.3s ease;
}

.select__options .select__option:hover {
    background: rgba(0, 212, 255, 0.6);
    border-radius: 10px;
}

.select__options .select__option img {
    width: 16px;
    height: 12px;
    object-fit: cover;
}

.select.open .select__options {
    display: block;
}

.header__logo {
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header__logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav__hamburger-line {
    width: 30px;
    height: 3px;
    background: #e0e7ff;
    border-radius: 2px;
    transition: all 0.3s ease 0.1s;
    transform-origin: 1px;
}

.nav__hamburger.open .nav__hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.nav__hamburger.open .nav__hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav__hamburger.open .nav__hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

.nav__menu {
    position: fixed;
    top: 100px;
    right: -250px;
    width: 250px;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.nav__menu .nav__link {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav__menu.open {
    right: 20px;
}

.nav__menu .nav__item {
    width: 100%;
}

.nav__menu .nav__link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav__menu .nav__item:first-child .nav__link:hover {
    border-radius: 15px 15px 0 0;
}

.nav__menu .nav__item:last-child .nav__link:hover {
    border-radius: 0 0 15px 15px;
}

.nav__menu .nav__link:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #ffffff;
}

/* Submenu */
.nav__item--has-submenu {
    position: relative;
}

.nav__submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.nav__menu.open .nav__submenu {
    display: block;
}

.nav__submenu-arrow {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav__item--has-submenu.open .nav__submenu-arrow {
    transform: rotate(90deg);
}

.nav__submenu .nav__submenu-item {
    position: relative;
}

.nav__bullet {
    position: absolute;
    left: 1rem;
    color: #e0e7ff;
    transition: color 0.3s ease;
}

.nav__submenu .nav__submenu-item:hover .nav__bullet {
    color: #10b981;
}

.nav__submenu .nav__submenu-link {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9rem;
    display: block;
    color: #e0e7ff;
    text-decoration: none;
}

.submenu li a:hover {
    background: rgba(0, 212, 255, 0.3);
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Mobile breakpoints following modern standards */
@media (max-width: 768px) {
    .header {
        left: 1rem;
        right: 1rem;
        padding: 0;
    }

    .header__content {
        padding: 0 10px;
        height: 70px;
    }

    .select {
        width: 120px;
    }

    .select__selected {
        padding: 0.4rem 0.2rem;
        font-size: 0.85rem;
    }

    .select__options {
        min-width: 200px;
        right: 0;
        left: auto;
    }

    .header__logo img {
        height: 45px;
    }

    .nav__hamburger {
        width: 25px;
        height: 25px;
    }

    .nav__hamburger-line {
        width: 25px;
    }

    .nav__menu {
        width: 220px;
        right: -220px;
    }

    .nav__menu.open {
        right: 10px;
    }

    .nav__menu .nav__link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav__submenu .nav__submenu-link {
        padding: 0.5rem 1rem 0.5rem 2.5rem;
        font-size: 0.85rem;
    }
}

/* Small mobile devices (Galaxy S9+ and similar) */
@media (max-width: 480px) {
    .header {
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 0 0 15px 15px;
    }

    .header__content {
        padding: 0 8px;
        height: 65px;
        justify-content: space-between;
    }

    .header__left {
        flex: 0 0 auto;
    }

    .header__center {
        flex: 1;
        display: flex;
        justify-content: center;
        max-width: 120px;
    }

    .header__right {
        flex: 0 0 auto;
    }

    .select {
        width: 100px;
        margin: 0 auto;
    }

    .select__selected {
        padding: 0.3rem 0.15rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .select__selected img {
        width: 12px;
        height: 10px;
    }

    .select__options {
        min-width: 180px;
        max-width: 200px;
    }

    .select__options .select__option {
        padding: 0.4rem 0.2rem 0.4rem 0.4rem;
        font-size: 0.85rem;
    }

    .header__logo img {
        height: 40px;
    }

    .nav__hamburger {
        width: 22px;
        height: 22px;
    }

    .nav__hamburger-line {
        width: 22px;
        height: 2px;
    }

    .nav__menu {
        width: 200px;
        right: -200px;
        top: 75px;
    }

    .nav__menu.open {
        right: 5px;
    }

    .nav__menu .nav__link {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .nav__submenu .nav__submenu-link {
        padding: 0.4rem 0.8rem 0.4rem 2rem;
        font-size: 0.8rem;
    }

    .nav__bullet {
        left: 0.8rem;
    }
}

/* Galaxy S9+ and similar devices (320px width) */
@media (max-width: 320px) {
    .header {
        left: 0.25rem;
        right: 0.25rem;
    }

    .header__content {
        padding: 0 5px;
        height: 60px;
    }

    .select {
        width: 85px;
        margin-left: 0;
    }

    .select__selected {
        padding: 0.25rem 0.1rem;
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .select__selected img {
        width: 10px;
        height: 8px;
    }

    .select__options {
        min-width: 140px;
        max-width: 160px;
    }

    .select__options .select__option {
        padding: 0.3rem 0.15rem 0.3rem 0.3rem;
        font-size: 0.8rem;
    }

    .header__logo {
        padding: 0.1rem;
    }

    .header__logo img {
        height: 28px;
    }

    .nav__hamburger {
        width: 20px;
        height: 20px;
    }

    .nav__hamburger-line {
        width: 20px;
        height: 2px;
    }

    .nav__menu {
        width: 160px;
        right: -160px;
        top: 70px;
    }

    .nav__menu.open {
        right: 2px;
    }

    .nav__menu .nav__link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .nav__submenu .nav__submenu-link {
        padding: 0.3rem 0.6rem 0.3rem 1.5rem;
        font-size: 0.75rem;
    }

    .nav__bullet {
        left: 0.6rem;
    }
}

/* Extra small devices (iPhone SE and similar) */
@media (max-width: 375px) {
    .header {
        left: 0.25rem;
        right: 0.25rem;
    }

    .header__content {
        padding: 0 5px;
        height: 60px;
    }

    .select {
        width: 90px;
    }

    .select__options {
        min-width: 160px;
    }

    .header__logo img {
        height: 35px;
        display: none;
    }

    .header__logo::before {
        content: '';
        display: block;
        height: 35px;
        width: 35px;
        background-image: url('/website/Flavicon/Wifi.v2.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .nav__menu {
        width: 180px;
        right: -180px;
        top: 70px;
    }

    .nav__menu.open {
        right: 2px;
    }
}