/* ====== Main Header – Fixed Glass Effect ====== */
.main-header {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    min-height: 70px;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(15px);
    background: transparent !important;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.main-header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.3);
}

/* Ensure header stays glassy when menu is open */
body.mobile-menu-visible .main-header {
    background: transparent !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Logo */
.logo-box {
    position: relative;
    z-index: 10004;               /* keep the logo on top of the menu */
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.logo-box .logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* Desktop Navigation */
.main-menu .navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu .navigation li {
    margin-left: 25px;
}

.main-menu .navigation li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-menu .navigation li a:hover {
	color: #00B9F2;
	transform: translateX(5px);
}

/* Mobile Toggler */
.mobile-nav-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    cursor: pointer;
    z-index: 1001;               /* also above the menu */
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    pointer-events: none;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10002;
    transition: right 0.4s ease;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Backdrop */
.menu-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #000000, #2f0185); /* important dont change this */
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button – Increased size for easier tap */
.mobile-menu .close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 32px;
    color: white;
    background: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 10003;
}

/* Mobile Menu Links */
.mobile-menu .navigation {
    padding: 20px;
    list-style: none;
}

.mobile-menu .navigation li {
    margin-bottom: 15px;
}

.mobile-menu .navigation li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .nav-outer {
        display: none;
    }
    .mobile-nav-toggler {
        display: flex;
    }
    .main-header {
        min-height: 60px;
        padding: 5px 0;
    }
    .logo-box .logo img {
        height: 35px;
    }
}

/* iOS Safe Area */
@supports (-webkit-touch-callout: none) {
    .main-header {
        padding-top: env(safe-area-inset-top);
        min-height: calc(60px + env(safe-area-inset-top));
    }
}

/* Prevent background scroll when menu is open */
body.mobile-menu-visible {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
